Skip to content

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.