Quoter
Code#
Address#
Quoter is deployed at 0xa15F0D7377B2A0C0c10db057f641beD21028FC89 on the Polygon mainnet.
State-Changing Functions#
quoteExactInput#
Returns the amount out received for a given exact input swap without executing the swap
Params
pathThe path of the swap, i.e. each token pairamountInThe amount of the first token to swap
Return
amountOutThe amount of the last token that would be received
quoteExactInputSingle#
Returns the amount out received for a given exact input but for a swap of a single pool
Params
tokenInThe token being swapped intokenOutThe token being swapped outamountInThe desired input amountlimitSqrtPriceThe price limit of the pool that cannot be exceeded by the swap
Return
amountOutThe amount oftokenOutthat would be received
quoteExactOutput#
Returns the amount in required for a given exact output swap without executing the swap
Params
pathThe path of the swap, i.e. each token pair. Path must be provided in reverse orderamountOutThe amount of the last token to receive
Return
amountInThe amount of first token required to be paid
quoteExactOutputSingle#
Returns the amount in required to receive the given exact output amount but for a swap of a single pool
Params
tokenInThe token being swapped intokenOutThe token being swapped outamountOutThe desired output amountlimitSqrtPriceThe price limit of the pool that cannot be exceeded by the swap
Return
amountInThe amount required as the input for the swap in order to receiveamountOut