Javascript – Uniswap use SDK to get historical rates (and current rate)
I am trying to use the Uniswap SDK to get historical rates between two coins on a pool. I believe the rate is simply just xy = k, where k is a constant. If someone buys n coins of x,…