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

Include staked balance in getBalances and investment value #196

Open
Hornebom opened this issue Jul 20, 2023 · 0 comments
Open

Include staked balance in getBalances and investment value #196

Hornebom opened this issue Jul 20, 2023 · 0 comments

Comments

@Hornebom
Copy link

Update
https://github.com/centrifuge/apps/blob/5e95c82ec3d9955d819b0d256a76b01098eab672/centrifuge-js/src/modules/pools.ts#L1905

Check response of
https://polkadot.js.org/apps/?rpc=wss://fullnode.development.cntrfg.com#/chainstate > ormlTokens > accounts()
orml tokens can be free and/or reserved
currently only free is used (reserved are the staked tokens)

Double check if state.investmentValue and state.trancheBalanceWithPending are correct calculated in regard to staking
https://github.com/centrifuge/apps/blob/5e95c82ec3d9955d819b0d256a76b01098eab672/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx#L218
https://github.com/centrifuge/apps/blob/5e95c82ec3d9955d819b0d256a76b01098eab672/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx#L221

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

1 participant