lib-base.trove

Home > @mosaic/lib-base > Trove

Trove class

A combination of collateral and debt.

Signature:

export declare class Trove 

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 Trove class.

Properties

PropertyModifiersTypeDescription

Amount of native currency (e.g. Ether) collateralized.

Amount of MoUSD owed.

boolean

Amount of MoUSD that must be repaid to close this Trove.

Methods

MethodModifiersDescription

Calculate the result of an adjustTrove() transaction on this Trove.

Calculate the parameters of an adjustTrove() transaction that will change this Trove into the given Trove.

Make a new Trove by applying a TroveChange to this Trove.

Calculate the Trove's collateralization ratio at a given price.

Whether the collateralization ratio is less than the CRITICAL_COLLATERAL_RATIO at a given price.

Whether the Trove is undercollateralized at a given price.

static

Calculate the result of an openTrove() transaction.

Whether the Trove is sufficiently collateralized to be opened during recovery mode.

static

Calculate the parameters of an openTrove() transaction that will result in the given Trove.

Calculate the difference between this Trove and another.

Last updated