StableSwapNGAggregator on Ethereum

Uniswap v4 Hook Contract 0xc20f37831fd58fc793596ab72974e2aa45c3e888 on Ethereum · Aggregator · Verified contract

Volume (24h)
$53
Value locked (TVL)
$630
All-time volume
$1.22K
Pools using this hook
1
Swaps (24h)
2 (2 traders)
Total swaps
15

What it does

Official Uniswap v4 aggregator hook (StableSwapNGAggregator) that routes swaps directly through an external Curve StableSwap-NG pool.

This read was written for the hook 0xc2b9…6888 on Ethereum and reused here: the two share a code shape, so constants such as fees, owners and addresses can differ.

How it works step by step

  • Routes Uniswap v4 swaps directly through an external Curve StableSwap-NG pool.
  • Fills the entire trade against the external pool before the swap runs and settles the exact output back through PoolManager.
  • Emits a HookSwap event recording the trader, input/output amounts, and swap fee for every trade.
  • Provides on-chain quote and TVL view functions so routers can price and compare depth.
Swap behaviour
Every swap is filled atomically against the external Curve StableSwap-NG pool during beforeSwap, returning the exact external trade output to the trader.
Liquidity behaviour
Direct Uniswap v4 LP positions are disabled; all liquidity stays in the underlying external pool.
Fee behaviour
Traders pay the underlying Curve StableSwap-NG pool fee plus any active Uniswap v4 protocol fee.
Owner & admin controls
No admin controls found. The contract is immutable and has no owner, pause switch, or upgrade mechanism.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeSwap, beforeSwapReturnDelta

beforeInitialize registers the linked external pool; beforeAddLiquidity blocks native v4 LP deposits; beforeSwap and beforeSwapReturnDelta execute the trade on the external pool and return the output.

Security & trust assessment

Risk level: low (verified source, high confidence).

Who controls it: Immutable contract with no owner, admin role, or pause function.

Risk to user funds: Does not hold user funds. Swaps settle atomically between the Uniswap v4 PoolManager and the external Curve StableSwap-NG pool in a single transaction.

Contract details

Verified source
Yes (StableSwapNGAggregator)
Bytecode size
13,893 bytes
Upgradeable proxy
No
Detected patterns
aggregator, moves-currency, return-delta

Pools using StableSwapNGAggregator