If a gang member calls Laundrette.sol::takeGuns
or Laundrette.sol::withdrawMoney
and they try to take more than they have deposited, then the call will fail with an arithmetic underflow error.
Because there are no checks if the value being withdrawn is greater than the deposited amount, it can return with an arithmetic underflow error when calling Shelf.sol::withdraw
.
The tests below fail with arithmetic underflow error's when a gang member tries to withdraw more than they have deposited.
--Foundry
It is recommended to add a check and revert if they are trying to withdraw more than they have deposited.
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.