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§
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>>>
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Required Associated Constants§
const PSWAP_PER_DAY: Balance
const REFRESH_FREQUENCY: BlockNumberFor<Self>
const VESTING_COEFF: u32
sourceconst VESTING_FREQUENCY: BlockNumberFor<Self>
const VESTING_FREQUENCY: BlockNumberFor<Self>
How often the vesting happens. VESTING_FREQUENCY % REFRESH_FREQUENCY must be 0