Swap / Quote / Pair address
Pair(=Gauge) address, getting a quote, executing a swap easily
1. Getting pair address for two tokens.
function pairFor(address tokenA, address tokenB, bool stable) public view returns (address pair);2. Quote swap
3. Execute Swap
Example code
Last updated