lib-base.trove.whatchanged

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

Trove.whatChanged() method

Calculate the difference between this Trove and another.

Signature:

whatChanged(that: Trove, borrowingRate?: Decimalish): TroveChange<Decimal> | undefined;

Parameters

Parameter
Type
Description

that

The other Trove.

borrowingRate

Borrowing rate to use when calculating a borrowed amount.

Returns:

TroveChange<Decimal> | undefined

An object representing the change, or undefined if the Troves are equal.

Last updated