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

0 stars 0 forks source link

It might not be possible to withdraw tokens from the basket #287

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

Czar102

Vulnerability details

Impact

When enough basket token owners exit, it will be impossible to exit pool with the last MIN_AMOUNT tokens because of this check. This will result in locking some tokens forever.

Recommended Mitigation Steps

Consider resigning from this check or performing it only for the owner balance, who would need to have at least MIN_AMOUNT tokens.

0xleastwood commented 2 years ago

Nice find! I think this is valid:)