Class OpenOceanTrade

Abstract class for all instant trade providers' trades.

Hierarchy

Constructors

Properties

feeInfo: FeeInfo

Token to sell with input amount.

gasFeeInfo: null | GasFeeInfo

Gas fee info, including gas limit and gas price.

path: readonly Token<BlockchainName>[]
permit2ApproveConfig: Permit2ApproveConfig = ...

Filled if approve goes through permit2 contract

slippageTolerance: number

Token to get with output amount.

type: "OPEN_OCEAN" = ON_CHAIN_TRADE_TYPE.OPEN_OCEAN
useProxy: boolean

True, if trade must be swapped through on-chain proxy contract.

nativeAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'

Accessors

Methods

Generated using TypeDoc