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.
Every function below runs in a clone's storage context, by Delegatecall from the clone. Revert results quoted in this page were produced with cast call against the DNZN clone 0xB611Ff19...4D5199 (etherscan) at block 26,508,644 (etherscan); the commands are in the methodology.
All 25 selectors appear in the runtime dispatcher. A call with empty Calldata goes to receive; any other call that matches no selector reverts with empty data. There is no fallback.
Custom errors:
SELECTOR
ERROR
0x30cd7471
NotOwner()
0x40da0647
BadTable()
0x5a997526
NotReady(uint256 eta)
0x5c52a868
NothingToDo()
0x0f2e5b6c
Locked()
0x82b42900
Unauthorized()
0xca0b64e5
ReleaseFailed(address token)
0xf80dbaea
Expired(uint256 eta)
Summary
CATEGORY
COUNT
Total Functions
25
User Functions
5
Admin Functions
7
View Functions
13
The receive function is documented with the user functions but not counted. Private helpers, which are not callable from outside:
HELPER
ROLE
_set(table_)
Validates and stores a table: 1 to 107 rows, every share in Basis Points (bps) above zero, accounts strictly ascending, total 10,000
_push(token, to, amount, keepData)
One payment. ETH by a call capped at 100,000 gas; ERC-20 by transfer with return-value check
_balance(token)
ETH balance, or balanceOf(this) by staticcall; a token address with no code fails to decode and reverts
_selfCall(action)
address(this).call(action), bubbling any revert
_remove(hash)
Swap-and-pop removal from the pending list
_clearQueue()
Drops every pending action, newest first, emitting Cancelled for each
_bubble(data)
Re-raises revert data unchanged
User Functions
Function: distribute(address token)
Splits the clone's balance of token (or ETH when token is address(0)), less what is already escrowed, across the beneficiary table. A share that cannot be pushed is escrowed for its account.
ATTRIBUTE
VALUE
Selector
0x63453ae1
Parameters
token — ERC-20 address, or address(0) for ETH
Access
External, anyone. Takes the reentrancy lock
Events
Escrowed(token, account, amount) per failed push; Distributed(token, amount)
FLAG
OBSERVATION
☑
A failed push is escrowed rather than reverting the call, so one beneficiary cannot block the rest. Simulated with the treasury's code replaced by PUSH0 PUSH0 REVERT: its 0.2 ETH was escrowed and the other two rows were paid
☑
Escrowed value is excluded from amount, so a later distribution cannot pay it out again
☑
The ETH push copies no return data, so a recipient returning a large revert payload costs the loop only the gas cap
☑
A beneficiary that re-enters distribute or applyQueued from its push gets Locked(), which was simulated for both
◇
The last row takes the rounding remainder. Rows are stored in ascending address order, so the remainder always goes to the highest address
◇
Anyone can call it, at any time, for any token address. The caller chooses when beneficiaries are paid and which token is split
◇
USDT (etherscan), which returns no value from transfer, and USDC (etherscan) were both distributed successfully in simulation
△
A token whose balance can fall below reserved[token] makes the subtraction underflow and the call revert (Low risk)
CONDITION
REQUIREMENT
Lock free
locked == false
Something to split
_balance(token) - reserved[token] > 0
Token readable
balanceOf(this) succeeds and returns at least one word
STEP
ACTION
1
Set the transient lock
2
amount = _balance(token) - reserved[token]
3
For each row i: share = bps × amount / 10,000, or amount - paid for the last row
4
_push(token, account, share, false); on failure add share to escrowed[token][account] and reserved[token]
5
Emit Distributed(token, amount) and clear the lock
VARIABLE
CHANGE
escrowed[token][account]
+= share for each failed push
reserved[token]
+= share for each failed push
locked (transient)
Set for the duration of the call
CONDITION
REVERT MESSAGE
Re-entered during another money path
Locked()
Nothing beyond reserved
NothingToDo() (confirmed for ETH and USDC on the empty DNZN clone)
token has no code
Empty revert data from the failed decode (confirmed with an Externally Owned Account (EOA) address as token)
balanceOf reverts
The token's revert data
Balance below reserved[token]
Arithmetic underflow panic
functiondistribute(addresstoken)externalnonReentrant{uint256amount=_balance(token)-reserved[token];if(amount==0)revertNothingToDo();uint256n=_table.length;uint256paid;for(uint256i;i<n;++i){Beneficiarystorageb=_table[i];// The last row takes the remainder, so the shares always sum to `amount`.uint256share=i+1==n?amount-paid:(uint256(b.bps)*amount)/BPS_TOTAL;paid+=share;addressaccount=b.account;(boolok,)=_push(token,account,share,false);if(!ok){escrowed[token][account]+=share;reserved[token]+=share;emitEscrowed(token,account,share);}}emitDistributed(token,amount);}function_push(addresstoken,addressto,uint256amount,boolkeepData)privatereturns(boolok,bytesmemorydata){if(token==address(0)){if(keepData){(ok,data)=to.call{value:amount,gas:PUSH_GAS}("");}else{uint256gasCap=PUSH_GAS;assembly("memory-safe"){ok:=call(gasCap,to,amount,0,0,0,0)}}return(ok,data);}(ok,data)=token.call(abi.encodeWithSelector(TRANSFER,to,amount));ok=ok&&(data.length==0||(data.length>=32&&abi.decode(data,(uint256))==1));}
Function: release(address token, address account)
Retries the escrowed amount for one account, sending it to that account. Anyone can call it. If the retry fails the whole call reverts and the escrow stays.
ATTRIBUTE
VALUE
Selector
0x48b75044
Parameters
token — ERC-20 or address(0); account — the escrowed beneficiary
Access
External, anyone. Takes the reentrancy lock
Events
Released(token, account, amount)
FLAG
OBSERVATION
☑
Funds can only go to account. A third party calling it can trigger delivery but not divert it
◇
Uses the same 100,000-gas cap for ETH as distribute, so an account that failed for lack of gas will fail again here; claim is the way out for such an account
◇
A failure with a reason longer than one word bubbles that reason; anything shorter becomes ReleaseFailed(token)
CONDITION
REQUIREMENT
Lock free
locked == false
Escrow exists
escrowed[token][account] > 0
VARIABLE
CHANGE
escrowed[token][account]
Set to 0
reserved[token]
-= amount
CONDITION
REVERT MESSAGE
Nothing escrowed
NothingToDo() (confirmed)
Push fails with ≤ 32 bytes of data
ReleaseFailed(token) (confirmed with a reverting treasury)
The escrowed account takes its own escrow and sends it to to. ETH is sent with all remaining gas rather than the push cap.
ATTRIBUTE
VALUE
Selector
0x21c0b342
Parameters
token — ERC-20 or address(0); to — destination, not validated
Access
External. Moves only msg.sender's own escrow. Takes the reentrancy lock
Events
Claimed(token, account, to, amount)
FLAG
OBSERVATION
☑
Only the escrowed account can move its escrow, and the owner has no equivalent
◇
to can be any address, so an account whose own address cannot receive can still be paid elsewhere. Simulated: the treasury claimed 0.2 ETH to dxnzn.wei
△
Requires the account to make a call. A contract beneficiary that can neither receive under 100,000 gas nor call claim has no way to collect (Low risk)
Accepts plain ETH at a clone and logs it. At the implementation itself it reverts.
ATTRIBUTE
VALUE
Selector
None — runs on a call with empty calldata
Access
External, payable, anyone
Events
Received(from, amount)
FLAG
OBSERVATION
☑
address(this) == self holds only at the implementation, so the implementation refuses ETH while clones accept it (both confirmed)
△
The NatSpec says it "must run under a 2,300-gas transfer stipend". A stipend send to the clone failed in simulation while the implementation was cold, and succeeded once it was warmed (Low risk)
Sets a clone's owner, delay, description and table. Called once, by the factory, in the same transaction that creates the clone. Covered in detail in the factory analysis.
ATTRIBUTE
VALUE
Selector
0x0906e647
Access
External, payable. msg.sender == factory and the table must be empty
Events
Received(address(0), balance) if the clone already holds ETH
FLAG
OBSERVATION
☑
The empty-table check makes it one-shot: _set cannot store an empty table, so after the first init the check always fails
☑
The implementation itself can never be initialised, because the factory only calls init on the clone it just created
◇
owner_ and delay_ are not validated
CONDITION
REVERT MESSAGE
Caller is not the factory, or already initialised
Unauthorized() (confirmed from the factory address on the existing clone)
Queued(hash, nonce, eta, action); with zero delay also Applied(hash)
FLAG
OBSERVATION
☑
The full calldata is emitted and stored, so anyone can decode exactly what is queued from the event or from snapshot()
☑
The nonce in the hash lets the same action be queued more than once without collision
△
With delay == 0 the change happens in the same transaction, with no window for anyone to react. The factory permits a zero delay; the DNZN clone uses 604,800 seconds
◇
action is not restricted to the four setters. Any call the clone can make to itself is accepted; a call to propose or init this way reverts on its own access check
sequenceDiagram
participant O as Owner
participant C as Clone
participant A as Anyone
O->>C: propose(setBeneficiaries(...))
C-->>C: queued[hash] = now + delay
Note over C: Queued(hash, nonce, eta, action)
alt owner changes its mind
O->>C: cancel(hash)
Note over C: Cancelled(hash)
else eta ≤ now ≤ eta + 14 days
A->>C: applyQueued(action, nonce)
C->>C: setBeneficiaries(...) as self
Note over C: Applied(hash)
else now > eta + 14 days
A->>C: cancel(hash)
Note over C: expired entry dropped
end
Function: cancel(bytes32 hash)
Drops a queued action immediately. The owner can cancel any queued action; anyone can cancel one that has expired.
ATTRIBUTE
VALUE
Selector
0xc4d252f5
Parameters
hash — the queued action's hash
Access
External. Owner, or anyone when block.timestamp > eta + 14 days
Events
Cancelled(hash)
FLAG
OBSERVATION
☑
Cancelling is never delayed. The owner can cancel until the action is applied; after its eta, cancelling races anyone who applies it
☑
Expired entries can be cleaned up even after a renounce. Simulated: a non-owner was refused on an entry matured one day earlier and succeeded on one past its grace window
Returns the owner, delay, nonce, description, full table and full pending list in one call. The DNZN clone's values are in the getter table below and in the artifacts.