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
Name | Type | Description |
---|---|---|
debtSnapshot | Amount <"nat" > | - |
interestSnapshot | Ratio | as coefficient |
currentCompoundedInterest | Ratio | as coefficient |
Returns
Amount
<"nat"
>