Skip to content

Commit

Permalink
fix RPC calls
Browse files Browse the repository at this point in the history
  • Loading branch information
filippoweb3 committed Oct 31, 2023
1 parent 97914a8 commit d05122a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions docs/learn/learn-nomination-pools.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ learn how to claim rewards for another pool member.
At any point in time after joining the pool, a member can start the process of exiting by unbonding.
`unbond` will unbond part or all of the member's funds. After unbond has been called and the
unbonding duration has passed
{{ polkadot: (<RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}
{{ kusama: (<RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: (<RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}
{{ kusama: (<RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
eras which correspond to
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}
{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}
{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days on {{ polkadot: Polkadot), :polkadot }} {{ kusama: Kusama), :kusama }} a member may withdraw
their funds with `withdrawUnbonded`. Withdrawing effectively ends a member's relationship with their
pool, allowing them to join a different pool if desired. Check the "Withdraw unbonded funds" section
Expand Down
18 changes: 9 additions & 9 deletions docs/learn/learn-staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ payout for that validator for that era.
If nobody claims your staking rewards within 84 eras, then you will not be able to claim them and
they will be lost. Additionally, if the validator unbonds all their own stake, any pending payouts
will also be lost. Since unbonding takes
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}
{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}
{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days, nominators should check if they have pending payouts at least this often.

:::
Expand Down Expand Up @@ -481,7 +481,7 @@ via
[Polkadot-JS UI](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/staking/slashes).
The UI shows it per validator and then all the affected nominators along with the amounts. While
unapplied, a governance proposal can be made to reverse it during this period
({{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
({{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days). After the grace period, the slashes are applied.

The following levels of offense are
Expand Down Expand Up @@ -540,7 +540,7 @@ can now unbond them immediately.
:::

If your bonded balance did not back any validators in the last
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days, you are eligible to perform fast unstaking. The
[staking dashboard](https://staking.polkadot.network/#/overview) will automatically check if you
qualify. For more information, visit the
Expand Down Expand Up @@ -576,7 +576,7 @@ users to withdraw. For in-depth understanding, check the
### Cons of Staking

- Tokens will be locked for about
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days on {{ polkadot: Polkadot. :polkadot }}{{ kusama: Kusama. :kusama }} No rewards will be earned
during the unbonding period.
- Possible punishment in case of the active validator found to be misbehaving (see
Expand All @@ -587,22 +587,22 @@ users to withdraw. For in-depth understanding, check the
#### Unbonding Period Length

The
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}-day
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}-day
unbonding period serves a crucial role in mitigating ex post facto slashing, particularly in the
context of guarding against long-range attacks. When a client encounters a chain finalized by
[GRANDPA](./learn-consensus.md#finality-gadget-grandpa) that originates more than
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}
days in the past, it lacks the security of slashing protection.

Essentially, this period establishes a cadence for synchronizing with the chain or acquiring a
checkpoint within a timeframe that engenders trust. It's worth noting that while the choice of a
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}-day
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}-day
period is somewhat arbitrary, it unquestionably provides a higher level of security compared to a
shorter period.

Looking ahead, there may be a Request for Proposals (RFP) for implementing a mechanism for fast
unbonding through an unbonding queue. Importantly, this proposed change will not alter the
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28}/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={7}/> :kusama }}-day
{{ polkadot: <RPC network="polkadot" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :polkadot }}{{ kusama: <RPC network="kusama" path="consts.staking.bondingDuration" defaultValue={28} filter="erasToDays"/> :kusama }}-day
period's role in maintaining security; instead, it will ensure that an excessive number of stakers
cannot unbond too swiftly.

Expand Down

0 comments on commit d05122a

Please sign in to comment.