Fees
Fees
One protocol fee, one maker spread, one all-in number on the card before you sign.
Protocol fee
The HALFKEY program takes 0.5% of the Solana side of every swap at settlement, inside the claim instruction, into the program's fee vault. It applies the same way to every product: swaps, OTC tranches, pay links, cashout vaults and ZEC swaps.
- Taken once, at the claim. A swap that refunds pays no protocol fee.
- Bound in the maker's consent. The fee the maker priced in is part of the terms it signs, so it can't change between your quote and your lock.
- Capped in the code. The program refuses any fee above 1%. Until the config admin is retired, the admin can change the fee within that cap; after that it is frozen.
Maker spread
Each maker quotes its own price: the market rate minus its spread. The spread pays the maker for holding XMR and SOL inventory, for the price moving while your swap is open, and for the option you hold to cancel. Spreads are public in the maker registry, and the swap card asks every online maker and shows the best price.
The all-in number
The swap card shows one number before you sign: all-in cost = maker spread + protocol fee, for example 1.1% = 0.6% + 0.5%. Selling a coin other than SOL adds the Jupiter route's price impact, shown on its own line.
SOL -> XMR xmr_out = sol_in * (1 - fee) * rate * (1 - spread)
XMR -> SOL sol_out = xmr_in / rate * (1 - spread) * (1 - fee)
rate = the maker's mid price, XMR per SOL
fee = 0.5% (0.25% with a $HALFKEY-bonded maker)$HALFKEY maker bond
A maker that bonds at least the launch threshold of $HALFKEY in the program pays 0.25% instead of 0.5%. The lower fee goes straight into its quotes, so the same spread gives you a better all-in price.
- The discount stops the moment the maker asks to unstake; the tokens come back after the unbond delay (7 days).
- A maker bond is a stake: it also earns the stakers' half of the fees.
Where the fees go
Half of every fee to $HALFKEY stakers in SOL. Half to an auction that burns $HALFKEY.
- The split is exact. Stakers get the fee vault's new balance halved and rounded down; the burn gets the rest, including the odd unit. The two parts always add up (checked with Kani).
- Nobody staked: 100% goes to the burn.
- No operator. The split runs inside every stake, unstake and claim, and anyone can call it on its own.
- One-way. Once the burn auction is switched on, fees can leave the vault only through this split; the program refuses the old sweep to a wallet from then on.
- SOL sent straight to the stake pool is credited to stakers at the next split. It can never dip into rewards stakers are already owed.
Staker rewards
Rewards accrue per token staked and are claimed in SOL any time. Every stake, unstake and claim runs the split first, so fees that reached the vault before a stake go to the stakes that existed then: a new stake earns from the next fee on. Leaving takes the unbond delay, during which the tokens earn nothing. Rounding is always down, so stakers can never claim more than was credited.
The burn auction
The burn half sits in the fee vault and is sold by a falling-price auction for $HALFKEY that is burned. There is no oracle, no DEX route and no destination to choose.
- Anyone can take a lot. You burn $HALFKEY from your own account and receive SOL from the burn balance, up to a maximum lot, never the vault's rent.
- The price halves every hour and never drops below a floor, so a lot always clears once the price is worth someone's while.
- After a take the price restarts higher: at price × (1 + lot ÷ max lot), so twice the price for a full lot and barely higher for a small one. A replayed take is priced out.
- The supply drops by exactly the burn. The program checks it in the same instruction.
Every take is a public transaction; the burns are listed on Proof.
Network fees
| Chain | Who pays | What |
|---|---|---|
| Solana | You, for your own transactions | A signature fee and a priority fee, a small fraction of a cent each. A coin sale through Jupiter shows its route's own priority fee. |
| Solana rent | Whoever locks | About 0.004 SOL for the swap record. The locker can take it back by closing the record after settlement. |
| Solana (claims) | Covered for you | Your refund, and in XMR → SOL your claim, are submitted for you, so a fresh address needs no SOL. |
| Monero | The maker, for its lock | You pay the Monero fee only when you sweep, out of the XMR you collect; the collect screen shows it. |
| ZEC | Each side, for its own spend | About 10,000 zats per claim or refund at today's rate. |
Worked example
Selling 10 SOL for XMR at an example mid rate of 1 SOL = 0.17 XMR, with a maker quoting a 0.6% spread.
| Standard maker | Maker with a $HALFKEY bond | |
|---|---|---|
| You lock | 10 SOL | 10 SOL |
| Protocol fee | 0.05 SOL (0.5%) | 0.025 SOL (0.25%) |
| To stakers / to the burn | 0.025 / 0.025 SOL | 0.0125 / 0.0125 SOL |
| Maker receives at the claim | 9.95 SOL | 9.975 SOL |
| XMR at mid for 10 SOL | 1.700000 XMR | 1.700000 XMR |
| You get | 1.681351 XMR | 1.685576 XMR |
| All-in cost shown | 1.1% | 0.85% |
The other way, selling 1 XMR for SOL with the same maker: the maker locks 5.847059 SOL (1 ÷ 0.17 less the 0.6% spread). At your claim 0.029235 SOL goes to the fee vault and you receive 5.817824 SOL, the same 1.1% all-in.
Live limits
Read from the program's config on chain when this page loads.