Skip to content

Artifacts

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

Runtime Bytecode

The deployed factory bytecode, 1,319 bytes. The implementation address 0xc4eD7EA2...F8cB0A (etherscan) appears in it three times as an embedded immutable.

Source: Etherscan - Contract Code

Command:

export ETH_RPC_URL=https://eth.llamarpc.com
cast code 0x00D19609f2349d4160D2BaBAf46b0Cd1eC6d7f8E

Artifact:

0x608060405260033611610010575f80fd5b5f5f3560e01c80630e787cce146103845780635c60da1b146103415763f0f469ff1461003a575f80fd5b60a036600319011261030857600435906001600160a01b038216809203610308576024359163ffffffff8316809303610308576044359067ffffffffffffffff8211610308573660238301121561030857816004013567ffffffffffffffff8111610308573660248285010111610308576064359067ffffffffffffffff821161030857366023830112156103085781600401359067ffffffffffffffff8211610308578160051b90366024838601011161030857608435338160601c03610319576f5af43d5f5f3e6029573d5ffd5b3d5ff36024527f000000000000000000000000c4ed7ea21b8cc334f08945b4d0c182e0aff8cb0a60145271602d5f8160095f39f35f5f365f5f37365f735f526036600e34f5801561030c575f6024526001600160a01b031695863b15610308576101bb906040999593929951998a967f0906e647000000000000000000000000000000000000000000000000000000008852886004890152602488015260806044880152602460848801920161049f565b926003198585030160648601528084526020808501928501019360248401935f9160a21982360301905b84841061025657888c8c8c5f84808e038183865af193841561024b57602094610236575b50817f587ece4cd19692c5be1a4184503d607d45542d2aca0698c0068f52e09ccb541c6040519480a38152f35b6102439193505f90610450565b5f9184610209565b6040513d5f823e3d90fd5b9193959750919395601f19828203018752873583811215610308578401906024820180356001600160a01b0381168091036103085782526044830135906bffffffffffffffffffffffff821680920361030857600193836102e86102f69360209695878097015260846102e06102cf60648701846104bf565b60806040880152608087019161049f565b9401906104bf565b91606081850391015261049f565b990197019401918b97969593916101e5565b5f80fd5b63301164255f526004601cfd5b7f0c4549ef000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610308575f3660031901126103085760206040516001600160a01b037f000000000000000000000000c4ed7ea21b8cc334f08945b4d0c182e0aff8cb0a168152f35b34610308576020366003190112610308576f5af43d5f5f3e6029573d5ffd5b3d5ff36024527f000000000000000000000000c4ed7ea21b8cc334f08945b4d0c182e0aff8cb0a60145271602d5f8160095f39f35f5f365f5f37365f735f5260206001600160a01b036036600e205f602452604051838101917fff0000000000000000000000000000000000000000000000000000000000000083523060601b60218301526004356035830152605582015260558152610444607582610450565b51902016604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761047257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b908060209392818452848401375f828201840152601f01601f1916010190565b9035601e198236030181121561030857016020813591019167ffffffffffffffff82116103085781360383136103085756fea26469706673582212208970790347a931b555a53aaa29d4c9b5552766dbd1c06ca767cc0901bd87591d64736f6c63430008260033


Creation Bytecode

The init code passed through the Deterministic Deployment Proxy. The transaction's input is this init code prefixed with the 32-byte salt 0xf83d35ce...6e4193; the artifact below has that salt removed. It contains the Distribution init code as well, because the factory's constructor deploys the implementation.

Source: Etherscan - Creation TX

Command:

export ETH_RPC_URL=https://eth.llamarpc.com
# input = salt (32 bytes) ‖ init code
cast tx 0x5cfd85b738dad390dfc0b43f7aa29e8883265d9b58cb3db87f14ad19dd4a8f50 input

Artifact:

0x60a0806040523460855761247081810191906001600160401b038311828410176071575f9282916105b18339039082f580156066576001600160a01b0316608052604051610527908161008a82396080518181816101120152818161036001526103ab0152f35b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fdfe608060405260033611610010575f80fd5b5f5f3560e01c80630e787cce146103845780635c60da1b146103415763f0f469ff1461003a575f80fd5b60a036600319011261030857600435906001600160a01b038216809203610308576024359163ffffffff8316809303610308576044359067ffffffffffffffff8211610308573660238301121561030857816004013567ffffffffffffffff8111610308573660248285010111610308576064359067ffffffffffffffff821161030857366023830112156103085781600401359067ffffffffffffffff8211610308578160051b90366024838601011161030857608435338160601c03610319576f5af43d5f5f3e6029573d5ffd5b3d5ff36024527f000000000000000000000000000000000000000000000000000000000000000060145271602d5f8160095f39f35f5f365f5f37365f735f526036600e34f5801561030c575f6024526001600160a01b031695863b15610308576101bb906040999593929951998a967f0906e647000000000000000000000000000000000000000000000000000000008852886004890152602488015260806044880152602460848801920161049f565b926003198585030160648601528084526020808501928501019360248401935f9160a21982360301905b84841061025657888c8c8c5f84808e038183865af193841561024b57602094610236575b50817f587ece4cd19692c5be1a4184503d607d45542d2aca0698c0068f52e09ccb541c6040519480a38152f35b6102439193505f90610450565b5f9184610209565b6040513d5f823e3d90fd5b9193959750919395601f19828203018752873583811215610308578401906024820180356001600160a01b0381168091036103085782526044830135906bffffffffffffffffffffffff821680920361030857600193836102e86102f69360209695878097015260846102e06102cf60648701846104bf565b60806040880152608087019161049f565b9401906104bf565b91606081850391015261049f565b990197019401918b97969593916101e5565b5f80fd5b63301164255f526004601cfd5b7f0c4549ef000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610308575f3660031901126103085760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34610308576020366003190112610308576f5af43d5f5f3e6029573d5ffd5b3d5ff36024527f000000000000000000000000000000000000000000000000000000000000000060145271602d5f8160095f39f35f5f365f5f37365f735f5260206001600160a01b036036600e205f602452604051838101917fff0000000000000000000000000000000000000000000000000000000000000083523060601b60218301526004356035830152605582015260558152610444607582610450565b51902016604051908152f35b90601f8019910116810190811067ffffffffffffffff82111761047257604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b908060209392818452848401375f828201840152601f01601f1916010190565b9035601e198236030181121561030857016020813591019167ffffffffffffffff82116103085781360383136103085756fea26469706673582212208970790347a931b555a53aaa29d4c9b5552766dbd1c06ca767cc0901bd87591d64736f6c6343000826003360c08060405234602e57336080523060a05261243d9081610033823960805181611386015260a0518160210152f35b5f80fdfe60806040526003361161009d575b3615610017575f80fd5b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163014610075576040513481527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587460203392a2005b7f82b42900000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f3560e01c80630906e6471461131a57806310348665146112b95780631312690214611265578063137d29d9146112485780631d29bd5a1461119057806321c0b34214611074578063228250c91461104a5780632348dd181461102f57806337558af514610cd857806348b7504414610ba757806363453ae114610a025780636a42b8f8146109dd5780637284e416146109a257806379ba5097146109325780638868f490146108f15780638da5cb5b146108cc57806390c3f38f146107a85780639711715a146104e9578063affed0e0146104c4578063c4d252f5146103db578063cb313c171461025e578063da9425e214610226578063e30c397814610200578063ea70b4af146101e35763f2fde38b0361000d57346101df5760203660031901126101df576101cd61151c565b303303610075576101dd90611a7c565b005b5f80fd5b346101df575f3660031901126101df576020600454604051908152f35b346101df575f3660031901126101df5760206001600160a01b0360015416604051908152f35b346101df5760203660031901126101df576001600160a01b0361024761151c565b165f526007602052602060405f2054604051908152f35b346101df5760403660031901126101df5760043567ffffffffffffffff81116101df5761028f90369060040161155b565b610297611548565b60ff5f5c166103b3576040516102c5816102b760208201948688876119be565b03601f19810183528261176e565b51902090815f52600660205260405f205492831580156103aa575b61037e5762127500840180851161036a57421161033e579061031891835f5260066020525f604081205561031384612362565b6120ab565b7f76b127dd1235a20820e8a643d0e4be3984ad16c7e748bfd0fdef7325bf98a6e55f80a2005b837ff80dbaea000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b837f5a997526000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b508342106102e0565b7f0f2e5b6c000000000000000000000000000000000000000000000000000000005f5260045ffd5b346101df5760203660031901126101df57600435805f52600660205260405f20546001600160a01b035f5416331415806104a6575b61047e571561045657805f5260066020525f604081205561043081612362565b7fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb705f80a2005b7f5c52a868000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f30cd7471000000000000000000000000000000000000000000000000000000005f5260045ffd5b50801580610410575062127500810180821161036a57421115610410565b346101df575f3660031901126101df57602063ffffffff5f5460c01c16604051908152f35b346101df575f3660031901126101df57606060a060405161050981611752565b5f81525f60208201525f6040820152828082015282608082015201525f546040519061053482611752565b6001600160a01b03811682526020820163ffffffff8260a01c16815263ffffffff604084019260c01c1682526040516105778161057081611616565b038261176e565b60608401908152610586611873565b92608085019384526004549261059b8461185b565b936105a9604051958661176e565b8085526020850160045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5f915b838310610762576001600160a01b038a8a8a61062e8b63ffffffff8c818d60a08901968752604051998a9960208b52511660208a015251166040880152511660608601525160c0608086015260e08501906115ba565b915191601f198482030160a0850152825180825260208201916020808360051b8301019501925f915b8383106106e45750505050505190601f198382030160c0840152815180825260208201916020808360051b8301019401925f915b8383106106985786860387f35b9193955091936020806106d2600193601f19868203018752606060408b5180518452858101518685015201519181604082015201906115ba565b9701930193019092869594929361068b565b9193965091939460208061074f600193601f198682030187528a51906001600160a01b0382511681526bffffffffffffffffffffffff848301511684820152606061073e60408401516080604085015260808401906115ba565b9201519060608184039101526115ba565b9801930193019092879695949293610657565b6003602060019260405161077581611736565b855481528486015483820152604051610795816105708160028b016116b5565b60408201528152019201920191906105d8565b346101df5760203660031901126101df5760043567ffffffffffffffff81116101df576107d990369060040161155b565b3033036100755767ffffffffffffffff81116108b857610803816107fe6002546115de565b6117ab565b5f601f8211600114610840578190610830935f92610835575b50508160011b915f199060031b1c19161790565b600255005b01359050838061081c565b601f198216927f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace915f5b8581106108a057508360019510610887575b505050811b01600255005b01355f19600384901b60f8161c1916905582808061087c565b9092602060018192868601358155019401910161086a565b634e487b7160e01b5f52604160045260245ffd5b346101df575f3660031901126101df5760206001600160a01b035f5416604051908152f35b346101df5760203660031901126101df5760043567ffffffffffffffff81116101df57610922903690600401611589565b303303610075576101dd91611bcf565b346101df575f3660031901126101df576001546001600160a01b0381163303610075576001600160a01b0319905f54336001600160a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3821633175f55166001556101dd61221a565b346101df575f3660031901126101df576109d96040516109c58161057081611616565b6040519182916020835260208301906115ba565b0390f35b346101df575f3660031901126101df57602063ffffffff5f5460a01c16604051908152f35b346101df5760203660031901126101df57610a1b61151c565b60ff5f5c166103b357600160ff195f5c16175f5d610a38816120dc565b90610a5a6001600160a01b03821692835f52600760205260405f205490611946565b908115610456576003545f91825b828410610aa557857fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af602087604051908152a260ff195f5c165f5d005b610aae84611a20565b50936001810180821161036a578403610b765781876001600160a01b03610ae1610ada6001968b611946565b80946119e3565b97541691610af0818488612040565b5015610b01575b5050500192610a68565b60207f393ce2c0bfa95c5e6f8a6a5fa26f9c0bc5fdc639dbbcc4483deabe68055c9eea91835f526008825260405f206001600160a01b0386165f52825260405f20610b4d8282546119e3565b9055835f526007825260405f20610b658282546119e3565b9055604051908152a3878781610af7565b845460a01c918683029280840488149015171561036a57876001600160a01b03610ae16127106001960480946119e3565b346101df5760403660031901126101df57610bc061151c565b610bc8611532565b60ff5f5c166103b357600160ff195f5c16175f5d6001600160a01b03821690815f52600860205260405f206001600160a01b0382165f5260205260405f2054928315610456578382610c5392855f52600860205260405f206001600160a01b0383165f526020525f6040812055855f52600760205260405f20610c4c848254611946565b9055611f92565b9015610c99575060206001600160a01b037f2d87480f50083e2b2759522a8fdda59802650a8055e609a7772cf70c07748f52926040519586521693a360ff195f5c165f5d005b82602082511115610cad5750602081519101fd5b7fca0b64e5000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b346101df5760203660031901126101df5760043567ffffffffffffffff81116101df57610d0990369060040161155b565b9060ff5f5c166103b3575f54906001600160a01b038216330361047e5763ffffffff8260c01c1663ffffffff811461036a57600101917fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff7bffffffff0000000000000000000000000000000000000000000000008460c01b1691161791825f5563ffffffff6040516020810190610da6816102b7868a89876119be565b5190209360a01c1680610e2757509281837fbdef012f70eb3f9cb205f1123e2f1cc1d8aae8c9b91a562c660bb80e4eab3136610df994602097610df186604051938493429085611a57565b0390a26120ab565b807f76b127dd1235a20820e8a643d0e4be3984ad16c7e748bfd0fdef7325bf98a6e55f80a25b604051908152f35b610e3490949194426119e3565b835f5260066020528060405f20556004546001810180911161036a57845f52600560205260405f205560405194610e6a86611736565b8486526020860195828752610e7e84611953565b96610e8c604051988961176e565b84885236858701116101df57848660208a01375f6020868a01015260408201978852600454680100000000000000008110156108b857806001610ed292016004556119f0565b91909161101c576002925182555160018201550195519283519667ffffffffffffffff88116108b857878795610f1460209a610f0e85546115de565b85611817565b8990601f8311600114610f8c57827fbdef012f70eb3f9cb205f1123e2f1cc1d8aae8c9b91a562c660bb80e4eab3136989993610f79969593610f6a935f92610f815750508160011b915f199060031b1c19161790565b90555b60405194859485611a57565b0390a2610e1f565b015190508d8061081c565b97929190601f19821698835f52815f20995f5b8181106110025750996001928492610f79989796957fbdef012f70eb3f9cb205f1123e2f1cc1d8aae8c9b91a562c660bb80e4eab31369c9d10610fea575b505050811b019055610f6d565b01515f1960f88460031b161c191690558c8080610fdd565b838301518c556001909b019a8c9a50928d01928d01610f9f565b634e487b7160e01b5f525f60045260245ffd5b346101df575f3660031901126101df576020604051606b8152f35b346101df5760203660031901126101df576004355f526006602052602060405f2054604051908152f35b346101df5760403660031901126101df5761108d61151c565b611095611532565b9060ff5f5c166103b357600160ff195f5c16175f5d6001600160a01b03811690815f52600860205260405f206001600160a01b0333165f5260205260405f205490811561045657825f52600860205260405f206001600160a01b0333165f526020525f6040812055825f52600760205260405f20611114838254611946565b9055818484611181575f809350809281925af161112f61196f565b905b15610c995750604080516001600160a01b03949094168452602084019190915233927f913c992353dc81b7a8ba31496c484e9b6306bd2f6c509a649a38fdf5e1c953b29190a360ff195f5c165f5d005b61118a92611f92565b90611131565b346101df575f3660031901126101df576111a8611873565b6040518091602082016020835281518091526040830190602060408260051b8601019301915f905b8282106111df57505050500390f35b919360019193955060206112388192603f198a82030186528851906001600160a01b0382511681526bffffffffffffffffffffffff848301511684820152606061073e60408401516080604085015260808401906115ba565b96019201920185949391926111d0565b346101df575f3660031901126101df576020604051621275008152f35b346101df5760403660031901126101df5761127e61151c565b6001600160a01b0361128e611532565b91165f5260086020526001600160a01b0360405f2091165f52602052602060405f2054604051908152f35b346101df5760203660031901126101df5760043563ffffffff811681036101df57303303610075577fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff63ffffffff60a01b5f549260a01b169116175f555f80f35b60803660031901126101df5761132e61151c565b611336611548565b9060443567ffffffffffffffff81116101df5761135790369060040161155b565b929060643567ffffffffffffffff81116101df57611379903690600401611589565b9390926001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163314801590611511575b610075577fffffffffffffffff0000000000000000000000000000000000000000000000006001600160a01b0363ffffffff60a01b5f549360a01b169316911617175f5567ffffffffffffffff84116108b857611412846107fe6002546115de565b5f90601f851160011461148b5793806114439261144b965f926114805750508160011b915f199060031b1c19161790565b600255611bcf565b4761145257005b5f7f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874602047604051908152a2005b01359050868061081c565b601f1985169160025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace925f5b8181106114f9575091600193918761144b9894106114e0575b505050811b01600255611bcf565b01355f19600384901b60f8161c191690558580806114d2565b919360206001819287870135815501950192016114b9565b5060035415156113b0565b600435906001600160a01b03821682036101df57565b602435906001600160a01b03821682036101df57565b6024359063ffffffff821682036101df57565b9181601f840112156101df5782359167ffffffffffffffff83116101df57602083818601950101116101df57565b9181601f840112156101df5782359167ffffffffffffffff83116101df576020808501948460051b0101116101df57565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b90600182811c9216801561160c575b60208310146115f857565b634e487b7160e01b5f52602260045260245ffd5b91607f16916115ed565b6002545f9291611625826115de565b80825291600181169081156116995750600114611640575050565b60025f9081529293509091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b83831061167f575060209250010190565b60018160209294939454838587010152019101919061166e565b9050602093945060ff929192191683830152151560051b010190565b5f92918154916116c4836115de565b808352926001811690811561171957506001146116e057505050565b5f9081526020812093945091925b8383106116ff575060209250010190565b6001816020929493945483858701015201910191906116ee565b915050602093945060ff929192191683830152151560051b010190565b6060810190811067ffffffffffffffff8211176108b857604052565b60c0810190811067ffffffffffffffff8211176108b857604052565b90601f8019910116810190811067ffffffffffffffff8211176108b857604052565b5f5b82811061179e57505050565b5f82820155600101611792565b601f81116117b8575b5050565b8181116117c3575050565b60025f5261180d917f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace91601f820160051c9160201161180f575b601f82910160051c039101611790565b565b5f91506117fd565b91601f821161182557505050565b80821161183157505050565b61180d925f5260205f20916020601f830160051c921061180f57601f82910160051c039101611790565b67ffffffffffffffff81116108b85760051b60200190565b600354906118808261185b565b9161188e604051938461176e565b80835260035f9081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9190602085015b8282106118cc5750505050565b6040516080810181811067ffffffffffffffff8211176108b85760019260039260209260405287546001600160a01b038116825260a01c8382015260405161191a8161057081898d016116b5565b6040820152604051611933816105708160028d016116b5565b60608201528152019401910190926118bf565b9190820391821161036a57565b67ffffffffffffffff81116108b857601f01601f191660200190565b3d15611999573d9061198082611953565b9161198e604051938461176e565b82523d5f602084013e565b606090565b908060209392818452848401375f828201840152601f01601f1916010190565b916119dc60209263ffffffff9296959660408652604086019161199e565b9416910152565b9190820180921161036a57565b600454811015611a0c5760045f52600360205f20910201905f90565b634e487b7160e01b5f52603260045260245ffd5b600354811015611a0c5760035f81815291027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0191565b611a79949263ffffffff6060931682526020820152816040820152019161199e565b90565b6001600160a01b0381168015611ac9575f546001600160a01b031603611abb57506001600160a01b035f5b166001600160a01b03196001541617600155565b6001600160a01b0390611aa7565b50506001600160a01b03195f545f6001600160a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3165f556001600160a01b03196001541660015561180d61221a565b611b2a81546115de565b9081611b34575050565b81601f5f9311600114611b45575055565b81835260208320611b6291601f0160051c84190190600101611790565b8082528160208120915555565b356bffffffffffffffffffffffff811681036101df5790565b356001600160a01b03811681036101df5790565b903590601e19813603018212156101df570180359067ffffffffffffffff82116101df576020019181360383136101df57565b91909182158015611f88575b611e8a576003545f60035580611ee3575b505f9291839136819003607e190191835b85811015611ed2578060051b830135848112156101df57830160208101976bffffffffffffffffffffffff611c318a611b6f565b1615908115611eb2575b50611e8a57611c6a611c4c82611b88565b966bffffffffffffffffffffffff611c638b611b6f565b16906119e3565b97600354680100000000000000008110156108b857806001611c8f9201600355611a20565b91909161101c57611cc0906001600160a01b03611cab85611b88565b166001600160a01b0319845416178355611b6f565b6001600160a01b036001600160a01b031983549260a01b16911617815560018101611cee6040840184611b9c565b9067ffffffffffffffff82116108b857611d0c82610f0e85546115de565b5f90601f8311600114611e1f5782611d50959360029593611d41935f92611dac5750508160011b915f199060031b1c19161790565b90555b01916060810190611b9c565b9067ffffffffffffffff82116108b857611d6e82610f0e85546115de565b5f90601f8311600114611db7579180611da09260019695945f92611dac5750508160011b915f199060031b1c19161790565b90555b01959395611bfd565b013590505f8061081c565b601f19831691845f5260205f20925f5b818110611e07575091600196959492918388959310611dee575b505050811b019055611da3565b01355f19600384901b60f8161c191690555f8080611de1565b91936020600181928787013581550195019201611dc7565b601f19831691845f5260205f20925f5b818110611e725750926001928592611d5098966002989610611e59575b505050811b019055611d44565b01355f19600384901b60f8161c191690555f8080611e4c565b91936020600181928787013581550195019201611e2f565b7f40da0647000000000000000000000000000000000000000000000000000000005f5260045ffd5b90506001600160a01b0380611ec684611b88565b9216911611155f611c3b565b5094505050612710915003611e8a57565b8060030290600382040361036a5760035f525f5b818110611f045750611bec565b805f6003927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0155611f577fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c8201611b20565b611f827fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d8201611b20565b01611ef7565b50606b8311611bdb565b5f929183926001600160a01b0383161561202d5760405163a9059cbb60e01b602082019081526001600160a01b03909316602482015260448101919091528390611fdf81606481016102b7565b51925af1611feb61196f565b9080611ff45791565b5080518015908115612004575091565b6020811015915081612014575091565b60208381019250908301839003126101df575160011491565b8392508291620186a0f190611a7961196f565b929190925f9160606001600160a01b03831615612097575093826102b7611fdf829697604051928391602083019663a9059cbb60e01b885260248401602090939291936001600160a01b0360408201951681520152565b945f935083925082918291620186a0f19190565b5f9182918160405192839283378101838152039082305af16120cb61196f565b90156120d45750565b602081519101fd5b6001600160a01b03811615612158575f809160405160208101907f70a082310000000000000000000000000000000000000000000000000000000082523060248201526024815261212e60448261176e565b51915afa61213a61196f565b90156120d457602081519181808201938492010103126101df575190565b504790565b6004548015612206575f1901600454811015611a0c5760045f52600381027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b016002905f81555f6001820155016121b481546115de565b90816121c2575b5050600455565b81601f5f93116001146121d95750555b5f806121bb565b818352602083206121f691601f0160051c84190190600101611790565b80825281602081209155556121d2565b634e487b7160e01b5f52603160045260245ffd5b6004545b801561227f575f1901612230816119f0565b5054805f5260066020525f6040812055805f5260056020525f604081205561225661215d565b7fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb705f80a261221e565b50565b91909182811461235d5761229683546115de565b67ffffffffffffffff81116108b8576122b9816122b384546115de565b84611817565b5f93601f82116001146122f7576122e892939482915f926122ec5750508160011b915f199060031b1c19161790565b9055565b015490505f8061081c565b601f198216905f5260205f2094835f5260205f20915f5b8181106123455750958360019596971061232d575b505050811b019055565b01545f1960f88460031b161c191690555f8080612323565b9192600180602092868b01548155019401920161230e565b509050565b805f52600560205260405f205480156117b457600454808203612399575b505061238a61215d565b5f5260056020525f6040812055565b5f19810190811161036a576123ad906119f0565b505f19820182811161036a576123c2906119f0565b61101c578181036123e3575b50545f52600560205260405f20555f80612380565b61240190825481556001830154600182015560028084019101612282565b5f6123ce56fea2646970667358221220163af7be752543ef1a6351422f3c57b463e56ab45a5f4bc1d57da2d3c2813b9964736f6c63430008260033


Verified Source Code

Source code verified on Etherscan. The verified file src/Distribution.sol (501 lines) contains both Distribution and DistributionFactory. The factory portion is reproduced below; the full file is in the repository's artifacts/00D19609...6d7f8E/source/ directory and on Etherscan.

Source: Etherscan - Contract Source

Artifact:

/// @notice Deploys `Distribution` clones to an address that depends on this factory and a salt alone.
/// @dev No `receive` and no `fallback`, so ETH sent to the factory itself reverts; the implementation
/// rejects it too. Clones are PUSH0 minimal proxies placed with CREATE2, so the same factory reaches
/// the same clone address on every chain.
contract DistributionFactory {
    event Created(address indexed distribution, address indexed owner);

    error DeploymentFailed();
    error SaltDoesNotStartWith();

    /// @dev Deployed by the factory, so `Distribution.factory` is this contract on every clone.
    address public immutable implementation = address(new Distribution{salt: bytes32(0)}());

    /// @notice Deploy and initialise a clone at `predict(salt)`.
    /// @param salt Its top 20 bytes must equal `msg.sender`. `msg.value` rides the CREATE2, so a
    /// deposit lands in the clone without a `Received` log.
    /// @dev Three properties the dapp has to know about this address:
    /// 1. It depends on this factory and `salt` only — not on the owner, delay, description or table.
    ///    So the sender fixes the address; the owner does not enter it. One EOA calls `create` with
    ///    the same salt on every chain and passes the vault as `owner_`, and the clone is owned by
    ///    that vault from its first block at one address, with no ownership transfer ever needed.
    ///    Each chain is a separate contract: transferring ownership on one changes neither the salt
    ///    nor any other chain, so the deploying key never needs to own anything.
    /// 2. A second `create` with a used salt burns the whole gas limit before `DeploymentFailed`: a
    ///    CREATE2 collision consumes every unit forwarded to it. Read `predict(salt)` with
    ///    `eth_getCode` first and refuse a non-empty answer.
    /// 3. Same-address-everywhere is this factory's address, not a clone's claim on its own. The
    ///    factory is placed by CREATE2 through the keyless proxy at `0x4e59b448…0B4956C`
    ///    (`scripts/forge/Deploy.s.sol`), so its address follows that proxy, `FACTORY_SALT` and this
    ///    contract's bytes — never a deployer's nonce — and `RUNBOOK.md` puts it at one address on
    ///    every chain it reaches.
    function create(
        address owner_,
        uint32 delay_,
        string calldata description_,
        Distribution.Beneficiary[] calldata table_,
        bytes32 salt
    ) external payable returns (address distribution) {
        address impl = implementation;
        uint256 prefix = uint256(salt) >> 96;
        if (prefix != uint256(uint160(msg.sender))) revert SaltDoesNotStartWith();

        // The PUSH0 minimal-proxy init code, byte for byte as solady's `LibClone.initCode_PUSH0`
        // writes it. The two `mstore`s at 0x24 overlap the free memory pointer and restore it.
        assembly ("memory-safe") {
            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3)
            mstore(0x14, impl)
            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73)
            distribution := create2(callvalue(), 0x0e, 0x36, salt)
            if iszero(distribution) {
                mstore(0x00, 0x30116425) // DeploymentFailed()
                revert(0x1c, 0x04)
            }
            mstore(0x24, 0)
        }
        Distribution(payable(distribution)).init(owner_, delay_, description_, table_);
        emit Created(distribution, owner_);
    }

    /// @notice The address `create(..., salt)` would reach.
    /// @dev No prefix check: the dapp predicts before it knows who will send.
    function predict(bytes32 salt) external view returns (address) {
        address impl = implementation;
        bytes32 initCodeHash;
        assembly ("memory-safe") {
            mstore(0x24, 0x5af43d5f5f3e6029573d5ffd5b3d5ff3)
            mstore(0x14, impl)
            mstore(0x00, 0x602d5f8160095f39f35f5f365f5f37365f73)
            initCodeHash := keccak256(0x0e, 0x36)
            mstore(0x24, 0)
        }
        return address(uint160(uint256(keccak256(abi.encodePacked(hex"ff", address(this), salt, initCodeHash)))));
    }
}


Additional Artifacts

ABI

Source: Etherscan API v2 getsourcecode

Artifact:

[
  {
    "inputs": [],
    "name": "DeploymentFailed",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "SaltDoesNotStartWith",
    "type": "error"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "distribution",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "owner",
        "type": "address"
      }
    ],
    "name": "Created",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "owner_",
        "type": "address"
      },
      {
        "internalType": "uint32",
        "name": "delay_",
        "type": "uint32"
      },
      {
        "internalType": "string",
        "name": "description_",
        "type": "string"
      },
      {
        "components": [
          {
            "internalType": "address",
            "name": "account",
            "type": "address"
          },
          {
            "internalType": "uint96",
            "name": "bps",
            "type": "uint96"
          },
          {
            "internalType": "string",
            "name": "name",
            "type": "string"
          },
          {
            "internalType": "string",
            "name": "note",
            "type": "string"
          }
        ],
        "internalType": "struct Distribution.Beneficiary[]",
        "name": "table_",
        "type": "tuple[]"
      },
      {
        "internalType": "bytes32",
        "name": "salt",
        "type": "bytes32"
      }
    ],
    "name": "create",
    "outputs": [
      {
        "internalType": "address",
        "name": "distribution",
        "type": "address"
      }
    ],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "implementation",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "salt",
        "type": "bytes32"
      }
    ],
    "name": "predict",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  }
]

Clone Runtime (DNZN Distribution)

The 45-byte runtime of 0xB611Ff19...4D5199 (etherscan): 5f5f365f5f37365f73 ‖ implementation ‖ 5af43d5f5f3e6029573d5ffd5b3d5ff3.

Command:

cast code 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199

Artifact:

0x5f5f365f5f37365f73c4ed7ea21b8cc334f08945b4d0c182e0aff8cb0a5af43d5f5f3e6029573d5ffd5b3d5ff3

Decoded create Call

The one create call on Ethereum as of block 26,507,971 (etherscan), 0xe8b7ca91...b9afc1 (tx), sent by 0x68e0741D...b186eE (etherscan).

Command:

cast calldata-decode "create(address,uint32,string,(address,uint96,string,string)[],bytes32)" \
  $(cast tx 0xe8b7ca91ff62854e3a6a8bd0bf08a51241a0cf2896f0a358ef1d9103ceb9afc1 input)

Artifact:

0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790
604800 [6.048e5]
"DNZN // FUND DISTRIBUTION"
[(0x00b6E7D12EdE9Ca4A74fE69be758aAB1ee02cFb9, 2000, "treasury", "long-term growth, future projects"), (0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790, 4000, "ops", "infrastructure, services, tokens"), (0x357836fFcB45307FA7ff2A574F505753c961902B, 4000, "creator", "founding engineer, product vision")]
0x68e0741d8d693e14bf56914567eaddc130b186ee000000000000000000000001

Clone Snapshot

Command:

cast call 0xB611Ff193DA8Fa9391C0A3DAa29C3c9a0F4D5199 \
  "snapshot()((address,uint32,uint32,string,(address,uint96,string,string)[],(bytes32,uint256,bytes)[]))"

Artifact (block 26,507,971 (etherscan) on Ethereum; the Base read at block 63,047,753 (basescan) returned the same value):

(0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790, 604800 [6.048e5], 0, "DNZN // FUND DISTRIBUTION", [(0x00b6E7D12EdE9Ca4A74fE69be758aAB1ee02cFb9, 2000, "treasury", "long-term growth, future projects"), (0x00c0e88778E3e3d17AcaaBC7550deC7Ab61F3790, 4000, "ops", "infrastructure, services, tokens"), (0x357836fFcB45307FA7ff2A574F505753c961902B, 4000, "creator", "founding engineer, product vision")], [])

Revert Path Simulations

Run with cast call against mainnet state at block 26,507,971 (etherscan). The table argument in each is a single row paying 10,000 bps to the Ops vault, except where noted.

Artifact:

caller 0x…dEaD, salt 0x68e0741d…000001        -> revert 0x0c4549ef  SaltDoesNotStartWith()
caller 0x68e0741d…, salt 0x68e0741d…000001    -> revert 0x30116425  DeploymentFailed()   (salt already used)
caller 0x68e0741d…, salt 0x68e0741d…000002    -> 0x97a7db5466c69d6545a03ec00fcd7e6d726c4ced  (would succeed)
caller 0x68e0741d…, salt …000002, bps 9,999   -> revert 0x40da0647  BadTable()
init() on the DNZN clone from 0x68e0741d…     -> revert 0x82b42900  Unauthorized()
init() on the DNZN clone from the factory     -> revert 0x82b42900  Unauthorized()