Kujira.Orca.Queue (kujira v0.1.1)
An individual Orca Liquidation Queue
Fields
:address
- The contract address:owner
- The account authorized to make changes to contract config:collateral_token
- The token that is being liquidated:bid_token
- The token that is used to buy the collateral:bid_pools
- The aggregate amounts of bids at each supported discount amount. The contract confug containsmax_slot
andpremium_rate_per_slot
, which define these pools:activation_threshold
- The total amount of bids, above which the activation_delay must pass before a bid can be activated. This isbid_threshold
on the contract interfaace:activation_delay
- The time in seconds that must pass before a bid can be activated. This iswaiting_period
on the contract interface
Summary
Types
@type t() :: %Kujira.Orca.Queue{ activation_delay: integer(), activation_threshold: integer(), address: String.t(), bid_pools: [Kujira.Orca.Pool.t()], bid_token: Kujira.Token.t(), collateral_token: Kujira.Token.t(), liquidation_fee: Decimal.t(), owner: String.t(), withdrawal_fee: Decimal.t() }
Functions
Link to this function
from_config(address, map)
Link to this function
load_pools(pools, queue)
Link to this function