Skip to content
docs

ZeroExExpectation

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

What the user asked for — the only source of truth for the checks.

buyToken: string

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

The token bought, same convention.


optional chain?: ZeroExChain

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

The chain’s entry in the table in force: its pins bound the target (a token sale: previousLiveNonce up to newestLiveNonce plus the margin; a native-coin sale: exactly newestLiveNonce or previousLiveNonce). Default: the default table’s entry for chainId.


chainId: number

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

EVM chain id of the swap.


minBuyAmount: bigint

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

The least the recipient must receive — the quote’s minimum, already held to the requested slippage by the caller.


optional nowMs?: number

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

Clock for the Permit2 deadline (tests).


recipient: string

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

Who must receive the output (the user’s own address unless they named another).


sellAmount: bigint

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

Exactly the input, base units.


sellToken: string

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

The token sold: an ERC-20 address, or the zero address / 0xEeee… for the native coin.


settlers: readonly string[]

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

Settlers resolved from the registry for that chain (SettlerResolver.resolve).