$ node foxwire.mjs new · rules signed once, run by bonded keepers

Contracts

Robinhood Chain, chain id 4663. Source verified on Sourcify. Hand-written ownership and reentrancy guard; the owner can set fees within hard caps (at most 0.1 USDG flat and 0.5 %), the router list, the burn vault, the minimum bond and, once, the $WIRE token. The owner cannot move user balances or keeper bonds.

ContractAddressRole
FoxwireVault0xd179F316e30ff0Ba5E55E76fE56e4002080541e5Balances, rules, triggers, actions, fees, arm, execute, attempt, claimMiss
FoxwireKeepers0x410abAD22E6e0a88b3e84CdBF4dbB519E22Ae09bRegistration, USDG bonds, cover locks, unbond delay, $WIRE stake
FoxwireExecutor0x39a788CEBbff577d0d2e991268143351fbE42410Runs one CALL action at a time with exactly its amount, holds nothing between runs
House keeper0xbF19357a7E95696c3f453f1a16c68680352bD75CThe default keeper of new rules
Burn vault0xf6144c1966cB5df1e17d20c102122158D685a2ADReceives half of every fee; buys $WIRE and burns it once the token is set

Main calls

deposit(token, amount) · depositETH() · withdraw(token, amount) · withdrawETH(amount)
createRule(trigger, action, params) · depositAndCreate(token, amount, trigger, action, params)
cancelRule(id) · arm(id) · execute(id) · attempt(id) · claimMiss(id) · close(id)
getRule(id) · rulesOf(owner) · checkTrigger(id) · previewTrigger(trigger) · missClaimableAt(id)

Tests

Unit tests for every trigger and action, fuzz tests that a rule never spends more than its amount times its runs, invariant tests that cover locks never exceed bonds, and a mainnet-fork test against the real NVDA Chainlink feed, a real V4 swap USDG to NVDA through the Universal Router, and a Pons V2 curve read.