lib-base.stabilitydeposit

Home > @mosaic/lib-base > StabilityDeposit

StabilityDeposit class

A Stability Deposit and its accrued gains.

Signature:

export declare class StabilityDeposit 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the StabilityDeposit class.

Properties

Property
Modifiers
Type
Description

Amount of native currency (e.g. Ether) received in exchange for the used-up MoUSD.

Amount of MoUSD left in the Stability Deposit.

string

Address of frontend through which this Stability Deposit was made.

Amount of MoUSD in the Stability Deposit at the time of the last direct modification.

boolean

Amount of MSIC rewarded since the last modification of the Stability Deposit.

Methods

Method
Modifiers
Description

Apply a StabilityDepositChange to this Stability Deposit.

Compare to another instance of StabilityDeposit.

Calculate the difference between the currentMoUSD in this Stability Deposit and thatMoUSD.

Last updated