Kujira.Orca.Bid (kujira v0.1.7)

A bid placed by a user to buy liquidated collateral at a specific discount from the market price

Fields

  • :id - The unique ID of the bid

  • :bid_amount - The remaining amount of the bid_token

  • :filled_amount - The amount of collateral available for withdrawal

  • :premium - The bid discount on the market rate

  • :activation_time - When not nil, the bid must be activated at or after this time

Summary

Functions

Returns all new bids found in a specific transaction

Types

@type t() :: %Kujira.Orca.Bid{
  activation_time: DateTime.t() | nil | :not_loaded,
  bid_amount: integer(),
  bidder: String.t(),
  filled_amount: integer(),
  id: String.t(),
  premium: Decimal.t()
}

Functions

Link to this function

from_query(queue, map)

Link to this function

from_tx_response(channel, response)

@spec from_tx_response(GRPC.Channel.t(), Cosmos.Base.Abci.V1beta1.TxResponse.t()) ::
  [{String.t(), t()}] | nil

Returns all new bids found in a specific transaction