interface QuoteParams {
from: string
to: string
amount: string
receiverParty?: string
poolId?: string
fromAdmin?: string
toAdmin?: string
}
interface TrafficCostEstimate {
bytes: number
usd: string
cc: string
extraTrafficPricePerMb: string
amuletPrice: string
}
interface Quote {
inputToken: string
inputTokenAdmin: string
outputToken: string
outputTokenAdmin: string
inputAmount: string // gross amount the user sends
outputAmount: string // quoted from inputAmountAfterTrafficFee
rate: string
priceImpact: string
fee: number // swap fee rate, e.g. 0.01 for 1%
poolId: string
expiresIn: number // seconds
maxPriceImpact?: number // server-enforced cap (e.g. 15)
estimatedTrafficCost?: TrafficCostEstimate
trafficFeeInInput?: string // traffic recovery converted into the input token
inputAmountAfterTrafficFee?: string
}