Dynamic Fee Simulator

Base · Aerodrome Slipstream · read live from chain, no backend

Settings
How to read the results

The idea

A pool with a dynamic fee does not charge a fixed fee. The fee rises when the current price moves away from the average price of the last 10 minutes (the TWAP), which protects liquidity providers when prices move fast.

Fee = base fee + premium, never above the cap.
Premium = distance from the TWAP (in ticks) × K. One tick ≈ 0.01% of price.

1. Top card

  • Block number: every value on the page is read from this one block, so they are consistent.
  • Badge: Dynamic · Slipstream = dynamic fee, simulator available. Static fee = fixed fee, no simulator. Unknown fee module = a custom module the site cannot model; only the live fee is shown.
  • Green ✓ box: the site computes the fee itself and compares it with the contract's real fee at the same block. Green means they match exactly, so the simulator can be trusted. Red ✗ means they differ, with the likely reason shown.
  • Orange labels: special conditions, e.g. not enough history (fee stuck at base) or first swap per block pays initialFee.

2. Live state

  • Price in both directions, the current tick and the 10-minute TWAP tick.
  • Live tick gap: the difference between the two. This drives the premium: a small gap means a cheap fee.
  • Live pool.fee(): the fee that applies right now.

3. Fee config

  • Base fee: the minimum fee when prices are calm. Fee cap: the maximum.
  • K: how aggressively the fee rises. Larger K = faster increase.
  • Premium per 1% move: how much the fee rises for each 1% the price is away from the TWAP.
  • Cap reached at: the price moves (up / down) at which the fee hits the cap.

4. Simulator

  • Price deviation vs TWAP: imagine the price is X% above or below its average. Reset to live gap returns to the current state.
  • Swap size: how much you would swap and which token you put in. The fee cost is shown in tokens and in USD (USDC counts as $1).
  • Tiles: tick gap, base fee, premium (marked capped at the cap) and the total fee you would pay.
  • Example on the reference pool: +10% → 953 ticks → 0.80% + 0.953% = 1.753%, about $17.53 on a 1,000 USDC swap.

5. Charts

  • Fee vs price deviation (V shape): the further from the centre, the higher the fee, until the cap. Pink dot = your chosen deviation, green dot = the pool right now.
  • Fee after a price jump that holds: the price jumps at minute 0 and then stays. The fee jumps, then falls in a straight line as the 10-minute average catches up, and is back at base when the window ends. After a price spike, waiting a few minutes makes the fee cheaper.

6. Keep in mind

The fee is read before your swap, so your own price impact raises the fee for the next swap, not yours. Price impact (slippage) is not included in the cost shown.

In short: check the green ✓ first, look at the live tick gap (small = cheap), use the slider to estimate costs in volatile moments, and use the second chart to see how long until the fee is back to normal.