Dynamic Swap Fee Mechanism
Last updated
Last updated
Below is an explanation of how dynamic swap fee is determined.
The pool's price before swap is equal to the price before the first swap of the block. Thus, every swap uses this reference price for the pool's price before swap.
Below are a few examples of dynamic swap fee for ETH/USDC pool.
2000 USDC
2200 USDC
2080 USDC
$120 (6%)
2000 USDC
1999 USDC
1999.02 USDC
$0.02 (0.0002%)
2000 USDC
1999 USDC
1999.6 USDC
$0.6 (0.03%)