Kujira.Ghost.Vault (kujira v0.1.7)

We define a Market, as far as Orca is concerned, in order to be able to standardise and aggregate the health of the various markets that any given liquidation queue can liquidate

Fields

  • :address - The address of the market

  • :owner - The owner of the market

  • :deposit_token - The token deposited into the vault to be lent

  • :oracle_denom - The denom string that is used to price the deposit token

  • :receipt_token - The token minted on deposit, that represents ownership of that deposit

  • :debt_token - The token minted and sent to a Market when borrowing, use as an accounting tool to accrue interest on debt

  • :markets - The whitelisted markets that are allowed to borrow from the Vault

Summary

Types

@type t() :: %Kujira.Ghost.Vault{
  address: String.t(),
  debt_token: Kujira.Token.t(),
  deposit_token: Kujira.Token.t(),
  markets: :not_loaded | [Kujira.Ghost.Market.t()],
  oracle_denom: {:live, String.t()} | {:static, Decimal.t()},
  owner: String.t(),
  receipt_token: Kujira.Token.t()
}

Functions

Link to this function

from_config(address, map)

@spec from_config(String.t(), map()) :: {:ok, t()} | :error