lib-base.trove
Home > @mosaic/lib-base > Trove
Trove class
A combination of collateral and debt.
Signature:
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
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
Calculate the Trove's collateralization ratio at a given price.
Whether the Trove is undercollateralized at a given price.
static
Whether the Trove is sufficiently collateralized to be opened during recovery mode.
static
Calculate the difference between this Trove and another.
Last updated