1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use frame_support::PalletId;
use sp_runtime::Permill;
use crate::{weights::pallet_treasury::WeightInfo, *};
use pallet_treasury::Config;
frame_support::parameter_types! {
pub const TreasuryPalletId: PalletId = PalletId(*b"da/trsry");
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const RingProposalBondMinimum: Balance = 1_000 * COIN;
pub const SpendPeriod: BlockNumber = 24 * DAYS;
pub const Burn: Permill = Permill::from_percent(1);
pub const MaxApprovals: u32 = 100;
}
impl Config for Runtime {
type ApproveOrigin = Root;
type Burn = Burn;
type BurnDestination = ();
type Currency = Ring;
type Event = Event;
type MaxApprovals = MaxApprovals;
type OnSlash = Treasury;
type PalletId = TreasuryPalletId;
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = RingProposalBondMinimum;
type RejectOrigin = Root;
type SpendFunds = ();
type SpendPeriod = SpendPeriod;
type WeightInfo = WeightInfo<Self>;
}