[][src]Trait eq_bailsman::BailsmanManager

pub trait BailsmanManager<AccountId> {
    fn get_temp_balances_usd() -> Result<FixedI128, DispatchError>;
fn receive_position(who: &AccountId);
fn reinit(); }

Manages bailsman operation. OFFCHAIN ONLY

Required methods

fn get_temp_balances_usd() -> Result<FixedI128, DispatchError>

OFFCHAIN ONLY. Returns total USD value of Bailsman Pallet balances

fn receive_position(who: &AccountId)

OFFCHAIN ONLY. Receives account who balances in case of margin call. Account balances are sent to Bailsman Pallet balance

fn reinit()

OFFCHAIN ONLY. Reinit to check and redistribute balances

Loading content...

Implementors

impl<T: Trait> BailsmanManager<<T as Trait>::AccountId> for Module<T>[src]

Loading content...