updateMidprice
Update your pools midprice. Midprice can be updated when pools are in theRejectSwaps mode.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
RejectSwaps mode.
pool.updateMidprice(authority, { midpriceQ32: newMidQ32 });
| Param | Type | Description |
|---|---|---|
params.midpriceQ32 | bigint | New midprice in Q32 format |
params.sequence? | bigint | Optional sequence number for ordering |
pool.updateMidpriceAndBaseSpread(authority, {
midpriceQ32: newMidQ32,
spreadFactorQ32: newSpreadQ32,
});
pool.updateDeltaStaleness(authority, { deltaStaleness: 150 }); //measured in slots, up to 255