Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Make querying a pool show reserve amounts #430

Open
4 tasks
ValarDragon opened this issue Jul 13, 2021 · 0 comments
Open
4 tasks

cli: Make querying a pool show reserve amounts #430

ValarDragon opened this issue Jul 13, 2021 · 0 comments
Milestone

Comments

@ValarDragon
Copy link

Summary of Bug

Currently when you query a pool gaiad q liquidity pool 1, you get a result of the form:

- id: "1"
  pool_coin_denom: poolDFB8434D5A80B4EAFA94B6878BD5B85265AC6C5D37204AB899B1C3C52543DA7E
  reserve_account_address: cosmos1m7uyxn26sz6w4755k6rch4dc2fj6cmzajkszvn
  reserve_coin_denoms:
  - ibc/14F9BC3E44B8A9C1BE1FB08980FAB87034C9905EF17CF2F5008FC085218811CC
  - uatom
  type_id: 1

If you want to find the reserve assets / implied spot price of a pool, the only way per my understanding is to then do gaiad q bank balances {copied reserve_account_address}.

I suggest making querying already return this when you query an individual pool. (gaiad q liquidity pool {pool_ID})

Version

Whats used on the hub.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@dongsam dongsam added this to the v2 milestone Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants