deposit more than the cap using reentrancy (and ERC777) by depositing in the erc777 callback
if an acount wants to deposit more than the allowed cap he can!
just you a callback token (erc777 or erc20 with pugins) and when you get the callback just deposit again
the "totalDeposited" only change in the internal deposit function after the callback so you can repeat as much as you want
src/perpetuals/branches/TradingAccountBranch.sol Line 346 and Line 349
deposit more than the DepositCap
None
change the order of operations
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.