56737 sc medium the return value of mint is not checked
Description
Brief/Intro
Vulnerability Details
function _allocate(uint256 amount) internal override returns (uint256) {
require(TokenUtils.safeBalanceOf(address(usdc), address(this)) >= amount, "Strategy balance is less than amount");
TokenUtils.safeApprove(address(usdc), address(mUSDC), amount);
// Mint mUSDC with underlying USDC
mUSDC.mint(amount); //@audit return value is not checked.
return amount;
}Impact Details
References
Proof of Concept
Proof of Concept
Previous58358 sc high mismatched collateralweight and rawlocked causes incorrect collateral removal in syncNext58131 sc critical rounding errors in debt to collateral conversions allow attackers to drain protocol assets
Was this helpful?