The clearing price: floor, cap, fills, refunds
One price for the book
Bids are sorted by max price, highest first. Walking down the list, each bid at or above a price p demands its amount divided by p in tokens. The clearing price is where that demand first covers the sale. Every bid above it fills in full, the marginal bid fills in part, every bid below it is refunded. It is Gnosis EasyAuction's rule, ported to bids expressed as money.
| Sale | C(S), SOL | Floor / 1M | Cap / 1M | Window |
|---|---|---|---|---|
| 10% | 3.122 | 0.03153 | 0.03443 | +9.2% |
| 15% | 4.936 | 0.03324 | 0.03826 | +15.1% |
| 20% | 6.959 | 0.03515 | 0.04276 | +21.7% |
| 25% | 9.227 | 0.03728 | 0.04812 | +29.1% |
| 30% | 11.788 | 0.03969 | 0.05455 | +37.4% |
| 35% | 14.704 | 0.04244 | 0.06235 | +46.9% |
| 40% | 18.053 | 0.04559 | 0.07196 | +57.8% |
The floor
The floor is the lowest price whose proceeds pay for the auction's buy on the curve and the fee: proceeds x 0.99 must cover C(S). A creator can set a higher floor. A book that cannot buy the whole sale at the floor launches nothing, and every bid is refunded in full.
The cap
The cap is the curve's price right after the auction's buy, fee included: the first price the market will offer anyone after the book. No winner pays more than that. When demand at the cap is larger than the sale, everyone at or above the cap fills pro rata at the cap.
Rounding
Tokens round down, costs round up, so no bid ever pays for more than it gets. The rounding remainder of the sale, a few base units, goes to the first winner. Every lamport is either spent at the clearing price or refunded; the tests check this on 2,000 random books.