lib-base.trove.adjustto

Home > @mosaic/lib-base > Trove > adjustTo

Trove.adjustTo() method

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

Signature:

adjustTo(that: Trove, borrowingRate?: Decimalish): TroveAdjustmentParams<Decimal>;

Parameters

Parameter
Type
Description

that

The desired result of the transaction.

borrowingRate

Current borrowing rate.

Returns:

TroveAdjustmentParams<Decimal>

Last updated