Kujira.Orca.Market (kujira v0.1.51)

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


  • :queue - The Queue that will process the liquidation from the :address

  • :address - The address of the market that uses this Queue

  • :health - A bucketed map of market health - key: liquidation price, value: total collateral between this (inclusive) and the previous liquidation price (exclusive)



@type t() :: %Kujira.Orca.Market{
  address: {atom(), String.t()},
  health: map(),
  queue: {Kujira.Orca.Queue, String.t()}