
The new difference mode combined with TWAP availability in Intento Flows turns on-chain pricing data into a powerful execution primitive — available to anyone building or trading across the interchain.
Time-Weighted Average Price (TWAP) data has long been used to reduce noise, measure fair value, and detect manipulation in markets.
Now, that data can directly power autonomous execution.
With the latest update, Intento Flows can query TWAP records from Osmosis trustlessly through Interchain Queries (ICQ) — and use them as live conditions in flow execution.
This means a flow can:
For the first time, decentralized automation can act on smoothed, reliable pricing data, not just volatile spot prices.
| For | It means |
|---|---|
| Investors | Safer automated execution that ignores short-term volatility and price manipulation. |
| DeFi users | Smarter strategies built directly into the protocols they already use — without needing custom bots. |
| Developers | A standard hook (TwapRecord) for integrating arithmetic or geometric TWAP into any flow, across chains. |
| Traders | Tools to run TWAP-based DCA, trend detection, and arbitrage logic directly on-chain — no scripts or off-chain servers. |
Intento Flows query Osmosis’ on-chain TwapRecord using ICQ:
{
"query_type": "store/twap/key",
"query_key": "<generated_twap_key>"
}
Every record contains:
Flows can run in:
Spread entries over time, buy only when the average price across the last interval is below your target.
"operator": "SMALLER_THAN",
"operand": "483840", // 1-week TWAP target difference at $0.8
"difference_mode": true
Track positive or negative momentum using TWAP deltas.
"operator": "GREATER_EQUAL",
"operand": "0",
"difference_mode": true
Identify dislocations between spot and fair value.
"response_key": "P0LastSpotPrice",
"operand": "osmosistwapv1beta1.TwapRecord.GeometricTwapAccumulator",
"operator": "SMALLER_THAN"
Only reinvest rewards when TWAP drift is within tolerance.
"operator": "LESS_EQUAL",
"operand": "0.50",
"difference_mode": true

ICQConfig in Comparison or FeedbackLoop.difference_mode = true for accumulators.math.Dec for operands — e.g. "0.00123".SMALLER_THAN, LARGER_THAN, GREATER_EQUAL, etc.).TWAP data used to be just a reference.
Now it’s a trigger.
Flows can execute, pause, or adjust dynamically — not off-chain, not through bots, but directly on the network.
That changes what “autonomous DeFi” actually means.
TWAP is no longer just an analytics metric.
It’s a hook for real, interchain execution.
These new dynamic flows are being tested on Intento Portal, and will go live soon. If you’re a developer or interested in the mechanics of using ICQs in flows, head over to the docs to learn more
From DCA vaults to streaming swaps and self-optimizing yield flows — TWAP hooks make every automation smarter, safer, and more composable.
One layer deeper. One step closer to fully self-custodial DeFi
