Trait rewards::pallet::Config

source ·
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§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

source

type WeightInfo: WeightInfo

Required Associated Constants§

source

const UPDATE_FREQUENCY: BlockNumberFor<Self>

How often the rewards data are being updated

source

const BLOCKS_PER_DAY: BlockNumberFor<Self>

Vested amount is updated every BLOCKS_PER_DAY blocks

source

const MAX_CHUNK_SIZE: usize

Max number of addresses to be processed in one take

source

const MAX_VESTING_RATIO: Percent

Max percentage of daily burned VAL that can be vested as rewards

source

const TIME_TO_SATURATION: BlockNumberFor<Self>

The amount of time until vesting ratio reaches saturation at MAX_VESTING_RATIO

source

const VAL_BURN_PERCENT: Percent

Percentage of VAL burned without vesting

Implementors§