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

Trait CalculatePageDeposit

Source
pub trait CalculatePageDeposit<Balance> {
    // Required method
    fn calculate_page_deposit(
        existing_submitters: usize,
        page_size: usize,
    ) -> Balance;
}
Expand description

Something that can calculate the deposit per-page upon submit.

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

Required Methods§

Source

fn calculate_page_deposit( existing_submitters: usize, page_size: 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: From<u32> + Saturating, G: Get<Balance>> CalculatePageDeposit<Balance> for G