-
Notifications
You must be signed in to change notification settings - Fork 42
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
Don't use misleading balance fields from RPC #927
Conversation
MegaLinter status: ✅ SUCCESS
See errors details in artifact MegaLinter reports on CI Job page |
<div | ||
class="c10" | ||
> | ||
0.0000001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where this balance is defined ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oasis-wallet-web/src/app/components/Toolbar/Features/AccountSelector/__tests__/index.test.tsx
Line 29 in 17bc936
balance: { available: '100', validator: { escrow: '5000', escrow_debonding: '300' } }, |
100 / 10**9
8330d65
to
5e0de43
Compare
No idea why cypress CI runs forever on this PR 🤷 |
Pushing commit by commit 🤷 |
Update: something about grouping fields into |
Codecov Report
@@ Coverage Diff @@
## master #927 +/- ##
=======================================
Coverage 87.58% 87.59%
=======================================
Files 97 97
Lines 1619 1620 +1
Branches 353 353
=======================================
+ Hits 1418 1419 +1
Misses 201 201
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Stop using misleading
total
field from parseRpcBalance, remove it, and group validator-specific fields. In the future we should convert some of these RPC calls to API calls and use correcttotal
available + escrow (validator) + escrow_debonding (validator)
available