Closed c4-bot-2 closed 10 months ago
raymondfam marked the issue as insufficient quality report
raymondfam marked the issue as duplicate of #872
Insensible scenario. Check readme: For any token associated with Curves, it's imperative that the total ERC20 supply remains exactly equivalent to the value locked within the Curves protocol. This one-to-one correspondence ensures consistency and integrity between the ERC20 tokens in circulation and the underlying assets within the Curves ecosystem.
alcueca marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/Curves.sol#L498
Vulnerability details
Impact
The user being front-run can't deposit their curvesTokenSubject into Curves again as the balance of Curves is not enough
Proof of Concept
Tools Used
Manual Review
Recommended Mitigation Steps
Use a private pool for deposit transactions and implement a queue for deposit.
Assessed type
DoS