Two Prices to Check Before a Treasury Swap
Oracle divergence compares a pool’s live quote with its reference feed; learn what moves the gap, how it affects treasury swaps, and what to check before signing.
The Crypto News Week Editors3 min read

Two prices shape a treasury swap: the pool’s live quote and the oracle’s reference price. Their gap measures how far the trade venue’s price has moved from the reference. A large gap can make your expected trade value differ from the value your contract uses.
What is oracle price divergence?
Oracle price divergence is the difference between an oracle’s reported price and the price available in a trading pool. An oracle feed typically aggregates market data and updates under its own rules; a pool quote reflects the assets and liquidity in that pool at that moment.
The gap can arise because the oracle updates less often than pool trades, or because a large trade moves the pool price. It can also reflect thin liquidity, market volatility, or a genuine shift in the wider market. A price difference alone does not tell you which source is wrong.
How can divergence affect a treasury swap?
Divergence matters when a contract uses an oracle price to set limits, value assets, or check whether a trade is acceptable. If the oracle is behind the market, a swap may be blocked by a price bound or may execute at a pool price that differs from the value used for accounting.
Execution price also depends on trade size and available liquidity. A quote for a small trade may look close to the oracle, while a larger swap moves through several price levels and gets a worse average price. For a primer on the trading and liquidity mechanics, the fuller baseswap guide covers the pool side of that comparison.
Check which price the contract actually uses. A displayed interface quote, an oracle check, and the final execution price can each serve a different purpose.
What should you check before signing?
Before approving a treasury swap, compare the expected execution price with the oracle reference and the transaction’s own limits. Read the route and slippage settings: slippage is the permitted difference between the quoted and executed price, and it does not guarantee that the oracle agrees.
- Confirm the oracle feed covers the same asset pair and quote currency as the swap.
- Check whether the feed is current and whether the contract rejects stale or out-of-range prices.
- Review the pool’s available liquidity and the price impact for the full trade size.
- Understand what happens if the oracle check fails, including whether the transaction reverts.
Oracles can also differ in how they source prices, update feeds, and handle unusual market conditions. A pool’s spot price is especially sensitive to immediate trades; a time-weighted price smooths movement over a chosen period but may react more slowly to a sudden market change.
For most treasury swaps, the useful check is not simply whether the two prices match. It is whether the difference is explained by timing, liquidity, or trade size, and whether the contract’s limits still produce an acceptable outcome. If you cannot establish that before signing, wait for a clearer quote or reduce the trade size.