Try a query like this
Here amount0 and amount1 represent the currencies in the pair.
So if it’s USDT-WETH pair, then amount0 might be USDT and amount1 is WETH and vice versa.
Try a query like this
Here amount0 and amount1 represent the currencies in the pair.
So if it’s USDT-WETH pair, then amount0 might be USDT and amount1 is WETH and vice versa.