#45554 [SC-Medium] Fee loss during Agent's feeBIPS reduction in `selfMint` function
Description
Brief/Intro
Vulnerability Details
function selfMint(
IPayment.Proof calldata _payment,
address _agentVault,
uint64 _lots
)
internal
{
...
uint64 valueAMG = _lots * Globals.getSettings().lotSizeAMG;
uint256 mintValueUBA = Conversion.convertAmgToUBA(valueAMG);
@> uint256 poolFeeUBA = calculateCurrentPoolFeeUBA(agent, mintValueUBA);
...
if (_lots > 0) {
@> _performMinting(agent, MintingType.SELF_MINT, 0, msg.sender, valueAMG, receivedAmount, poolFeeUBA);
}
}Example
Impact Details
Proof of Concept
Previous#45533 [SC-Low] Incorrect gas allowance comparison in CoreVault transfer function leads to user fund lossNext#45550 [SC-Medium] [H-01] `illegalPaymentChallenge` is vulnerable to frontrunning by external challengers stealing the reward
Was this helpful?