Skip to main content
Put your own fee on top of every swap, from 0 to 1%. It sits on top of the best price RAVN finds, and every quote already shows your user’s output after it. RAVN adds no fee of its own. RAVN shares that fee with you: you keep 60%, RAVN keeps 40%. RAVN’s share comes out of your fee, never on top of it, so it costs your users nothing extra. A few venues take their own cut first (below). You’re paid weekly in stablecoins (Getting paid).
Example. You set 50 bps. On a $10,000 swap your user pays a $50 fee. You receive $30 and RAVN $20.
With no key, or a key with no fee set, swaps carry no fee of yours. Gas and a venue’s own costs are part of the quoted price, not RAVN fees. (In RAVN’s own app, public swaps are free and private swaps carry RAVN’s 0.1% fee, except from Bitcoin.)

Set your fee

Any self-serve key can set its fee, from 0 to 100 bps (1%), with your secret key:
It applies to every call that sends your key, over REST, the widget, the MCP server or x402. Enterprise fees are set by RAVN as part of your agreement. To make sure each swap pays it, see Collecting your fee.

Revenue share

On almost every venue the split is 60% to you, 40% to RAVN. A few venues take their own cut of the fee first, and the rest is split in the same proportion: A few routes can’t carry a fee at all: Eco Routes from Solana or Bitcoin, Houdini Swap from Bitcoin, and Layerswap from Bitcoin into WBTC. Their quotes show fee.supported: false. In the widget, swaps from Bitcoin carry no fee either.
NEAR Intents takes its own fee: 20 bps, or 1 bp when both tokens are stablecoins or the same asset. A NEAR quote’s fee shows the total, so it never reads bps: 0.
  • No fee of yours: users pay NEAR’s 20 bps.
  • Public swaps with your fee: NEAR takes half of it, but at least 20 bps. From 40 bps (2 bps on those pairs) users pay exactly your fee. Below that they pay half your fee plus 20 bps: a 5 bps fee comes to 23.
  • Private swaps: users pay your fee plus NEAR’s 20 bps.

The fee on each quote

Every quote, and each of its alternatives, carries:
  • bps: the fee applied to this quote. 0 when your key has none or the route can’t carry it.
  • amount: the fee in token’s smallest unit. The quoted output is already net of it.
  • token: the token the fee is taken in. Usually the output token, but some routes take it in the input token or in USDC on the destination chain, so read it from each quote.
  • supported: false when this route can’t carry a fee.
Read these from each quote rather than assuming they match your key’s feeBps.

Getting paid

RAVN sells the fees it collects each day for their chain’s stablecoin: USDG on Robinhood Chain, USDT on BNB Chain and USDC elsewhere. Every Monday it pays your share of what they sold for, in that stablecoin on that chain: one transfer per chain, once your share there is worth $5. Fees not sold yet, and smaller shares, wait for a later week. Register a payout address per ecosystem with PATCH /v1/keys: payoutAddresses.evm, .solana, .thorchain and .bitcoin. The weekly payout goes to your EVM address, or your Solana address on Solana. Without one, that ecosystem’s balance accrues until you add it.
  • A new or changed payout address takes effect 24 hours after you set it. Until then payouts go to the previous address. This keeps a leaked key from redirecting your payouts.
  • Use an EVM address you control on every chain you earn on. A contract wallet, such as a Safe, is paid only on chains where it’s deployed; on the others its payout waits.
  • Only swaps that reached settled count, which is why you poll every swap to a final status. Sandbox swaps never count.
Fees a venue holds, rather than sending them to RAVN’s wallet, join the weekly payout once RAVN has claimed them. Some reach it as USDC on Base and are paid there, at their value when the swap settled. The fees in this table are the exception: they’re paid separately, on no set date yet.
Chainflip can bind your fee share to one EVM address for good. Your first fee-bearing Chainflip swap through the API that pays a deposit address, with an EVM payout address in effect, registers you as a Chainflip affiliate tied to that address. A contract wallet, such as a Safe, is registered only once it exists on Ethereum. Your share of later such swaps is paid to it as USDC on Ethereum every Sunday, once it reaches $5, and the address can never change. Set the right EVM payout address before routing Chainflip swaps. Every other Chainflip share is paid in the weekly payout, as USDC on Ethereum.

Fee by access path

Need custom terms or rate limits? DM @ravnexchange or reach out via ravn.exchange.