code-423n4 / 2022-01-openleverage-findings

0 stars 0 forks source link

Correct conditions #257

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

The condition should be _locked.amount > 0:

  require(_locked.amount >= 0, "Nothing to withdraw");

safe32 should be n <= 2 ** 32:

  require(n < 2 ** 32, errorMessage);
ColaM12 commented 2 years ago

Duplicate to #132