Kujira.Orca.Pool (kujira v0.1.80)

A pool of bid tokens at a specific premium %, for a specific Queue

Fields

  • :premium - The premium "charged" above the current market rate (ie the discount that the collateral is bought for)

  • :total - The total amount of activated bid token in the pool

Summary

Functions

Calculates a new Pool from the config on the Queue

Types

@type t() :: %Kujira.Orca.Pool{
  epoch: integer() | :not_loaded,
  premium: Decimal.t(),
  total: integer() | :not_loaded
}

Functions

Link to this function

calculate(premium_rate_per_slot, slot)

@spec calculate(Decimal.t(), integer()) :: t()

Calculates a new Pool from the config on the Queue

Link to this function

load(arg1, pool)

@spec load(map() | nil, t()) :: t()