Parties
| Term | Meaning |
|---|---|
| App, integrator | Whoever signs open_ticket: a program over CPI, a server or a wallet. Identified by the signing address alone. Its on-chain record is created by its first ticket. Fade’s only counterparty: a card issuer, merchant, platform, pool or service. |
| Operator | An app that holds its customers’ balances. It pays ticket prices from its own budget, never from its customers’ funds, names itself beneficiary and credits its customers. |
| Funder | The account that pays the ticket price. In Fade’s use cases, the business’s own account, never the customer’s. |
| User | The integrator’s customer, the person the reward is for. Sees the app, not Fade, and never deals with Fade: the business receives the payout and credits the user. |
| Liquidity provider (LP) | Anyone who deposits USDC into the vault and takes the other side of every ticket it accepts. |
| Keeper | Anyone who sends a permissionless transaction that moves the protocol forward (record_ticket_entropy, request_randomness, settle_ticket, expire_ticket, refund_expired_ticket, strike_epoch, claim_*) and is paid a prepaid, flat fee for it. Fade runs a public one; anyone can run their own. |
| Beneficiary | The USDC account a payout is sent to, chosen by the app. Named at open, never changeable. In Fade’s use cases, the business’s own account, never a customer’s. |
| Service gateway | An HTTP service, not yet open, for services under contract: it builds the ticket, and the service signs and pays it from its own wallet and receives the reward. See Any HTTP service. |
| Council, guardian | The program’s governance roles. The council changes parameters and lifts pauses; the guardian can only pause (set pause flags). See Security model. |
Tickets and payout tables
| Term | Meaning |
|---|---|
| Ticket | One reward: a ticket price, a payout table and the account that holds both, plus the outcome once drawn. |
| Ticket price | What is paid for a ticket, in USDC base units (6 decimals). |
| Payout table | The list of outcomes as (p, m) pairs, up to 32: an argument of open_ticket, copied into the ticket before the draw. Users see it as the odds. |
| Outcome | One row of a payout table. p is a u64 probability in billionths; all p sum to exactly 1 000 000 000. m is a u64 multiplier in basis points; 10 000 is 1×. |
| Margin, declared margin | What the payout table keeps of the ticket price in expectation, in bps: 10 000 − ceil(Σ p·m / 1e9), split between the vault margin, the protocol share and the app share. |
| App share | The app’s slice of the margin, 0 to 500 bps of every ticket price, set by the app per ticket. |
| Protocol share | The protocol’s slice of the margin: 100 bps of every ticket price. |
| Vault margin | The part of the margin the vault earns: declared margin − app share − protocol share. The per-ticket cap is computed on it. |
| Margin floor | The admission rule declared margin ≥ 100 (vault margin floor) + 100 (protocol share) + app share. Refused with MarginFloor otherwise. |
| M_CEILING | The largest multiplier any outcome may carry: 10 000×. |
Money and risk
| Term | Meaning |
|---|---|
| Vault credit | What reaches the vault at open: price − protocol share − app share. |
| Payout max | price × max(m) / 10 000: the largest payout the payout table can produce. |
| Liability | The vault’s worst-case additional outflow: payout_max − vault_credit. Reserved at open, released at settlement or expiry. |
| Assets | total_assets: the vault’s own ledger of what it owns. Never read from a token balance. |
| Free balance | assets − reserved liability − open vault credits. |
| Per-ticket cap | min(0.5 × vault_margin × free balance, 150 bps × assets), applied to the liability. Above it, the ticket is refused at open. |
| App ceiling | The most one app may have at risk at once: 20 % of assets, the new ticket included. |
| Utilisation | (reserved liability + open vault credits) ÷ assets. New tickets are refused above 70 %. |
| κ (kappa) | Hard ceiling on reserved liability: 80 % of assets. |
| Breaker | An automatic stop on new tickets: utilisation above 70 %, or a fall of 15 % or more in the share price over 24 hours. Neither can block a settlement, a strike, a claim or a withdrawal request. |
| Turnover | Ticket volume over a period divided by the vault’s time-weighted assets over that period. |
The vault
| Term | Meaning |
|---|---|
| Vault | The single USDC vault shared by every app, funded by liquidity providers. It pays every payout. |
| Vault shares | A standard, transferable SPL token (9 decimals) representing a claim on the vault. Minted and burned only at a strike. |
| NAV, share price | Assets over shares, with a fixed virtual offset that defeats first-depositor manipulation. |
| Epoch | A batch of deposit and withdrawal requests that clears at one price. The first request opens one; it closes at the next multiple of the epoch length (10 minutes by default; the live value is in Config). Unrelated to a Solana epoch. |
| Strike | The permissionless transaction that prices an epoch and processes its requests, once the epoch has closed and every ticket opened before the close has resolved. |
| Claim | The permissionless transaction that delivers a struck request: shares to a depositor, USDC to a withdrawer, the request’s rent to its owner. |
| Strike fund | SOL held by the vault’s Queue account that pays the striker. Refilled by requests while below its target. |
Randomness and settlement
| Term | Meaning |
|---|---|
| VRF | Verifiable random function: an oracle output that comes with a proof it was produced, not chosen. |
| Request after entropy | Fade’s rule that the randomness is requested only after the open, with a seed built on a block hash that did not exist at open. |
| s*, h* | The first slot present in SlotHashes after the open slot, and its hash. |
| T_SETTLE | 150 slots, about a minute: how long Fade waits for randomness. After it, an unfulfilled ticket can be expired. It is never a deadline to settle a fulfilled ticket. |
| Forfeiture | What expiry does: the vault keeps the vault credit. |
| Recording the entropy | Storing a ticket’s seed and its entropy slot on the ticket, by request_randomness or record_ticket_entropy, while SlotHashes still proves them. |
| Expired-ticket refund | The one exception to forfeiture: a ticket never requested, whose seed was never recorded and that SlotHashes no longer proves, gets its vault credit back to its beneficiary through refund_expired_ticket. The protocol and app shares are not returned. |
| Crank fee | 250 000 lamports prepaid at open: 50 000 to whoever requests the randomness, 200 000 to whoever settles or expires. |
| PayoutPending | The state of a ticket whose beneficiary could not receive at settlement. The payout waits in an escrow until claim_payout delivers it. |
Solana terms
| Term | Meaning |
|---|---|
| CPI | Cross-program invocation: one program calling another. |
| PDA | Program-derived address: an address derived from a program id and seeds that only that program can sign for. |
| Slot | Solana’s unit of time, a few hundred milliseconds. Fade specifies chain-timing bounds in slots, so they do not drift as block times fall. |
| SlotHashes | A sysvar holding the hashes of recent slots, about the last 512. |
| bps | Basis points. 100 bps = 1 %. |
| Legacy SPL token | The original token program. Fade accepts legacy SPL USDC only; Token-2022 is rejected. |