```\nquantityDeposited = \_amount;\n\nif(\_isTokenFeeCharged) {\n    // If we charge a fee, account for it\n    uint256 prevBal = \_checkBalance(cToken);\n    require(cToken.mint(\_amount) == 0, "cToken mint failed");\n    uint256 newBal = \_checkBalance(cToken);\n    quantityDeposited = \_min(quantityDeposited, newBal.sub(prevBal));\n} else {\n    // Else just execute the mint\n    require(cToken.mint(\_amount) == 0, "cToken mint failed");\n}\n\nemit Deposit(\_bAsset, address(cToken), quantityDeposited);\n```\n