Since balance updates are not performed, the fees are also not updated, resulting in the fees always remaining at 0 ETH.
Since the user's userBalances
are not updated, the matchingFees
value is always set to 0. Consequently, totalFees
also remains 0. Later, when the owner attempts to withdraw funds equal to totalFees
through the withdrawFees()
function, no funds can be withdrawn since totalFees
is always 0.
Because users do not pay fees, there is financial harm to the service's operation
Update the balance when a user deposits 1 ether. Then, the fees are also updated
Likelihood: High, always. Impact: High, loss of funds
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.