Documentation · Changelog
Changelog
The GENE release-candidate history, with frozen tags, commits, Genome VERSIONs and genome hashes as recorded in the repository.
Each release candidate (RC) is a complete set of contracts with its own Genome encoding. Changing any Genome constant, including VERSION, changes genomeHash, so every candidate below has a distinct hash. Only the current candidate describes GENE; every earlier entry is historical and superseded.
#Current: RC4 audit candidate
| Item | Value |
|---|---|
| Status | Code-frozen for external audit on 2026-10-07. Audit status is on Security |
| Internal gate | Verdict "ready for external audit": 5,920 production tests, 0 failed, 0 skipped; 53,929 attack scenarios on the production code, 0 TRANSFER, 0 SELFFUNDED |
| Source tag | rc4-audit-candidate |
| Source commit | aca5fcd3bbc9ecb1026de58bea431d406d8ecfff |
| Audit package tag | rc4-audit-package (3c3367b), documentation only: src, script, lib and test are identical to aca5fcd |
| Genome VERSION | 4 (Genome.sol:12) |
| genomeHash | 0x39c130f616c32abfb40f8ab51eb54544cffd3e0d99602c71dc336bc8083c36ae, pinned by GenomeHash.t.sol:11 |
| GeneHook runtime | 23,389 bytes (1,187 bytes under the EIP-170 limit) |
| Tests on the frozen source | 347 passed, 0 failed, 0 skipped |
| Change rule | Any change makes a new candidate, which must re-run every suite |
Any further change to the contracts will appear here as a new candidate with a new tag, commit and genome hash.
#Source lineage inside RC4
RC4 was built in four steps on 2026-10-06 and 2026-10-07. Only the last is the audit candidate.
| Step | Commit | Genome VERSION | genomeHash | GeneHook runtime | Change |
|---|---|---|---|---|---|
| V6 | 6f254e5 |
2 | 0x289b7ea5e6d1216dfb0933e6e2aa469e852c16dea8079eec4212dc240ac240ef |
22,708 B | All protocol buys anchored at the all-time-low block-start price; ETH budgets from net curve flow; churn tier added |
| V6g-D | 08c3524 |
3 | 0x57205394a087fb2e2e9ee18fb9b204de235e47cdc6a3ab954a5bf59a3a44f952 |
23,319 B | atlTick moves only to block-start prices where the pool has active liquidity; oversized placements emit PlacementSkipped instead of reverting |
| R1 | 4ff8abd |
3 | unchanged from V6g-D | 23,389 B | REGENERATION's cooldown starts only after a full-allotment buyback |
| VERSION 4 | aca5fcd |
4 | 0x39c130f616c32abfb40f8ab51eb54544cffd3e0d99602c71dc336bc8083c36ae |
23,389 B (runtime identical to R1) | Genome VERSION raised to 4; no other constant changed |
#What changed from RC3 to RC4
The code at aca5fcd is authoritative.
- Placement anchors. METABOLISM bids, the churn tier and REGENERATION's price limit are anchored at
atlTick; IMMUNITY atmax(spot, atlTick). RC3's time-rising floors and the previous-epoch window anchors are removed. Asks are unchanged. - Funding. RC3's shared budget (gross revenue of the previous epoch) is replaced by net-flow budgets with cumulative provenance: a bid budget from net buying, an IMMUNITY budget from net selling, and a churn tier from revenue not funded by net buying.
- Storage.
BlockStatedrops the previous-epoch extremes and gainsatlTick;EpochAccreplacesvolumeGweiwithnetGeneMicroin the same bits; slot 2 losesfloorTickandimmFloorTick; slots 21 to 23 are new. See Storage layout. - ABI. 29 functions become 27:
floorTick()andimmFloorTick()are removed;ethBudget()returns the METABOLISM net-flow budget. - Events.
EpochClosedcarriesnetGeneinstead ofvolume;FlowBudgetsandPlacementSkippedare new;MassAddedgains kind 4 and reports the effective anchor. - Genome.
FLOOR_RATE_TICKS,IMM_FLOOR_RATE_TICKS,BUDGET_BPSandASK_ANCHOR_ATHare removed;IMM_CONFIRMis now read by the code.
#Historical: RC3 (superseded)
| Item | Value |
|---|---|
| Status | Frozen as an audit candidate on 2026-10-05; superseded by RC4 on 2026-10-06 and never deployed |
| Repository | Standalone repository gene-rc3, branch main; no tag is recorded |
| Source commit | 1f2ccc6017ff1af1ebd9224b6c1b6a540c121075 |
| Genome VERSION | 1 |
| genomeHash | 0xb2d3ff6c5cd3d61898fa86fc89293f5a2e2c790b9a8d5739043e2c29548344d9 |
| GeneHook runtime | 21,911 B |
| Mechanism | Time-rising floors for METABOLISM bids and IMMUNITY, a shared ETH budget equal to the previous epoch's gross revenue with IMMUNITY funded first, all-time-high-anchored asks, and the GeneLens read split |
RC3 material that describes floors, the shared budget or the RC3 genome hash is historical and does not describe RC4.
#Historical: RC2 and RC2-v2 (stopped)
Both were built as working copies and stopped at their test gates. Neither was committed, frozen, tagged or deployed, and the recorded results do not state a Genome VERSION.
| Candidate | Status | genomeHash |
|---|---|---|
| RC2 | Stopped at the joint METABOLISM and IMMUNITY tests | 0xdefe2b88a1014c7bc1c33e84a490e9fa2a753cd95e417c46259482174bc521a2 |
| RC2-v2 | Stopped at the mixed-market economics | 0x41759937b73d85e2b91cf540e351eb24b3896a7da14aa93fe1c3a39f046e2060 |
#Before RC2
The repository records no candidate labelled RC1. The earliest material in it is an architecture and threat-model document written before any production contract existed. It is historical; where it disagrees with the RC4 code, the code is authoritative.
Sources (2)
- src/Genome.sol:12
- test/unit/GenomeHash.t.sol:11
Paths are relative to the GENE repository at tag rc4-audit-candidate (aca5fcd).