Kujira.Usk.Market (kujira v0.1.22)
A Ghoat market taked deposits of collateral_token, and allows borrowing of the vault.deposit_token, up to the maximum LTV as quoted by the oracle denoms
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.Usk.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(), status: :not_loaded | Kujira.Usk.Market.Status.t(), vault: {Kujira.Usk.Vault, String.t()} }