The Withdraw event does not emit the correct value for the amount withdrawn
According to the event definition, the event should emit the address of the user withdrawing and the amount withdrawn. The value comes from the calculations performed in ReserveLibrary.withdraw() function as it can be seen from the following snippet:
However the ReserveLibrary.withdraw() frunction returns the wrong value for the amountWithdrawn causing the event to emit the wrong value
As it can be seen, the function returns amountUnderlying two times instead of returning amountWithdrawn in the first place of the tupple.
The emitted events showing inaccurate logs causing the confusion and misleading users, damaging the overall realiability of the system
Manual Review
Make sure that ReserveLibrary.withdraw() function returns amountWithdrawn instead of amountUnderlying
return (amountWithdrawn, burnedScaledAmount, amountUnderlying);
Invalidated by appeal in 1090
Invalidated by appeal in 1090
Invalidated by appeal in 1090
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.