#46326 [SC-Medium] Incorrect Minting Cap Check in Minting Process
Description
Brief/Intro
Vulnerability Details
/fassets/contracts/assetManager/library/Minting.sol:75
75: function selfMint(
76: IPayment.Proof calldata _payment,
77: address _agentVault,
78: uint64 _lots
79: )
80: internal
81: {
.....
90: require(collateralData.freeCollateralLots(agent) >= _lots, "not enough free collateral");
91: uint64 valueAMG = _lots * Globals.getSettings().lotSizeAMG;
92: checkMintingCap(valueAMG); <----@
107: if (_lots > 0) {
108: _performMinting(agent, MintingType.SELF_MINT, 0, msg.sender, valueAMG, receivedAmount, poolFeeUBA);
109: } else {
Impact Details
References
Proof of Concept
Proof of Concept
Previous#46271 [SC-Medium] Rewards claiming functionality is broken.Next#46378 [SC-High] Unconditional F-Asset burn during partial collateral redemptions enables direct theft of user funds
Was this helpful?