The removeLiquidityProportional function is responsible for burning different NFTs belonging to the caller in exchange for receiving tokens managed by a QuantAMMPool, always burning the last minted/received NFT first.
The issue arises because it is possible to send multiple NFTs with negligible share amounts, aiming to hinder the victim's call and create a transaction so large that it cannot be executed within the block size limit, thereby achieving a DoS.
It is worth noting that the NFT limit is only enforced when the user tries to mint them, but not when they are received via a transaction.
DoS for users attempting to exit the protocol.
May not even be able to transfer their NFTs to other addresses.
Manual Review
Ensure that the protocol cannot receive additional NFTs if the limit has already been reached.
Likelihood: Medium/High, anyone can receive an unlimited NFT number but will cost creation of LP tokens and sending them. Impact: Low/Medium, DoS the afterUpdate and addLiquidityProportional but will be mitigable on-chain because a lot of those NFT can be burn easily in onAfterRemoveLiquidity.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.