Fees and the token

Fees and the token

One protocol fee, taken in the settlement instruction, and the token it buys back and burns.

The fee

Every settled trade pays 5 bps of its quote leg, the amount in the pair’s quote token. The taker pays it, inside the same settle instruction that moves both legs:

Taker sideThe taker paysThe taker receives
Buythe quote amount plus the fee, in the quote tokenthe base amount
Sellthe base amountthe quote amount minus the fee, in the quote token

The fee is the quote amount times 5, divided by 10,000 and rounded down to the token’s smallest unit. It goes to the fee recipient’s token account for the quote mint. The maker’s vault moves exactly the amounts in the signed quote: on a buy the taker pays the fee from its wallet on top of the quote amount; on a sell the fee is split off the quote amount leaving the maker’s vault, and the taker receives the rest.

Fees from real settlements on the project’s local validator, at its stand-in prices, read from each transaction’s own token balances:

TradeQuote legFee
Buy 3 SOL at 150.15450.45 USDC0.225225 USDC
Buy 2 SOL at 150.15300.30 USDC0.15015 USDC
Buy 1 SOL at 150.12150.12 USDC0.07506 USDC

Before signing, the desk shows the review of the trade: what the taker pays, what it receives, and the fee as its own line.

Where it goes

The fee is paid to the fee recipient named in the program’s configuration, a wallet the desk holds. The current address is in the feeRecipient field of GET /v1/desk. The fee buys back and burns ASIDE.

The token

The ASIDE mint is published on this page at launch. Fees collected before then stay in the fee recipient’s accounts until the mint exists.

Ticker: ASIDE.