The withdraw
function incorrectly returns amountUnderlying
twice instead of returning amountWithdrawn
. This could lead to misleading return values for functions that rely on the correct return structure.
Incorrect Data Handling: Functions calling withdraw
expecting amountWithdrawn
in the first return value will instead receive amountUnderlying
, leading to logical errors.
Security Risk: Although not directly exploitable, incorrect return values may create unexpected behavior, potentially leading to loss of funds or improper state updates.
Modify the return statement to ensure that amountWithdrawn
is correctly returned in the first position:
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.