@interlay/interbtc-api / Exports / LendingStats
• borrowLimitBtc: MonetaryAmount
<Currency
>
• calculateBorrowLimitBtcChange: (action
: LoanAction
, amount
: MonetaryAmount
<CurrencyExt
>) => MonetaryAmount
<Currency
>
▸ (action
, amount
): MonetaryAmount
<Currency
>
Name | Type |
---|---|
action |
LoanAction |
amount |
MonetaryAmount <CurrencyExt > |
MonetaryAmount
<Currency
>
• calculateLtvAndThresholdsChange: (action
: LoanAction
, amount
: MonetaryAmount
<CurrencyExt
>) => { collateralThresholdWeightedAverage
: Big
; liquidationThresholdWeightedAverage
: Big
; ltv
: Big
}
▸ (action
, amount
): Object
Name | Type |
---|---|
action |
LoanAction |
amount |
MonetaryAmount <CurrencyExt > |
Object
Name | Type |
---|---|
collateralThresholdWeightedAverage |
Big |
liquidationThresholdWeightedAverage |
Big |
ltv |
Big |
• collateralThresholdWeightedAverage: Big
• liquidationThresholdWeightedAverage: Big
• ltv: Big
• totalBorrowedBtc: MonetaryAmount
<Currency
>
• totalCollateralBtc: MonetaryAmount
<Currency
>
• totalLentBtc: MonetaryAmount
<Currency
>