A seller should be able to have multiple orders, but here one selling order going through, removes all the other ones from the same seller.
https://github.com/Cyfrin/2025-01-pieces-protocol/blob/main/src/TokenDivider.sol#L285-L286
In TokenDivider.sol:buyOrder()
lines 285-286
:
s_userToSellOrders[seller].pop();
removes all the orders from the specific seller instead of just the one order concerned by the buy order.
Loss of all the other active orders from the same seller.
Github, manual review.
Instead of removing the seller s_userToSellOrders[seller].pop()
, only remove the orderIndex
corresponding to this specific selling.
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.