Skip to content

Commit

Permalink
Merge pull request #315 from liberland/BLOCKCHAIN-156/congress-spendo…
Browse files Browse the repository at this point in the history
…rigin-treasury

BLOCKCHAIN-156 - add Congress to pallet-treasury's SpendOrigin
  • Loading branch information
DorianSternVukotic authored Sep 13, 2023
2 parents 24cfa70 + 96ce1d2 commit ef6a0cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,14 @@ impl pallet_treasury::Config for Runtime {
type SpendFunds = Bounties;
type WeightInfo = pallet_treasury::weights::SubstrateWeight<Runtime>;
type MaxApprovals = MaxApprovals;
type SpendOrigin = EnsureWithSuccess<EnsureRoot<AccountId>, AccountId, MaxBalance>;
type SpendOrigin = EnsureWithSuccess<
EitherOfDiverse<
EnsureRoot<AccountId>,
pallet_collective::EnsureProportionAtLeast<AccountId, CouncilCollective, 3, 5>
>,
AccountId,
MaxBalance
>;
}

parameter_types! {
Expand Down

0 comments on commit ef6a0cc

Please sign in to comment.