pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type StakePalletId: Get<PalletId>;
    type StakeAccountCap: Get<u32>;
    type StakingRewardCap: Get<u32>;
    type BlocksForceUnstake: Get<Self::BlockNumber>;
    type BatchSize: Get<u32>;
    type WeightInfo: WeightInfo;
    type AssetRegistry: AssetRegistryExt;
    type Security: SecurityExt<Self::AccountId, Self::BlockNumber>;
    type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>;
}
Expand description

Configure the pallet by specifying the parameters and types on which it depends.

Required Associated Types§

Events

Pallet ID

Maximum active stake / account

Maximum number of periods defined

Number of block to wait before unstake if forced.

Batch size.

This many accounts and unstake are processed in each on_idle` request.

Weight information for extrinsics in this pallet.

Asset registry traits

Security traits

Tidechain currency wrapper

Implementors§