In Treasury
contract, function deposit()
is used to deposit token to treasury:
No matter what token is deposited, it will increase _totalValue
. Attacker can create malicious token owned by them, deposit to protocol, make _totalValue
variable to 2^256 - 1
, and make any upcoming deposit to treasury revert due to overflow
Permament DoS of deposit token to the treasury
Tracking total value of each token separately
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.