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
mainnet runs — drift 0 gas, refund ÷ real fee 1.000000, on every row
Monday: gas balance zero. The USDC sat right there. Nobody got paid, nobody got told.
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
0x0a598c84…d04d
metered × tx.gasprice = USDC
Gas and deposit: one asset. The refund is arithmetic.
metered × tx.gasprice = USDC
Gas is ETH, USDC an ERC-20 — the refund needs an oracle.
drift 0 · ratio 1.000000
42 Foundry · 36 vitest · 20,000 cases
Any Arc function, run by anyone, repaid from its own USDC.
abstract contract Refunding { modifier repaysExecutor() { uint256 g0 = gasleft(); _; _repay(g0 - gasleft() + OVERHEAD, _price()); } }
legwork.edycu.dev/#/judge
github.com/edycutjong/legwork
#/judge
The receipt is the argument.