During the creation and withdrawal of a locked veToken
, there is a crucial call being made to writeCheckpoint()
to update the state.
However, this call is MISSING in emergencyWithdraw()
which allows withdrawal of tokens before expiry. This may lead to unintended behaviour later on.
The function emergencyWithdraw()
allows Users to withdraw their lock before expiry.
#emergencyWithdraw()
Notice the crucial state changes made in these lines of code. However, it does NOT make any call to writeCheckpoint()
which is done during normal withdraw()
.
This may lead to unintended state changes or behaviour later on.
Manual
Consider adding this:
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.