Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Staking: store minimum active stake on-chain #12889

Merged
merged 4 commits into from
Dec 14, 2022

Conversation

gpestana
Copy link
Contributor

@gpestana gpestana commented Dec 9, 2022

Storing the minimum active stake onchain helps the UIs with minimal on-chain costs.

Closes #12746

Storing the `min-active-bond` onchain helps the UIs with minimal on-chain costs.

Closes #12746
@gpestana gpestana added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Dec 9, 2022
@gpestana gpestana requested a review from Ank4n December 9, 2022 11:42
@gpestana gpestana self-assigned this Dec 9, 2022
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you are doing is technically the MinimumActiveVoter, as per https://polkadot.network/blog/staking-update-february-2022/#staking-terminology, agree? if so, i think some names can reflect this a bit better.

Coding is the easy part.

  1. @rossbulat you can now use this easily in the dashboard.
  2. @DrW3RK might find this useful
  3. Please make sure this is mentioned in the next staking newsletter.
  4. ...

@kianenigma kianenigma added B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. and removed C1-low PR touches the given topic and has a low impact on builders. B0-silent Changes should not be mentioned in any release notes labels Dec 12, 2022
@gpestana
Copy link
Contributor Author

if so, i think some names can reflect this a bit better.

I agree, I'm not fully happy with the naming LastMinimumActiveBond either. Renaming it to MinimumActiveStake.

@gpestana
Copy link
Contributor Author

bot merge

@paritytech-processbot paritytech-processbot bot merged commit bb94ac7 into master Dec 14, 2022
@paritytech-processbot paritytech-processbot bot deleted the gpestana/12746-onchain-min-active-bond branch December 14, 2022 22:55
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* Staking: store last min-active-bond on-chain

Storing the `min-active-bond` onchain helps the UIs with minimal on-chain costs.

Closes paritytech#12746

* Avoid relying on  sorting to set the

* Addresses PR comments
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Staking: store last min-active-bond on-chain

Storing the `min-active-bond` onchain helps the UIs with minimal on-chain costs.

Closes paritytech#12746

* Avoid relying on  sorting to set the

* Addresses PR comments
@gpestana gpestana changed the title Staking: store last min-active-bond on-chain Staking: store minimum active stake on-chain Mar 30, 2023
@gpestana gpestana mentioned this pull request Apr 18, 2023
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

store min-active-bond onchain
3 participants