Rujira.Fin.Events.Price (rujira_ex v0.0.6)

Copy Markdown View Source

A FIN price, as carried on order and trade events.

The contract serialises prices as "<tag>:<value>". The tag selects the source variant:

  • fixed:<decimal> — an order-pool limit price
  • oracle:<int> — an order-pool oracle deviation, in bps
  • ccl:<decimal> — a concentrated-liquidity (range) effective rate
  • <address>:<rate> — a market-maker offer, prefixed by its contract address

Summary

Types

Functions

parse(value)

@spec parse(String.t()) :: {:ok, t()} | {:error, term()}