Skip to main content

Account

Type Alias Account 

Source
pub type Account = Account<Otw>;

Aliased Type§

pub struct Account {
    pub id: UID,
    pub account_id: u64,
    pub collateral: Balance<Otw>,
    pub active_assistants: MoveVec<ID>,
    /* private fields */
}

Fields§

§id: UID§account_id: u64

Numerical value associated to the account

§collateral: Balance<Otw>

Balance available to be allocated to markets.

§active_assistants: MoveVec<ID>

Tracks the IDs of all AccountCap<ASSISTANT>s that have the authority to interact with thie Account. Appended to in new_assistant_account_cap and reduced in revoke_assistant_account_cap.