Skip to content

Commit

Permalink
refactor: 💡 update MaxTurnout and whitelisted_caller track (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
yooml authored Jul 12, 2024
1 parent 55ecaec commit 01e0a8e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion runtime/bifrost-kusama/src/governance/referenda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl pallet_conviction_voting::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type Polls = Referenda;
type MaxTurnout = frame_support::traits::TotalIssuanceOf<Balances, Self::AccountId>;
type MaxTurnout = frame_support::traits::ActiveIssuanceOf<Balances, Self::AccountId>;
// Maximum number of concurrent votes an account may have
type MaxVotes = ConstU32<512>;
// Minimum period of vote locking
Expand Down
8 changes: 4 additions & 4 deletions runtime/bifrost-kusama/src/governance/tracks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8]
name: "whitelisted_caller",
max_deciding: 100,
decision_deposit: 5_000 * BNCS,
prepare_period: 15 * MINUTES,
prepare_period: 5 * MINUTES,
decision_period: 14 * DAYS,
confirm_period: 10 * MINUTES,
min_enactment_period: 10 * MINUTES,
confirm_period: 5 * MINUTES,
min_enactment_period: 5 * MINUTES,
min_approval: Curve::make_reciprocal(
16,
28 * 24,
percent(96),
percent(50),
percent(100),
),
min_support: Curve::make_reciprocal(1, 28, percent(8), percent(2), percent(50)),
min_support: Curve::make_reciprocal(1, 1792, percent(3), percent(2), percent(50)),
},
),
(
Expand Down
2 changes: 1 addition & 1 deletion runtime/bifrost-polkadot/src/governance/referenda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl pallet_conviction_voting::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type Polls = Referenda;
type MaxTurnout = frame_support::traits::TotalIssuanceOf<Balances, Self::AccountId>;
type MaxTurnout = frame_support::traits::ActiveIssuanceOf<Balances, Self::AccountId>;
// Maximum number of concurrent votes an account may have
type MaxVotes = ConstU32<512>;
// Minimum period of vote locking
Expand Down
8 changes: 4 additions & 4 deletions runtime/bifrost-polkadot/src/governance/tracks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 8]
name: "whitelisted_caller",
max_deciding: 100,
decision_deposit: 5_000 * BNCS,
prepare_period: 15 * MINUTES,
prepare_period: 5 * MINUTES,
decision_period: 14 * DAYS,
confirm_period: 10 * MINUTES,
min_enactment_period: 10 * MINUTES,
confirm_period: 5 * MINUTES,
min_enactment_period: 5 * MINUTES,
min_approval: Curve::make_reciprocal(
16,
28 * 24,
percent(96),
percent(50),
percent(100),
),
min_support: Curve::make_reciprocal(1, 28, percent(8), percent(2), percent(50)),
min_support: Curve::make_reciprocal(1, 1792, percent(3), percent(2), percent(50)),
},
),
(
Expand Down

0 comments on commit 01e0a8e

Please sign in to comment.