Skip to content

Commit d5aa633

Browse files
echevrierechevrier
andauthored
33/treasury config (#45)
* Update pallet config to allow proposal acceptance from sudo * Update pallet config to allow proposal acceptance from sudo Co-authored-by: echevrier <[email protected]>
1 parent abb0b0d commit d5aa633

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ impl pallet_teerex::Config for Runtime {
354354
parameter_types! {
355355
pub const ProposalBond: Permill = Permill::from_percent(5);
356356
pub const ProposalBondMinimum: Balance = 100 * MILLITEER;
357-
pub const SpendPeriod: BlockNumber = 24 * DAYS;
357+
pub const SpendPeriod: BlockNumber = 6 * DAYS;
358358
pub const Burn: Permill = Permill::from_percent(1);
359359
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
360-
pub const MaxApprovals: u32 = 0; //100
360+
pub const MaxApprovals: u32 = 10;
361361
}
362362

363363
type RootOrigin = EnsureRoot<AccountId>;
@@ -369,8 +369,8 @@ impl pallet_treasury::Config for Runtime {
369369
type RejectOrigin = RootOrigin;
370370
type Event = Event;
371371
type OnSlash = (); //No proposal
372-
type ProposalBond = (); //No proposal
373-
type ProposalBondMinimum = (); //No proposal
372+
type ProposalBond = ProposalBond; //No proposal
373+
type ProposalBondMinimum = ProposalBondMinimum; //No proposal
374374
type SpendPeriod = SpendPeriod; //Cannot be 0: Error: Thread 'tokio-runtime-worker' panicked at 'attempt to calculate the remainder with a divisor of zero
375375
type Burn = (); //No burn
376376
type BurnDestination = (); //No burn

0 commit comments

Comments
 (0)