-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sys 4061 treasury spend tracks #412
base: main
Are you sure you want to change the base?
Conversation
530fec6
to
2d76e35
Compare
@@ -39,7 +39,16 @@ const APP_WHITELISTED_CALLER: Curve = | |||
const SUP_WHITELISTED_CALLER: Curve = | |||
Curve::make_reciprocal(1, 28, percent(20), percent(5), percent(50)); | |||
|
|||
const TRACKS_DATA: [(u16, pallet_referenda::TrackInfo<Balance, BlockNumber>); 5] = [ | |||
const APP_SMALL_SPENDER: Curve = Curve::make_linear(17, 28, percent(50), percent(100)); |
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.
Are these similar to Polkadot?
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.
yes, exactly the same
@@ -72,4 +80,45 @@ pub mod pallet_custom_origins { | |||
() => {} | |||
} | |||
decl_unit_ensures!(GeneralAdmin, ReferendumCanceller, ReferendumKiller, WhitelistedCaller,); | |||
|
|||
macro_rules! decl_ensure { |
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.
👍
be65145
to
77577c6
Compare
a0cd896
to
1d4db66
Compare
ff17184
to
8401799
Compare
62c9a09
to
2da0e31
Compare
9505e3e
to
155a790
Compare
SmallSpender = 1000 * AVT, | ||
MediumSpender = 1000 * AVT, |
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.
Are these meant to be the same value?
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.
Good catch! Didn't notice it. Thanks
Proposed changes
TokenManager
pallet to check for the new originsType of change/Merge
🚨What type of change is this PR?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR.Further comments