Kujira.Bow.Pool.Lsd.Strategy (kujira v0.1.47)

The specific configuration for the Lsd strategy.

  • :ask_fee - The % price difference between the expected price and the calculated ask price for each order
  • :ask_utilization - The fraction of the available quote denom that is deployed to the order. Prevent the whole vault from being wiped out in a single trade
  • :bid_fee - As ask but on the bid side
  • :bid_factor - The adjustment of the bid_fee based on the current token balances (quote_balance / base_value) * bid_factor. So eg to decrease the bid_fee (by reducing the price) by 5% when the pool is balanced 90 - 10, the bid_factor should be 0.00555.
  • :bid_utilization - As ask but on the bid side
  • :bid_count - Total bid orders placed

Summary

Types

@type t() :: %Kujira.Bow.Pool.Lsd.Strategy{
  ask_fee: Decimal.t(),
  ask_utilization: Decimal.t(),
  bid_count: non_neg_integer(),
  bid_factor: Decimal.t(),
  bid_fee: Decimal.t(),
  bid_utilization: Decimal.t()
}

Functions

Link to this function

from_config(arg1)

@spec from_config(map()) :: {:error, :invalid_config} | {:ok, t()}