Charges a configurable per-pool creator tax on every swap in registered taxed markets. Exact-output swaps are taxed upfront in beforeSwap (grossed up to match the effective rate), while exact-input swaps are taxed in afterSwap on actual output produced. Tax proceeds are sent to the registered market address via IEcoTaxSink.
ALooks safeRegistered, verified, immutable
Pools
2
Dynamic-fee pools
0
Last new pool
51d
Code size
2,937 B
What it can do
Runs code on every swap
Its code executes inside each trade in pools that use it.
Can take tokens from swaps
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
Pools using this hook
2 totalPairCreatedFeePool ID