EulerSwap
UnichainRegisteredEulerSwap implements a custom AMM curve backed by Euler Finance lending vaults. On each swap, beforeSwap takes the input token from PoolManager, deposits it into the corresponding Euler vault, withdraws the output token from the other vault, and settles accounting via BeforeSwapDelta — bypassing standard Uniswap v4 concentrated liquidity entirely. beforeAddLiquidity and beforeDonate intentionally revert to prevent idle LP positions and irrecoverable donations.
What it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
It runs when someone donates tokens to the pool’s LPs.