code-423n4 / 2021-12-yetifinance-findings

0 stars 0 forks source link

claimYeti inclusive check #300

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

condition should be inclusive >= :

  if (available > totalClaimed.add(_amount))
kingyetifinance commented 2 years ago

@LilYeti: Miniscule edge case that could cause loss of 1 wei of YETI for owners.

kingyetifinance commented 2 years ago

Recommend downgrade to severity 0

alcueca commented 2 years ago

Function incorrect as to spec, otherwise it would be medium severity.