Skip to content

Commit

Permalink
Tighten permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Jul 20, 2023
1 parent 8099490 commit 5e4f39f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangoro/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down

0 comments on commit 5e4f39f

Please sign in to comment.