ClankerMevDescendingFees

ClankerMevDescendingFees is a Mev module designed to impose higher fees on snipers. Deployers are able to specify a starting LP fee (up to 80%), an ending fee, and a time to descend (up to 2 minutes). Clanker's initial recommended configuration will start effective fees at 80% and descend to 5% over 30 seconds, after which the pool's normal fee behavior will commence. For the motivation behind these choices, see our v4 sniper activity writeup.

The fees decay following the formula: fee = endingFee + feeRange * (timeDecay / timeToDecay)².

Swaps are able to start in the second after deployment.

The fee applied to the swap is the LP's fee plus Clanker's additional 20% fee. Clanker's default starting market cap is $40k USD, and with the proposed starting fee of 80%, we're setting the starting price for snipers at a market cap of $200k.

Initialization

Token deployers can configure the fee parameters with the following struct:

This config is set on the deployment struct as follows:

Last updated