-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: update staking doc #12
Conversation
@@ -1,16 +1,17 @@ | |||
# ADR ADR-061: Liquid Staking | |||
# ADR 061: Liquid Staking Module |
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.
Updated ADR version from SDK v0.45.16-ics-lsm.
PendingTokenizeShareAuthorizations stores a queue of addresses that have their tokenize share re-enablement/unlocking in progress. When an address is enqueued, it will sit for 1 unbonding period before the tokenize share lock is removed. | ||
|
||
```go reference | ||
https://github.com/cosmos/cosmos-sdk/blob/v0.45.16-ics-lsm/proto/cosmos/staking/v1beta1/staking.proto#L417-L421 |
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 link.
x/staking/README.md
Outdated
@@ -442,6 +474,8 @@ Redelegations affect the delegation, source and destination validators. | |||
* otherwise, if the `sourceValidator.Status` is not `Bonded`, and the `destinationValidator` | |||
is `Bonded`, transfer the newly delegated tokens from the `NotBondedPool` to the `BondedPool` `ModuleAccount` | |||
* record the token amount in an new entry in the relevant `Redelegation` | |||
* decrement the source validator's `LiquidShares` |
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.
Add the if condition, i.e., "if delegator is a liquid staking provider"
x/staking/README.md
Outdated
* if the delegation if is a validator bond, the `ValidatorBondShares` of the validator is decreased. | ||
* if the delegator is a liquid staking provider, the `TotalLiquidStakedTokens`` increased | ||
and the validator's `LiquidShares` is decreased. |
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.
Differentiate between the two validators.
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.
Good catch.
The `MsgTokenizeShares` message allows users to tokenize their delegated tokens. Share tokens have denom using the validator address and record id of the underlying delegation with the format `{validatorAddress}/{recordId}`. | ||
|
||
```protobuf reference | ||
https://github.com/cosmos/cosmos-sdk/blob/v0.45.16-ics-lsm/proto/cosmos/staking/v1beta1/tx.proto#L49-L50 |
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 link.
Description
Add missing docs in staking REAMDE, see comment.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
make lint
andmake test
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change