Interface OnChainCalculationOptions

Stores options for calculating trade.

Hierarchy

Properties

deadlineMinutes?: number

Transaction deadline, passed in minutes.

disableMultihops?: boolean

If true, then only direct token pairs can be used in calculation.

fromAddress?: string

User wallet address, from which transaction will be sent.

gasCalculation?: "disabled" | "calculate" | "rubicOptimisation"

Disabled or enables gas fee calculation. rubicOptimisation options means, that gas fee is converted into usd and subtracted from output token amount, also converted in usd.

providerAddress?: string
slippageTolerance?: number

Takes value from 0 to 1.

zrxAffiliateAddress?: string

Affiliate address for zrx provider.

Generated using TypeDoc