Skip to main content
ClankerMevDescendingFees is a MEV module that charges snipers higher fees by starting the LP fee high and lowering it over a short period after launch.

How it works

Deployers specify a starting LP fee (up to 80%), an ending fee and a time to descend (up to 2 minutes). Clanker’s original recommended configuration starts effective fees at 80% and descends to 5% over 30 seconds, after which the pool’s normal fee behavior starts. The clanker.world form’s default is 80% to 5% over 15 seconds. For the reasoning behind these choices, see the Clanker v4 sniper activity writeup. The fee decays following the formula fee = endingFee + feeRange * (timeDecay / timeToDecay)². Swaps can start in the second after deployment. mev descending fees 1 The fee applied to a swap is the LP fee plus Clanker’s additional 20% fee. Clanker’s default starting market cap is 10 WETH (about $40k when written), so with the proposed starting fee of 80%, snipers start at an effective market cap of about $200k. mev descending fees 2

Initialization

Token deployers configure the fee parameters with this struct:
Set this config on the deployment struct as follows: