Description:
Currently the DEPOSIT_LIMIT
property is assigned 100_000 ether which is 100_000 * 1e18, but this variable represents the limit of ERC20 tokens not ethers. If ERC20 token has 30 decimals those 100_000 * 1e18 will be not enough to deposit just a fraction of the total supply.
Impact:
Low, denial of service attack, due to reaching the limit very fast.
Tools used:
foundry
Proof of Concept:
Recommended Mitigation:
Instead of setting the DEPOSIT_LIMIT to 100_000 e18 use the token decimals to determine the limit.
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.