QuoterV2
Provides quotes for swaps Allows getting the expected amount out or amount in for a given swap without executing the swap Developer note: These functions are not gas efficient and should not be called on chain. Instead, optimistically execute the swap and check the amounts in the callback.
Functions
constructor
PeripheryImmutableState
constructor(address,address,address)
public
algebraSwapCallback
algebraSwapCallback(int256,int256,bytes)
view external
Called to `msg.sender` after executing a swap via IAlgebraPool#swap.
quoteExactInputSingle
quoteExactInputSingle(struct IQuoterV2.QuoteExactInputSingleParams)
public
Returns:
quoteExactInput
quoteExactInput(bytes,uint256)
public
Returns:
quoteExactOutputSingle
quoteExactOutputSingle(struct IQuoterV2.QuoteExactOutputSingleParams)
public
Returns:
quoteExactOutput
quoteExactOutput(bytes,uint256)
public
Returns: