Trait farming::pallet::Config

source ·
pub trait Config: Config + Config<AccountId = AccountId32> + Config + Config + Config + Config<Balance = Balance, CurrencyId = <Self as Config>::AssetId> + Config + Config {
    type RuntimeCall: Parameter;
    type SchedulerOriginCaller: From<RawOrigin<Self::AccountId>>;
    type Scheduler: Anon<Self::BlockNumber, <Self as Config>::RuntimeCall, Self::SchedulerOriginCaller>;
    type RewardDoublingAssets: Get<Vec<AssetIdOf<Self>>>;
    type WeightInfo: WeightInfo;

    const PSWAP_PER_DAY: Balance;
    const REFRESH_FREQUENCY: BlockNumberFor<Self>;
    const VESTING_COEFF: u32;
    const VESTING_FREQUENCY: BlockNumberFor<Self>;
    const BLOCKS_PER_DAY: BlockNumberFor<Self>;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeCall: Parameter

source

type SchedulerOriginCaller: From<RawOrigin<Self::AccountId>>

source

type Scheduler: Anon<Self::BlockNumber, <Self as Config>::RuntimeCall, Self::SchedulerOriginCaller>

source

type RewardDoublingAssets: Get<Vec<AssetIdOf<Self>>>

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Required Associated Constants§

source

const PSWAP_PER_DAY: Balance

source

const REFRESH_FREQUENCY: BlockNumberFor<Self>

source

const VESTING_COEFF: u32

source

const VESTING_FREQUENCY: BlockNumberFor<Self>

How often the vesting happens. VESTING_FREQUENCY % REFRESH_FREQUENCY must be 0

source

const BLOCKS_PER_DAY: BlockNumberFor<Self>

Implementors§