LifiEstimate

data class LifiEstimate(val tool: String, val fromAmount: String, val toAmount: String, val toAmountMin: String, val approvalAddress: String, val executionDuration: Double, val fromAmountUSD: String? = null, val toAmountUSD: String? = null, val feeCosts: List<LifiFeeCost>? = null, val gasCosts: List<LifiGasCost>? = null, val data: LifiEstimateData? = null)

Estimate for a step

Constructors

Link copied to clipboard
constructor(tool: String, fromAmount: String, toAmount: String, toAmountMin: String, approvalAddress: String, executionDuration: Double, fromAmountUSD: String? = null, toAmountUSD: String? = null, feeCosts: List<LifiFeeCost>? = null, gasCosts: List<LifiGasCost>? = null, data: LifiEstimateData? = null)

Properties

Link copied to clipboard

The contract address for the approval

Link copied to clipboard
val data: LifiEstimateData? = null

Arbitrary data that depends on the used tool

Link copied to clipboard

The time needed to complete the following step (in seconds)

Link copied to clipboard
val feeCosts: List<LifiFeeCost>? = null

Fees included in the transfer

Link copied to clipboard

The amount that should be transferred including all decimals

Link copied to clipboard
val fromAmountUSD: String? = null

The amount that should be transferred in USD equivalent

Link copied to clipboard
val gasCosts: List<LifiGasCost>? = null

Gas costs included in the transfer

Link copied to clipboard

The estimated resulting amount of the toToken including all decimals

Link copied to clipboard

The minimal outcome of the transfer including all decimals

Link copied to clipboard
val toAmountUSD: String? = null

The estimated resulting amount of the toToken in USD equivalent

Link copied to clipboard

The tool that is being used for this step