Quoter
#
Code#
AddressQuoter
is deployed at 0xa15F0D7377B2A0C0c10db057f641beD21028FC89
on the Polygon mainnet.
#
State-Changing Functions#
quoteExactInputReturns the amount out received for a given exact input swap without executing the swap
Params
path
The path of the swap, i.e. each token pairamountIn
The amount of the first token to swap
Return
amountOut
The amount of the last token that would be received
#
quoteExactInputSingleReturns the amount out received for a given exact input but for a swap of a single pool
Params
tokenIn
The token being swapped intokenOut
The token being swapped outamountIn
The desired input amountlimitSqrtPrice
The price limit of the pool that cannot be exceeded by the swap
Return
amountOut
The amount oftokenOut
that would be received
#
quoteExactOutputReturns the amount in required for a given exact output swap without executing the swap
Params
path
The path of the swap, i.e. each token pair. Path must be provided in reverse orderamountOut
The amount of the last token to receive
Return
amountIn
The amount of first token required to be paid
#
quoteExactOutputSingleReturns the amount in required to receive the given exact output amount but for a swap of a single pool
Params
tokenIn
The token being swapped intokenOut
The token being swapped outamountOut
The desired output amountlimitSqrtPrice
The price limit of the pool that cannot be exceeded by the swap
Return
amountIn
The amount required as the input for the swap in order to receiveamountOut