-
Notifications
You must be signed in to change notification settings - Fork 321
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
Update collator candidate self-bond in Moonriver #2139
Conversation
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.
Looks good so far. We will want to document the changes a bit more in this PR description so that others know exactly what's changing. I also think (hope) some tests will break because of this :)
runtime/moonriver/src/lib.rs
Outdated
@@ -674,7 +674,7 @@ impl pallet_parachain_staking::Config for Runtime { | |||
/// Minimum stake required to become a collator | |||
type MinCollatorStk = ConstU128<{ 1000 * currency::MOVR * currency::SUPPLY_FACTOR }>; |
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.
Wasn't this discussed to be changed too ?
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.
Yeah, I realised that I should change this constant too. That´s what I did a few minutes ago and now I'm finishing fixing some tests.
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.
Shouldn't this imply that MinCandidateStk <= MinCollatorStk
? That wasn't the case before this PR, but it seems to be implied:
/// Minimum stake required for any candidate to be in `SelectedCandidates` for the round
#[pallet::constant]
type MinCollatorStk: Get<BalanceOf<Self>>;
/// Minimum stake required for any account to be a collator candidate
#[pallet::constant]
type MinCandidateStk: Get<BalanceOf<Self>>;
CC @4meta5
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.
We should also be careful bumping MinCollatorStk
because it could prevent a lot (theoretically all) candidates from being selected for future rounds
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.
I agree. For now I put the same value in both constants (your bond must be 10000 MOVR to both be selected for the round and be a collator candidate). We should discuss this in more detail and then I change the values and fix tests again if necessary.
Yes! I will definitely add a better description. About tests, I'm finishing fixing some of the integration ones and others within the moonriver runtime that had broken. |
@Agusrodri Please verify the vote was approved and merge if that is the case |
…#2139) * change MinCandidateStk constant in moonriver runtime * fix moonriver runtime and integration tests * update chain_spec
What does it do?
According to this referenda https://moonriver.polkassembly.network/referenda/1, the change proposed in this PR is the one that refers to update the bond to 10,000 MOVR in order the collator to be considered eligible and become a collator candidate. The current bond is 500 MOVR.
MinCandidateStk
andMinCollatorStk
constants to the value of 10,000 MOVR.Notes
MinCandidateStk
refers to the minimum stake required to be reserved to be a candidate. Located in the moonriver runtimeConfig
(lib file).MinCollatorStk
refers to the minimum stake required to become a collator. Located in the moonriver runtimeConfig
(lib file).