Methodology
DISCLAIMER // NFA // DYOR
This analysis is based on observations of the contract behavior. We are not smart contract security experts. This document aims to explain what the contract appears to do based on the code. It should not be considered a comprehensive security audit or financial advice. Always verify critical information independently and consult with blockchain security professionals for important decisions.
⊙ generated by robots | curated by humans
| METADATA | |
|---|---|
| Contract Address | 0x00D19609...6d7f8E (etherscan) |
| Network | Ethereum Mainnet |
| Analysis Date | 2026-11-27 |
Overview
The factory's source is verified on Etherscan, so the analysis read the source directly and then checked it against chain state. The verified file holds both the factory and the Distribution implementation it deploys, and the factory's behaviour depends on the implementation's init, so init and the clone's table rules were read as part of the factory's scope. The rest of Distribution (distribution, escrow, the timelock) was read only as far as needed to describe what create produces.
Comments in the source were read but not relied on. Each behaviour described in these documents comes from the code; where the documents quote a comment, they say so and state whether the code agrees. The claims that matter were exercised with cast call against mainnet state: the salt prefix check, salt reuse, table validation, and the refusal of a second init. Addresses the factory computes were re-derived independently with cast create2.
Because DNZN LABS publishes both this contract and this site, the analysis used only public sources: Etherscan, public Remote Procedure Call (RPC) endpoints, and the deployed code. The DNZN LABS project space supplied the identity mapping for the addresses involved.
Thought Process
mindmap
root((DistributionFactory))
Obtain
Etherscan source verified
Runtime 1,319 bytes
Created via Deterministic Deployment Proxy
Structure
No storage, no owner
One immutable: implementation
Constructor CREATE2s the implementation
create
Salt prefix == msg.sender
PUSH0 clone init code in assembly
CREATE2 then init in one tx
Table rules enforced by init
predict
CREATE2 formula
Cross-checked with cast create2
Usage
Factory nonce 3
One Created event
DNZN clone decoded
Beneficiaries identified
Trust
Address independent of config
Salt owner decides table
Unchecked owner and delay
Gas burn on salt reuse
Cross-chain
Base RPC read
Identical code and config
Verification Guide
The analysis used Foundry's cast against an Ethereum mainnet RPC and the public Base RPC, plus Etherscan API v2 for verified source, creation data, transaction lists and logs.
External Resources
- Etherscan API v2: verified source, Application Binary Interface (ABI), compiler settings, creation data, transaction lists and logs for Ethereum
- Base public RPC: code, nonce and state reads on Base, which the Etherscan free tier does not serve
- Foundry
castreference: command syntax
The specifications and sources behind the findings are listed in the References of the main analysis.
Commandline Tools
Tip
Commands below use cast from the Foundry Toolkit. To run the commands below, you must set the RPC URL environment variable:
Fetch Code and Creation Data
The runtime is compared against the verified build, and the creation transaction shows the route through the Deterministic Deployment Proxy.
# FACTORY RUNTIME BYTECODE
cast code 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E
# CREATION TRANSACTION: SENDER, TARGET (THE DETERMINISTIC DEPLOYMENT PROXY), BLOCK
cast tx 0x5cfd85b738dad390dfc0b43f7aa29e8883265d9b58cb3db87f14ad19dd4a8f50
# CONFIRM THE RUNTIME HAS NO STORAGE OPCODES AND ONE CREATE2
cast disassemble $(cast code 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E) | grep -E "SSTORE|SLOAD|CREATE2"
Verify the Implementation Address
The implementation is deployed by the factory's constructor with salt 0, so its address can be recomputed from the factory address and the implementation's init code hash.
# READ THE IMMUTABLE
cast call 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E "implementation()(address)"
# RECOMPUTE IT: CREATE2 FROM THE FACTORY, SALT 0, DISTRIBUTION INIT CODE FROM THE CREATION INPUT
cast create2 --deployer 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E \
--salt 0x0000000000000000000000000000000000000000000000000000000000000000 \
--init-code-hash 0xba32bf1ccaf2c26e18957252d044bb210fc45e61d9b0cd6211c0692f87c6a3a6
# THE HASH IS keccak256 OF THE 9,328-BYTE DISTRIBUTION INIT CODE EMBEDDED IN THE FACTORY'S INIT CODE
Count and Decode Clones
The factory keeps no registry, so the account nonce and the Created event are the record.
# NONCE: 1 + CONTRACTS CREATED
cast nonce 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E
# CREATED EVENTS (ETHERSCAN API V2)
curl "https://api.etherscan.io/v2/api?chainid=1&module=logs&action=getLogs&address=0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E&fromBlock=0&toBlock=latest&apikey=$ETHERSCAN_API_KEY"
# DECODE THE CREATE CALL
cast calldata-decode "create(address,uint32,string,(address,uint96,string,string)[],bytes32)" \
$(cast tx 0xe8b7ca91ff62854e3a6a8bd0bf08a51241a0cf2896f0a358ef1d9103ceb9afc1 input)
# CONFIRM THE CLONE SITS WHERE PREDICT SAYS
cast call 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E "predict(bytes32)(address)" \
0x68e0741d8d693e14bf56914567eaddc130b186ee000000000000000000000001
Read the Clone's Configuration
# FULL STATE IN ONE CALL
cast call 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199 \
"snapshot()((address,uint32,uint32,string,(address,uint96,string,string)[],(bytes32,uint256,bytes)[]))"
# CLONE RUNTIME: PUSH0 MINIMAL PROXY POINTING AT THE IMPLEMENTATION
cast code 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199
# BENEFICIARY VAULTS: SIGNERS AND THRESHOLD
cast call 0x00b6E7D12EdE9Ca4A74fE69be758aAB1ee02cFb9 "getOwners()(address[])"
cast call 0x00b6E7D12EdE9Ca4A74fE69be758aAB1ee02cFb9 "threshold()(uint256)"
Exercise the Revert Paths
cast call simulates a transaction from any address without sending it, which tests the access rules without spending gas.
# WRONG SENDER FOR THE SALT: EXPECT 0x0c4549ef SaltDoesNotStartWith()
cast call --from 0x000000000000000000000000000000000000dEaD 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E \
"create(address,uint32,string,(address,uint96,string,string)[],bytes32)" \
0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790 0 x "[(0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790,10000,a,b)]" \
0x68e0741d8d693e14bf56914567eaddc130b186ee000000000000000000000001
# RIGHT SENDER, USED SALT: EXPECT 0x30116425 DeploymentFailed()
cast call --gas-limit 3000000 --from 0x68e0741d8d693e14bf56914567eaddc130b186ee 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E \
"create(address,uint32,string,(address,uint96,string,string)[],bytes32)" \
0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790 0 x "[(0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790,10000,a,b)]" \
0x68e0741d8d693e14bf56914567eaddc130b186ee000000000000000000000001
# SHARES SUMMING TO 9,999: EXPECT 0x40da0647 BadTable()
cast call --from 0x68e0741d8d693e14bf56914567eaddc130b186ee 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E \
"create(address,uint32,string,(address,uint96,string,string)[],bytes32)" \
0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790 0 x "[(0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790,9999,a,b)]" \
0x68e0741d8d693e14bf56914567eaddc130b186ee000000000000000000000002
# SECOND INIT ON THE EXISTING CLONE, EVEN FROM THE FACTORY: EXPECT 0x82b42900 Unauthorized()
cast call --from 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199 \
"init(address,uint32,string,(address,uint96,string,string)[])" \
0x000000000000000000000000000000000000dEaD 0 x "[(0x000000000000000000000000000000000000dEaD,10000,a,b)]"
Compare Base
The Etherscan API v2 free tier does not serve Base, so Base was read through its public RPC.
# SAME CODE AT THE SAME ADDRESS
cast code 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E --rpc-url https://mainnet.base.org
cast nonce 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E --rpc-url https://mainnet.base.org
# SAME CLONE CONFIGURATION
cast call 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199 \
"snapshot()((address,uint32,uint32,string,(address,uint96,string,string)[],(bytes32,uint256,bytes)[]))" \
--rpc-url https://mainnet.base.org
Document Verification
The drafted documents were re-checked before publication in five independent passes, each with a narrow scope and each reading from primary sources rather than from the draft. Running them separately matters: a claim can be correctly formatted, non-redundant, neutral in tone, free of filler, and still be factually wrong, and a single reviewer holding all five concerns at once reliably drops the last one.
| DIMENSION | WHAT IT CHECKS | CHECKED AGAINST |
|---|---|---|
| Facts | Addresses, block heights, counts, dates, compiler versions, selector values, every quantitative claim | Live chain state via cast on Ethereum and Base, Etherscan API v2, the verified src/Distribution.sol |
| Standards | Address display format, explorer links on every on-chain reference, table casing, section separators, icon semantics, glossary term wrapping, nav registration | CLAUDE.md, docs/glossary.md, mkdocs.yml |
| Redundancy | Duplicated tables and paragraphs across the six documents, and the same claim stated with different values in two places | The document set itself |
| Voice | Superlatives asserted without a verification clause, opinion adjectives, speculation about intent or users | CLAUDE.md writing standards |
| Filler | Rhetorical padding — meta-narration, telegraphed structure, formulaic emphasis | CLAUDE.md anti-patterns |
Every disagreement the fact pass raised was re-derived from chain or source before any edit was made, on the assumption that the checker is as capable of being wrong as the draft. A claim was only changed where the contradicting value could be reproduced from a command in the Verification Guide above.
Token Cost Breakdown
| PHASE | DESCRIPTION | TOKENS |
|---|---|---|
| Phase 0 | Obtain the Contract | 25 tok |
| Phase 1 | Discovery & Understanding | 30 tok |
| Phase 2 | Deep Dive Analysis | 25 tok |
| Phase 3 | Risk & Trust Analysis | 20 tok |
| Phase 4 | Documentation Generation | 70 tok |
| Phase 5 | Document Verification | 790 tok |
| TOTAL | Complete Contract Analysis | 960 tok |
Phase 5 accounts for most of the total because the fact pass re-ran the on-chain reads on Ethereum and Base, recomputed every CREATE2 address, and replayed each revert path rather than reading values from the draft.
Note: Token costs are estimates based on typical conversation lengths and complexity. Actual consumption may vary by ±10-15% depending on API responses, iterative refinement, and verification steps.