Trait pallet_sunrise::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type SunrisePalletId: Get<PalletId>;
type Cooldown: Get<Self::BlockNumber>;
type MaximumRewardPerSwap: Get<Balance>;
type LeftoverSwapRebates: Get<FixedU128>;
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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Events
sourcetype SunrisePalletId: Get<PalletId>
type SunrisePalletId: Get<PalletId>
Pallet ID
sourcetype Cooldown: Get<Self::BlockNumber>
type Cooldown: Get<Self::BlockNumber>
Number of blocks to wait before allowing users to claim their sunrise rewards, after an era is completed.
sourcetype MaximumRewardPerSwap: Get<Balance>
type MaximumRewardPerSwap: Get<Balance>
Maximum rewards for sunrise pool before the applied rewards.
Example, 10_000_000_000_000_000 with a 125% rewards,
the maximum applied will be 12_500_000_000_000_000
TDFY
sourcetype LeftoverSwapRebates: Get<FixedU128>
type LeftoverSwapRebates: Get<FixedU128>
For each tier, leftover funds will be allocated to to this tier
sourcetype Security: SecurityExt<Self::AccountId, Self::BlockNumber>
type Security: SecurityExt<Self::AccountId, Self::BlockNumber>
Security traits
sourcetype CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
type CurrencyTidefi: Inspect<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Mutate<Self::AccountId, AssetId = CurrencyId, Balance = Balance> + Transfer<Self::AccountId, AssetId = CurrencyId, Balance = Balance>
Tidechain currency wrapper