Lifi Estimate
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
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
Fees included in the transfer
Link copied to clipboard
The amount that should be transferred including all decimals
Link copied to clipboard
The amount that should be transferred in USD equivalent
Link copied to clipboard
Gas costs included in the transfer
Link copied to clipboard
The minimal outcome of the transfer including all decimals
Link copied to clipboard
The estimated resulting amount of the toToken in USD equivalent