EulerSwap
EthereumRegisteredA Uniswap v4 hook implementing a custom AMM backed by Euler Finance vault positions. In beforeSwap, it computes swap amounts using a custom bonding curve (CurveLib), deposits input tokens into and withdraws output tokens from Euler vaults (FundsLib), and returns a BeforeSwapDelta to handle all swap accounting outside of standard pool math. Native concentrated liquidity, initialization by non-factory callers, and donations are intentionally blocked.
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.