A 1% buy/sell tax hook for a NYX/ETH Uniswap v4 pool that always collects tax in the ETH/WETH side. In beforeSwap it skims ETH on exact-input buys; in afterSwap it skims ETH on exact-input sells and exact-output buys. Collected fees are sent via poolManager.take() directly to a configurable treasury address.
ALooks safeRegistered, verified, immutable
Pools
1
Dynamic-fee pools
0
Last new pool
5mo
Code size
5,257 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.