CurvePool
Defined in: protocol-swap2-curve/src/pools/types.ts:5
One curated Curve pool. Addresses are EIP-55 checksummed; native ETH-like coin = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.
Properties
Section titled “Properties”address
Section titled “address”address:
`0x${string}`
Defined in: protocol-swap2-curve/src/pools/types.ts:6
basePool?
Section titled “basePool?”
optionalbasePool?:`0x${string}`
Defined in: protocol-swap2-curve/src/pools/types.ts:16
For metapools: the base pool (base_pool() read on-chain) whose coins follow the meta coins in underlying.
codeHash
Section titled “codeHash”codeHash:
`0x${string}`
Defined in: protocol-swap2-curve/src/pools/types.ts:22
keccak256 of eth_getCode(address) at build time.
coins: readonly
`0x${string}`[]
Defined in: protocol-swap2-curve/src/pools/types.ts:9
coins(i) read on-chain, index order.
createdAt?
Section titled “createdAt?”
optionalcreatedAt?:number
Defined in: protocol-swap2-curve/src/pools/types.ts:26
Unix seconds of pool creation (block timestamp) when known.
decimals
Section titled “decimals”decimals: readonly
number[]
Defined in: protocol-swap2-curve/src/pools/types.ts:11
decimals per coin, same order as coins.
name:
string
Defined in: protocol-swap2-curve/src/pools/types.ts:7
poolType
Section titled “poolType”poolType:
1|2|3|10|20|30
Defined in: protocol-swap2-curve/src/pools/types.ts:18
Router pool_type: 1 stable, 2 twocrypto, 3 tricrypto, 10 stable-ng, 20 twocrypto-ng, 30 tricrypto-ng.
swapTypes
Section titled “swapTypes”swapTypes: readonly (
1|2)[]
Defined in: protocol-swap2-curve/src/pools/types.ts:20
Router swap_type values this pool allows: 1 exchange; 2 exchange_underlying (only if underlying is set).
tvlUsd
Section titled “tvlUsd”tvlUsd:
number
Defined in: protocol-swap2-curve/src/pools/types.ts:24
USD TVL at build time (integer dollars).
underlying?
Section titled “underlying?”
optionalunderlying?: readonly`0x${string}`[]
Defined in: protocol-swap2-curve/src/pools/types.ts:13
For metapools / lending pools: underlying coins in exchange_underlying index order (swap_type 2).
underlyingDecimals?
Section titled “underlyingDecimals?”
optionalunderlyingDecimals?: readonlynumber[]
Defined in: protocol-swap2-curve/src/pools/types.ts:14