Skip to content
Verified contractExactMIT

AnyswapCreate2Deployer

Address0x54f5a04417e29ff5d7141a6d33cb286f50d5d50e
Balance

0 ETH

 

Transactions

22

 

Compiler

solc 0.8.2

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.2+commit.661d1103
Language
solidity
Optimization
Yes, 999,999 runs
EVM version
istanbul
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
12,074,426
Creation transaction
0x280896ecc2…3250a6d8af

browser/AnyswapCREATE2Deployer.sol

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

contract AnyswapCreate2Deployer {
  event Deployed(address addr, uint256 salt);

  function deploy(bytes memory code, uint256 salt) public {
    address addr;
    assembly {
      addr := create2(0, add(code, 0x20), mload(code), salt)
      if iszero(extcodesize(addr)) {
        revert(0, 0)
      }
    }

    emit Deployed(addr, salt);
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 999999,
    "enabled": true
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.