Skip to main content

updateMidprice

Update your pools midprice. Midprice can be updated when pools are in the RejectSwaps mode.
Q32 (more precisely Q32.32) is a fixed-point number format where the value is stored as an integer scaled by 2^32.In short: stored = realValue * 2^32The SDK offers a .toQ32() helpers to convert numbers to fixed point numbers

updateMidpriceAndBaseSpread

Atomic update of both mid price and base spread values in a single instruction.

updateDeltaStaleness

Delta staleness is a kill-switch. It allows the operator to set the threshold after which, if no oracle update exists, the pool stops quoting the asset.