Kujira.Orca.Liquidation (kujira v0.1.80)

An individual liquidation, as seen by Orca. These can be duplicated as the liquidating market will also have something that represents the liquidation, but these may be different.

## Fields

  • :txhash - The hash of the transaction the liqdation ocurred in

  • :height - The block height that included the transaction

  • :timestamp - The timestamp of the block

  • :queue_address - The address of the liquidation queue that processed the liquidation

  • :market_address - The market that requested the liquidation

  • :collateral_amount - The amount of collateral liquidated by the market

  • :bid_amount - The amount of bid_token that was consumed during the liquidation

  • :repay_amount - The amount of bid_token that was returned to the liquidating market

  • :fee_amount - The amount of the bid_token that was retained as a fee

Summary

Functions

Returns all liquidations found in a specific transaction

Types

@type t() :: %Kujira.Orca.Liquidation{
  bid_amount: integer(),
  collateral_amount: integer(),
  fee_amount: integer(),
  height: integer(),
  market_address: String.t(),
  queue_address: String.t(),
  repay_amount: integer(),
  timestamp: DateTime.t(),
  txhash: String.t()
}

Functions

Link to this function

from_tx_response(response)

@spec from_tx_response(Cosmos.Base.Abci.V1beta1.TxResponse.t()) :: [t()] | nil

Returns all liquidations found in a specific transaction