Acala Stablecoin
Source Code of Karura Stablecoin
Read-Only Functions (State queries)
Get Vault for specific Account for given Collateral Type
positions(currencyId: CurrencyId, accountId: AccountId):
Promise<{collateral: number, debit: number}>Name
Type
Full code snippet:
Get total amount of collateral and borrowed kUSD for Collateral Type
Name
Type
Full code snippet:
Get Risk Parameters for given Collateral type.
Name
Type
Name
Type
Full code snippet:
Get Debt Exchange Rate for given collateral type
Name
Type
Full code snippet:
State-Changing Functions
Create and manage the Vault
Name
Type
Full code snippet:
Grants permission for transferring loan
Name
Type
Full code snippet:
Removes permission for transferring loan
Name
Type
Removes permissions for ALL accounts to transfer the vault
Transfering Vault to another account
Name
Type
Closing caller's Vault by swapping collateral in DeX
Name
Type
Full code snippet:
Last updated
Was this helpful?