4.7 Security & Edge Cases
CEI + Reentrancy guards + Pausability on critical paths.
DoS-resistant seller payouts:
If paying a seller reverts, the listing is delisted on full fill and any remaining CASH is returned; the swap continues (no market lock).
Iteration limits protect swaps from scanning excessively large books.
Slippage guard: buyer’s
minCashOutensures atomic consistency.GOAL fees: if GOAL is fee-on-transfer, the UI displays net values; sellers receive net at payout.
Last updated