Skip to content

Commit

Permalink
WIP: params
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuanyshbaev committed Dec 14, 2024
1 parent a6cb78b commit 22d5f90
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions runtime/dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ impl pallet_preimage::Config for Runtime {
// >;
}

use robonomics_primitives::CommunityAccount;
use sp_runtime::traits::IdentifyAccount;

parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 10 * XRT;
Expand All @@ -455,9 +458,11 @@ parameter_types! {
pub const MaxApprovals: u32 = 100;
// ???
pub const SpendPayoutPeriod: BlockNumber = 30 * DAYS;
pub TreasuryAccount: AccountId = Treasury::account_id();
// pub TreasuryAccount: AccountId = Treasury::account_id();
pub TreasuryAccount: AccountId = CommunityAccount::Treasury.into_account();
}

use frame_support::traits::tokens::pay::PayAssetFromAccount;
use frame_support::traits::tokens::PayFromAccount;
use frame_support::traits::tokens::UnityAssetBalanceConversion;
use sp_runtime::traits::IdentityLookup;
Expand All @@ -479,9 +484,9 @@ impl pallet_treasury::Config for Runtime {
// ???
type BeneficiaryLookup = IdentityLookup<Self::AccountId>;

// type Paymaster = PayAssetFromAccount<Assets, TreasuryAccount>;
type Paymaster = PayAssetFromAccount<Assets, TreasuryAccount>;
// type Paymaster = PayFromAccount<Balances, TreasuryAccount>;
// type BalanceConverter = AssetRate;
type Paymaster = PayFromAccount<Balances, TreasuryAccount>;
type BalanceConverter = UnityAssetBalanceConversion;

type PayoutPeriod = SpendPayoutPeriod;
Expand Down

0 comments on commit 22d5f90

Please sign in to comment.