joshstevens19 / simple-uniswap-sdk

Uniswap SDK which handles the routes automatically for you, changes in trade quotes reactive subscriptions, exposure to formatted easy to understand information, bringing back the best trade quotes automatically, generating transactions for you and much more.
MIT License
188 stars 95 forks source link

How to get the pool reserves? #13

Open it-n-ova opened 3 years ago

it-n-ova commented 3 years ago

How i can get the pool reserves of tokens pair? Is there some like getReserves() method?

Thanks!

joshstevens19 commented 3 years ago

Hey thanks for this issue. We do not expose anything like this at the moment. It is on my todo list to return the pool sizes back within the trade context so you know how much is in the pool etc but its not on the top of my list. For now you can call the pair contract directly to get that information. Will keep this open and let you know when this feature is in.