Real work, verified.
How Eden works end to end: launching and trading, scoring and the math behind it, rewards and ROOT, the contracts and oracle, security, operations and the developer guide. Investors: investor site. Fees and revenue: revenue model.
Product
Eden is a launchpad and scoring network for early-stage AI companies on Robinhood Chain (chain id 4663). A company launches a token for its product's utility, not its equity. The token trades from the first second, and every trade pays a fee. That fee is shared with the token's holders, with the people who research the project, with the ecosystem index and with the company. The company's own share grows only as it proves, with real data, that it does real work.
ROOT is the protocol token: 1,000,000,000 were minted once at genesis, minting is renounced, and the supply only shrinks.
1. Who it is for
| Participant | What they do | What they get |
|---|---|---|
| Creator (an AI company) | Launches a token, declares private data sources, buys and vests part of the supply | A fee share that rises with its score; liquidity without dilution |
| Holder | Buys and holds a project token | A share of every trade on that token, paid in the token's pair asset |
| Scorer | Stakes ROOT, publishes a sourced thesis on a project | Rewards streamed every second from that project's fees, in its pair asset |
| Eden | Runs scoring, verification, operations and incubation | Protocol revenue; manages the EDEN index and grants |
2. Tracks
Every launch picks one of nine tracks. Each track is scored by rules that fit what it produces.
| Track | Example output that is scored |
|---|---|
| Compute | Metered GPU hours, uptime from independent probes |
| Inference | Tokens served, latency against an SLO |
| Models | Revenue and usage of the model's product |
| Data | Licensed and delivered datasets |
| Agents | Resolved tickets, merged pull requests, closed deals |
| DePIN | Fleet tasks, verified coverage, energy delivered |
| Commerce and payments | On-chain settled volume |
| Apps | Paid revenue (processor payouts reconciled against bank records) |
| Research | Papers by proven authors: quantity, form quality, citations, code and data artifacts |
Live data integrations exist today for research, apps, developer agents and on-chain commerce. The other tracks are connected per project at onboarding.
3. Launch
- The creator picks a track and a pair asset: ETH, USDG (a dollar stablecoin), or any of the 194 tokenized stocks on Robinhood Chain. Everyone who earns from the token is paid in its pair asset.
- Launching burns $500 of ROOT. There is no cash launch fee.
- Each launch mints 1,000,000,000 tokens. The creator must buy at least 20 % of supply at launch (up to 80 %). The mandatory 20 % is always vested (30 days to 4 years, in a lock nobody can override).
- At launch the creator also fixes, permanently, what share of future fee income (0–90 %) buys back their own token and locks it for 5 years.
- The creator declares data sources (helpdesk, repository, payment processor, papers…). Sources are never public. On-chain they are stored only encrypted to the scoring oracle's key, with a commitment.
A creator can pay with ETH or USDG for a launch on any pair: the zap swaps to the pair asset and buys in the same transaction. Wallets that support batched calls (EIP-5792) confirm a launch or trade once; token approvals use signed permits where the token supports them.
4. Trade: bonding curve → graduation
- Trading opens immediately on a bonding curve: the price rises as people buy. 80 % of supply is sold on the curve.
- An anti-snipe tax starts at 99 % and decays to zero over the first 15 seconds.
- A launch graduates when its curve has raised the equivalent of $12,500 in its pair asset (5 ETH, 12,500 USDG, or the stock amount set from the stock's price on the day the pair was approved).
- At graduation a Uniswap v4 pool is seeded at exactly the curve's last price with the funds raised and 16 % of supply. That liquidity is locked forever. The remaining 4 % is locked in the launch locker and never circulates.
- For about 12 seconds after graduation a single trade cannot take more than 1 % of the pool's tokens.
- The same 3 % fee applies on the curve and in the pool, enforced by the pool hook. Creators can never add their own tax.
| ETH pair | USDG pair | Stock pair | |
|---|---|---|---|
| Starting market cap | ≈ 1.25 ETH | ≈ $3,125 | ≈ $3,125 in the stock |
| Raised at graduation | 5 ETH | 12,500 USDG | ≈ $12,500 in the stock |
| Supply sold on the curve | 80 % | 80 % | 80 % |
5. Score
Eden acts as a third-party auditor of early-stage AI companies. The score (0–100) sets each project's fee share, scorer rewards and grant eligibility. Every project starts at 0. Token price, trading volume and holder counts are never inputs.
Systematic score. Each week the scoring oracle re-fetches each project's real output from its own systems, normalises it within the track (clipped at the cohort's 5th / 95th percentiles), smooths it over time so one spike earns little, and publishes every project's score in one signed commitment on-chain. A 72-hour challenge window follows every commitment, during which adjudicators can dispute it.
Human scores. Anyone can become a scorer:
- stake 2,500 ROOT (returned on exit after a 7-day cooldown) and burn $100 of ROOT once to join;
- burn $100 of ROOT on every score and re-score;
- publish a written thesis with cited sources. An AI reviewer checks that the sources exist and say what the thesis claims, against a published rubric. Copies, dead links and attempts to game the checker earn nothing. The review sets reward weight only; it never moves the public score.
Before a project has data, the first human score can move it up to 20 points and later scores up to 5 points each, capped at 50. Once real data exists, human scores nudge the data-driven score within a narrow band.
The exact formulas for every step, with worked examples: Scoring and rewards math.
Verification. "Verified" is a badge Eden's team sets after a manual review. It is never automatic, never expires, and is revoked only manually. Its one economic effect: an unverified project with no data starts its creator at a lower floor and has its score capped at 50 (see Tokenomics).
6. Earn
| Who | How they are paid | When |
|---|---|---|
| Holders | Weekly snapshots of holdings; claim the pair asset per token | Claimable 24 h after each snapshot, for 90 days; unclaimed amounts roll into the next round |
| Scorers | Rewards stream per second while a score is active (30 days per score), weighted by √stake × thesis quality, capped per scorer | Withdraw any time |
| Creators | Score-based share of the fee, after the locked-liquidity and buyback carve-outs | Claim any time from the creator escrow |
| Eden, grants, scoring oracle, EDEN index | Fixed lanes of the protocol share | Each fee sweep |
Every claim pays only the wallet that owns it: holder payouts, scorer rewards and creator fees go to the signing wallet (or, for a holder, to a recipient that wallet signs for). No operator can redirect them.
7. ROOT, burns and the EDEN index
- ROOT is burned on every launch, every scorer registration, every score and re-score, by the weekly buyback, and whenever scorer rewards go unearned. Half of every buyback is added to ROOT's own pool as liquidity that can never be withdrawn.
- The EDEN index converts part of every fee into a basket of tokenized AI-economy stocks (NVIDIA, Tesla, Intel, AMD, Nebius, CoreWeave, Bloom Energy to start). It only buys, and slows its buying in volatile markets.
- Full detail: Tokenomics.
8. What Eden controls
Admin powers sit with a 2-of-3 Safe multisig. Loosening a parameter or re-pointing a contract waits 48 hours in an on-chain timelock; tightening applies immediately. The Safe can stop new launches at once but cannot touch curves, pools, locked liquidity, vesting or anyone's claimable funds. Detail: Security.
Figures reflect the mainnet launch configuration. Nothing here is investment advice.
Scoring & rewards math
The formal derivation of how Eden measures a project, commits the result on-chain, and turns it into payouts: the scoring functional, the on-chain commitment, the human-score blend, scorer rewards, the per-score burn and its price, holder payouts, the bonding curve and the liquidity-growth slices.
Every formula below was checked against the code that runs it (the scoring pipeline, the scoring contracts and the launch and fee contracts). Where the code rounds, clamps or orders operations in a specific way, the formula says so. For each stage there is a short argument for why it cannot be gamed and why it is good for honest participants.
Fee rates and the split between fee lanes are not part of this document. Where a payout depends on them they appear as symbols — for example for the share of a token's fee that funds its scorers. The published rates are in Tokenomics.
1. Notation
| Symbol | Meaning |
|---|---|
| Scoring epoch (7 days) | |
| A cohort: all projects of one track (and, for DePIN, one adapter family) in epoch | |
| A project (a launched token) | |
| Verified raw value of feature for project in epoch (failed claims removed, §2.1) | |
| Normalised feature | |
| Published weight of feature ; dispute-rate penalty weight () | |
| Dispute rate: share of project 's claims that failed verification this epoch | |
| Weighted score before the gate | |
| Smoothing constant of the moving average () | |
| Per-project cap on the share of the epoch's score mass () | |
| Published systematic score (WAD fixed point, ); shown as – | |
| The project's latest attested (final, on-chain) systematic score | |
| Maximum relative human adjustment () | |
| Thesis quality of scorer (–) and originality multiplier (, , , ) | |
| Scorer 's ROOT stake | |
| Scorer reward weight | |
| c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 | |
| c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 | |
| c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 | |
| s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 | |
| c69,-144,104.5,-217.7,106.5,-221 | |
| l0 -0 | |
| c5.3,-9.3,12,-14,20,-14 | |
| H400000v40H845.2724 | |
| s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 | |
| c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z | |
| M834 80h400000v40h-400000z"/>⋅qk | |
| Per-scorer reward cap (, i.e. 5 % of a token's pool rate) | |
| Protocol shares that fund scorers, holders and token liquidity growth (values in Tokenomics) | |
| ROOT/USD price used for burns |
WAD arithmetic: all scores, weights and shares are integers scaled by ; divisions round down unless stated otherwise.
2. The systematic score
Computed once per epoch for every live project, off-chain, by a deterministic pipeline. Two runs of the same model version over the same verified inputs produce the same Merkle root bit for bit.
2.1 Verified inputs
Before any math runs, each claimed number from a project's own systems is checked:
- it must carry a valid signed attestation from the registered source key, and
- where an independent re-fetch exists, the claim must reconcile with it, and the re-fetched value is the one used:
A claim that fails either check is dropped (contributes nothing) and counts against the project:
Token price, trading volume, holder counts and liquidity are never inputs.
2.2 Winsorised min–max normalisation
Within the cohort, each feature is clipped at its 5th and 95th percentiles and scaled to . Percentiles are nearest-rank on the sorted cohort column: .
Example. A cohort of 20 agents reports resolved work . Nearest rank gives and . The outlier at 400 is clipped to 28 and scores — exactly what 28 scores. A project at 14 scores .
Why it cannot be gamed. Above the cohort's 95th percentile, more of a metric adds exactly nothing. The bounds are a statistic of the whole cohort, so one project cannot move its own clip points. Why it is good. Heavy-tailed metrics become comparable, and one giant cannot flatten every honest mid-sized project into the bottom of the range.
2.3 The scoring functional
A published, version-pinned linear functional of the normalised features, minus a penalty for failed claims, floored at zero:
Each track has its own weight vector. The newer vectors (inference, data, DePIN families, commerce, research) are tiered by how expensive a metric is to forge and validated on publication: , every self-reported metric capped at combined, every counterparty-verified metric at each. Illustratively, for the agent track:
The marginal score of a unit of verified output is the constant .
Why it cannot be gamed. The weights are public constants set by governance and pinned to a model version; no participant supplies them and nothing is learned from submissions. A change of weights is a new version and applies only to future epochs. Why it is good. Any diligence team can recompute a score by hand from the published features, and a project can forecast its score from its own operations.
2.4 Eligibility gate
is a per-track merit floor (for example for agents and research, for apps); is a floor on absolute verified output.
Why it cannot be gamed. The gate reads only verified output. Capital, liquidity and wash volume are not inputs, so they cannot buy a project over the floor. Why it is good. The score — and everything paid from it — goes to projects that demonstrably deliver.
2.5 Temporal smoothing
where is the project's published score of the previous epoch ( for a new project). Unrolled, : memory of about epochs.
Example. A one-epoch spike to followed by zeros publishes . A project steadily at climbs .
Why it cannot be gamed. A manufactured spike earns only of itself and decays geometrically. Sustaining an inflated score requires sustaining verified output — that is, doing the work. Why it is good. Honest projects get a stable score that absorbs normal week-to-week variance.
2.6 Anti-capture share cap
The smoothed scores are turned into shares of the epoch's score mass and capped. With over all scored projects and :
where is the total excess above the cap and the total mass of uncapped projects. The map is iterated to a fixed point (at most 64 passes); the published value is , so and no project exceeds . The renormalisation is iterated because a single clamp would let redistribution push a survivor back over the cap.
Why it cannot be gamed. The payoff to being the largest project is bounded by the cap. Splitting into several projects gains nothing: each part has to clear the gate on its own verified output. Why it is good. The score mass stays spread across many real businesses.
2.7 Fixed point
Scores feed the creator's fee share (§7), human-score weights (§3) and grant eligibility. There is no protocol-wide emission pool: no score is ever converted into newly issued tokens.
3. The commitment
3.1 Merkle root
Every epoch's scores, thesis-quality grades and pre-data human scores are leaves of one tree. Leaves are double-hashed ABI encodings; pairs are hashed commutatively (sorted), the OpenZeppelin convention:
, are fixed domain tags (so a quality or human leaf can never collide with a score leaf), the thesis hash, the originality verdict, the thesis it matched. The epoch is bound by the root being stored per epoch.
3.2 Signature
The root is signed with EIP-712 (domain: name, version, chain id, registry address):
is a Merkle root over per-project input commitments: for a project whose inputs are private it is a salted hash, so the oracle is bound to a fixed input set without publishing it.
3.3 On-chain acceptance and the challenge window
The registry accepts a root only if the signature recovers to the authorised signer, the epoch is the next one, the expiry has not passed, and the proposer escrows a bond. The root is then pending for h. During that window anyone may challenge it with an equal bond; an adjudicator resolves it (upheld: the bond goes to the challenger and a corrected root may be submitted; rejected: the bond goes to the proposer and a fresh window starts). Only final roots can be read:
Verification costs hashes and no per-project storage.
Why it cannot be gamed. Changing any one leaf changes the root and breaks the signature; replay and reordering fail the epoch check; stale roots fail the expiry check; and a wrong root can be disputed before anything reads it. Why it is good. One signed root a week serves any number of projects, and any third party can check any single score.
3.4 Trust model
At launch one accountable signer signs, bonded and challengeable. The planned path is an m-of-n signer committee, then staked attesters who can be slashed when a signed root contradicts the re-fetched data. The read interface does not change between stages, so hardening trust never touches the payout path.
4. Human scores
Scorers stake ROOT, burn ROOT on every score (§6) and attach a thesis with cited sources. A human score can nudge a real systematic score, never create one.
4.1 Thesis quality
is computed by code. is the mean of three rubric criteria (relevance, specificity, consistency of the score with the thesis), taken as the median of three model samples; any result at or above is re-graded by an independent verifier and the lower value kept. Copy detection runs in submission order and sets the multiplier . A thesis that tries to instruct the grader scores . Grades are leaves in the epoch root (§3.1) and an adjudicator can override any grade on-chain; the override wins.
4.2 Projects with an attested systematic score
With the move scorer proposes (their submitted score minus ), and only theses with counting:
The normaliser is , not , so the envelope is not divided away: the quality-weighted mean of the proposed moves.
Example. , so the envelope is . Three scores: , and . The third is below the quality floor and does not count. , so .
Why it cannot be gamed. : a systematic zero stays zero and a top score cannot be pushed further. The move is bounded by of however many wallets submit. Each scorer can submit at most once every 14 days across all projects, every submission burns ROOT, and a copied or ungrounded thesis carries no weight. Why it is good. Human judgment counts most where the data is most ambiguous (the middle of the scale) and not at all where the data is decisive.
4.3 Projects with no data yet
The score starts at and the submissions are replayed in order. For each counting submission () with target :
(points on the – scale). A non-counting submission does not use up the first slot. A project verified by Eden's manual review keeps the same steps with a cap of . The first attested systematic score ends this mode permanently.
Example. Scores of 80 (), 60 (), 10 () move the project .
4.4 Adjudicators
Adjudicators can (1) uphold a challenge against a root, (2) override a thesis grade or originality verdict, and (3) set or revoke the manual "Verified" badge. Verified never changes a score; it only lifts the pre-data cap (§4.3) and the creator's starting floor (§7). Adjudicators are never signers.
5. Scorer rewards
Each token's scorers are paid from that token's own fees, in its pair asset (ETH, a stablecoin or the stock it trades against), never in ROOT. Rewards stream per second and can be withdrawn at any time.
5.1 Funding and the drip
A share of each fee on token funds that token's pool. Each funding is released linearly over days. With the undripped balance and the end of the current drip:
So a large fee spike cannot be captured by whoever scores that afternoon.
5.2 Positions and weight
A score opens a position that starts earning when its quality grade is proven on-chain against a final root, and ends at
A re-score replaces the position (new grade, new window); a request to unstake ends every position of the scorer in the same transaction. One open position per scorer per token. The weight is
is the integer square root of the stake in wei; only ratios matter. A stake 100 times larger earns 10 times the weight.
5.3 The cap and the conservative denominator
Let over earning positions and . Exact per-scorer capping of a shared stream is non-linear, so the contract divides by
Since and :
No scorer ever exceeds the cap and the pool is never overpaid. It is exact when the cap does not bind, exact for the heaviest scorer when it does, and exact for equal weights; lighter scorers in a capped pool earn — less than an exact water-filling would pay. That is the documented price of a constant-gas accumulator. is tracked in logarithmic weight classes ( wide) and can only be stale on the high side, which lowers payouts, never raises them.
Example. Three scorers: A stakes 2,500 ROOT with (), B stakes 10,000 with (), C stakes 250,000 with (). , . C earns of the pool rate, A , B ; is paid and the rest is burned. With 20 or more scorers of equal weight, and everything is paid; with fewer, some of every drip always burns.
5.4 Accumulator
Every event that changes or (a proof, an expiry, a re-score, an unstake, a cap change) first advances the token to that instant, so and are constant on every segment . Per segment and pair asset, with :
(with no earning weight the whole is returned). Scorer is owed for the time its weight was in .
5.5 Unearned rewards and solvency
Everything not paid — cap excess, positions below the quality floor, time with no earning scorer, rounding — is returned in the pair asset to the ROOT buyback, bought as ROOT and burned. Per token and pair asset the contract keeps
which is checked by a fuzzed invariant test.
Why it cannot be gamed. A lump of fees is dripped; a scorer's share is capped; the square root makes splitting a stake into many wallets gain at most a factor , which the per-score burn makes unprofitable (§6); payouts go only to the scorer's own wallet. Why it is good. Scorers are paid for the effort and evidence of a thesis, in a real asset, continuously; there is no ROOT reward to dump.
6. The per-score burn and the ROOT price
6.1 Sybil floor
If is the expected reward of one position on token , splitting one stake into wallets multiplies reward by at most and burns by . Splitting pays only if , i.e. , which is largest at :
is published per token by governance with its derivation hash; until published, the burn is $100. Becoming a scorer additionally requires a 2,500 ROOT stake (returned after a 7-day cooldown) and a one-time $100 burn.
6.2 Price
The burn is charged in ROOT at a keeper-free price read from ROOT's own pool:
The mean tick is rounded toward the lower ROOT price; the pool hook truncates each recorded tick move to 9,116 ticks per elapsed second; the anchor window shortens to the pool's age when it is younger than 4 h. The price fails closed (no burn, no score) when Chainlink is older than 25 h, the window is not covered, or the amount is out of bounds.
Why the minimum. A lower ROOT price burns more ROOT and raises the buyback's minimum-out floor, so the minimum of the two windows is the protocol-favourable side for every consumer. Pushing the price up to make burns cheaper must be held for hours to move the 4-hour anchor; pushing it down only makes the payer's own transaction revert against their cap.
7. Creator share — the score ramp
The creator's share of their token's fee is linear in the latest final score :
, and the ceiling are published in Tokenomics. The share is recomputed each epoch and moves both ways; there is no grace period and no decay clock. The unearned part is redirected to the other lanes, never kept. Of the creator's payout, a fixed share becomes permanently locked liquidity (§9) and a launch-time share goes to the creator's own token buyback.
8. Holder payouts
Each epoch, for token and pair asset , balances are snapshotted at a past block , excluding pool, curve, locker, hook, escrows, vesting locks, vaults, the distributor, and . With the amount allocated from the holder pot ( available):
The root is claimable after a 24-hour review delay and for 90 days; a leaf pays once, only to its account (or a recipient that account signs for). After 90 days the unclaimed remainder rolls into the next round.
Why it cannot be gamed. A buy after the snapshot, or a transfer to a fresh wallet, earns nothing for that epoch; the leaf is bound to this distributor, chain, token, asset and epoch. Why it is good. Holders are paid in a real asset whatever the project's score; the holder lane is never throttled.
9. Bonding curve, graduation and liquidity growth
9.1 Curve
A constant-product curve with a virtual quote reserve that is never held. With total supply , real quote raised and token reserve :
( is the trading fee, taken from the quote leg before the swap; is the opening anti-snipe tax, decaying linearly to 0 over the first 15 s). Graduation happens at exactly ; the crossing buy is clamped to the sellable remainder and the excess refunded. Eden uses for every pair (1.25 ETH : 5 ETH, or $3,125 : $12,500):
9.2 Graduation
The Uniswap v4 pool is seeded at the curve's last price with the quote raised and the matching token amount, :
The position and the remaining 4 % are locked forever. Every launch on a given pair graduates with the same amounts and the same opening price.
9.3 Liquidity growth
A share of each creator payout is held for the token's pool (escrowed on the curve, added at graduation). Each sweep spends half the accrued quote buying the token in its own pool and adds both legs as a new full-range position owned by the launch locker — it can grow, never be withdrawn. Half of the ROOT bought by the buyback is treated the same way in ROOT's own pool (sell half for ETH, add both legs, locked in the genesis liquidity contract); the other half is burned.
10. What changed from the earlier math
| Earlier design | Now | Why |
|---|---|---|
| Scores split a fixed per-epoch emission pool, | No emissions. Scores drive the creator ramp, human weights and grants | Protocol-wide emissions were retired |
| Backers paid by a | ||
| c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 | ||
| c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 | ||
| c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 | ||
| s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 | ||
| c69,-144,104.5,-217.7,106.5,-221 | ||
| l0 -0 | ||
| c5.3,-9.3,12,-14,20,-14 | ||
| H400000v40H845.2724 | ||
| s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 | ||
| c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z | ||
| M834 80h400000v40h-400000z"/> emission curve with a whale skim and per-project registration | Scorers paid from each token's own fees, | |
| c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 | ||
| c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 | ||
| c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 | ||
| s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 | ||
| c69,-144,104.5,-217.7,106.5,-221 | ||
| l0 -0 | ||
| c5.3,-9.3,12,-14,20,-14 | ||
| H400000v40H845.2724 | ||
| s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 | ||
| c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z | ||
| M834 80h400000v40h-400000z"/>⋅q, 5 % cap, unearned burned | The scorer reward replaced both | |
| Gate zeroed a project for any unverified attestation | Failed claims are dropped individually and raise ; gate adds a merit floor | Matches the pipeline: one bad claim should not erase verified output |
| Normalisation denominator | Degenerate cohort maps to ; nearest-rank percentiles | Integer arithmetic, deterministic |
| Single clamp | Iterated clamp-and-renormalise on shares, cap at least | A single clamp can be undone by renormalisation |
| Leaf ; signed | Double-hashed leaf plus tagged quality and human leaves; signed ; 72 h bonded challenge window, final-only reads | Grades and private-input commitments ride in the same root |
| Human blend: stake-weighted median | Quality-weighted mean, envelope , normalised by | Rewards effort and evidence, not stake |
| Creator share decayed until verified | Linear ramp with two floors, no grace window | Simpler, and moves both ways |
| Scorer pool paid in weekly cycles | Per-second accumulator, 7-day drip, 30-day windows | Withdraw any time; no cycle snipe |
| Burns priced by a posted ROOT price | Chainlink | No keeper in the price path |
11. Where it lives
| Stage | Code |
|---|---|
| §2 verification, normalisation, functional, gate, EMA, cap | scoring-oracle services/src/normalize, services/src/score |
| §3 Merkle, signature, challenge window | scoring-oracle services/src/merkle, services/src/sign, AttestationRegistry |
| §4 quality, blend, pre-data steps | scoring-oracle services/src/quality, services/src/blend, HumanScoreRegistry |
| §5 scorer rewards | launch-curve-graduation ScorerRewards |
| §6 burn and price | ValidatorRegistry, RootTwapOracle, RootFeeHook |
| §7 creator ramp | CreatorRouting |
| §8 holder payouts | HolderDistributor, scoring-oracle services/src/holders |
| §9 curve, graduation, liquidity growth | EdenV2BondingCurve, EdenV2GraduationMath, EdenV2LPGrowthVault, RootLPGrowthVault |
Parameter values are the mainnet launch configuration. Values marked as published by governance change only through the 48-hour timelock. Nothing here is investment advice.
Tokenomics
ROOT supply, genesis, burns, the trading fee and where every part of it goes, scorer rewards, holder payouts, the buyback, and the treasury and EDEN index. Every number here is the mainnet launch configuration, read from the deployed contracts of the rehearsal and the hosted demo.
1. ROOT
| Total supply | 1,000,000,000 ROOT, minted once at genesis |
| Minting | Renounced in the genesis transaction (minter = 0, sealed); mint is also hard-capped at 1 B |
| Emissions | None. No ROOT is ever issued as a reward |
| Role | Protocol token: burned by participation, bought back by fees, governs nothing on-chain at launch |
| Market | ROOT/ETH Uniswap v4 pool with its own hook; genesis liquidity locked forever |
| ROOT pool fee | 2 % of each ROOT pool trade, to Eden (adjustable only within 1–3 %) |
1.1 Genesis split
| Bucket | Share | ROOT | Terms |
|---|---|---|---|
| Liquidity | 15 % | 150 M | Seeds the ROOT/ETH pool with 5 ETH; the position is locked permanently |
| Treasury | 30 % | 300 M | Eden treasury (multisig), backs the treasury and index programmes |
| Team | 20 % | 200 M | Stepped lock: 3-month cliff, then 16 equal quarterly releases, fully vested at month 48. Immutable |
| Incubation | 20 % | 200 M | Backs projects Eden incubates; kept separate from the treasury; positions disclosed |
| Community | 15 % | 150 M | Incentives and community programmes |
In the same transaction that seeds the pool, Eden buys ROOT with 10 ETH. The receiving wallet is private.
2. Burns
| Action | Burn | Notes |
|---|---|---|
| Launch a token | $500 of ROOT | No cash launch fee |
| Register as a scorer | $100 of ROOT, once | Plus a 2,500 ROOT stake, returned after a 7-day unstake cooldown |
| Score or re-score a project | $100 of ROOT per score | Inside the score transaction |
| ROOT buyback lane | 50 % of the ROOT bought | The other 50 % becomes locked ROOT/ETH liquidity |
| Unearned scorer rewards | 100 % | Above the per-scorer cap, or earned while nobody scores: bought as ROOT and burned |
USD-denominated burns are priced by the keeper-free ROOT/USD oracle (see Architecture). They fail closed when the oracle cannot price; they never fall back to the pool's spot price.
3. The trading fee
Every trade pays 3 %: on the bonding curve and, after graduation, in the Uniswap v4 pool through Eden's hook. The rate is the same for every token, and creators can never add a tax (the creator-tax ceiling is 0).
Half of the fee is the creator bucket, half the protocol bucket.
3.1 Where the fee goes
Shares of the whole 3 % fee. "Unearned" is the part of the creator bucket the creator has not yet earned through score (section 3.2).
| Destination | Fixed share | Plus, of the unearned creator share | Paid in |
|---|---|---|---|
| Creator | 30 → 50 % with score (10 → 30 % if unverified with no data) | — | Pair asset (after the carve-outs in 3.3) |
| Holders of the token | 5 % | 10 % | Pair asset |
| EDEN index | 10 % | 25 % | Stablecoin, deployed into stocks |
| Scorers of the token | 9.25 % | 12.5 % | Pair asset, streamed |
| ROOT buyback | 9.25 % | 12.5 % | Bought as ROOT: half burned, half locked liquidity |
| Eden (protocol revenue) | 10 % | 40 % | Pair asset |
| Grants | 5 % | — | Pair asset |
| Scoring oracle operations | 1.5 % | — | Pair asset |
Worked shares for a verified or data-backed project:
| Score 0 | Score 100 | |
|---|---|---|
| Creator | 30 % | 50 % |
| Holders | 7 % | 5 % |
| EDEN index | 15 % | 10 % |
| Scorers | 11.75 % | 9.25 % |
| ROOT buyback | 11.75 % | 9.25 % |
| Eden | 18 % | 10 % |
| Grants | 5 % | 5 % |
| Scoring oracle | 1.5 % | 1.5 % |
For an unverified project with no data the creator starts at 10 % and its score is capped at 50, so it can reach at most 30 %; at score 0 the redirected 40 % lifts holders to 9 %, the index to 20 %, scorers and the buyback to 14.25 % each and Eden to 26 %.
3.2 Creator share
creator share = f + (50 % − f) × score / 100
f = 30 % if the project is verified or has an attested systematic score
f = 10 % otherwise (and the score is capped at 50)
The share is recomputed every epoch from the latest published score and can fall as well as rise. There is no grace period.
3.3 What happens to the creator's share
- 10 % of it always becomes locked liquidity in the token's own pool (held back on the curve and added at graduation; released to the creator if the token has not graduated 180 days after launch).
- The creator's buyback share (0–90 %, fixed at launch) buys the project's own token and locks it for 5 years. The creator can pause and resume it; Eden can pause it but never switch it on.
- The rest is claimable by the creator, in the pair asset, from the creator escrow.
3.4 Other inflows
Realised treasury yield (interest, dividends) is routed through the same fee router with its own split: Eden 20 %, ROOT buyback lane 47 %, grants 10 %, scoring oracle 3 %, EDEN index 20 %. There is no launch fee, so the launch-fee route carries nothing.
4. Scorer rewards
Each token's scorer lane funds that token's scorers, in that token's pair asset. There is no ROOT reward and no protocol-wide pool.
| Rule | Value |
|---|---|
| Weight | √stake × thesis quality (quality 0–1; below 0.3 earns nothing) |
| Accrual | Per second, from the moment the thesis grade is proven until 30 days after the score was made |
| Withdrawal | Any time; pays only the scorer's own wallet |
| Smoothing | Each funding is dripped over 7 days so a lump cannot be sniped |
| Cap | No scorer earns more than 5 % of a token's pool rate (adjustable 0.01–100 %, 48 h timelock, never retroactive) |
| Unearned | Above the cap, or with nobody scoring: sent to the ROOT buyback and burned |
| Unstaking | A request to unstake stops earning immediately |
| Rewarded scores | One open score per scorer per token |
The cap is applied conservatively: it never overpays. When a token has few scorers, lighter scorers are paid less than their exact capped share, and the remainder is burned. This is a documented trade-off.
The formulas — weight, drip, the conservative cap denominator, the accumulator and the solvency bound — with worked examples are in Scoring and rewards math.
5. Holder payouts
- Each week the holder poster publishes one Merkle root per token and pair asset, built from on-chain balances at a snapshot block. Contract balances (the curve, pool, vesting locks and protocol vaults) are excluded.
- A holder's leaf becomes claimable 24 hours after the root and stays claimable for 90 days. Unclaimed amounts then roll into the next round.
- A claim pays the leaf's owner; the owner may sign for a different recipient (for example a contract that cannot receive ETH). The holder share is never reduced by the creator's score.
6. ROOT buyback
- The buyback lane is booked per token and swapped for ROOT on the ROOT/ETH pool by the fee keeper.
- Every swap has an oracle floor: the minimum ROOT out is derived from the keeper-free oracle, with a maximum slippage of 7 %, and each call is capped at the equivalent of $12,500 (5 ETH or 12,500 USDG). The keeper also holds the buyback while the short and long oracle windows disagree.
- Of the ROOT bought, half is burned and half is added to the ROOT/ETH pool as liquidity nobody can withdraw.
- Stock pair assets without a liquid route to ETH accumulate in the buyback vault until a route exists.
7. Treasury, grants and the EDEN index
- EDEN index. The index lane is paid in stablecoin and deployed periodically into a basket of tokenized AI-economy stocks. Starting weights: Nebius 17.25 %, CoreWeave 17.25 %, Bloom Energy 17.24 %, AMD 13.79 %, NVIDIA 11.49 %, Tesla 11.49 %, Intel 11.49 %. It is long-only, never sells to fund rewards, and a per-epoch deployment cap throttles buying in volatile markets. Index prices are pushed by a dedicated publisher key (on a 0.25 % move or hourly) and fail closed when stale.
- Index token. The basket is wrapped in a transferable ERC-20 whose net asset value is published per epoch. Creation and redemption are restricted to authorised participants.
- Treasury. The 30 % genesis bucket and realised yield fund the treasury book; yield is routed back through the fee router (section 3.4).
- Grants. The grants lane accrues to a grants treasury that funds non-dilutive grants to consistently scored projects.
8. Values that are still open
Sleeve targets for the treasury book, the index token ticker, the per-epoch index deployment cap and risk parameters, the grants round size and council, and the authorised participants are decided before the treasury and index programmes start; they do not affect launch, trading, scoring or fees.
Figures are the mainnet launch configuration. Parameters marked adjustable change only through the Eden Safe and the 48 h timelock. Nothing here is investment advice.
Architecture
How Eden is built: the contract stacks, who can do what, the timelocks, the price oracle, pairs and the zap, the indexer, operations and keepers, and how private data stays private.
1. Chain
- Robinhood Chain mainnet, chain id 4663 (Arbitrum Orbit). Blocks arrive at about 9.7 per second; the sequencer is first-come-first-served with no public mempool.
- Third-party contracts used: Uniswap v4 (PoolManager, PositionManager, Universal Router, Quoter, StateView), Uniswap v3 factory (zap routes), Permit2, Safe v1.4.1, Chainlink ETH/USD and 36 Chainlink stock feeds, USDG and the 194 Robinhood tokenized stocks. Every address is verified on mainnet and listed in the internal launch kit.
2. Contract stacks
All contracts are Solidity, built with Foundry. Per-launch contracts are deployed by the factory; singletons are deployed once in the genesis ceremony and owned by the Eden Safe.
2.1 Launch stack (launch-curve-graduation)
| Contract | Role |
|---|---|
EdenV2LaunchFactory |
Creates launches from approved configs; launchEnabled gate; snipe-tax and graduation-guard settings. 24,402 B (174 B under the EIP-170 limit) |
EdenV2LaunchDeployer / EdenV2LaunchAndBuy |
Deploys token + curve; launch-and-buy with the mandatory 20 % creator buy and its vesting lock |
EdenV2LauncherToken |
The launched ERC-20 (1 B supply, no mint, no tax) |
EdenV2BondingCurve |
Curve trading, 3 % fee, fee sweeps, creator routing, held-back LP growth |
EdenV2GraduationExecutor / EdenV2LaunchLocker |
Seeds the Uniswap v4 pool at the curve's last price; locks the LP position and the unsold 4 % forever |
EdenV2MemeHook |
Uniswap v4 hook on every graduated pool: 3 % fee on the unspecified leg, graduation guard (1 % per trade for one L1 block ≈ 12 s), fee sweep |
EdenV2FeeEscrow |
Creator claims (pays msg.sender only) |
EdenV2LPGrowthVault / EdenV2BuybackVault |
Creator-side locked liquidity and the creator's own-token buyback (locked 5 years) |
LaunchBurnGate |
Charges the $500 ROOT launch burn through the oracle |
ApprovedPairRegistry |
Which pair assets may be launched against (ETH, USDG, 194 stocks) |
EdenV2ZapBuy |
Stateless, ownerless periphery: pay with ETH or USDG for any pair (swap → buy in one transaction), EIP-2612 permit entry points |
DevBuyVestingLock |
Creator allocation vesting (30 days – 4 years), no admin |
2.2 Fee routing
| Contract | Role |
|---|---|
CreatorRouting |
Score ramp: creator share = f + (50 % − f) × score; f = 30 % backed, 10 % unbacked; unearned share redirected |
ProtocolFeeAdapter |
Keeper entry point that pushes swept protocol fees into the router; trading-fee source only |
FeeRouter |
Splits the protocol bucket into six lanes (Eden, holders, ROOT buyback, grants, scoring oracle, index); lanes sum exactly; a failing sink is skipped and retried, never blocks the others |
HolderDistributor |
Weekly Merkle roots per token and asset; claims after 24 h, for 90 days; unclaimed rolls forward |
ScorerRewards |
Per-second reward-per-weight accumulator per (token, asset); hour-bucketed expiry; conservative 5 % cap; 7-day drip; 30-day score window; solvency invariant checked by a forge invariant test |
RootBuybackVault |
Books the buyback lane per token; keeper swaps to ROOT with an oracle floor and per-call cap; half burned, half to ROOT liquidity |
RootLPGrowthVault / RootGenesisLiquidity |
Adds bought ROOT to the ROOT/ETH pool; genesis position has no remove function |
FeeLaneEscrow, OracleOpsVault, TreasuryYieldForwarder |
Lane sinks (index, holder, oracle) and the yield route into the router |
LeafTokenPricer |
USD value of launch tokens (curve price before graduation, pool price after) |
2.3 Scoring (scoring-oracle)
| Contract | Role |
|---|---|
AttestationRegistry |
Epoch roots signed by the attestation signer; 72 h challenge window; finalisation |
AdjudicatorRegistry |
Eden reviewers who can dispute a root (never signers) |
HumanScoreRegistry |
On-chain human scores with thesis hash; per-scorer cooldown 14 days; burns $100 of ROOT per score |
ValidatorRegistry |
Scorer registration: 2,500 ROOT stake, $100 registration burn, 7-day unstake cooldown; unstake request ends reward positions at once |
DataSourceRegistry |
Creator data sources, stored only as an encrypted envelope plus a commitment |
VerificationTierRegistry |
Manual "Verified" flag: set by an adjudicator after review, revoked manually by an adjudicator or the Safe; no expiry |
ResearchAuthorRegistryV2 |
Research author proofs, stored as hashes only |
ScoreVisibilityRegistry, WeightVectorRegistry |
Public-score toggles and per-track weight vectors |
The scoring pipeline (verification, winsorised normalisation, weighted functional, gate, moving average, share cap), the Merkle and EIP-712 commitment and the human-score blend are derived in Scoring and rewards math.
2.4 ROOT, treasury and index (nav-treasury)
| Contract | Role |
|---|---|
RootToken |
1 B fixed supply; renounceMinter sealed in the genesis transaction |
SteppedVestingLock |
Team allocation: 3-month cliff, 16 quarterly tranches; immutable beneficiary |
RootFeeHook (in launch-curve-graduation) |
ROOT/ETH pool hook: 2 % fee to Eden (bounded 1–3 %) and the on-chain TWAP accumulator |
RootTwapOracle / ChainlinkPairUsdFeed |
Keeper-free ROOT/USD and pair-asset/USD prices (section 5) |
NAVTreasury, NAVOracle, AuthorizedParticipantRegistry |
Treasury book, NAV marks, authorised-participant redemption rail |
IndexVault, IndexToken, IndexConstituentRegistry, IndexDeploymentKeeper, StaleEquityAdapter |
EDEN index: stablecoin inflow, per-epoch deployment into the seven stocks, published weights, price adapter that fails closed when stale |
TreasuryGrantPool |
Grants treasury |
3. Roles and powers
| Role | Holder | Powers |
|---|---|---|
| Owner of every contract | Eden Safe, 2-of-3, hardware-wallet owners | Parameters, pointers, role grants, launch gate |
| Fee keeper | Dedicated key | Sweep fees, distribute, run buybacks and ROOT-LP sweeps (bounded by on-chain floors and caps) |
| Quality keeper | Dedicated key | Prove thesis grades, poke reward buckets, finalise epochs (all permissionless calls) |
| Holder poster | Dedicated key | Post weekly holder roots |
| Attestation signer | Dedicated key | Sign epoch score roots |
| Index publisher | Dedicated key | Push index constituent prices |
| Identity attester | Dedicated key | Attest research author identities (hash only) |
| Ops admin | Dedicated key | Drain the index sink into the index vault; index epochs |
| Adjudicators | Eden reviewers | Dispute roots; set or revoke "Verified" |
| Deployer | Ceremony key | Deploys, then hands every contract to the Safe; holds nothing afterwards |
Every role key is a fresh EOA with no EIP-7702 delegation, not reused across roles and not a known test key; a role preflight script checks this on-chain before ownership hand-off and before launches open. Keeper keys never hold user funds; every amount they move is bounded on-chain (oracle floors, per-call caps, fixed fee sources).
4. Timelocks and upgrades
- Loosening is slow, tightening is fast. Every pointer (which contract talks to which) and every parameter that could loosen a limit goes through an on-chain timelock of 48 hours on the fee router, scorer rewards, buyback vault, scorer registry, both oracles, holder distributor, fee adapter, yield forwarder and creator routing. The change is queued publicly and applied by the Safe after the ETA. Changes that only tighten a bound apply immediately.
- Instant Safe powers: stop new launches (
setLaunchEnabled(false)— trading, sweeps and claims continue); grant or revoke keeper roles. - No upgradeable proxies. Per-launch contracts are immutable. A new version of a singleton is deployed next to the old one and switched in through a timelocked pointer; launches already live keep their own contracts. Before genesis any change is free; after genesis every switch costs a 48 h wait.
- Proposed changes and their trade-offs are tracked in the internal upgrade-proposal list.
5. Price oracle
There is no posted price on mainnet. ROOT/USD is computed on-chain:
- TWAP accumulator in the ROOT/ETH pool hook. Before every swap the hook folds the current tick into a cumulative (Uniswap v3 semantics, folded before the price moves). Each fold moves the recorded tick by at most 9,116 ticks per elapsed second, which blunts sub-8-second spikes. A 1,250-slot ring keeps at least 4 hours of observations and is prefilled at genesis.
- Protocol-favourable read. The oracle charges
min(30-minute TWAP, 4-hour TWAP): a pump has to be held for hours before it lowers what a burn costs, while a dump is charged within one window. Tick rounding favours the protocol. - × Chainlink ETH/USD, read from the real Chainlink proxy, with a 25-hour max age (the feed has a 24-hour heartbeat and a 0.5 % deviation trigger). Robinhood Chain publishes no sequencer-uptime feed; the age bound is the guard.
- Fail closed. Burns and buybacks revert — they never fall back to spot — when Chainlink is stale, the TWAP window is not covered, or the price is outside its bounds. The factory opens launches only after the 30-minute window is covered.
Pair assets are priced by ChainlinkPairUsdFeed: ETH via Chainlink, USDG at $1, mapped stocks via their
Chainlink feeds (max age 4 days, covering market closures). These prices set the buyback floor (oracle value
− 7 %) and USD values in the UI.
Known limitation. ROOT trades in one pool at launch, so nobody arbitrages a skewed price back; the cost of moving the TWAP is the round-trip pool fee. The 4-hour anchor, the per-call buyback cap, the keeper's divergence hold and the monitors bound the damage. A second venue or deeper ROOT liquidity is the structural fix (see Security).
6. Pairs, the zap and confirmations
- Pairs. ETH, USDG and every one of the 194 Robinhood tokenized stocks are approved launch pairs. Each stock's curve uses the same dollar economics as USDG ($3,125 starting value, $12,500 graduation bar, 1 : 4 ratio), converted at the stock's reference price on the day it is approved. Price feeds, scorer reward assets and buyback settings for the pairs go through the timelock, so the ceremony queues them 48 hours before launches open.
- Zap.
EdenV2ZapBuylets a buyer pay with ETH or USDG for any pair: it routes through Uniswap v4 or v3 (191 of 194 stocks have a route), buys on the curve or pool, and holds nothing between transactions. It has no owner and no state. - One confirmation. Where a wallet supports batched calls (EIP-5792, available on Robinhood Chain via EIP-7702), approve + trade or approve + launch is one confirmation. Buys paid in a token that supports EIP-2612 (such as USDG) use a signed permit through the zap, so a plain wallet signs once and confirms once.
7. Indexer and read API
eden-indexer(Ponder → Postgres) indexes launches, trades, fees, scores, rewards and holders and serves a REST API plus a server-sent-events live stream. The UI reads history from the API and only the live tail from the chain; when the indexer is unreachable the UI falls back to transaction receipts and RPC reads.- On mainnet it keeps up with ~9.7 blocks/s on 2-second polling (measured lag p95 4 s). A lag watchdog restarts it; a second instance behind a health-checked router is built and can be switched on.
- Detail: Indexer.
8. Operations and keepers
- An ops service runs every recurring protocol job: fee sweeps, distribution and buybacks, quality proofs and reward pokes, epoch finalisation, the weekly scoring epoch, systematic re-scores, index inflows, index epochs and price pushes, oracle monitoring, launch discovery and a daily cost report.
- It runs as a primary and a hot standby sharing a Postgres leader lease; only the lease holder signs, and it re-checks the lease before every broadcast. Takeover measured at 39–66 seconds.
- Per-duty keys (fees, quality, holders, attestation, index prices) limit what any one leaked key can do; a leaked key is rotated by a Safe transaction.
- RPC failover: every component takes an ordered list of providers and falls back automatically.
- Alerts go to Telegram (critical to phones, warnings to a channel) and webhooks.
- If operations stop, nothing is lost: fees accumulate in the contracts and are swept when they resume.
- Detail: Operations.
9. Data privacy
- Data sources are private. A creator's sources are encrypted in the browser to the scoring oracle's published key (ECIES, secp256k1) and stored on-chain only as ciphertext plus a salted commitment. The UI and the public API never return them.
- Inputs are private, scores are public. Each epoch publishes scores in one signed Merkle root; the underlying business data stays with the oracle and is archived privately per epoch.
- Research authors are never public. Author identities (ORCID, OpenAlex, institutional e-mail) are stored on-chain only as hashes; the cleartext stays in the identity attester's private store, and the UI and API never show it. On-chain text such as a launch description is immutable, so the UI masks personal identifiers it finds there.
10. Repositories
| Repo | Contents |
|---|---|
launch-curve-graduation |
Launch stack, fee routing, ROOT pool hook and oracle, zap, deploy scripts, role preflight |
scoring-oracle |
Scoring contracts and the off-chain oracle services (adapters, quality review, epochs, holder snapshots) |
nav-treasury |
ROOT token, team lock, treasury, EDEN index |
indexer |
Ponder indexer and read API |
keepers |
Scheduled keeper jobs (buyback, ROOT-LP sweep, treasury yield, graduation retries, epoch pipeline) |
launchpad-ui |
The web app |
agentic-launchpad-docs |
This documentation (the GitBook source), the investor package and the whitepaper |
Security
What was audited and what was found, how it was fixed, what you have to trust, what the admin can and cannot do, and the limitations that remain at launch.
1. Audit history
Six independent, read-only audits ran against the code between late September and early October 2026. Each one re-checked every earlier finding against the current code. Every finding is backed by a source read, an on-chain read or a proof-of-concept test; findings were fixed in the code and re-verified in the next audit.
| # | Scope | Findings (C / H / M / L / I) | Outcome |
|---|---|---|---|
| 1 | Full code audit of every repo: contracts, oracle services, UI API, deploy scripts | 1 / 7 / 11 / 11 / 6 | Critical and all high findings fixed |
| 2 | Full re-audit after the first fix round | 0 / 0 / 7 / 14 / 6 new | 24 of 36 earlier findings closed in this round; the rest closed or accepted later |
| 3 | Full re-audit including the hosted demo infrastructure, indexer and keepers | 0 / 1 / 2 / 10 / 5 new | The high finding was demo-only (RPC proxy); all medium findings fixed |
| 4 | Scorer rewards (streaming accumulator, burn per score) | 0 / 1 / 9 / 10 / 8 | All high and medium fixed except one accepted trade-off (conservative cap) |
| 5 | An operator-signed ROOT price design | 0 / 1 / 4 / 5 / 5 | Key-compromise risk was the deciding factor for the keeper-free design used on mainnet |
| 6 | Keeper-free ROOT/USD oracle (pool TWAP × Chainlink) | 0 / 1 / 3 / 7 / 7 | All medium and above fixed; the high finding is mitigated with a residual risk (section 6) |
1.1 Significant findings and fixes
| Area | Finding | Fix |
|---|---|---|
| Oracle data integrity | Source attestations used an unkeyed hash anyone could forge | Keyed signatures per source; the oracle refuses to run with a development key on any public chain |
| Fee lanes | The protocol fee router was not wired, so holders, index, buyback, grants and oracle received nothing | Router deployed and wired by the deploy scripts; a keeper adapter pushes swept fees; trading-fee source only |
| Holder payouts | Reward-debt accounting could be drained by buy → claim → transfer loops | Rewritten as weekly Merkle snapshots with a claim delay and expiry |
| Buyback | Quote assets sent to the buyback vault had no exit; later, the keeper could pass any minimum-out | Vault swaps quote → ROOT; minimum-out is floored on-chain by the oracle; per-call cap |
| Ownership | Deploy scripts left contracts owned by the broadcaster | Every contract is handed to the Safe; a role preflight fails the ceremony otherwise |
| Data privacy | Data sources were emitted in cleartext on-chain; research author identities were re-published | Sources stored only as ciphertext + commitment; author identities stored as hashes only |
| SSRF / fetching | Creator-controlled URLs were fetched with redirects | Per-hop allow-list, no cross-origin credentials, size limits, sandboxed PDF parsing |
| Owner setters | Several setters had no bounds or applied instantly | Bounds on every setter; loosening changes moved behind 48 h timelocks |
| Scorer rewards | A permissionless path could fill a token's reward-asset slots with junk | Reward assets restricted to approved pair assets; the owner can prune a dead slot |
| Scorer rewards | Pointer rotations could lock stakes; proof epochs were caller-chosen; burn setters were instant | Unstake path independent of pointers; epochs from the attestation clock; burn setters timelocked |
| Oracle | Moving a 30-minute TWAP on a single-venue pool costs only the round-trip fee | Charge min(30 min, 4 h); deploy-time bootstrap must match live spot within 5 %; buyback holds on window divergence; approvals sized to the quote |
| Oracle | 32-bit timestamps would brick the ROOT pool in 2106 | 64-bit timestamps and wrap-safe deltas |
| Demo infrastructure | The public demo RPC proxy forwarded unsigned-transaction methods; indexer exposed raw SQL | Method allow-list and token rotation; raw query endpoints removed, statement timeouts and rate limits |
2. Trust assumptions
| You trust | For | Bound |
|---|---|---|
| The Eden Safe (2-of-3, hardware wallets) | Parameters, pointers, keeper roles, opening launches | 48 h public timelock on loosening; cannot touch curve/pool funds, locked liquidity, vesting or claims |
| The attestation signer (one key in v1) | Publishing each epoch's scores | 72 h challenge window; adjudicators can dispute; human scores are on-chain |
| The scoring oracle | Fetching and normalising private business data honestly | Inputs archived per epoch; scores are Eden's assessment, not a trustless measurement |
| Adjudicators (Eden reviewers) | Disputes and the manual "Verified" flag | Verification changes only the creator floor and score cap; never automatic |
| Keepers | Running sweeps, buybacks, proofs and snapshots on time | Every amount bounded on-chain; missed runs delay payouts, never lose funds |
| Chainlink | ETH/USD and stock prices | Max-age bounds; burns and buybacks fail closed when stale |
| The ROOT/ETH pool | ROOT price via TWAP | Protocol-favourable 30 min / 4 h read; see section 6 |
| Robinhood Chain sequencer and token issuers | Ordering, liveness; stock token transfers | Stock issuers can block addresses or pause transfers; Eden cannot override |
3. Admin powers
The Safe can, immediately:
- stop new launches (existing curves and pools keep trading; sweeps and claims continue);
- tighten any bounded parameter;
- grant and revoke keeper, poster, publisher and attester roles.
The Safe can, after a 48-hour public timelock:
- re-point fee routing, scorer rewards, buyback, oracle, feed, holder, index and creator-routing contracts;
- loosen parameters within their hard-coded bounds (for example the scorer cap 0.01–100 %, the ROOT pool fee 1–3 %, oracle max ages within their bounds);
- wire price feeds, scorer reward assets and buyback settings for pair assets.
The Safe cannot:
- mint ROOT or any launch token;
- move tokens out of a bonding curve or a graduated pool, or unlock locked liquidity;
- unlock creator or team vesting;
- change a live launch's supply or curve;
- redirect anyone's holder payout, scorer reward or creator fee (claims pay only the owning wallet);
- add a creator tax above 0 for existing launches (the ceiling is 0 and Eden's policy keeps it there).
There are no upgradeable proxies. A new contract version is deployed next to the old one and switched in through the timelock.
4. Keys
- Every role (fee keeper, quality keeper, holder poster, attestation signer, index publisher, identity attester, ops admin, adjudicator, deployer) is a separate, fresh EOA with no EIP-7702 delegation. A preflight script checks this on-chain before ownership hand-off and before launches open.
- Role keys live in a secret store, never in git, chat or terminal history. A leaked key is rotated with a Safe transaction (rehearsed on the demo).
- The deployer holds nothing after the ceremony and is drained.
- Safe owners sign on hardware wallets.
5. Pause and recovery
| Situation | Response |
|---|---|
| Something wrong after launch | Safe stops new launches in one transaction |
| Wrong parameter | Queue the fix; it applies after 48 h (tightening applies at once) |
| Keeper key leaked | Stop ops, rotate the role via the Safe |
| Ops primary down | Hot standby takes the lease automatically |
| Chainlink stale | Burns and buybacks fail closed until it updates; trading is unaffected |
| Indexer down | UI falls back to receipts and RPC |
| RPC provider down | Automatic failover to the next provider |
6. Known limitations at launch
| Limitation | Effect | Mitigation / plan |
|---|---|---|
| ROOT trades in one pool | Moving the TWAP costs only the round-trip pool fee; a held pump can lower USD-pegged burns after the 4 h anchor catches up | Protocol-favourable read, per-call buyback cap, divergence hold, monitors; deepen liquidity or add a venue |
| One attestation signer | Scores are Eden's signed assessment | 72 h challenge window; more signers and published adapter specs planned |
| No sequencer-uptime feed on the chain | After an outage a Chainlink answer up to 25 h old could price burns | Age bound and ops alerts at 50 % / 90 % of max age; wire the feed via the timelock if one appears |
| Conservative scorer cap | With few scorers, lighter scorers earn less than an exact capped share; the rest is burned | Documented; the cap can be raised through the timelock if early pools are thin |
| No narrow emergency pause | The only instant brake stops new launches, not trading or buybacks | A guardian that can only tighten is proposed as a post-launch upgrade |
| Timelocks block hotfixes | A loosening fix takes 48 h | Known changes are pre-queued before launches open |
| Stock pair buyback routes | Stock assets without a route to ETH accumulate in the buyback vault | Multi-hop routing proposed as an upgrade |
| Oracle-priced writes | Gas at inclusion can exceed the estimate | The UI and keepers pad gas for these calls |
| Immutable on-chain text | A launch description cannot be erased | The UI masks personal identifiers |
| Slashing | Off at launch | Enabled only after the full dispute flow is live |
7. Reporting a vulnerability
Security reports: [security contact — to be published].
Operations
How Eden runs day to day: the keepers and their cadence, monitoring, what it costs, and the lessons from running the full stack on a live Robinhood Chain fork.
1. What runs
| Component | Hosting | Notes |
|---|---|---|
| Ops service (primary) | Managed container + volume | Runs every recurring protocol job |
| Ops service (standby) | Second container, own volume | Takes the leader lease if the primary stops |
| Postgres | Managed | Leader lease, replicated ops state, indexer database |
| Indexer + read API | Managed container | Ponder → Postgres; optional second instance behind a health-checked router |
| Keepers | Managed container | Weekly buyback, ROOT-LP sweep, treasury yield, graduation retries, scoring epoch pipeline |
| Web app and docs | Static / edge hosting | The app reads the indexer and two RPC providers |
| RPC | Two paid providers + the public endpoint | Ordered failover in every component; the public node is used for reads only |
2. Keeper jobs and cadence
| Job | What it does | Cadence |
|---|---|---|
| Fees | Sweep curve and pool fees, distribute through the router, run buybacks | Every 6 h, only for tokens whose accrued fee is worth at least 10× the sweep gas (with an idle cap) |
| Quality proofs and reward pokes | Prove thesis grades from finalised epochs; advance reward buckets only where a proof or flush is pending | Every 15 min |
| Finalise | Finalise epoch roots after the 72 h challenge window; record token scores | Hourly |
| Scoring epoch | Quality review → human blend → publish the signed root | Weekly (Friday 12:00 UTC); daily during launch week |
| Systematic re-score | Re-fetch project data | Every 6–12 h |
| Holder snapshots | Post one Merkle root per token and asset | Weekly |
| Index inflow | Move the index lane's stablecoin into the index vault | Hourly, above a minimum |
| Index epoch | Deploy idle stablecoin into the basket within the epoch cap | Every 12 h, minimum $25 |
| Index price pushes | Push constituent prices | On a 0.25 % move or hourly |
| Oracle monitor | Chainlink age, launch-burn quote | Every minute |
| Launch discovery | Pick up new launches | Every 30 min |
| ROOT-LP sweep / treasury yield | Weekly keepers | Friday 17:00 / 15:00 UTC |
| Cost report | Gas ledger and incident log snapshot | Daily |
Every keeper write is simulated first and never broadcast if the simulation reverts. Every broadcast hash is persisted before its receipt is awaited, so a crash never double-sends.
3. High availability and keys
- Leader lease. Primary and standby share one lease row in Postgres. Only the holder runs jobs, funds roles or sends alerts, and it re-checks the lease (15 s fence) before every broadcast. State and artifacts are replicated every 5 / 30 s. Measured takeover: 39 s on the demo, 66 s on a mainnet fork. The primary takes the lease back two minutes after it returns.
- Per-duty keys. Fees (sweeps, distribute, buybacks, LP sweeps) and quality (proofs, pokes, finalise) use separate keys from holder posting, attestation and index pricing. Each key holds a small ETH balance.
- RPC failover. Ordered provider lists in ops, keepers, indexer and app; a probe checks every endpoint each minute.
- Deploy order. The standby is deployed first and must report healthy before the primary is touched; a pre-deploy import check aborts a broken image.
4. Monitoring and alerts
| Signal | Threshold | Route |
|---|---|---|
| Keeper transaction failures | 3 consecutive | Critical |
| Job overdue | Next run + max(20 min, 3 × cadence) | Warning |
| Role ETH balance | < 0.3 ETH keeper-class, < 0.03 others | Warning; critical at a third of that |
| Chainlink ETH/USD and stock feed age | ≥ 50 % of max age | Warning; critical at 90 % |
| Launch-burn quote reverts | Any | Critical |
| Indexer lag | > 120 s | Critical |
| RPC down | 3 min | Warning; critical at 10 min |
| Safe-queued change executable | ETA passed, still pending | Warning |
| Zap holds a balance | Non-zero at block end | Warning |
| Ops heartbeat | Two missed periods (dead-man check) | Critical |
Critical alerts go to a Telegram chat with phone notifications; warnings go to a team channel. Alerts are de-duplicated and rate-limited, and critical ones are never dropped. The ops service also serves live cost and health views.
5. What it costs
Gas on Robinhood Chain is cheap (L2 base fee at its 0.02 gwei floor). The model below is measured from the demo's per-transaction gas ledger (same contracts, same keeper cadence, 64 live tokens traded around the clock by bots) and priced at mainnet gas prices and ETH ≈ $2,460. Trades are user-paid; keeper cost scales with the number of live tokens, not with volume.
5.1 Protocol gas per month
| Tier | Live tokens | Scores / day | Low | Typical | High |
|---|---|---|---|---|---|
| Launch month | 50 | 20 | $369 | $371 | $3,746 |
| Demo today | 64 | 20 | $461 | $464 | $4,678 |
| Steady | 250 | 100 | $1,706 | $1,715 | $17,238 |
| Growth | 1,000 | 400 | $6,718 | $6,753 | $67,830 |
"High" assumes 10× today's L2 gas price and L1 data price.
| Job (demo today, typical) | Txs / day | $ / month |
|---|---|---|
| Fee sweeps, distribution, buybacks | 516 | $390 |
| Index price pushes | 442 | $24 |
| Scorer reward pokes and flushes | 86 | $18 |
| Holder snapshots | 109 | $16 |
| Quality proofs (modelled, one per score) | 20 | $5 |
| Finalise | 47 | $5 |
| Everything else | — | $7 |
5.2 Infrastructure per month
| Item | $ / month |
|---|---|
| Protocol gas (launch month, typical) | ≈ 370 |
| Two RPC providers | 50–250 |
| Containers + Postgres (ops, standby, indexer) | 45–120 |
| Second indexer + database (optional) | 25–60 |
| Static hosting, health checks, alerts | 0–20 |
| Total | ≈ 465–820 |
5.3 One-time launch
| Part | Transactions | Gas | Cost at mainnet prices |
|---|---|---|---|
| Genesis ceremony (deploy, initial buy, Safe hand-off and wiring) | 199 | 129 M | ≈ $6.40 (high $64) |
| Stock pair approvals (Safe batches) | 20 | 44 M | ≈ $2.20 |
Capital at genesis is separate: 5 ETH seeds the ROOT pool and 10 ETH buys ROOT in the same transaction.
5.4 Further savings (not needed financially)
Batching sweeps and distribution for many tokens in one transaction, one holder root per epoch for all tokens, and batched quality proofs would each need a contract change. They matter more for key exposure and RPC load at the growth tier than for cost.
6. Design lessons from the live demo
The full stack ran on a hosted fork of Robinhood Chain with real role keys, a 2-of-3 Safe, the production deploy scripts and bots trading every token. The incidents that carry over to mainnet shaped the design:
| Lesson | Design response |
|---|---|
| One keeper process with one key is a single point of failure | Hot standby with a leader lease; per-duty keys |
| An indexer can drift or freeze silently | Lag watchdog with automatic restart; lag in the health endpoint; receipt-first UI; optional second indexer behind a router |
| A ceremony step can be skipped (a stock-pair approval batch was missed once) | The ceremony has explicit steps for pairs and the zap; a role-and-sink preflight and a parameter-parity check (≈ 2,700 values compared against the demo) are go/no-go gates |
| Timelocks delay fixes: stock feeds waited 48 h after launches opened | Genesis runs two days before launches open, so every timelocked pair setting is live at opening |
| Alerts that go nowhere are not alerts | Telegram routing with dedupe, rate limits and a test nonce; heartbeat dead-man check |
| Public RPC endpoints rate-limit and keep only minutes of state | Two paid providers with failover; a dedicated endpoint for the ceremony |
| Oracle-priced writes can run out of gas at inclusion | Gas padding for every oracle-priced write in the app, ops and keepers |
| A key can leak through an operator console | Secrets in a sealed store; variable names only in listings; rotation by Safe transaction is rehearsed |
| On-chain text is immutable | The app masks personal identifiers in launch text |
| The operator's machine should not be in the path | Keepers on managed hosting; the ceremony runs from a clean dedicated machine |
Demo-only issues (the forked node's memory limits and restarts, state-file reloads, rotating RPC tokens, price mirrors, test funding) do not exist on the real sequencer and are not carried over.
Developer guide
How to build, test and run Eden locally, and the rules every change follows. Architecture and contract roles are in Architecture; numbers in Tokenomics.
1. Toolchain
export PATH=$HOME/.foundry/bin:$HOME/.local/bin:/opt/homebrew/bin:$PATH
| Tool | Used for |
|---|---|
Foundry (forge, cast, anvil), solc 0.8.26, via-IR, evm_version = cancun |
Contracts, deploy scripts, local chains |
| Node 22+, pnpm (app), npm (services) | Web app, indexer, keepers, oracle services, ops |
| Postgres 15 | Indexer and ops leader lease |
2. Repositories
| Repo | Build / test |
|---|---|
launch-curve-graduation/contracts |
forge build --sizes · forge test |
scoring-oracle/contracts · scoring-oracle/services |
forge test · npm test, npm run typecheck |
nav-treasury/contracts |
forge test |
indexer |
npm test, npm run typecheck |
keepers |
npm test; scripts/rehearse-local.sh (dry run + live run on a local anvil) |
launchpad-ui |
pnpm lint, npx tsc --noEmit, pnpm build (always in a separate worktree) |
3. Run the full stack locally
cd launchpad-ui
pnpm testnet # fresh anvil on :8545 with the full stack, app on :3001
pnpm testnet:seed-scored # optional: three scored demo projects through the production oracle paths
# (needs a quality-model key: QUALITY_MODEL_API_KEY, OPENROUTER_API_KEY or OPENAI_API_KEY)
pnpm testnet:rh # alternative: local fork of Robinhood Chain mainnet with the production stack
Browse /launch, /token/<address>, /score, /rewards, /burns, /fee-share, /profile.
To run the mainnet genesis ceremony end to end against a local fork of Robinhood Chain mainnet, use
remote-chain/scripts/mainnet-fork.sh start and the ceremony script (launch109-ceremony.sh all → twapwait → open → etawait → rwa → preflight2). It deploys with throwaway keys and a 2-of-3 Safe, refuses any non-loopback
chain, and finishes in about three minutes.
4. Deploy order
- Eden Safe (2-of-3).
nav-treasurydeploy: ROOT, treasury, NAV oracle, index price adapter, index keeper.- ROOT genesis: 1 B mint split 15/30/20/20/15, team stepped lock, minter renounced, ownership to the Safe.
- Index reference prices.
- ROOT/ETH pool: mined hook address, 150 M ROOT + 5 ETH seed, 10 ETH initial buy in the same transaction, observation ring prefilled, ROOT-LP growth vault.
- Keeper-free oracle: TWAP oracle + pair feed (real Chainlink ETH/USD; bootstrap price must match live spot within 5 %).
- Launch stack, deployed with launches closed.
- Launch-curve extensions: pair registry, token pricer, scorer registry.
- Scoring contracts.
- Fee router, lanes, holder distributor, scorer rewards; timelocks armed.
- EDEN index.
- Zap.
- Role preflight; Safe accepts ownership of every contract (one batch) and wires the router and index.
- Strict role + sink preflight.
- Stock pairs: approve all 194 and queue their feeds, reward assets and buyback settings (Safe batches; 48 h).
- After the 30-minute TWAP covers and the 48 h ETA has passed: apply the queued pair settings, run the preflight and parameter-parity check, then the Safe opens launches.
5. Rules for every change
- Factory size.
EdenV2LaunchFactoryis 24,402 B, 174 B under EIP-170. Do not add code to it; checkforge build --sizes. - Team lock.
TeamVestingLock.solstays byte-identical. - Verification is manual. "Verified" is set and revoked only by people; nothing verifies automatically and it never expires.
- Data sources are private. Never expose them in the UI, a public API or on-chain cleartext. Research author identities are never public.
- Claims pay the owner. Holder payouts, scorer rewards and creator fees go only to the signing wallet.
- Timelocks. Any setter that can loosen a limit or re-point a contract goes through the 48 h timelock; tightening may be instant. New setters need bounds.
- No posted price. USD-pegged burns and buyback floors read the keeper-free oracle and fail closed.
- Pad gas for oracle-priced writes and for buys that can graduate inside the same transaction: estimates find the outer call's gas, not what the inner oracle walk or graduation needs.
- Keys. Never commit keys or RPC tokens; role keys are fresh EOAs with no EIP-7702 code. Development keys are refused on any non-local chain.
- Manifests. Never commit
launchpad-ui/src/lib/deployments.json; the mainnet manifest is committed only after the real deploy. - Builds. Never run a production build inside a live checkout; use
git worktree add /tmp/<name>. - Commits. Messages describe the technical change only.
6. Contract change checklist
- Full test suite green in every touched repo; add tests for the change (unit, fuzz, invariant where state is accounted).
- Sizes checked; factory unchanged.
- Deploy scripts updated; role preflight and parity allow-list updated if a role or parameter changes.
- Indexer ABIs regenerated (
npm run abis) and the network file updated if events or addresses change. - App feature-detects new functions so it still works against already-deployed contracts.
- An independent review of the touched contract and its callers.
- On a live chain: deploy the new version next to the old one and switch the pointer through the timelock.
7. Where things live
| Thing | Location |
|---|---|
| Deploy scripts | launch-curve-graduation/contracts/script, nav-treasury/contracts/script, scoring-oracle/contracts/script |
| Role preflight | launch-curve-graduation/contracts/script/preflight-roles.mjs |
| Stock list | launch-curve-graduation/contracts/script/data/rh-stock-tokens.json (regenerate with remote-chain/scripts/rh-stock-list.mjs) |
| Ceremony, parity, ops report | remote-chain/scripts/ |
| Ops service | remote-chain/ops/ |
| Oracle services | scoring-oracle/services/src |
| Docs site | agentic-launchpad-docs/site |
Indexer
eden-indexer indexes Eden's contracts once, incrementally, into Postgres and serves them over HTTP. The web
app reads history from it and only the live tail from the chain, so a page load costs O(1) RPC calls per token
instead of O(trade history).
- Repo:
github.com/FoundryMoneyLLC/eden-indexer(private), branchmain. - Stack: Ponder 0.17, TypeScript, Postgres 15. Reorg-aware; resumes from the last checkpoint after a restart.
- App switch:
NEXT_PUBLIC_INDEXER_URL(build time). Unset → the app reads directly from RPC.
1. Architecture
Robinhood Chain (RPC, two providers)
│ eth_getLogs (ranged, cached) live tail: getLogs(indexed+1 … head)
▼ │
Ponder indexer ──writes──► Postgres ──REST / SSE──► web app ◄┘
▲ ▲
lag watchdog optional failover router → second indexer + DB
Sources. networks/<name>.json holds addresses and start blocks only; RPC URLs come from
PONDER_RPC_URL_<chainId> (comma-separated list = ordered failover) and are never committed. Kinds:
| Kind | Contract | How |
|---|---|---|
LaunchFactory |
Launch factory | Static address |
Curve, LaunchToken |
Every curve and launch token | Factory children of TokenLaunched |
MemeHook |
Graduated-pool hook | PoolRegistered maps pool id → token; swaps read from hook receipts |
| Extensions | Fee router and lanes, holder distributor, scorer rewards, scorer registry, buyback vault, burn gate, creator routing, pair registry, oracles, scoring registries, treasury and index, zap | Static addresses |
On mainnet poolSwapSource is hook-receipt: indexing every Uniswap v4 Swap on the chain would be far too
much data.
Versions. Every kind is a list of {address, version, startBlock}. A new singleton version is one more entry
plus an ABI folder (abis/<version>/, generated from the contracts' Foundry output with npm run abis). Both
versions write the same tables.
Tables (ponder.schema.ts). Amounts are raw base units; priceWad = quote base units × 1e18 / token wei.
| Table | Contents |
|---|---|
launch |
One row per launch: addresses, metadata, pair asset, graduation, locks, running aggregates (trades, volume, price, fees, holders, burned) |
trade |
Curve buys/sells and pool swaps, normalised (venue, side, trader, amounts, price, fee, USD) |
candle |
OHLCV for 1m … 1d with buy/sell and USD volume |
holder |
Balance per (token, account) |
burn |
Launch burns, scorer registration and per-score burns, buyback and unearned-reward burns, token burns |
fee_flow |
Sweeps, creator buybacks, escrow credits/claims, router distributions, holder and scorer rewards |
score_event |
Scores, theses, registrations, roots proposed/finalised/challenged, token scores |
index_epoch, treasury_event, holding, holding_daily |
EDEN index and treasury |
usd_price, category, pool, curve_map, verification, stat |
Lookups and counters |
USD. Stable pair assets are valued at $1; ETH and ROOT use the on-chain oracle prices. Each trade's USD value is fixed at the price in effect when it was indexed.
2. API
Hono routes served by the Ponder process. Every body carries chainId, indexedBlock, indexedTs.
| Route | |
|---|---|
GET /tokens?sort=launch|volume|trades|recent|score|mcap&deployer=&spark=24 |
Launch list with price, market cap, 24 h stats, score, sparkline |
GET /tokens/:token · /trades · /candles · /holders |
One launch; trades (keyset cursor); OHLCV; balances |
GET /burns, /fees, /scores, /logs?source= |
Event feeds with totals |
GET /scorer-rewards/wallet/:addr, /scorer-rewards/pool/:token |
Live claimable rewards and per-second rate |
GET /treasury, /index, /stats, /stats/daily, /root |
Aggregates and the ROOT pool |
GET /live?topics=&since= |
Server-sent events, one batch per indexed block; resume from a 900-block ring |
GET /consistency |
Periodic indexer ↔ chain check |
/health, /ready, /status, /metrics |
/ready is 503 until backfill completes; /status reports lagBlocks |
Ponder's raw SQL and GraphQL endpoints are not mounted. The API has per-IP rate limits and a 5 s statement
timeout. Head responses cache for 2 s (stale-while-revalidate 10 s); older pages for 60 s; ETag = indexed block.
Fallbacks. If any API call fails, the app falls back to RPC for that call; the live tail and the user's own transactions come from receipts, so an indexer outage never hides a user's trade.
3. Mainnet
- Network file.
networks/rh4663-mainnet.jsongets the factory, hook and singleton addresses andstartBlock(the stack deploy block) from the ceremony manifest (scripts/network-from-manifest.mjs). Polling 2,000 ms;ethGetLogsBlockRange2,000. - Load test. Against real Robinhood Chain mainnet (≈ 9.7 blocks/s), read-only, public RPC only, with a synthetic busy event set: the indexer processed 11.0 blocks/s, caught up from a 3,000-block backfill in 48 s, and held a steady lag of p50 3 s / p95 4 s / max 5 s. Rate limits, not Ponder, cause the spikes; a paid provider removes them.
- Health gate. Indexer lag ≤ 10 s before launches open; alert above 120 s.
- Watchdog. The lag watchdog (
LAG_WATCHDOG, on by default) restarts the process afterLAG_TRIP_SaboveLAG_MAX_BLOCKS. - Failover router (
scripts/failover-router.mjs, off by default). Two identical services with their own Postgres and opposite RPC order sit behind a small proxy that checks/readyand/status.lagBlocksevery 5 s, routes to the first healthy upstream (lag ≤ 150 blocks), recovers after 3 good checks, and otherwise serves the least-lagged upstream withx-eden-indexer-degraded: 1. SSE clients reconnect on a switch.
4. Reorgs and redeploys
- Ponder handles reorgs by rolling back to the common ancestor and re-running handlers.
- Redeploys that change only API routes, the Dockerfile or env keep the schema and resume in seconds. Changes to
indexing functions, the schema, ABIs or the network file create a new schema and backfill (blue/green: the old
schema serves until the new one is ready).
INDEXER_SCHEMA_SALTforces a rebuild;DATABASE_SCHEMApins one.
5. Run locally
cd indexer
npm install
PONDER_NETWORK=anvil31337 PONDER_RPC_URL_31337=http://127.0.0.1:8545 DATABASE_URL=postgres://… npm run dev
# app: NEXT_PUBLIC_INDEXER_URL=http://127.0.0.1:42069 pnpm dev (in launchpad-ui)
npm test # unit tests, no database needed
npm run typecheck
6. Environment (names only)
PONDER_NETWORK PONDER_RPC_URL_4663 DATABASE_URL DATABASE_SCHEMA DATABASE_POOL_MAX PONDER_LOG_LEVEL
PONDER_MIN_RPS PONDER_POLLING_MS INDEXER_SCHEMA_SALT LAG_WATCHDOG LAG_MAX_BLOCKS LAG_TRIP_S
API_RATE_LIMIT_PER_MIN API_RATE_LIMIT_BURST API_STATEMENT_TIMEOUT_MS CONSISTENCY_EVERY_S PORT
# failover router
INDEXER_UPSTREAMS ROUTER_CHECK_S ROUTER_MAX_LAG_BLOCKS ROUTER_RECOVER_CHECKS
7. Cost
At launch scale the indexer is one container plus Postgres (≈ $20–60 / month) and RPC traffic within the paid providers' plans; a second instance doubles that.