The afterWithdrawChecks
check is very important to be sure that important health parameters are in the proper ranges. But the check is inside brackets of the if user wants to withdraw in tokenA/B
statement. So if the user wants to withdraw LP-token the check is not provided. This can cause unexpected financial losses.
The afterWithdrawChecks
check is placed inside the brackets of the if-statement of the GMXProcessWithdraw.processWithdraw
function. This statement checks if user wants to withdraw in tokenA/B
. In other cases the afterWithdrawChecks
check is not provided but should.
The issue can cause unexpected financial losses.
Manual Review
I suppose that the check should be placed after the if statement brackets.
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.