Shares and the share price
- A share is an SPL token with 9 decimals, minted and burned only by the strike. Shares are transferable: a holder can sell them to anyone at a price the two agree. That secondary market never touches the pool’s solvency.
- The share price is the pool’s assets over its shares, with a fixed virtual offset (1 000 virtual share units against 1 virtual asset unit) so that the first depositor cannot manipulate it.
- Assets are the pool’s own ledger,
total_assets, updated by every wager: credited when a wager opens, debited when it pays out. No token balance is ever read to price anything, so a donation or a stray transfer cannot move the price.
Epochs: one price per batch
Deposits and withdrawals are not instant. They join an epoch, a batch of requests that all clear at one price.- The first request opens an epoch, which closes at the next multiple of the epoch length on the UTC clock: every 10 minutes by default (:00, :10, :20 …), every 120 seconds on devnet.
- A request made after the close joins the next epoch. At most two epochs are live: the one waiting for its price and the one filling behind it. A period with no request creates nothing and costs nothing.
- The price is computed after the close, once every wager opened before the close has settled or expired. This is forward pricing: arriving after a result is known buys nothing, because the price you get includes that result.
The strike
strike_epoch prices an epoch and processes its requests. Anyone may send it, once:
- the epoch’s close has passed, and
- no wager opened before the close is still open.
T_SETTLE for unfulfilled ones, the settler’s incentive for fulfilled ones). A stream of new wagers cannot delay it.
One move: the request
A liquidity provider sends one transaction, the request. Keepers do the rest because each step is paid.1
Request
request_deposit(amount) moves USDC from your wallet into the deposit queue, held apart from the pool’s assets until the strike. request_withdraw(shares) moves shares into escrow. Each request prepays a 200 000-lamport CLAIM_FEE, and a 200 000-lamport STRIKE_FEE only while the strike fund is below its 0.05 SOL target. The request account’s rent (about 0.001 SOL) is advanced, not spent.2
Strike
After the epoch closes and is clean, a keeper strikes it.
3
Claim
A keeper sends
claim_deposit or claim_withdraw, and collects your CLAIM_FEE. Your shares or your USDC arrive in your wallet’s associated token account, and the request’s rent comes back to you in the same transaction. If you claim yourself, you keep the fee.