Method
The rule, written down. Same on chain.
The site and LunnorBudgetPolicy run the same integer steps. 24 shared test cases (day boundaries, rounding, both modes, random lists) are checked against both in every test run.
Units. Money in millionths of a dollar, quantity in millionths of a share, price in dollars with 8 decimals (the Chainlink format). Whole numbers only: no floating point anywhere, on the site or in the contract.
Order cost. quantity × price, rounded UP to the next millionth of a dollar. A cost is never understated.
Day. A day starts at the reset time. The reset is stored as minutes after 00:00 UTC; the site converts your local reset time with the offset on the test's start date. Daylight saving moves a local reset by one hour in UTC.
New day. The first order of a new day starts with the full daily budget. Unused budget does not carry over.
Runs. An order runs when its cost is at most the budget left AND at most the per-order cap (if set). Equal to the limit still fits.
Needs approval. Otherwise it needs approval. Shortfall = cost − the smaller of (budget left, per-order cap). The reason says which limit it broke; both can apply.
After that. The order that needs approval is assumed not to run (it waits for a person) and spends nothing. Hold the rest of the day: later orders that day are held. Keep checking: later orders still run if they fit.
Order. Orders are tested in time order. Equal times keep the order you typed. At most 200 orders per test.
Not covered. Fees, slippage, partial fills, market hours and the venue a bot trades on. The test checks a budget rule, not a trade.
Where the data comes from.
Stock tokens
Candidates: every BeaconUpgraded log of the Robinhood stock-token beacon from block 0 to 117,870,000 (212 contracts, 202 proven when scanned). The site re-proves each one live before offering it:
- runtime code hash = 0x6c1fdd40002dcb440c7fff6a84171404d279ccb057803b65826f7546acd65630
- ERC-1967 beacon slot 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50 = 0xe10b6f6b275de231345c20d14ab812db62151b00
- totalSupply() above zero (minting needs a role only the issuer holds)
Code hash and beacon alone can be copied by anyone; minted supply is what a copy cannot fake.
Prices
Chainlink Data Feeds on Robinhood Chain, matched to a proven token by ticker from the feed directory; each feed's description() was read on chain. 36 tickers have a feed (40 feeds, some with a 24/7 twin). latestRoundData() is read live; a price older than the heartbeat (24 h) plus 10 minutes is not used.
ETH / USD reference: 0x78f3556b67e17df817d51ef5a990cdaf09e8d3a9
A feed is a reference price. During market hours the market-hours feed moves with trading; outside them it can be hours old. A bot's fill price can differ.
What runs, what is planned.
- Limit TestPrototype
Set a daily budget, an optional per-order cap and the hour your day resets, then list the orders your bot would send. Lunnor walks them in time order and shows the budget left after each one, the first order that needs your approval and how far it is over.
A simulation. It never places, approves or blocks a real order, and it does not connect to your bot.
- Live stock pricesPrototype
Every order can use the latest Chainlink price for its stock token on Robinhood Chain, with the feed address and the time it was last updated.
Only tickers with a Chainlink feed on the chain. Others take a price you type, marked Manual. A feed price is not the price a bot would fill at.
- Real stock tokensPrototype
The token list holds only Robinhood stock tokens proven on chain (proxy code, beacon slot, minted supply), never a ticker look-alike.
The list starts from a scan of the beacon's logs; a token issued after the scan appears after the next scan.
- Your holdingsPrototype
Connect a wallet to see its stock-token balances next to the test. Optional: the test works without a wallet.
Read only. Lunnor never asks to move tokens.
- Policy on chainPrototype
LunnorBudgetPolicy stores your bot budget as versions you can never rewrite, runs the same test as a view function, and can anchor a test run so its result can be checked later.
Live on Robinhood Chain and verified on Blockscout. Saving and anchoring need a wallet and gas in ETH.
- Live bot hookConcept
A check your bot calls before each order, using the stored policy.
Not built.
- AlertsConcept
A message when a running bot gets close to its daily budget.
Not built.
- $LUNNORConcept
Planned for larger saved test sets and alert quotas.
Not built. Every feature above works without the token.