safeApprove will fail if the current approval is not 0 #269
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
Handle
pauliax
Vulnerability details
Impact
safeApprove will fail if the current approval is > 0 but < amount:
This condition is unlikely to happen in practice as you approve the max value which should in theory last forever, but nevertheless a better option would be to reset the approval before setting it once again:
The text was updated successfully, but these errors were encountered: