Trait astar_primitives::dapp_staking::AccountCheck
source · pub trait AccountCheck<AccountId> {
// Required method
fn allowed_to_stake(account: &AccountId) -> bool;
}
Expand description
Used to check whether an account is allowed to participate in dApp staking or not.
Required Methods§
sourcefn allowed_to_stake(account: &AccountId) -> bool
fn allowed_to_stake(account: &AccountId) -> bool
true
if the account is allowed to stake, false
otherwise.
Object Safety§
This trait is not object safe.