Kujira.Ghost.Market (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:vault_address
- The address of Vault that the Market draws from:orca_address
- The address of the Orca Queue that is used to liquidate the collateral token:collateral_token
- The token used to back the loan:collateral_oracle_denom
- The denom string that is used to price the collateral token:max_ltv
- MAximum loan-to-value ratio of a position:full_liquidation_threshold
- The value of collateral (as priced by collateral oracle, 6dp), below which a position is 100% liquidated:partial_liquidation_target
- The target LTV when a position is partially liquidated:borrow_fee
- The amount of the borrowed asset retained as a fee when borrow amount is increased
Summary
Types
@type t() :: %Kujira.Ghost.Market{ address: String.t(), borrow_fee: Decimal.t(), collateral_oracle_denom: String.t(), collateral_token: Kujira.Token.t(), full_liquidation_threshold: integer(), max_ltv: Decimal.t(), orca_queue: {Kujira.Orca.Queue, String.t()}, owner: String.t(), partial_liquidation_target: Decimal.t(), vault: {Kujira.Ghost.Vault, String.t()} }