Skip to main content
Blockchain Today

Crypto markets, protocols and policy

How does Across use UMA’s oracle to repay relayers?

How Across uses the UMA optimistic oracle to repay relayers: a bonded bundle is challenged or accepted, then relayers claim refunds with Merkle proofs.

By Blockchain Today Editorial5 min read

How does Across use UMA’s oracle to repay relayers?

Across uses UMA’s Optimistic Oracle to check bundled refund claims before relayers collect repayment from SpokePools. The user’s fill happens first; the review period affects how long the relayer waits, not whether the user has already received funds.

A fill becomes a bonded refund claim

A relayer first pays the user on the destination chain from its own funds. Across records that fill so it can later be matched against the original deposit and included in a refund bundle.

Consider an illustrative transfer routed through a lifi bridge: a user deposits on one chain and wants funds on Arbitrum. A relayer sees the deposit and sends the user the agreed amount on Arbitrum, less the applicable fee. The user has their funds; the relayer has spent its own capital and now has a claim to be repaid.

Across’s off-chain dataworker gathers fills across chains, checks them against their deposits, and groups refund instructions with other settlement instructions. It represents those instructions as Merkle roots: compact commitments to the underlying lists. The dataworker posts a root bundle to the HubPool on Ethereum and stakes a bond behind the proposal. The bundle covers a defined block range and includes a relayer refund root, alongside roots for pool rebalancing and slow fills. [Across’s bundle specification](https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md) sets out the data the bundle must encode.

That batch approach changes the verification burden: instead of putting every fill check on-chain, the system commits to a bundle and allows time for someone to challenge it. For a lifi bridge user, the distinction is practical: the destination transfer can be fast even though the relayer’s reimbursement follows a later settlement process. Read how an Across bridge reaches settlement to see how the fill fits into the wider route.

A challenge sends the claim to UMA’s DVM

Anyone can dispute a proposed bundle during its challenge window by staking a dispute bond. The Optimistic Oracle forwards a dispute to UMA’s Data Verification Mechanism, or DVM, where UMA token holders vote on whether the proposal follows the bundle rules. Across proposes and executes the bundle, but it does not decide a contested claim itself. [UMA describes the DVM’s role in resolving oracle disputes](https://github.com/UMAprotocol/uma-docs/blob/master/protocol-overview/how-does-umas-oracle-work.md).

The vote matters because it determines which side’s claim is accepted and what happens to the bonds. If the DVM upholds the bundle, the challenger loses its bond; if the DVM rejects it, the proposer loses its bond. The losing side forfeits its bond, which gives both proposers and challengers a financial reason to act honestly. The bond does not replace the vote: it makes an incorrect proposal or an unjustified challenge costly.

If no one disputes the proposal in time, it passes the optimistic review and can be executed. If there is a dispute, the DVM’s decision settles that disagreement before execution. This is the trade-off in Across’s approach: bundling avoids checking every fill on-chain, while the challenge process and bonds make an incorrect bundle contestable. The settlement path depends on challengers being able to inspect the data and UMA voters resolving disputes against the applicable rules.

Once the bundle is accepted, its refund root is relayed to the relevant SpokePools. A relayer then presents a Merkle proof showing that its address and refund amount are included in the committed root. The SpokePool checks the proof and releases the refund. In the illustrative Arbitrum transfer, the relayer’s state has changed from “paid the user, awaiting repayment” to “refund claimed”; the user’s completed transfer remains the same throughout.

Where the repayment funds come from

Across repays relayers from liquidity supplied to the protocol’s shared pool and made available through its HubPool and SpokePools. The bundle also carries rebalancing instructions, which account for moving liquidity between the pools as settlement proceeds. The refund is therefore not a direct transfer from the user after the fill; the relayer fronts the user’s funds, then claims repayment through the protocol’s settlement system. [Across’s overview](https://github.com/across-protocol/user-docs/blob/master/how-across-works/overview.md) describes the relayer advance and the liquidity pool’s role.

For the relayer, the important interval is between paying the user and claiming the refund. An undisputed bundle clears that interval after the challenge window and execution steps. A disputed bundle can take longer because the DVM must decide the case. Either way, the already-filled user does not wait for the relayer’s claim to be resolved.

Related

Where does Across get the funds to repay relayers?

Liquidity providers supply capital to Across’s pool. The HubPool coordinates settlement, and SpokePools hold or receive the liquidity used to execute refunds on their chains. Bundle rebalancing instructions help move funds between those pools as needed.

Who runs the dataworker in Across?

The dataworker is a whitelisted off-chain actor that prepares and proposes bundles. It validates and aggregates the cross-chain activity, but anyone can dispute a proposal and UMA’s DVM decides a contested bundle. Signals to watch are whether a bundle is challenged, how the DVM resolves it, and when the accepted refund root reaches the SpokePool where the relayer claims repayment.