-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix mismatch between UDC totalDeposit and effectiveBalance #2277
Conversation
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.
Looks good.
@@ -459,13 +459,16 @@ export function monitorUdcBalanceEpic( | |||
* etc), but merged on the top-level observable, therefore connectivity issues can cause | |||
* exceptions which would shutdown the SDK. Let's swallow the error here, since this will be | |||
* retried on next block, which should only be emitted after connectivity is reestablished */ | |||
defer( |
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.
Regarding line 455: We should open an issue for the contracts to add events.
e735489
to
e49c217
Compare
Codecov Report
@@ Coverage Diff @@
## master #2277 +/- ##
===========================================
+ Coverage 58.12% 94.80% +36.67%
===========================================
Files 61 156 +95
Lines 4461 6271 +1810
Branches 939 1163 +224
===========================================
+ Hits 2593 5945 +3352
+ Misses 1854 261 -1593
- Partials 14 65 +51
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thank you for submitting this pull request :)
Fixes #2275
Short description
udcDeposit
actions containedtotalDeposit
as solemeta
property, but it actually was theeffectiveBalance
value, which raised issues when calculating the new totalDeposit when making a deposit after a withdraw was performed.This PR fixes it by using actual
totalDeposit
as meta value (for linkingudcDeposit
requests & success/failure responses), and addedbalance
to payload, to be used as UDC balance, instead of the deposit.Integration tests were extended to assert behavior when depositing after withdraw, which works as regression test for this action.
Definition of Done
Steps to manually test the change (dApp)