What an order costs
Hedera charges a fixed fee to schedule a contract call: about 1.17 HBAR (≈ $0.12 on 2026-10-01; Hedera sets the ScheduleCreate and inner ContractCall fees in USD, plus a 20% system-contract surcharge, so the HBAR figure moves with the exchange rate). That is 81% of a check, whatever the gas limit or delay. So the vault saves money the only way it can, by running fewer sweeps: each one waits about as long as the price needs to reach the nearest trigger.
| Market | Checks at most every | at least every | assumed fastest move |
|---|---|---|---|
| HBAR / USDC | 5 min | 6 h | 2.5% an hour |
| DAI / USDC | 5 min | 6 h | 0.25% an hour |
| Cost, read from the lens (2026-10-01, 1 HBAR = 10.4 ¢) | HBAR |
|---|---|
| One check, the only order in its market | 1.4363 |
| One check shared by 2 / 5 / 20 orders | 0.7475 / 0.3342 / 0.1276 |
| Reserve every order keeps for its fill and last check (HBAR sell / token sell) | 0.6730 / 0.9440 |
| Minimum budget | 9.2905 / 9.5615 |
A market with a single order costs 5.7 to 17.2 HBAR a day depending on how far the trigger is, instead of 414 HBAR a day when it checked every 5 minutes. The HBAR figures move with the exchange rate; node scripts/cost-figures.mjs prints today's from the live lens. The Trade page sizes the budget to cover the order until it expires and shows the price of each expiry. Orders in the same market split the fixed part. Unused budget is refunded. The full model, with the measured gas per segment, is in docs/ARCHITECTURE.md.
The trade-off: a price that moves faster than the assumed rate is noticed late. The fill is still priced from Chainlink at the moment it happens and still guarded, and anyone can call executeOrder(id) or sweep(market, 0) to check sooner at their own gas cost.
From README.md at v1.1 (cee2d4e) · View source
The guard & oracle
A fill needs both Chainlink feeds to be fresh (maxOracleAge) and the pool's TWAP over twapWindow to sit within maxDeviationBps of the Chainlink price.
When checks stop
If a market has funded orders but no check is scheduled, the Trade page and the order page show Checks stopped with a Restart checks button, and…