pub trait Config: Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type WeightInfo: WeightInfo;
const UPDATE_FREQUENCY: BlockNumberFor<Self>;
const BLOCKS_PER_DAY: BlockNumberFor<Self>;
const MAX_CHUNK_SIZE: usize;
const MAX_VESTING_RATIO: Percent;
const TIME_TO_SATURATION: BlockNumberFor<Self>;
const VAL_BURN_PERCENT: Percent;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type WeightInfo: WeightInfo
Required Associated Constants§
sourceconst UPDATE_FREQUENCY: BlockNumberFor<Self>
const UPDATE_FREQUENCY: BlockNumberFor<Self>
How often the rewards data are being updated
sourceconst BLOCKS_PER_DAY: BlockNumberFor<Self>
const BLOCKS_PER_DAY: BlockNumberFor<Self>
Vested amount is updated every BLOCKS_PER_DAY
blocks
sourceconst MAX_CHUNK_SIZE: usize
const MAX_CHUNK_SIZE: usize
Max number of addresses to be processed in one take
sourceconst MAX_VESTING_RATIO: Percent
const MAX_VESTING_RATIO: Percent
Max percentage of daily burned VAL that can be vested as rewards
sourceconst TIME_TO_SATURATION: BlockNumberFor<Self>
const TIME_TO_SATURATION: BlockNumberFor<Self>
The amount of time until vesting ratio reaches saturation at MAX_VESTING_RATIO
sourceconst VAL_BURN_PERCENT: Percent
const VAL_BURN_PERCENT: Percent
Percentage of VAL burned without vesting