Verified contractPartialMIT
AnyswapCreate2Deployer
Address0xdf7cc8d582d213db25fbfb9cf659c79e8e4263bd
- Balance
0 ETH
- Transactions
2
- 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
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,178,803
- Creation transaction
- 0x436adb1dfa…eff78838e5
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
{
"libraries": {},
"optimizer": {
"runs": 999999,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.