@interlay/interbtc-api / Exports / VaultExt
• new VaultExt(api, oracleAPI, systemAPI, backingCollateral, id, status, bannedUntil, toBeIssuedTokens, issuedTokens, toBeRedeemedTokens, toBeReplacedTokens, replaceCollateral, liquidatedCollateral, secureCollateralThreshold): VaultExt
| Name | Type |
|---|---|
api |
ApiPromise |
oracleAPI |
OracleAPI |
systemAPI |
SystemAPI |
backingCollateral |
MonetaryAmount<CollateralCurrencyExt> |
id |
InterbtcPrimitivesVaultId |
status |
VaultStatusExt |
bannedUntil |
undefined | number |
toBeIssuedTokens |
MonetaryAmount<Currency> |
issuedTokens |
MonetaryAmount<Currency> |
toBeRedeemedTokens |
MonetaryAmount<Currency> |
toBeReplacedTokens |
MonetaryAmount<Currency> |
replaceCollateral |
MonetaryAmount<CollateralCurrencyExt> |
liquidatedCollateral |
MonetaryAmount<CollateralCurrencyExt> |
secureCollateralThreshold |
Big |
• Private api: ApiPromise
• backingCollateral: MonetaryAmount<CollateralCurrencyExt>
• bannedUntil: undefined | number
• id: InterbtcPrimitivesVaultId
• issuedTokens: MonetaryAmount<Currency>
• liquidatedCollateral: MonetaryAmount<CollateralCurrencyExt>
• Private oracleAPI: OracleAPI
• replaceCollateral: MonetaryAmount<CollateralCurrencyExt>
• secureCollateralThreshold: Big
• status: VaultStatusExt
• Private systemAPI: SystemAPI
• toBeIssuedTokens: MonetaryAmount<Currency>
• toBeRedeemedTokens: MonetaryAmount<Currency>
• toBeReplacedTokens: MonetaryAmount<Currency>
▸ computeBackingCollateral(nonce?): Promise<MonetaryAmount<CollateralCurrencyExt>>
| Name | Type |
|---|---|
nonce? |
number |
Promise<MonetaryAmount<CollateralCurrencyExt>>
▸ getBackedTokens(): MonetaryAmount<Currency>
MonetaryAmount<Currency>
▸ getFreeCollateral(): Promise<MonetaryAmount<CollateralCurrencyExt>>
Promise<MonetaryAmount<CollateralCurrencyExt>>
▸ getIssuableTokens(): Promise<MonetaryAmount<Currency>>
Promise<MonetaryAmount<Currency>>
▸ getRedeemableTokens(): MonetaryAmount<Currency>
MonetaryAmount<Currency>
▸ getSecureCollateralThreshold(): Big
Big
▸ getStakingPoolNonce(): Promise<number>
Promise<number>
▸ getUsedCollateral(): Promise<MonetaryAmount<CollateralCurrencyExt>>
Promise<MonetaryAmount<CollateralCurrencyExt>>
▸ isBanned(): Promise<boolean>
Promise<boolean>