Overview
Oracles are independent validators that confirm cross-chain transactions in Bron Intents. Every order requires oracle consensus at two checkpoints: after the user sends funds, and after the solver sends funds. Oracles monitor blockchain events, verify transactions on-chain, and submit their votes to the OracleAggregator smart contract. A quorum-based mechanism ensures that no single oracle can approve or reject a transaction alone.Role in the Protocol
Oracles participate at two critical points during order execution:1. User Transaction Confirmation
After the user sends funds to the solver on the base network:- Oracles fetch the transaction from the base blockchain
- Check amount, sender, receiver, and transferred token
- Submit vote via
oracleConfirmUserTx(orderId, isConfirmed)on the OracleAggregator contract
2. Solver Transaction Confirmation
After the solver sends funds to the user on the quote network:- Oracles fetch the transaction from the quote blockchain
- Check amount, sender, receiver, and transferred token
- Submit vote via
oracleConfirmSolverTx(orderId, isConfirmed)on the OracleAggregator contract
Consensus Mechanism
Decisions are made by quorum — more than half of the oracles subscribed to the relevant network must vote.| Outcome | Result |
|---|---|
| Yes votes > No votes (quorum reached) | Order proceeds to the next step |
| No votes > Yes votes (quorum reached) | User TX: order cancelled. Solver TX: solver liquidated |
| Tie (quorum reached) | Consensus resets, new voting round starts |
Oracle Lifecycle
Registration Flow
Subscribe to Networks
Call
subscribeToNetwork(networkId) for each blockchain network you want to validate.
An oracle can subscribe to up to 30 networks.Fee Distribution
Oracles earn fees for participating in consensus:- Each order has an oracle fee calculated as a percentage of the order amount
- Fees are transferred to the OracleAggregator after order completion
- Fees are distributed weighted by total positive votes — an oracle that voted
trueat both checkpoints (user TX and solver TX) earns more than one that votedtrueat only one - Oracles claim accumulated fees via
claimOracleCollectedFees(feeToken)
Penalty System
Oracles that vote against the majority consensus are penalized:- Status changes to
COOLDOWN - Oracle is unsubscribed from all networks
- After the cooldown period expires,
checkAndResetOracleCooldownmust be called to reactivate the oracle - Once reactivated, the oracle must re-subscribe to networks manually
