Severity: Low
Impact: Low
Likelihood: High
The function deposit()
in the contract Treasury
does no consider a case when somebody will try to deposit the so-called weird token, that deduct a fee whenever they are transferred.
Actually the contract receives amount minus fee tokens, but _balances[token]
and _totalValue
will add the entire amount, which is incorrect. This may cause problems when withdrawing.
The deposit()
function can be called by anyone, that's why likelihood is high. Despite Treasury
designed for any ERC20 token, in fact it works with a certain token. That's why real impact is low.
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.