Setting up earnings
what exists, how to switch it on.
TIDE has one revenue mechanism: a percentage of each swap, taken by Jupiter when the trade executes and paid into a wallet you own. It is off in the build you receive.
01What exists in the code
| Tool | How it works | Set it in |
|---|---|---|
| Swap fee | A rate of up to 2 % (200 bps). Sent to Jupiter as platformFeeBps with your fee account; Jupiter settles it on-chain. TIDE never holds it. | Operator panel → Swap fee |
TIDE has no referral or cashback programme and keeps no payout ledger.
Not active in this version
| Setting | Why |
|---|---|
| EVM fee wallet | No EVM quote source is wired, so nothing is charged on Base. |
| Fee minimum (USD) | Jupiter takes only a percentage, so a minimum cannot be collected (below). |
These are tools, not results. What you earn depends on how many people use your app and how much they swap.
02Set the swap fee first
- Open the panelSettings → Operator panel → Swap fee — what you earn.
- Switch on Charge a swap fee
- Set Fee rate (bps)100 = 1.00 %. The code maximum is 200. Above 100 the panel warns you but allows it.
- Paste your Solana fee walletA normal Solana wallet address you control.
- Leave Fee minimum empty
- Save and applyThen run a small swap and check the confirm sheet: App fee shows the rate and amount above the button.
Until the switch, the rate and a valid wallet are all set, TIDE charges nothing. Not a reduced fee: nothing. The fee guard also blocks a wallet that is malformed or still looks like a placeholder, and a rate above its cap; the reason appears in the panel and under Settings → About.

03Where the fee lands
Jupiter takes the fee in the token the user receives and pays it into your wallet's associated token account for that token. TIDE derives that address from your wallet and the output token (lib/core/swap/jupiter_fee_parameters.dart).
A token account must exist before it can receive anything. Create your wallet's token accounts for the tokens users usually buy (for example USDC and wrapped SOL) by receiving a small amount of each, or with spl-token create-account <mint> --owner <your-wallet>. What Jupiter does with a fee account that does not exist was not tested for these docs (unverified); test one small swap per token before you rely on it.
04About the fee minimum
The Fee minimum (USD) field exists in the configuration format, but TIDE sends Jupiter only a percentage and Jupiter has no fixed-minimum mechanism. Leave it at zero; the panel tells you the same if you set one. If small trades should carry more, raise the rate.
05When the fee is not configured
The app works completely: users swap, follow wallets and read the feed. No fee is quoted or charged, and the confirm sheet says App fee: None. That is the shipped state, and a valid one to publish in.