Struct Podlisting
contains field minFillAmount
which indicates minimum amount to fulfill in listing. On partial fulfillments it deletes previous listing and instead creatse new listing with the same parameters and remaining amount.
However during fulfillment it only checks that fulfilled amount is greater than minFillAmount
. It allows to leave dust amount in listing which will be newly created after partial fulfillment.
Here you can see that it can create listing with dust amount after partial fulfillment:
https://github.com/Cyfrin/2024-05-beanstalk-the-finale/blob/df2dd129a878d16d4adc75049179ac0029d9a96b/protocol/contracts/beanstalk/market/MarketplaceFacet/Listing.sol#L125-L147
During listing creation user specifies minFillAmount
. After partial fulfillment it always creates listing with remaining amount despite the fact it can be less than minFillAmount
. In other words it has 2 impacts:
Unfillable listing is created
Lister's Plot can have dust amount left which is contrary to purpose of minFillAmount
Manual Review
Require to left more than minFillAmount
in case it is partial filling:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.