Skip to content

Commit

Permalink
33/treasury config (#45)
Browse files Browse the repository at this point in the history
* Update pallet config to allow proposal acceptance from sudo

* Update pallet config to allow proposal acceptance from sudo

Co-authored-by: echevrier <edith.chevrier@scs.ch>
  • Loading branch information
echevrier and echevrier authored Sep 21, 2021
1 parent abb0b0d commit d5aa633
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ impl pallet_teerex::Config for Runtime {
parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 100 * MILLITEER;
pub const SpendPeriod: BlockNumber = 24 * DAYS;
pub const SpendPeriod: BlockNumber = 6 * DAYS;
pub const Burn: Permill = Permill::from_percent(1);
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const MaxApprovals: u32 = 0; //100
pub const MaxApprovals: u32 = 10;
}

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

0 comments on commit d5aa633

Please sign in to comment.