Fee escrow and payouts
The fee escrow is the contract that holds every fee GAMA collects and records whom each amount belongs to. Nothing is sent out at trade time: fees are credited first, then paid out automatically or claimed. This page explains how that works and what keeps the balances safe.
How fees are credited
When a trade pays a fee, the pair token goes into the escrow and is credited to its owners in the same transaction. Each amount is a credit: a balance that belongs to one account, in one token, from one source. A creator with fees in ETH and in another pair token has two balances.
| Credit | Who it belongs to |
|---|---|
| Creator share of the trading fee, and creator tax | The creator recipient at the moment the fee was charged |
| GAMA's share | Each protocol split destination, in its share |
| Holder fee | The reward token, which shares it among holders; see Holder rewards |
| Payout charges | Automatic payouts, to cover their cost |
Credits are backed one for one by tokens the escrow holds. A change of creator recipient or of the protocol split only affects fees charged afterwards; amounts already credited keep their owners.
Automatic payouts
Credits are paid out automatically. Every account is checked about every five minutes, and those that qualify are paid. The current settings for ETH are:
- Whole balance. A payment sends the account's whole balance in that token to the account itself, and to no one else.
- Charge. It deducts a payout charge of 0.000001 ETH or 1% of the payment, whichever is lower.
- Minimum. It pays only when at least 0.0005 ETH is left after the charge.
- Timing. An account is paid at most once every five minutes.
- Failures. A payment that fails leaves the whole balance credited and charges nothing, and the other accounts in the same run are still paid. Each payment gets a fixed amount of gas; a wallet whose code needs more cannot receive automatic payments, but can always claim.
Whatever the settings, the charge can never be more than 1% of a payment. Holder rewards are paid out the same way, with the same settings. See Payouts and claims.
Some balances are never paid out automatically:
- GAMA's buyback and burn share. It is only used to buy GAMA and burn it, or forwarded to the treasury. See Buyback and burn.
- The holder fee credited to a reward token. Holders receive it through the token's own payouts and claims.
- Credits of protocol contracts such as pools and routers.
Claiming yourself
Every account can claim its own balance at any time, with no charge and no minimum. You pay only the network gas. When claiming ETH, you can choose to receive it as WETH instead, for example from a wallet contract that cannot receive ETH. Only the owner of a balance can claim it. Claims keep working even when automatic payouts stop.
What keeps balances safe
- The escrow has no function that lets anyone withdraw or redirect a balance that belongs to someone else.
- An automatic payment always goes to the account that earned the balance.
- A payment or claim that cannot be delivered is cancelled as a whole, and the balance stays where it was.
- The fee escrow can never be a launch's creator recipient.
