-
Notifications
You must be signed in to change notification settings - Fork 1.6k
OpenGov improvements for Kusama #6372
Changes from all commits
6f18e65
5980e4f
18429a6
b294ffe
0ebf85c
a5b47d1
58d1360
e30ede4
e3b6d65
49c0169
3197402
b4e12b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,17 +63,17 @@ const SUP_BIG_SPENDER: Curve = Curve::make_reciprocal(20, 28, percent(1), percen | |
const APP_WHITELISTED_CALLER: Curve = | ||
Curve::make_reciprocal(16, 28 * 24, percent(96), percent(50), percent(100)); | ||
const SUP_WHITELISTED_CALLER: Curve = | ||
Curve::make_reciprocal(1, 28, percent(20), percent(10), percent(50)); | ||
Curve::make_reciprocal(1, 28, percent(20), percent(5), percent(50)); | ||
|
||
const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15] = [ | ||
( | ||
0, | ||
pallet_referenda::TrackInfo { | ||
name: "root", | ||
max_deciding: 1, | ||
decision_deposit: 1_000 * GRAND, | ||
prepare_period: 3 * HOURS, | ||
decision_period: 28 * DAYS, | ||
decision_deposit: 100 * GRAND, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 3 * HOURS, | ||
min_approval: APP_ROOT, | ||
|
@@ -84,10 +84,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
1, | ||
pallet_referenda::TrackInfo { | ||
name: "whitelisted_caller", | ||
max_deciding: 10, | ||
decision_deposit: 10_000 * GRAND, | ||
prepare_period: 3 * HOURS, | ||
decision_period: 28 * DAYS, | ||
max_deciding: 30, | ||
decision_deposit: 100 * GRAND, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thank you for this. But doesn't this setup now mean that one can maliciously jam this track with just 10*100 GRAND, which is only 3.33k KSM. Or is there a "decision gate" requiring the whitlelisting to be done to enter deciding? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 10 * MINUTES, | ||
min_enactment_period: 30 * MINUTES, | ||
min_approval: APP_WHITELISTED_CALLER, | ||
|
@@ -100,8 +100,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "staking_admin", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wonder why min_enactment_period of the staking admin track would be less than of the root? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Root is hugely dangerous, so we're being a bit more conservative on the enactment time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I expressed it wrong, the root min_enactment_period less than staking_admin now. |
||
min_approval: APP_STAKING_ADMIN, | ||
|
@@ -114,8 +114,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "treasurer", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
min_approval: APP_TREASURER, | ||
|
@@ -128,8 +128,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "lease_admin", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
min_approval: APP_LEASE_ADMIN, | ||
|
@@ -142,8 +142,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "fellowship_admin", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
min_approval: APP_FELLOWSHIP_ADMIN, | ||
|
@@ -156,8 +156,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "general_admin", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
min_approval: APP_GENERAL_ADMIN, | ||
|
@@ -170,8 +170,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "auction_admin", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 2 * DAYS, | ||
min_approval: APP_AUCTION_ADMIN, | ||
|
@@ -184,8 +184,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "referendum_canceller", | ||
max_deciding: 1_000, | ||
decision_deposit: 50 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 7 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 10 * MINUTES, | ||
min_approval: APP_REFERENDUM_CANCELLER, | ||
|
@@ -198,8 +198,8 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "referendum_killer", | ||
max_deciding: 1_000, | ||
decision_deposit: 50 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 10 * MINUTES, | ||
min_approval: APP_REFERENDUM_KILLER, | ||
|
@@ -212,10 +212,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "small_tipper", | ||
max_deciding: 200, | ||
decision_deposit: 5 * QUID, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 7 * DAYS, | ||
confirm_period: 3 * HOURS, | ||
min_enactment_period: 28 * DAYS, | ||
min_enactment_period: 24 * HOURS, | ||
min_approval: APP_SMALL_TIPPER, | ||
min_support: SUP_SMALL_TIPPER, | ||
}, | ||
|
@@ -226,10 +226,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "big_tipper", | ||
max_deciding: 100, | ||
decision_deposit: 50 * QUID, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 7 * DAYS, | ||
confirm_period: 6 * HOURS, | ||
min_enactment_period: 28 * DAYS, | ||
min_enactment_period: 24 * HOURS, | ||
min_approval: APP_BIG_TIPPER, | ||
min_support: SUP_BIG_TIPPER, | ||
}, | ||
|
@@ -240,10 +240,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "small_spender", | ||
max_deciding: 50, | ||
decision_deposit: 500 * QUID, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 12 * HOURS, | ||
min_enactment_period: 28 * DAYS, | ||
min_enactment_period: 24 * HOURS, | ||
min_approval: APP_SMALL_SPENDER, | ||
min_support: SUP_SMALL_SPENDER, | ||
}, | ||
|
@@ -254,10 +254,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "medium_spender", | ||
max_deciding: 20, | ||
decision_deposit: 1_500 * QUID, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 24 * HOURS, | ||
min_enactment_period: 28 * DAYS, | ||
min_enactment_period: 24 * HOURS, | ||
min_approval: APP_MEDIUM_SPENDER, | ||
min_support: SUP_MEDIUM_SPENDER, | ||
}, | ||
|
@@ -268,10 +268,10 @@ const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 15 | |
name: "big_spender", | ||
max_deciding: 10, | ||
decision_deposit: 5 * GRAND, | ||
prepare_period: 4, | ||
decision_period: 28 * DAYS, | ||
prepare_period: 4 * HOURS, | ||
decision_period: 14 * DAYS, | ||
confirm_period: 48 * HOURS, | ||
min_enactment_period: 28 * DAYS, | ||
min_enactment_period: 24 * HOURS, | ||
min_approval: APP_BIG_SPENDER, | ||
min_support: SUP_BIG_SPENDER, | ||
}, | ||
|
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.
Wouldn't ReservedAmount from the Auctions pallet capture everything in crowdloans and self-funded bids?
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.
Self-funded bids can still be used in governance.
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.
Really? How?