Skip to content

API documentation of Agoric SDK / Exports / @agoric/inter-protocol / index

Module: index

Table of contents

Functions

Functions

calculateCurrentDebt

calculateCurrentDebt(debtSnapshot, interestSnapshot, currentCompoundedInterest): Amount<"nat">

Parameters

NameTypeDescription
debtSnapshotAmount<"nat">-
interestSnapshotRatioas coefficient
currentCompoundedInterestRatioas coefficient

Returns

Amount<"nat">

Defined in

interest-math.js:33