Skip to content

Contract Analysis

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

CONFLICT OF INTEREST

This contract is published by DNZN LABS, the organisation behind this site. The analysis uses only public sources. See the DNZN LABS project space for the identity and control mapping it relies on.

Analysis Date: 2026-11-27


Metadata

Primary Contract

PROPERTY VALUE
Contract Address 0xc4eD7EA2...F8cB0A (etherscan)
Network Ethereum Mainnet (same runtime code at the same address on Base (basescan))
Contract Type Implementation Contract behind Minimal Proxy clones. Never initialised itself
Deployment Date 2026-11-22 09:36:59 Coordinated Universal Time (UTC)
Deployment Block 26,469,801 (etherscan)
Contract Creator DistributionFactory 0x00D19609...6d7f8E (etherscan), from its constructor with CREATE2 at salt 0. The transaction was sent by elanik.wei 0x5A158aF8...bBC50d (etherscan)
Creation TX 0x5cfd85b7...4a8f50 (tx), the same transaction that deployed the factory
Compiler Version solc v0.8.38+commit.1835d247, via-IR, optimizer 1,000 runs, Ethereum Virtual Machine (EVM) version cancun
Runtime Size 9,277 bytes
Total Functions 25 external functions and a receive function
External Contract Dependencies None fixed. Calls whichever ERC20 token a caller names, and each beneficiary when paid
Upgrade Mechanism ☑ None — not upgradable. Each clone's code names this implementation permanently
Verification Status ☑ Verified on Etherscan as Distribution
Audit Status ☒ No audit report located
TYPE ADDRESS NOTES
Factory 0x00D19609...6d7f8E (etherscan) Deployer of this contract, and the only address init accepts. See the DistributionFactory analysis
Clone (DNZN) 0xB611Ff19...4D5199 (etherscan) The live example used throughout. Created at block 26,469,844 (etherscan) in 0xe8b7ca91...b9afc1 (tx). The factory's only clone as of block 26,508,644 (etherscan)
Clone owner 0x00c0e887...1F3790 (etherscan) DNZN Ops vault, a 2-of-4 Multisig. Also a beneficiary
Beneficiary (treasury) 0x00b6E7D1...02cFb9 (etherscan) DNZN treasury vault, a 2-of-3 multisig
Beneficiary (creator) 0x357836fF...61902B (etherscan) dxnzn.wei, an EIP-7702 account delegated to 0x63c0c19a...DAE32B (etherscan)

Executive Summary

Distribution is the logic behind every RAKE payment splitter. It is deployed once, and each splitter is a 45-byte clone that runs this code by Delegatecall against its own storage. A clone holds an owner, a Timelock delay, a description, and a table of up to 107 beneficiaries whose shares are stated in Basis Points (bps) and must total 10,000.

Money reaches a clone as plain ETH or as ERC-20 transfers. Anyone may call distribute(token), which splits the clone's balance of that token, less anything already held in escrow, across the table in one transaction. ETH is pushed to each beneficiary with a 100,000-gas cap. A push that fails is not retried in the loop; the share is escrowed under that beneficiary's address, from where anyone can release it to the beneficiary or the beneficiary can claim it to an address of its choosing.

The owner cannot move funds directly. Every configuration change, including a change to the table, goes through propose, waits out the clone's delay, and must then be applied within a 14-day window by anyone calling applyQueued. The owner can cancel a queued change at any time before it is applied. Ownership moves in two steps, and either a handover or a renounce drops everything the previous owner had queued.

The main trust assumption is the owner: after the delay, it can point all future and undistributed money at any table it likes, including itself. The delay is the protection, and it is per-clone; the factory accepts zero. The DNZN clone uses a 7-day delay and is owned by the DNZN Ops vault. At block 26,508,644 (etherscan) it held no ETH, had never had an action proposed, and had made no distribution. The code was deployed five days before this analysis and no audit was located.


Architecture

graph TB
    F["DistributionFactory<br/>0x00D19609...6d7f8E"]
    I["Distribution implementation<br/>0xc4eD7EA2...F8cB0A<br/>immutables: factory, self<br/>storage: empty"]
    C["Clone 0xB611Ff19...4D5199<br/>owner, delay, nonce, table,<br/>pending queue, escrow"]
    P["Payers<br/>ETH or ERC-20"]
    O["Owner<br/>Ops vault 2-of-4"]
    A["Anyone"]
    B["Beneficiaries<br/>treasury / ops / creator"]
    T["ERC-20 token<br/>named by the caller"]

    F -->|"constructor: CREATE2 salt 0"| I
    F -->|"create: CREATE2 + init (once)"| C
    C -.->|"delegatecall every call"| I
    P -->|"ETH via receive / token transfer"| C
    O -->|"propose(action) / cancel(hash)"| C
    A -->|"distribute / release / applyQueued"| C
    C -->|"self-call after delay:<br/>setBeneficiaries, setDelay,<br/>setDescription, transferOwnership"| C
    C -->|"push share (ETH: 100k gas cap)"| B
    C -->|"balanceOf / transfer"| T
    B -->|"claim(token, to)"| C

    style I fill:#e1f0ff
    style C fill:#fff4d6

System Overview

Receiving. Plain ETH enters through receive, which logs Received(from, amount). ERC-20 tokens arrive by ordinary transfer and are not logged by the clone. The implementation itself refuses ETH: receive compares the executing address with the self immutable, which only matches at the implementation.

Paying out. distribute(token):

  1. Takes the lock and computes amount = balance(token) - reserved[token], reverting NothingToDo() if that is zero.
  2. Walks the table in stored order. Each row gets bps × amount / 10,000, rounded down; the last row gets whatever is left, so the shares always sum to amount.
  3. Pushes each share. ETH goes by a call capped at 100,000 gas that copies no return data; ERC-20 goes by transfer, which counts as successful if it returns nothing or returns a word equal to 1.
  4. Escrows any share whose push failed: escrowed[token][account] and reserved[token] both increase and Escrowed is logged.
  5. Logs Distributed(token, amount) and releases the lock.

Changing configuration. The owner calls propose(action), where action is calldata for one of four onlySelf functions. The clone stores it under keccak256(abi.encode(action, nonce)) with an eta of now + delay. Between eta and eta + 14 days anyone can call applyQueued(action, nonce), and the clone calls itself with action. With a delay of zero, propose makes the self-call at once.

What the contract does not do:

  • It has no function that sends funds to the owner, or anywhere other than a table row or an escrow holder's chosen address.
  • It cannot be paused or upgraded, and tokens sent to the implementation cannot be recovered.
  • It keeps no record of which tokens it has received. distribute must be called once per token, and the caller names the token.
  • It does not reassign escrow when the table changes. An escrowed share stays with the account it was escrowed for.

Design Patterns Used

  • Clone with immutables read through delegatecall: factory and self live in the implementation's bytecode, so every clone sees the factory as the only permitted init caller and sees an address other than its own as self. The implementation's storage is never written.
  • Push with escrow fallback: payment is attempted in the loop, and a failure parks the share rather than reverting the distribution. One reverting beneficiary cannot block the others.
  • Self-call timelock: every mutator is onlySelf, reachable only through propose and applyQueued. A queued action is identified by the hash of its calldata and nonce, and the calldata itself is emitted in Queued and stored in the pending list.
  • Grace window: a matured action expires 14 days after its eta, after which anyone may cancel it. The NatSpec cites Compound's Timelock as the model.
  • Two-step ownership: a nomination needs the nominee's acceptOwnership, in the shape of OpenZeppelin's Ownable2Step. Handover and renounce both clear the queue.
  • Transient Storage reentrancy lock: distribute, release and claim take a lock held in transient storage; propose and applyQueued refuse to run while it is held, so the table cannot change between two rows of a payout.
  • Sorted table validation: accounts must be strictly ascending, which rules out duplicate rows and the zero address in one comparison per row.

Access Control

Roles & Permissions

ROLE ASSIGNED BY REVOKABLE CALL COUNT
Factory Implementation constructor (factory = msg.sender) No init once per clone
Owner init, then acceptOwnership Yes — by a timelocked transferOwnership, including to address(0) Unlimited
Timelock (self-call) Implicit — the clone calling itself from propose or applyQueued No Once per queued action
Nominee (pendingOwner) Timelocked transferOwnership(nominee) Yes — by a timelocked transferOwnership(owner), or replaced by another nomination Once
Escrow holder Implicit — any account with a non-zero escrowed[token][account] Cleared when the escrow is paid out Once per escrow
Anyone — N/A Unlimited

Permission Matrix

FUNCTION OWNER TIMELOCK (SELF) NOMINEE ESCROW HOLDER FACTORY ANYONE
init ☒ ☒ ☒ ☒ ☑ once ☒
distribute ☑ ☑ ☑ ☑ ☑ ☑
release ☑ ☑ ☑ ☑ ☑ ☑
claim (own escrow) ☒ ☒ ☒ ☑ ☒ ☒
propose ☑ ☒ ☒ ☒ ☒ ☒
applyQueued (matured, not expired) ☑ ☑ ☑ ☑ ☑ ☑
cancel (before expiry) ☑ ☒ ☒ ☒ ☒ ☒
cancel (after expiry) ☑ ☑ ☑ ☑ ☑ ☑
setBeneficiaries, setDelay, setDescription, transferOwnership ☒ ☑ ☒ ☒ ☒ ☒
acceptOwnership ☒ ☒ ☑ ☒ ☒ ☒
receive (ETH) ☑ ☑ ☑ ☑ ☑ ☑

A direct call to any of the four onlySelf functions from the Ops vault reverts Unauthorized() on the DNZN clone.

Time Locks & Delays

ACTION TIME LOCK CAN CANCEL PURPOSE
Replace the beneficiary table Clone delay (604,800 s, 7 days, on the DNZN clone) Yes — owner until applied; anyone once expired △ Redirects all future and undistributed funds once applied
Change the delay Current delay Same △ A lowered delay applies to every proposal made after it
Change the description Clone delay Same ◇ Display text only
Nominate or renounce ownership Clone delay Same ◇ Renounce takes effect when applied; a nomination still needs acceptance
Accept ownership None N/A ◇ Immediate for the nominee, with no expiry on the nomination
Apply a matured action Window of eta to eta + 14 days (GRACE) Expires after the window ☑ An action nobody applies lapses
distribute, release, claim None N/A ◇ Money paths are never delayed

Economic Model

Funding Sources & Sinks

Funds enter a clone as ETH sent to it (logged by Received), ETH attached to the factory's create call or sent to the clone's address before it existed (logged once by init as Received(address(0), balance)), ETH forced in without a call (not logged), and ERC-20 transfers (logged only by the token). Funds leave only through distribute to table rows, release to the escrowed account, and claim to an address the escrowed account names.

The contract charges no fee and keeps nothing for itself. ETH or tokens sent to the implementation address are a separate case covered in the factory analysis.

Distribution Flow

flowchart TD
    S["distribute(token) — anyone"] --> L{"lock held?"}
    L -->|yes| X1["revert Locked()"]
    L -->|no| A["amount = balance(token) − reserved[token]"]
    A --> Z{"amount == 0?"}
    Z -->|yes| X2["revert NothingToDo()"]
    Z -->|no| R["for each row, in ascending account order"]
    R --> SH["share = bps × amount / 10,000<br/>(last row: amount − paid)"]
    SH --> PU{"push ok?<br/>ETH: call, 100k gas<br/>ERC-20: transfer"}
    PU -->|yes| N["next row"]
    PU -->|no| E["escrowed[token][account] += share<br/>reserved[token] += share<br/>emit Escrowed"]
    E --> N
    N -->|rows left| SH
    N -->|done| D["emit Distributed(token, amount)"]
    D --> CL["escrow paid later by<br/>release (anyone, same gas cap)<br/>or claim (holder, own gas, any address)"]

Economic Invariants

These follow from the code and were exercised in simulation against the DNZN clone:

  • The shares paid or escrowed in one distribute sum to amount exactly. A 10,001-wei distribution paid 2,000, 4,000 and 4,001 wei.
  • reserved[token] equals the sum of escrowed[token][account] over all accounts; every write changes both by the same amount.
  • distribute never spends escrowed value. With 1.2 ETH held and 0.2 ETH reserved, it distributed 1.0 ETH.
  • Changing the table does not touch escrowed or reserved.

The DNZN Clone

BENEFICIARY ADDRESS SHARE NAME / NOTE (AS STORED)
Treasury vault 0x00b6E7D1...02cFb9 (etherscan) 20% (2,000 bps) treasury / long-term growth, future projects
Ops vault 0x00c0e887...1F3790 (etherscan) 40% (4,000 bps) ops / infrastructure, services, tokens
dxnzn.wei 0x357836fF...61902B (etherscan) 40% (4,000 bps) creator / founding engineer, product vision

The rows are in ascending address order, so dxnzn.wei is the last row and receives any rounding remainder. In a simulated 1 ETH distribution all three pushes succeeded and the call used 72,489 gas.


Summary of Observations

Distribution is a payment splitter run through clones. A clone pays its table on demand, escrows what it cannot pay, and puts every change to itself behind one owner-controlled timelock. The implementation was read from verified source and each revert path identified in the source was exercised against the DNZN clone with cast call (commands in the methodology), including the timelock window, escrow, ERC-20 payouts in USDT (etherscan) and USDC (etherscan), and reentrancy from a beneficiary.

Properties observed in the code:

  • The owner has no direct path to funds. Its only lever over money is the table, and that lever is delayed and public: the full calldata of a queued change is in the Queued event and in snapshot().
  • A single failing or hostile ETH beneficiary costs a distribution at most the 100,000-gas cap and cannot block the other rows.
  • The table cannot change in the middle of a payout. A beneficiary that re-entered applyQueued or distribute from its push hit Locked().
  • A queued change that nobody applies within 14 days of maturing lapses, and a handover or renounce drops everything queued before it.
  • There is no upgrade path. A clone runs this code for as long as it exists.

Caveats for payers, beneficiaries and integrators:

  • After the delay the owner can redirect everything not yet distributed. Beneficiaries who want what has accrued under the current table should call distribute before a queued table change matures. See The Owner Can Redirect Funds After the Delay.
  • A payer that sends ETH with a 2,300-gas Gas Stipend, as Solidity's transfer and send do, fails unless the implementation address is already warm in that transaction. This contradicts the NatSpec on receive. See Stipend Sends Fail While the Implementation Is Cold.
  • An escrow can only be released to its own account or claimed by that account. A beneficiary that cannot make calls and cannot receive under 100,000 gas would leave its escrow stuck.
  • The delay, the beneficiaries and the labels are per-clone choices. This analysis describes what the code allows; each clone's snapshot() shows what it actually holds.

This analysis was performed for educational purposes and should not be considered an official security audit or financial advice.


References

RESOURCE NOTES
Etherscan — Distribution implementation Verified source, ABI and compiler settings
Etherscan — DNZN clone Live clone used for every storage read and simulation
DistributionFactory analysis How clones are created and initialised
EIP-1153: Transient storage opcodes TSTORE/TLOAD, used by the reentrancy lock
EIP-2929: Gas cost increases for state access opcodes The cold-account surcharge behind the stipend finding
Compound Timelock The grace-period model the NatSpec names
OpenZeppelin Ownable2Step The two-step ownership shape the contract follows
DNZN LABS project space Identity and control mapping for every DNZN address named here
Mastering Ethereum, 2nd Edition Background on delegatecall, gas and contract storage

Change Log

DATE AUTHOR NOTES
2026-11-27 Artificial. Generated by robots. Gas: 1 mtok
2026-11-27 Denizen. Reviewed, edited, and curated by humans.