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

[Runtime] Re-configure parachain-staking pallet #751

Open
sea212 opened this issue Aug 11, 2022 · 0 comments
Open

[Runtime] Re-configure parachain-staking pallet #751

sea212 opened this issue Aug 11, 2022 · 0 comments
Labels
l:M Solving the issue takes days p:low Low priority, resolution of this issue can wait t:maintenance The issue describes necessary maintenance

Comments

@sea212
Copy link
Member

sea212 commented Aug 11, 2022

The values were already discussed in #595 , we decided to postpone applying them though because the implications are not known yet (which migrations are required, etc.). This is the extracted config (apply on mainnet):

// Staking
/// Rounds before the candidate bond increase/decrease can be executed
pub const CandidateBondLessDelay: u32 = 24;
/// Default fixed percent a collator takes off the top of due rewards
pub const DefaultCollatorCommission: Perbill = Perbill::from_percent(20);
/// Blocks per round
pub const DefaultBlocksPerRound: u32 = 2 * BLOCKS_PER_HOUR as u32;
/// Default percent of inflation set aside for parachain bond every round
pub const DefaultParachainBondReservePercent: Percent = Percent::from_percent(30);
/// Rounds before the delegator bond increase/decrease can be executed
pub const DelegationBondLessDelay: u32 = 24;
/// Rounds before the collator leaving the candidates request can be executed
pub const LeaveCandidatesDelay: u32 = 24;
/// Rounds before the delegator exit can be executed
pub const LeaveDelegatorsDelay: u32 = 24;
/// Maximum bottom delegations per candidate
pub const MaxBottomDelegationsPerCandidate: u32 = 50;
/// Maximum delegations per delegator
pub const MaxDelegationsPerDelegator: u32 = 100;
/// Maximum top delegations per candidate
pub const MaxTopDelegationsPerCandidate: u32 = 300;
/// Minimum round length is 20 minutes
pub const MinBlocksPerRound: u32 = BLOCKS_PER_HOUR as u32;
/// Minimum stake required to become a collator
pub const MinCollatorStk: u128 = 1000 * BASE;
/// Minimum stake required to be reserved to be a delegator
pub const MinDelegatorStk: u128 = 100 * BASE;
/// Minimum collators selected per round, default at genesis and minimum forever after
pub const MinSelectedCandidates: u32 = 8;
/// Rounds before the delegator revocation can be executed
pub const RevokeDelegationDelay: u32 = 24;
/// Rounds before the reward is paid
pub const RewardPaymentDelay: u32 = 2;
@sea212 sea212 added p:medium Medium priority, this issue can wait but should be done fairly soon t:maintenance The issue describes necessary maintenance labels Aug 11, 2022
@sea212 sea212 added this to the v0.3.6 milestone Aug 11, 2022
@sea212 sea212 modified the milestones: v0.3.6, v0.3.8 Sep 27, 2022
@sea212 sea212 added the l:M Solving the issue takes days label Nov 8, 2022
@sea212 sea212 added p:low Low priority, resolution of this issue can wait and removed p:medium Medium priority, this issue can wait but should be done fairly soon labels Nov 22, 2022
@sea212 sea212 modified the milestones: v0.3.8, v0.3.9 Nov 22, 2022
sea212 added a commit to sea212/zeitgeist that referenced this issue Jan 30, 2023
@sea212 sea212 modified the milestones: v0.3.9, v0.4.0 Mar 28, 2023
@sea212 sea212 modified the milestones: v0.3.10, v0.3.11 Jul 20, 2023
@sea212 sea212 removed this from the v0.3.11 milestone Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l:M Solving the issue takes days p:low Low priority, resolution of this issue can wait t:maintenance The issue describes necessary maintenance
Projects
None yet
Development

No branches or pull requests

1 participant