lib-base.trove.create

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

Trove.create() method

Calculate the result of an openTrove() transaction.

Signature:

static create(params: TroveCreationParams<Decimalish>, borrowingRate?: Decimalish): Trove;

Parameters

ParameterTypeDescription

params

Parameters of the transaction.

borrowingRate

Borrowing rate to use when calculating the Trove's debt.

Returns:

Trove

Last updated