hyperweb-io / hyperweb-io/cosmology-cli

mobx store

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50
Forks
21
PR merge metrics
No merged PRs in 30d

Description

This issue is more for design and listing out queries that are needed.

- all basic like ability to get users balances
- ability to get users number of tokens inside of a pool

e.g. currently do get number of tokens in a pool

1. get pools
2. get prices
3. `convertPoolsToDisplayValues`
4. get the users locked coins
5. call function `getUserPools({pools, lockedPools})`

instead, if we used a mobx store, we could wrap this all into a single call and it gets cached and we get simplicity and speed

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.