Skip to content
Verified contractExactMIT

V4Create2Factory

Address0x534bab6fe1affcae97cbc6dfe96860e665655874
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.37

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.37+commit.f401782d
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,149,284
Creation transaction
0xac08d4cf63…fa0be6346a

V4Create2Factory.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.37;

/// @notice Stateless CREATE2 deployment for hooks whose address encodes permission bits.
/// @dev The init code binds the manager, currencies and owner. No custody or authority is retained.
contract V4Create2Factory {
    error DeploymentFailed();

    function deploy(bytes32 salt, bytes memory initCode) external returns (address deployed) {
        assembly ("memory-safe") {
            deployed := create2(0, add(initCode, 0x20), mload(initCode), salt)
        }
        if (deployed == address(0)) revert DeploymentFailed();
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "cancun"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.