Skip to content
docs

checkZeroExGasLimit

checkZeroExGasLimit(gasLimit, chain, chainId): void

Defined in: protocol-swap2-0x/src/settler.ts:426

Hold a transaction’s gas limit, when it carries one, to the chain’s cap (zeroExMaxGasLimit): decimal, above zero, at most the cap. Throws ZeroExTransactionError (policy_refused) naming the chain and its cap.

unknown

ZeroExChain

number

void