Referrals and Fees#
What Seesaw charges you to trade, who gets that money, and how referrals work
— in plain English. If you're a developer building against the fee system,
the technical reference is at
docs/sdk/referral-and-creator-fees.
What the fee actually costs you#
Seesaw charges a fee only on trades that fill immediately against the order book (called a taker fee). If your order rests on the book and someone else matches against it, you pay nothing.
The fee depends on the price of the fill. It falls in a straight line as the price rises: cheap, unlikely outcomes pay the most, and trades at very confident prices pay almost nothing.
The formula:
fee_bps(price) = taker_fee_coefficient_bps × (10000 − price) / 10000
price is the fill price in your own outcome's price space. With the
shipped default
taker_fee_coefficient_bps = 400, the fee in basis points at a given fill
price is:
| Fill price | What it means | Fee (bps) | Fee (%) |
|---|---|---|---|
| 1000 bps (10%) | Long shot | 360 bps | 3.60% |
| 3000 bps (30%) | Unlikely | 280 bps | 2.80% |
| 5000 bps (50%) | Pure coin flip | 200 bps | 2.00% |
| 6000 bps (60%) | Slight lean | 160 bps | 1.60% |
| 7000 bps (70%) | Reasonably confident | 120 bps | 1.20% |
| 8000 bps (80%) | Confident | 80 bps | 0.80% |
| 9000 bps (90%) | High confidence | 40 bps | 0.40% |
| 9500 bps (95%) | Very high confidence | 20 bps | 0.20% |
| 9900 bps (99%) | Near certainty | 4 bps | 0.04% |
There is no flat cap: a trade at even odds pays 2%, and cheaper fills pay more, up to 4% of notional as the price approaches zero.
Fee amounts round up to the smallest settlement-token unit. Recipient allocations round down, and the protocol receives the exact fee remainder. Vault dust at market teardown is a separate accounting flow.
The app shows the exact fee in the order preview before you sign.
Where the fee goes#
The shipped configuration allocates each taker fee across five legs:
<!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET -->| Slice | Who gets it | Why |
|---|---|---|
| 45% | Protocol treasury | Funds development, infrastructure, security work |
| 5% | Market creator | The person who set up the market |
| 5% | Your referrer | Your eligible referrer; otherwise the protocol treasury |
| 5% | Approved builder | The builder you approved; otherwise the protocol treasury |
| 40% | Maker rebate | The resting maker, when the fill meets the resting-age gate |
On a $2.00 fee (for example, $100 of notional filled at a 50% share price under the shipped coefficient), with an eligible referrer and maker and no builder (the unpaid 5% builder allocation stays with protocol):
- $1.00 → protocol treasury
- $0.10 → market creator
- $0.10 → your referrer
- $0.80 → the maker's per-market free-funds balance
You pay the same total either way. Having an eligible referrer redirects the
referral slice from the protocol to the person who introduced you. An ineligible
maker receives no rebate, and that unused allocation remains with the protocol.
Maker rebates are credited to TraderLedger.quote_free and withdrawn with
WithdrawFunds; they are not sent directly to the maker's wallet on each fill.
What's a referrer?#
A referrer is someone who invited you to Seesaw. With the shipped split, they earn 5% of every taker fee you pay during the 365-day earning window. The first-touch binding is permanent: after earning expires, you cannot pick a replacement.
A referral link stores a candidate address. Connecting a wallet does not create an on-chain binding.
The referrer must first initialize their earnings account against a configured treasury shard.
The referred trader must then review SetReferrer. The trader must sign the reviewed transaction.
Examine the confirmed on-chain referrer before treating the binding as saved.
After you set it, nobody can change it on your behalf and you cannot replace it later. It earns for 365 days. You also can't set yourself as your own referrer — the protocol blocks that.
If you don't have an eligible referrer, the referral slice flows to the protocol treasury in addition to its own allocation.
How to refer other people#
Keep SOL available for setup and claim transactions. Use the intended network and wallet throughout setup.
- Open the Referrals page with the referrer's wallet connected.
- Examine the earnings-account setup.
- Sign
InitializeCurrencyReferrerEarnings. - Make sure that the earnings account exists and has a configured treasury shard.
- Copy the referral link.
- Share the referral link.
- Ask the referred trader to examine the candidate with their own wallet connected.
- The referred trader signs
SetReferrer. - Examine the confirmed on-chain binding before the trader submits eligible trades.
If the treasury shard is missing, an operator must provision it first. Opening the page does not initialize an earnings account. A connection or stored cookie does not establish attribution. An existing on-chain binding takes precedence over a candidate. Self-referral is rejected. An expired binding cannot be replaced.
During the earning window, eligible fills add market-local pending fees. Permissionless rollup moves those amounts into the bound treasury shard and earnings account.
Where your referral earnings show up#
In the Referrals tab:
- Earnings to date — total accumulated since you started referring.
- Claimable now — the rolled-up amount you can withdraw right now.
- People you've referred — wallets that picked you.
To receive payment:
- Examine the pending and rolled-up amounts separately.
- If funds remain pending, arrange
RollupCurrencyReferralFeesbefore the terminal cleanup deadline. - Examine the updated earnings account and bound shard.
- Tap Claim with the referrer's wallet connected.
- Give approval for the transaction.
- Examine the confirmed transfer to your settlement-token account and the remaining claimable amount.
A pending amount is not yet available to ClaimCurrencyReferrerEarnings.
If the app does not expose rollup, use the supported keeper or SDK procedure.
If a transaction result is unknown, keep its signature and follow transaction recovery.
A displayed zero can reflect stale data. Examine chain state before concluding that a payment failed.
Illustrative referral earnings#
Suppose 10 eligible referrals each trade $1,000 of notional per day. If their aggregate fees are $50–$200 per day, the shipped referral share gives:
<!-- src: program/src/logic/fee.rs:187 FeeSplit5::TARGET.referral_bps -->| Volume across your referrals | Assumed aggregate fee | Your 5% slice |
|---|---|---|
| $10,000 / day | $50–$200 / day | $2.50–$10 / day |
| $300,000 / 30 days | $1,500–$6,000 / 30 days | $75–$300 / 30 days |
This is arithmetic under stated assumptions, not a forecast. Actual earnings depend on filled notional, fill prices, current fee settings, eligibility, and rounding.
Fee parameter bounds#
Fee settings are admin-tunable but bounded on-chain:
| Parameter | Current default | Hard maximum |
|---|---|---|
taker_fee_coefficient_bps | 400 bps | 10,000 bps |
| Rate limit on changes | — | 1 change per hour |
Changes are prospective only — they affect future fills, including fills against already-resting orders, without recalculating past trades. The app shows the current fee in the order preview before you sign.
Common questions#
Do I lose my referrer if I switch wallets? The referrer is tied to the wallet that set it. A new wallet starts fresh.
Can a referrer see my individual trades? They see aggregate earnings from you, not individual positions. On-chain history is public (your wallet address and transaction record), but that's true for any Solana wallet.
Can the market creator and referrer be the same person? Yes — you collect both slices independently if you created the market and also referred the traders in it.
When do fees land for referrers to claim? Each fill records the referral amount immediately in that market. A permissionless keeper then rolls it into your bound treasury shard and earnings account; it becomes claimable after that rollup. Rollup does not need to wait for market resolution.
Pending referral fees have a terminal cleanup deadline. Seven days after a market resolves, permissionless position closure may reclassify any amount that was never rolled up to market-creator fees. Referrers and keepers should roll up pending amounts before that grace period ends.
Why is the fee higher at low prices? The fee curve design rationale is explained in Treasury and Fee Split.
Next steps#
- Creating Your Own Market — how creator fees accrue and how to claim them
- Placing Orders — order book details and the fee preview in the order form
- Risks — fee parameter changes and other things to know
- How funds flow through the protocol
Technical reference#
Referral treasury shards are pre-provisioned with InitializeCurrencyReferralTreasury
before InitializeCurrencyReferrerEarnings binds a referrer to one. The earnings
instruction validates the existing canonical shard and does not create it lazily.
| Mechanism | Instruction |
|---|---|
| Set referrer (permanent first-touch; earns 365 days) | SetReferrer (0x1E) |
| Create referrer earnings account | InitializeCurrencyReferrerEarnings (0x4F) |
| Roll pending referral fees | RollupCurrencyReferralFees (0x51) |
| Provision referral treasury shard | InitializeCurrencyReferralTreasury (0x4E) |
| Claim creator fees | ClaimCreatorFees (0x1F) |
| Claim referrer earnings | ClaimCurrencyReferrerEarnings (0x50) |
| Update fee coefficient (admin, rate-limited) | UpdateFeeConfig (0x1C) |