Commit the Pyth price an admitted order fills at: a LazerPrice, which only the
deepbook_predict_math library builds, from a Pyth-verified Lazer update.
Stores the spot, the envelope time (the tick the fill prices at), and the feed's
generation time. For a mint it also reserves the fee subsidy,
min(subsidy_bound * fee_incentive_subsidy_rate, incentives left), records the
rate and amount, and returns the reservation for the companion to escrow with
the order. A sell returns a zero balance.
The price must be the receipt's: its Pyth feed and channel, an envelope at
exactly τ or one tick of that channel later (the backup tick), a generation time
between τ and the envelope, an envelope at or before now, and a pricing-safe
spot (EWrongPrice). Aborts unless W is allowlisted, the version gate passes,
the receipt is this market's (EWrongMarket), admitted with no price yet
(EWrongStage), and before its deadline (EInvalidOrderTiming).
Commit the Pyth price an admitted order fills at: a
LazerPrice, which only thedeepbook_predict_mathlibrary builds, from a Pyth-verified Lazer update. Stores the spot, the envelope time (the tick the fill prices at), and the feed's generation time. For a mint it also reserves the fee subsidy,min(subsidy_bound * fee_incentive_subsidy_rate, incentives left), records the rate and amount, and returns the reservation for the companion to escrow with the order. A sell returns a zero balance.The price must be the receipt's: its Pyth feed and channel, an envelope at exactly τ or one tick of that channel later (the backup tick), a generation time between τ and the envelope, an envelope at or before now, and a pricing-safe spot (
EWrongPrice). Aborts unlessWis allowlisted, the version gate passes, the receipt is this market's (EWrongMarket), admitted with no price yet (EWrongStage), and before its deadline (EInvalidOrderTiming).