Skip to content
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

[NPoS] Unify staking functions across staking pallet and nomination pallet #407

Open
Ank4n opened this issue Jul 12, 2023 · 0 comments
Open
Labels
I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@Ank4n
Copy link
Contributor

Ank4n commented Jul 12, 2023

Nomination pool is a way to scale nominators and is only an implementation detail for a user who wants to stake their dots. Once we have a proper in-place fund holding mechanism with #454, we should look into unifying these two separate pallet functions in a common entry point.

This could be done at Nomination pool pallet since its already an abstraction over staking pallet.

Most of staking pallet functions could be disabled through extrinsics. Instead Nomination pool could expose the following calls:

  1. Stake via a existing pool
  2. Stake directly
    2A) Allow others to pool in your nominations.
    2B) Do not allow others.

Functionally, a direct nomination could be seen as just a pool where only the pool owner stakes and no one is allowed to join a pool (2B). 2A would be similar to creating a pool and being pool owner for that.

Unifying apis could help eventually to have xcm instructions for staking as well.

@juangirini juangirini transferred this issue from paritytech/substrate Aug 24, 2023
@the-right-joyce the-right-joyce added I10-unconfirmed Issue might be valid, but it's not yet known. and removed J2-unconfirmed labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
Status: 📕 Backlog
Development

No branches or pull requests

2 participants