Skip to content

Commit 79d7757

Browse files
authored
Update rewards amounts for mainnet (#2210)
# Goal The goal of this PR is to put in the final constant values for Provider Boosting for mainnet Closes #2201
1 parent 4d7a5d7 commit 79d7757

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

e2e/capacity/list_unclaimed_rewards.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ describe('Capacity: list_unclaimed_rewards', function () {
5858
// Boosted entire eras, should have rewards
5959
assert.equal(result[1].stakedAmount.toHuman(), '100,000,000');
6060
assert.equal(result[1].eligibleAmount.toHuman(), '100,000,000');
61-
assert.equal(result[1].earnedAmount.toHuman(), '380,000');
61+
assert.equal(result[1].earnedAmount.toHuman(), '575,000');
6262

6363
assert.equal(result[2].stakedAmount.toHuman(), '100,000,000');
6464
assert.equal(result[2].eligibleAmount.toHuman(), '100,000,000');
65-
assert.equal(result[2].earnedAmount.toHuman(), '380,000');
65+
assert.equal(result[2].earnedAmount.toHuman(), '575,000');
6666

6767
assert.equal(result[3].stakedAmount.toHuman(), '100,000,000');
6868
assert.equal(result[3].eligibleAmount.toHuman(), '100,000,000');
69-
assert.equal(result[3].earnedAmount.toHuman(), '380,000');
69+
assert.equal(result[3].earnedAmount.toHuman(), '575,000');
7070
});
7171
});

runtime/common/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ parameter_types! {
398398
// 1:50 Capacity:Token, must be declared this way instead of using `from_rational` because of
399399
// ```error[E0015]: cannot call non-const fn `Perbill::from_rational::<u32>` in constant functions```
400400
pub const CapacityPerToken: Perbill = Perbill::from_percent(2);
401-
pub const CapacityRewardCap: Permill = Permill::from_parts(3_800); // 0.38% or 0.0038 per RewardEra
401+
pub const CapacityRewardCap: Permill = Permill::from_parts(5_750); // 0.575% or 0.00575 per RewardEra
402402
}
403403
pub type CapacityRewardEraLength =
404404
ConstU32<{ prod_or_testnet_or_local!(14 * DAYS, 1 * HOURS, 50) }>;

runtime/frequency/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
404404
spec_name: create_runtime_str!("frequency"),
405405
impl_name: create_runtime_str!("frequency"),
406406
authoring_version: 1,
407-
spec_version: 130,
407+
spec_version: 131,
408408
impl_version: 0,
409409
apis: RUNTIME_API_VERSIONS,
410410
transaction_version: 1,
@@ -418,7 +418,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
418418
spec_name: create_runtime_str!("frequency-testnet"),
419419
impl_name: create_runtime_str!("frequency"),
420420
authoring_version: 1,
421-
spec_version: 130,
421+
spec_version: 131,
422422
impl_version: 0,
423423
apis: RUNTIME_API_VERSIONS,
424424
transaction_version: 1,
@@ -586,7 +586,7 @@ impl pallet_capacity::Config for Runtime {
586586
type RewardsProvider = Capacity;
587587
type MaxRetargetsPerRewardEra = ConstU32<2>;
588588
// Value determined by desired inflation rate limits for chosen economic model
589-
type RewardPoolPerEra = ConstU128<{ currency::CENTS.saturating_mul(172_602_740u128) }>;
589+
type RewardPoolPerEra = ConstU128<{ currency::CENTS.saturating_mul(153_424_650u128) }>;
590590
type RewardPercentCap = CapacityRewardCap;
591591
// Must evenly divide ProviderBoostHistoryLimit
592592
type RewardPoolChunkLength = RewardPoolChunkLength;

0 commit comments

Comments
 (0)