4.2 Buyer Flow
Buyer inputs GOAL to spend (or CASH desired).
The UI shows an estimate (net of any GOAL transfer fees) and proposes
minCashOut.On chain, the Exchange:
pulls GOAL from the buyer;
scans ticks from best to worst, filling listings in FIFO;
pays each seller immediately in GOAL for the filled amount;
transfers the aggregated CASH to the buyer from the Bank.
If final
cashOut < minCashOutโ the swap reverts (atomicity, no partial surprises).
Average price is returned (in bps of CASH/GOAL).
Last updated