Headline changes
- Native ETH is supported. v1 only worked with ERC-20s, so anything involving ETH had to be wrapped into WETH first. v2 accepts plain ETH directly as either token in the pair.
- Gas is dramatically lower. Instead of writing the full game state across many storage slots, v2 stores only a single 32-byte hash per game and keeps the actual data in the event log. Combining the price request and initial report functions into a single
report()function allows games to start with as little as 71k gas. Disputes are now as cheap as 58k, settles 44k. - Internal balances. Reporters and disputers can optionally keep funds inside the oracle contract and participate without an ERC-20 transfer on every call. All transfers out in the game path have been converted to internal balance credits. The contract also seeds each balance slot it touches with a permanent one unit dust amount, which keeps dispute gas predictable by avoiding the expensive first-time-write cost mid-game.
- Smaller surface area. v1 shipped as four contracts: the oracle itself plus a batcher, a data provider, and a swap facility. v2 collapses all of this into a single oracle contract, as the helpers’ functionality is either built in or no longer needed.
What operators need to know
The biggest change under the hood is that v2 stores only a hash of each oracle game instead of full game state. The full data lives in the event logs and in calldata that the protocol re-verifies on every call. For most users this is invisible. For people building bots or indexers:- Event payloads are tightly packed bytes rather than standard ABI-encoded fields. You’ll need a small custom decoder. Layouts are documented per event in the Smart Contract Reference.
- State-mutating calls (dispute, settle) require the full preimage as calldata. Your bot needs to keep the original event data around (or fetch it) to call these functions.
- On-chain getters for game state are limited. Read from events for most fields; optional storage flags can persist settled values on-chain when an integration needs them.