Trait astar_primitives::dapp_staking::TierSlots
source · pub trait TierSlots {
// Required method
fn number_of_slots(price: CurrencyAmount) -> u16;
}
Expand description
Trait for calculating the total number of tier slots for the given price.
Required Methods§
sourcefn number_of_slots(price: CurrencyAmount) -> u16
fn number_of_slots(price: CurrencyAmount) -> u16
Returns the total number of tier slots for the given price.
Object Safety§
This trait is not object safe.