referrerpolicy=no-referrer-when-downgrade
pallet_election_provider_multi_block::signed

Trait CalculateBaseDeposit

Source
pub trait CalculateBaseDeposit<Balance> {
    // Required method
    fn calculate_base_deposit(existing_submitters: usize) -> Balance;
}
Expand description

Something that can compute the base deposit that is collected upon register.

A blanket impl allows for any Get to be used as-is, which will always return the said balance as deposit.

Required Methods§

Source

fn calculate_base_deposit(existing_submitters: usize) -> Balance

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Balance, G: Get<Balance>> CalculateBaseDeposit<Balance> for G