Skip to main content

Fee calculators

A fee calculator answers one question, on every swap, before the trade executes: what does this one cost? A coin can run up to four.

How several agree on one number

Calculators form a chain in the order the creator picked. The first proposes a fee, each following one sees that answer and can raise it, and the last stage's number is what the trader pays.

The order is therefore part of the configuration: it decides which block has the final word. The common stack is two, a dynamic fee setting the baseline from volatility and a sniper tax overriding it upward during the opening window.

The flat fee underneath

Every pool also carries a flat fee, used when no calculator answers. It matters in two cases:

  • The creator chose a flat fee at creation, so there is no calculator at all and this value is the fee.
  • A calculator fails. The stage is skipped rather than reverted, and the pool uses the flat fee for that swap.

A pool always has an answer, which is why no extension configuration can make a coin untradable.

Bounds

Maximum fee10%, enforced by the pool contract
Exceptiona declared sniper tax window, up to 50%, for at most one hour
Protocol's incompressible cut0.03% of every fee, taken from inside it

The family

BlockWhat it does
Dynamic feeprices swaps from the coin's own volatility; the default
Sniper taxa high opening fee decaying to the normal one
Discounts and rebatesa lower fee for chosen wallets, periods or holdings — soon

Each occupies one of the four slots. Choosing none is valid and produces a flat-fee market.