Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 302 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Clone | 18056227 | 532 days ago | IN | 0 ETH | 0.00146839 | ||||
Clone | 17673408 | 586 days ago | IN | 0 ETH | 0.00231266 | ||||
Clone | 17632450 | 592 days ago | IN | 0 ETH | 0.00745874 | ||||
Clone | 17563321 | 601 days ago | IN | 0 ETH | 0.00201568 | ||||
Clone | 16817498 | 706 days ago | IN | 0 ETH | 0.00223796 | ||||
Clone | 16413371 | 763 days ago | IN | 0 ETH | 0.00402864 | ||||
Clone | 16204681 | 792 days ago | IN | 0 ETH | 0.00242065 | ||||
Clone | 16204612 | 792 days ago | IN | 0 ETH | 0.00191601 | ||||
Clone | 16074305 | 810 days ago | IN | 0 ETH | 0.00172472 | ||||
Clone | 16074198 | 810 days ago | IN | 0 ETH | 0.0015807 | ||||
Clone | 16040160 | 815 days ago | IN | 0 ETH | 0.00174564 | ||||
Clone | 15926408 | 831 days ago | IN | 0 ETH | 0.01100893 | ||||
Clone | 15841773 | 843 days ago | IN | 0 ETH | 0.00495156 | ||||
Clone | 15841767 | 843 days ago | IN | 0 ETH | 0.00557678 | ||||
Clone | 15642426 | 871 days ago | IN | 0 ETH | 0.00144729 | ||||
Clone | 15410107 | 906 days ago | IN | 0 ETH | 0.00549169 | ||||
Clone | 15410104 | 906 days ago | IN | 0 ETH | 0.0048278 | ||||
Clone | 15318441 | 921 days ago | IN | 0 ETH | 0.00274722 | ||||
Clone | 15180522 | 942 days ago | IN | 0 ETH | 0.00661458 | ||||
Clone | 15120891 | 951 days ago | IN | 0 ETH | 0.00204097 | ||||
Clone | 15023471 | 967 days ago | IN | 0 ETH | 0.00349997 | ||||
Clone | 14960151 | 979 days ago | IN | 0 ETH | 0.00479316 | ||||
Clone | 14960072 | 979 days ago | IN | 0 ETH | 0.00842011 | ||||
Clone | 14937613 | 982 days ago | IN | 0 ETH | 0.00508807 | ||||
Clone | 14874417 | 993 days ago | IN | 0 ETH | 0.00398325 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
InitializableClones
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-17 */ // SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.6.0 <0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library ClonesUpgradeable { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create opcode, which should never revert. */ function clone(address master) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `master` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(master, salt, address(this)); } } /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @title InitializableClones * @author David Lucid <[email protected]> (https://github.com/davidlucid) * @notice Deploys minimal proxy contracts (known as "clones") and initializes them. */ contract InitializableClones { using AddressUpgradeable for address; /** * @dev Event emitted when a clone is deployed. */ event Deployed(address instance); /** * @dev Deploys, initializes, and returns the address of a clone that mimics the behaviour of `master`. */ function clone(address master, bytes memory initializer) external returns (address instance) { instance = ClonesUpgradeable.clone(master); instance.functionCall(initializer, "Failed to initialize clone."); emit Deployed(instance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"instance","type":"address"}],"name":"Deployed","type":"event"},{"inputs":[{"internalType":"address","name":"master","type":"address"},{"internalType":"bytes","name":"initializer","type":"bytes"}],"name":"clone","outputs":[{"internalType":"address","name":"instance","type":"address"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506104c2806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80630fbe133c14610030575b600080fd5b6100e66004803603604081101561004657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561007157600080fd5b82018360208201111561008357600080fd5b803590602001918460018302840111640100000000831117156100a557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610102945050505050565b604080516001600160a01b039092168252519081900360200190f35b600061010d836101a5565b9050610162826040518060400160405280601b81526020017f4661696c656420746f20696e697469616c697a6520636c6f6e652e0000000000815250836001600160a01b03166102479092919063ffffffff16565b50604080516001600160a01b038316815290517ff40fcec21964ffb566044d083b4073f29f7f7929110ea19e1b3ebe375d89055e9181900360200190a192915050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b038116610242576040805162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015290519081900360640190fd5b919050565b60606102568484600085610260565b90505b9392505050565b6060824710156102a15760405162461bcd60e51b81526004018080602001828103825260268152602001806104676026913960400191505060405180910390fd5b6102aa856103bc565b6102fb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061033a5780518252601f19909201916020918201910161031b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461039c576040519150601f19603f3d011682016040523d82523d6000602084013e6103a1565b606091505b50915091506103b18282866103c2565b979650505050505050565b3b151590565b606083156103d1575081610259565b8251156103e15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561042b578181015183820152602001610413565b50505050905090810190601f1680156104585780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6ca26469706673582212204e852b7ed12456b607cec92e10ad71614c085a30e5f77e864abe16a29125650864736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80630fbe133c14610030575b600080fd5b6100e66004803603604081101561004657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561007157600080fd5b82018360208201111561008357600080fd5b803590602001918460018302840111640100000000831117156100a557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610102945050505050565b604080516001600160a01b039092168252519081900360200190f35b600061010d836101a5565b9050610162826040518060400160405280601b81526020017f4661696c656420746f20696e697469616c697a6520636c6f6e652e0000000000815250836001600160a01b03166102479092919063ffffffff16565b50604080516001600160a01b038316815290517ff40fcec21964ffb566044d083b4073f29f7f7929110ea19e1b3ebe375d89055e9181900360200190a192915050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b038116610242576040805162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015290519081900360640190fd5b919050565b60606102568484600085610260565b90505b9392505050565b6060824710156102a15760405162461bcd60e51b81526004018080602001828103825260268152602001806104676026913960400191505060405180910390fd5b6102aa856103bc565b6102fb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061033a5780518252601f19909201916020918201910161031b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461039c576040519150601f19603f3d011682016040523d82523d6000602084013e6103a1565b606091505b50915091506103b18282866103c2565b979650505050505050565b3b151590565b606083156103d1575081610259565b8251156103e15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561042b578181015183820152602001610413565b50505050905090810190601f1680156104585780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6ca26469706673582212204e852b7ed12456b607cec92e10ad71614c085a30e5f77e864abe16a29125650864736f6c634300060c0033
Deployed Bytecode Sourcemap
10788:587:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11108:264;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11108:264:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11108:264:0;;-1:-1:-1;11108:264:0;;-1:-1:-1;;;;;11108:264:0:i;:::-;;;;-1:-1:-1;;;;;11108:264:0;;;;;;;;;;;;;;;11183:16;11223:31;11247:6;11223:23;:31::i;:::-;11212:42;;11265:65;11287:11;11265:65;;;;;;;;;;;;;;;;;:8;-1:-1:-1;;;;;11265:21:0;;;:65;;;;;:::i;:::-;-1:-1:-1;11346:18:0;;;-1:-1:-1;;;;;11346:18:0;;;;;;;;;;;;;;;11108:264;;;;:::o;950:565::-;999:16;1126:4;1120:11;-1:-1:-1;;;1152:3:0;1145:79;1271:6;1265:4;1261:17;1254:4;1249:3;1245:14;1238:41;-1:-1:-1;;;1309:4:0;1304:3;1300:14;1293:90;1424:4;1419:3;1416:1;1409:20;1397:32;-1:-1:-1;;;;;;;1458:22:0;;1450:57;;;;;-1:-1:-1;;;1450:57:0;;;;;;;;;;;;-1:-1:-1;;;1450:57:0;;;;;;;;;;;;;;;950:565;;;:::o;7247:195::-;7350:12;7382:52;7404:6;7412:4;7418:1;7421:12;7382:21;:52::i;:::-;7375:59;;7247:195;;;;;;:::o;8299:530::-;8426:12;8484:5;8459:21;:30;;8451:81;;;;-1:-1:-1;;;8451:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8551:18;8562:6;8551:10;:18::i;:::-;8543:60;;;;;-1:-1:-1;;;8543:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8677:12;8691:23;8718:6;-1:-1:-1;;;;;8718:11:0;8738:5;8746:4;8718:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;8718:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8676:75;;;;8769:52;8787:7;8796:10;8808:12;8769:17;:52::i;:::-;8762:59;8299:530;-1:-1:-1;;;;;;;8299:530:0:o;4329:422::-;4696:20;4735:8;;;4329:422::o;9835:742::-;9950:12;9979:7;9975:595;;;-1:-1:-1;10010:10:0;10003:17;;9975:595;10124:17;;:21;10120:439;;10387:10;10381:17;10448:15;10435:10;10431:2;10427:19;10420:44;10335:148;10530:12;10523:20;;-1:-1:-1;;;10523:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://4e852b7ed12456b607cec92e10ad71614c085a30e5f77e864abe16a291256508
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
GNO | 100.00% | $1 | 0.0001 | $0.0001 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.