Dynamic Fee Simulator
Base · Aerodrome Slipstream · read live from chain, no backend
Live state
Fee config
Simulator
Fee vs price deviation
Fee after a price jump that holds
The fee is read before the swap, so your own price impact raises the fee for the next swap, not yours. Price impact is not included in the cost above.
How to read the results Cara membaca hasil
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.
Ide dasarnya
Pool dengan fee dinamis tidak memungut fee tetap. Fee-nya naik kalau harga saat ini menjauh dari harga rata-rata 10 menit terakhir (TWAP). Tujuannya melindungi penyedia likuiditas ketika harga bergerak cepat.
Fee = fee dasar + premi, tidak pernah melebihi batas atas (cap).
Premi = jarak dari TWAP (dalam tick) × K. Satu tick ≈ 0,01% harga.
1. Kartu atas
- Nomor blok: semua angka di halaman dibaca dari satu blok yang sama, jadi konsisten.
- Badge: Dynamic · Slipstream = fee dinamis, simulator tersedia. Static fee = fee tetap, tanpa simulator. Unknown fee module = modul khusus yang belum dikenali; hanya fee saat ini yang ditampilkan.
- Kotak hijau ✓: situs menghitung fee sendiri lalu membandingkannya dengan fee asli dari kontrak di blok yang sama. Hijau berarti sama persis, jadi simulasinya bisa dipercaya. Merah ✗ berarti berbeda, dan kemungkinan penyebabnya ditampilkan.
- Label oranye: kondisi khusus, misalnya not enough history (fee tertahan di fee dasar) atau first swap per block pays initialFee (swap pertama di setiap blok membayar fee khusus).
2. Live state (kondisi saat ini)
- Harga dari dua arah, tick saat ini, dan tick TWAP 10 menit.
- Live tick gap: selisih keduanya. Inilah yang menentukan premi: selisih kecil berarti fee murah.
- Live pool.fee(): fee yang benar-benar berlaku sekarang.
3. Fee config (aturan fee)
- Base fee: fee minimum saat harga tenang. Fee cap: fee maksimum.
- K: seberapa agresif fee naik. Makin besar K, makin cepat naiknya.
- Premium per 1% move: kenaikan fee untuk setiap 1% harga menjauh dari TWAP.
- Cap reached at: pergerakan harga (naik / turun) yang membuat fee mentok di cap.
4. Simulator
- Price deviation vs TWAP: bayangkan harga sedang X% di atas atau di bawah rata-ratanya. Reset to live gap mengembalikan ke kondisi sekarang.
- Swap size: jumlah yang mau ditukar dan token yang dimasukkan. Biaya fee ditampilkan dalam token dan dolar (USDC dihitung $1).
- Kotak angka: tick gap, fee dasar, premi (ditandai capped kalau mentok) dan total fee yang akan kamu bayar.
- Contoh di pool referensi: +10% → 953 tick → 0,80% + 0,953% = 1,753%, sekitar $17,53 untuk swap 1.000 USDC.
5. Grafik
- Fee vs price deviation (bentuk V): makin jauh dari tengah, makin mahal fee-nya, sampai mentok di cap. Titik pink = deviasi pilihanmu, titik hijau = kondisi pool sekarang.
- Fee after a price jump that holds: harga melompat di menit 0 lalu diam. Fee langsung naik, lalu turun lurus karena rata-rata 10 menit "mengejar" harga baru, dan kembali ke fee dasar saat jendela waktunya habis. Setelah lonjakan harga, menunggu beberapa menit bisa membuat fee lebih murah.
6. Perlu diingat
Fee dibaca sebelum swap kamu dieksekusi. Dampak harga dari swap kamu sendiri menaikkan fee untuk swap berikutnya, bukan swap kamu. Price impact (slippage) tidak termasuk dalam biaya yang ditampilkan.
Ringkasnya: lihat kotak hijau ✓ dulu, lihat live tick gap (kecil = murah), pakai slider untuk memperkirakan biaya saat harga bergejolak, dan lihat grafik kedua untuk tahu berapa lama sampai fee kembali normal.