-
Notifications
You must be signed in to change notification settings - Fork 115
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
{Add,Reclaim}EscrowEvent: include share amounts #3944
Conversation
71f385f
to
41834da
Compare
.changelog/3939.bugfix.md
Outdated
@@ -0,0 +1,13 @@ | |||
Update emitted events when disbursing rewards |
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.
This may break integrations for custody providers which are parsing events for rewards. Should reclassify as breaking.
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.
Fixed. But do we want this change right? An alternative is also keeping it as it is and just having it documented
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.
Yeah I think it makes tracking rewards more clear. We should just give a heads up when we release this.
41834da
to
7c50e7c
Compare
Codecov Report
@@ Coverage Diff @@
## master #3944 +/- ##
==========================================
+ Coverage 67.04% 67.13% +0.08%
==========================================
Files 406 406
Lines 41300 41351 +51
==========================================
+ Hits 27689 27759 +70
+ Misses 9667 9651 -16
+ Partials 3944 3941 -3
Continue to review full report at Codecov.
|
@@ -617,6 +617,7 @@ type AddEscrowEvent struct { | |||
Owner Address `json:"owner"` | |||
Escrow Address `json:"escrow"` | |||
Amount quantity.Quantity `json:"amount"` | |||
NewShares quantity.Quantity `json:"new_shares"` |
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.
Fix field alignment.
7c50e7c
to
2ee7d39
Compare
Fixes: #3939
Also fixed
Escrow
events emitted when disbursing rewards. I think explicitly emitting (transfer and self-escrow) events makes more sense?