[][src]Trait eq_treasury::Trait

pub trait Trait: Trait {
    type ModuleId: Get<ModuleId>;
    type Balance: Member + AtLeast32BitUnsigned + MaybeSerializeDeserialize + Codec + Copy + Parameter + Default + From<u64> + Into<u64>;
    type BalanceGetter: BalanceGetter<Self::AccountId, Self::Balance>;
    type EqCurrency: EqCurrency<Self::AccountId, Self::Balance>;
    type PriceGetter: PriceGetter;
    type UnixTime: UnixTime;
    type BuyFee: Get<Permill>;
    type SellFee: Get<Permill>;
    type Fee: Get<Permill>;
    type WeightFeeTreasury: Get<u32>;
    type WeightFeeValidator: Get<u32>;
}

Substrate pallet configuration trait

Associated Types

type ModuleId: Get<ModuleId>

type Balance: Member + AtLeast32BitUnsigned + MaybeSerializeDeserialize + Codec + Copy + Parameter + Default + From<u64> + Into<u64>

Numerical representation of stored balances

type BalanceGetter: BalanceGetter<Self::AccountId, Self::Balance>

Gets users balances to calculate fees and check margin calls

type EqCurrency: EqCurrency<Self::AccountId, Self::Balance>

Used for currency-related operations and calculations

type PriceGetter: PriceGetter

Gets currency prices from oracle

type UnixTime: UnixTime

Timestamp provider

type BuyFee: Get<Permill>

Fee fro collateral buyouts (any currency that is not Eq)

type SellFee: Get<Permill>

Fee fro Eq buyouts

type Fee: Get<Permill>

Treasury pallet fee

type WeightFeeTreasury: Get<u32>

Fee part that stays in Treasury pallet

type WeightFeeValidator: Get<u32>

Fee part that goes to validator

Loading content...

Implementors

Loading content...