AssetToAssetSwapHookForERC4626
UnichainRegisteredPeriphery hook for pools using ERC4626 vault wrapper tokens. In beforeSwap, converts input ERC20 assets to vault wrapper shares, performs a nested swap in the corresponding vault wrapper pool via poolManager.swap(), then redeems output shares back to underlying assets. Handles both exact-input and exact-output swaps. Vault wrappers can be supplied via hookData or configured as per-pool defaults by the owner.
ALooks safeRegistered, verified, immutable
Pools
1
Dynamic-fee pools
0
Last new pool
13mo
Code size
10,543 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.
Gates who can add liquidity
It checks every deposit before it goes in.
Pools using this hook
1 totalPairCreatedFeePool ID