Arbiter

Covered calls and refunds

The rules every covered call follows, from the payment to the release or the refund. All of it is enforced by the escrow contract or recorded by the proxy.

Life of a call

StatusMeaningNext
coveredPaid, the seller was paid, the price is locked in the seller's depositreleased after the window, refunded, or disputed
refunded100% of the price went back to the buyer (automatic refund or 7-day default)final
disputedThe buyer opened a dispute inside the window; the lock holdsresolved, or refunded after 7 days
resolvedA decision returned 0%, 50% or 100% of the price to the buyerfinal
releasedThe window closed without a dispute; the lock is free againfinal

Backing

The escrow checks the seller's free deposit before it accepts a payment: freeBond(seller) ≥ price. If the deposit is short, the proxy answers 503 and nothing is charged. A refund can never exceed the price of the call it refunds, and the locked amount can never exceed the deposit; both are tested as invariants.

Automatic refunds

Four failures can be measured without reading the answer, so they are refunded at once, in the same request, by the judge key calling autoRefund(callId, code):

CodeFailure
1The upstream answered HTTP 500 or above
2No complete answer within the promised latency (60 s at most)
3Empty response body
4The response is not JSON, or does not match the JSON Schema the seller declared
5The upstream could not be reached

The response then carries X-Arbiter-Refund: sent and X-Arbiter-Refund-Tx. HTTP 4xx answers are not refunded automatically: they usually mean the request was wrong, and can be disputed.

Disputes

Inside the window, the buyer can dispute any call with one line explaining what was wrong. Two ways, same result:

  • By API, without gas: POST /api/v1/calls/{id}/dispute with the reason, signed (EIP-191) by the wallet that paid. The judge key opens it on-chain.
  • On-chain: dispute(callId, reasonHash) from the paying wallet. This works even if this site is down.

How a dispute is decided is described in How refunds are decided. A buyer can open at most 10 disputes per service per day.

The 7-day default

A dispute that is not decided within 7 days is refunded in full by anyone calling refundUnresolved(callId). A disputed call can only end with a decision or with a full refund.

Fees

One fee per covered call, taken from the payment: 1% of the price with a floor of 0.005 USDG.

PartGoes to
0.5% of the price$ARBITER stakers, in USDG
0.5% of the priceThe burn vault, which buys $ARBITER and burns it
The floor above 1%The relayer wallet, which pays the gas of every covered call
Example: a 0.02 USDG call pays the seller 0.015 USDG at once. 0.0001 goes to stakers, 0.0001 to the burn vault, 0.0048 to the relayer for gas. A 2 USDG call pays the seller 1.98 USDG.

Records and privacy

For each call the proxy records the status, the latency and a hash of the response, and keeps the request and the response encrypted until the window closes plus 7 days, so a dispute can be read. Then the bodies are deleted; the hash and the on-chain record stay.