Skip to content
Business logic Audit finding Intermediate

It might not be possible to withdraw tokens from the basket

Czar102 Follow

Originally disclosed on Code4rena

Submitted by Czar102, also found by csanuragjain

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.

loki-sama (Amun) disagreed with severity

0xleastwood (Judge) commented:

Nice find! I think this is valid:)

The original report as published on Code4rena, by Czar102. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity business logic bug in Amun contest. Code4rena made it public on 7 March 2023. Found in the 2021-12-amun audit contest (finding H-02).

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Czar102

View all

12 more disclosed reports, best first.

More from Amun contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.