01 / 12
← → · ESC overview · P notes · C contrast
Built for Arc Microgrants · Circle × DoraHacks

Legwork

Standing USDC orders anyone can run — repaid the exact gas, same dollar, same transaction.

v1.1.1 Arc mainnet 5042 · 0x8E2F8AFC…1ccb
no oracle · no keeper network

Arc mainnet · 2026-09-18
30/30

mainnet runs — drift 0 gas, refund ÷ real fee 1.000000, on every row

gasUsed per run · 58,415rows 26–30: the payee ran it · 55,915
Before

The cron box ran dry

Monday: gas balance zero. The USDC sat right there. Nobody got paid, nobody got told.

payerUSDC gas token keeper network price oracle payee cron box · hot key gas 0
After

On Arc, gas is USDC

The deposit repays whoever ran it — exact gas plus a tip, same transaction.

58,415 gas × 20 Gwei = 0.0011683 USDC → executor

drift 0 · refund ÷ fee 1.000000 · block 21493741

Inside execute(id)

payerdeposit execute(id)← anyone g0 = gasleft() payee.call{amount} metered = g0 − gasleft() + OVERHEAD — measurement point — refund = metered × price executor.call{refund + tip} payee+ amount executor+ refund + tip receipt gasUsed = metered 58,415

The receipt

0x0a598c84…d04d

payee received
0.02 USDC
executor refundedExecuted.refund
executor tipped
real fee paidreceipt.gasUsed × effectiveGasPrice
−0.0011683
executor netdrift 0 · ratio 1.000000
Order #9 card on the live page: 0.001 USDC every 60 s, due now, deposit, runs left, refund cap, and the Execute — anyone can button
Live

Sixty seconds, one transaction

  • due · deposit · runs left · refund cap
  • Execute — anyone can
  • real fee beside the refund
  • video 2:17 — see BUIDL
Receipt — paid: payee received, executor refunded, executor tipped, real fee paid, executor net; the two 0.0011683 lines match

Why only Arc

On Arc

metered × tx.gasprice = USDC

Gas and deposit: one asset. The refund is arithmetic.

Anywhere else

metered × tx.gasprice = USDC

Gas is ETH, USDC an ERC-20 — the refund needs an oracle.

Run the proof

npm run recheck
30/30

drift 0 · ratio 1.000000

42 Foundry · 36 vitest · 20,000 cases

refusing payeepaused · executor repaid
not duereverts · 24,323
capped priceratio 0.6667

What we do not claim

  1. Executors so far: our two wallets.
  2. Every bench row at 20 Gwei.the 2× cap: tests + one receipt
  3. Explorer source unverified.
  4. Contract executors pay their own way.drift 0: plain accounts

A modifier, not a network

Any Arc function, run by anyone, repaid from its own USDC.

payrollretainerssubscriptionsDCAagent jobs
abstract contract Refunding {
  modifier repaysExecutor() {
    uint256 g0 = gasleft();
    _;
    _repay(g0 - gasleft() + OVERHEAD, _price());
  }
}

Fund the first outside executor

  • One microgrant: modifier + public executor bot
  • Arc office hours: 20 Gwei floor
  • then the Circle Grant Program

#/judge

The receipt is the argument.