The SherXERC20.decreaseApproval function reads the allowance from memory twice.
It should be read once the newValue should be calculated and stored in a variable. The newValue should then be emitted in the event instead of reading from storage again.
Handle
cmichel
Vulnerability details
The
SherXERC20.decreaseApproval
function reads the allowance from memory twice. It should be read once thenewValue
should be calculated and stored in a variable. ThenewValue
should then be emitted in the event instead of reading from storage again.