-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove Shares Concept from Unbond/Redelegate UX #3857
Conversation
9f04a13
to
8b57e9d
Compare
8b57e9d
to
3716954
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3857 +/- ##
===========================================
- Coverage 60.95% 60.91% -0.05%
===========================================
Files 192 192
Lines 14360 14385 +25
===========================================
+ Hits 8753 8762 +9
- Misses 5033 5041 +8
- Partials 574 582 +8 |
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.
Changes look straighforward. As long as tests pass, ACK from me
@@ -229,7 +229,17 @@ func handleMsgDelegate(ctx sdk.Context, msg types.MsgDelegate, k keeper.Keeper) | |||
} | |||
|
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.
Below are the notable changes @cwgoes @rigelrozanski
The issue I was concerned about today in the meeting does not apply (OK) |
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.
only looked at the core logic, needs some revisions
Updated @rigelrozanski @cwgoes |
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.
approved pending one comment is addressed
I think this needs to be updated for #3828. |
Codecov Report
@@ Coverage Diff @@
## develop #3857 +/- ##
===========================================
- Coverage 60.45% 60.35% -0.11%
===========================================
Files 196 196
Lines 14485 14526 +41
===========================================
+ Hits 8757 8767 +10
- Misses 5147 5174 +27
- Partials 581 585 +4 |
Updated pending entry. Left a followup response to @rigelrozanski. |
per slack discussions:
|
Failing simulation, looks like. |
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.
The changes make sense to me, however it would be good to have a test for this explicit edge case for using the cap of delegation shares. Also, simulations failing which must be rectified
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.
update to MsgDelegate
struct required
@rigelrozanski Simulation passes now (not sure why it failed) wrt to unit tests, I'll be happy to add them but I'm not sure as to the best way to get fractional shares in the unit tests? Otherwise, there exist unit tests that already cover the over undelegation/redelegation cases. |
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.
LGTM
@cwgoes mind taking a look at this prior to merging? |
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.
Mostly LGTM; a few possible minor adjustments.
ACK pending comments addressed.
@@ -76,7 +76,7 @@ When a validator wishes to withdraw their transaction fees it must send | |||
triggered each with any change in individual delegations, such as an unbond, | |||
redelegation, or delegation of additional tokens to a specific validator. This | |||
transaction withdraws the validators commission rewards, as well as any rewards | |||
earning on their self-delegation. | |||
earning on their self-delegation. |
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.
... we can just delete this whole directory, we're not going to implement the Lamborghini model, unless there's a reason to keep it around. Certainly we don't need to update it, since it doesn't reflect any implementation.
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.
I think that's why it's in "attic". Should we just wipe this @rigelrozanski ?
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.
I think it's a good idea to wipe... @ValarDragon wanted it in here for reference a while ago... either way I've added it to a new repo https://github.com/rigelrozanski/lamborghini-distribution
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.
Sounds like the best of both worlds to me! We should delete it here then.
(oops - ACK pending comments addressed and conflict resolved) |
Updated comments @cwgoes and @rigelrozanski. |
msg*
types from the LCD tests (they're already defined in staking)sdk.Coin
amount instead of shares.I also have updates to update the queriers to return amounts instead of shares but I think that should be a separate PR.
closes: #3516
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: