lib-base.stabilitydeposit.whatchanged

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

StabilityDeposit.whatChanged() method

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

Signature:

whatChanged(thatMoUSD: Decimalish): StabilityDepositChange<Decimal> | undefined;

Parameters

ParameterTypeDescription

thatMoUSD

Returns:

StabilityDepositChange<Decimal> | undefined

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

Last updated