jingswap_settle_with_refresh
Refreshes Pyth oracle prices with fresh VAAs, then settles the current auction cycle to avoid stale stored prices; run after deposits close.
Instructions
Settle the current auction cycle by first refreshing Pyth oracle prices with fresh VAAs. This is the recommended settlement method — stored prices are almost always stale. Costs ~2 µSTX for the Pyth update. Automatically fetches fresh VAAs from the backend. Settlement distributes funds to all depositors so post conditions are in Allow mode. There is no guarantee settlement succeeds (e.g. if oracle update fails), but this is the most reliable path. Only works after deposits have been closed (buffer/settle phase).
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | Market: "sbtc-stx" (default) or "sbtc-usdcx" |