Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CelerRubicCrossChainTrade Abstract

Contains common for Celer and Rubic trades methods and fields.

Hierarchy

Index

Properties

cryptoFeeToken: PriceTokenAmount

Native token in source blockchain, taken as fee.

feeInPercents: number
feeInfo: FeeInfo

Swap fee information.

Token to sell with input amount.

fromTrade: CrossChainContractTrade

Wrapped instant trade in source blockchain.

gasData: GasData

Gas fee info in source blockchain.

itType: ItType

Token to get with output amount.

toTokenAmountMin: BigNumber

Minimum amount of output token user will get.

toTrade: CrossChainContractTrade

Wrapped instant trade in target blockchain.

transitFeeToken: PriceTokenAmount

Transit token in source blockchain, taken as fee.

type: "RUBIC" | "CELER" | "SYMBIOSIS" | "LIFI" | "DEBRIDGE" | "VIA" | "RANGO"

Type of calculated cross chain trade.

Accessors

  • get estimatedGas(): null | BigNumber
  • get priceImpactData(): { priceImpactFrom: null | number; priceImpactTo: null | number }

Methods

  • encodeApprove(tokenAddress: string, spenderAddress: string, value: BigNumber | "infinity", options?: TransactionOptions): Promise<TransactionConfig>
  • getContractParams(options: { fromAddress?: string; receiverAddress?: string }): Promise<ContractParams>
  • getTradeAmountRatio(fromUsd: BigNumber): BigNumber
  • needApprove(): Promise<boolean>
  • checkReceiverAddress(receiverAddress: undefined | string, toBlockchain?: BlockchainName): void

Generated using TypeDoc