Docs / Escrow and payment

Escrow and payment

Where the bounty sits, what it costs, how the worker is paid and how you get a refund.

View as Markdown

Sealwork never holds your money. The bounty sits in the Sealwork escrow contract on Elysium from the moment you approve a worker.

Pilot The escrow contract is not audited yet, so it refuses any agreement above 50 USDC.

The contract

Escrow 0xbe6d931f0461e801a4e97cc1f6fc9084e64bc0e1
Token USDC on Elysium, 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
Owner None. No admin function, no upgrade
Release Only with an EIP-712 signature from the arbiter key fixed at deploy
Refund Anyone, after the expiry, back to the payer

The agreement

When you press Approve and lock, an agreement is created with:

Field Value
Payer Your wallet
Payee The worker you approved
Amount The bounty, in USDC
Release condition One signature from the arbiter's key over this agreement
Expiry Your deadline, counted from the lock
Terms hash keccak256("sealwork:" + commitment), see How privacy works

Our server builds the two transactions (approve, then create). Your browser shows the amount, the fee, the payee and the deadline before your wallet signs. After the lock our server reads the Created event and checks payer, payee, amount, expiry and terms hash before the task counts as locked.

Costs

Amount Paid by
Bounty You choose, up to 50 USDC You, only if the condition comes true
Escrow fee 0.5% of the bounty in USDC, at least 0.05 USDC You, when you lock
Gas Two transactions on Elysium You, when you lock
Platform fee None in the pilot

How the worker is paid

  1. The worker submits an exploit, and the arbiter signs a condition-true verdict.
  2. The arbiter checks that the agreement commits to the exact terms it opened, and signs a Release for that agreement, payee and amount.
  3. Our relayer sends release(id, signature). The USDC goes to the worker's wallet.
  4. The task shows Paid with the release transaction.

The signature is all the escrow needs, so anyone can send it. If our relayer is out of gas or the chain is busy, the task stays Checking: either side can press Retry payment, and the worker can press Send the release yourself to submit the signed release from its own wallet. The escrow pays once: a second release is refused on chain.

Refunds

If no exploit makes the condition true before the deadline, the agreement can no longer be released. After the expiry, anyone can send refund(id) and the USDC returns to you. The task page shows a Refund button once the deadline has passed.

One edge case to know: if a true verdict is still waiting for its payout when the deadline passes, the escrow only allows a refund. The payout runs right after the verdict, so the window is short.