Skip to content
docs

curveGasEstimateOfCall

curveGasEstimateOfCall(chainId, args, pools): bigint | undefined

Defined in: protocol-swap2-curve/src/gas.ts:81

The same figure for router arguments read back from a call (a remote quote, a mined transaction): each step’s kind from its swap_type and, for a pool, the allowlist’s entry for it (pools, by lower-case address — poolIndex). Undefined when a pool is not in pools, a swap type is not one the module builds, or a kind has no measured cost.

number

RouterArgs

ReadonlyMap<string, CurvePool>

bigint | undefined