FRAX Price: $0.80 (-1.89%)

Contract

0xf9e0c6038C21ea9Ea4e3cbF104af0A227EEc6CE1

Overview

FRAX Balance | FXTL Balance

0 FRAX | 25 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

ContractCreator

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Safe Create2Auto266114962025-10-09 18:15:03108 days ago1760033703IN
0xf9e0c603...27EEc6CE1
0 FRAX0.000049970.00010025

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
266114962025-10-09 18:15:03108 days ago1760033703
0xf9e0c603...27EEc6CE1
 Contract Creation0 FRAX

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ImmutableCreate2FactoryAuto

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
Yes with 99999 runs

Other Settings:
petersburg EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at fraxscan.com on 2025-10-09
*/

pragma solidity 0.5.10;

contract ImmutableCreate2FactoryAuto {
    mapping(address => bool) private _deployed;

    event Deployed(address indexed deployment, bytes32 salt, uint256 seed);

    function safeCreate2Auto()
        external
        payable
        returns (address deploymentAddress)
    {
        // Generate random salt and random seed
        uint256 seed = uint256(
            keccak256(
                abi.encodePacked(
                    msg.sender,
                    blockhash(block.number - 1),
                    gasleft(),
                    address(this),
                    block.timestamp
                )
            )
        );

        bytes32 salt = keccak256(abi.encodePacked(seed, msg.sender));

        // Build simple randomized init code (a tiny contract returning seed % 1e18)
        // This bytecode = runtime code of a contract returning a fixed value.
        bytes memory initCode = abi.encodePacked(
            hex"600a600c600039600a6000f3", // deploy + return runtime code
            hex"602a60005260206000f3",   // runtime: push random value & return
            bytes32(seed)               // random constant
        );

        // Predict address
        address targetDeploymentAddress = address(
            uint160(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            hex"ff",
                            address(this),
                            salt,
                            keccak256(abi.encodePacked(initCode))
                        )
                    )
                )
            )
        );

        require(!_deployed[targetDeploymentAddress], "Already deployed");

        // Perform CREATE2 with gas cap
        assembly {
            let encoded_data := add(0x20, initCode)
            let encoded_size := mload(initCode)
            deploymentAddress := create2(
                callvalue,
                encoded_data,
                encoded_size,
                salt
            )
        }

        require(
            deploymentAddress == targetDeploymentAddress,
            "CREATE2 failed"
        );

        _deployed[deploymentAddress] = true;
        emit Deployed(deploymentAddress, salt, seed);
    }

    function hasBeenDeployed(address a) external view returns (bool) {
        return _deployed[a];
    }

    function findCreate2AddressAuto()
        external
        view
        returns (address predicted)
    {
        uint256 seed = uint256(
            keccak256(
                abi.encodePacked(
                    msg.sender,
                    block.number,
                    address(this)
                )
            )
        );
        bytes32 salt = keccak256(abi.encodePacked(seed, msg.sender));
        bytes memory initCode = abi.encodePacked(
            hex"600a600c600039600a6000f3",
            hex"602a60005260206000f3",
            bytes32(seed)
        );
        predicted = address(
            uint160(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            hex"ff",
                            address(this),
                            salt,
                            keccak256(abi.encodePacked(initCode))
                        )
                    )
                )
            )
        );
        if (_deployed[predicted]) return address(0);
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[{"name":"a","type":"address"}],"name":"hasBeenDeployed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"findCreate2AddressAuto","outputs":[{"name":"predicted","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"safeCreate2Auto","outputs":[{"name":"deploymentAddress","type":"address"}],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"deployment","type":"address"},{"indexed":false,"name":"salt","type":"bytes32"},{"indexed":false,"name":"seed","type":"uint256"}],"name":"Deployed","type":"event"}]

608060405234801561001057600080fd5b506107aa806100206000396000f3fe6080604052600436106100345760003560e01c806308508b8f146100395780638084aeb91461008d578063831a9527146100cb575b600080fd5b34801561004557600080fd5b506100796004803603602081101561005c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166100d3565b604080519115158252519081900360200190f35b34801561009957600080fd5b506100a26100fe565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100a2610351565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205460ff1690565b6040805133606090811b6020808401829052436034850152309283901b6054850152845160488186030181526068850186528051908201206088850181905260a88501929092528451609c81860301815260bc850186528051908201207f600a600c600039600a6000f3000000000000000000000000000000000000000060dc8601527f602a60005260206000f30000000000000000000000000000000000000000000060e886015260f28086018490528651808703909101815261011286019096528551600096939591949285928592610132909101918291908401908083835b6020831061021d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101e0565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905260408051929094018281037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00183528085528251928201929092207fff000000000000000000000000000000000000000000000000000000000000008383015260609890981b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602183015260358201969096526055808201979097528251808203909701875260750182525084519484019490942073ffffffffffffffffffffffffffffffffffffffff81166000908152938490529390922054929650505060ff161561034a576000935050505061034e565b5050505b90565b6000803360014303405a604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606095861b16602080830191909152603482019490945260548101929092523080851b6074840152426088808501919091528251808503909101815260a88401835280519085012060c884018190523390951b60e8840152815160dc81850301815260fc840183528051908501207f600a600c600039600a6000f3000000000000000000000000000000000000000061011c8501527f602a60005260206000f30000000000000000000000000000000000000000000061012885015261013280850187905283518086039091018152610152850190935282519596509491936000939192869286926101729091019182918401908083835b602083106104b557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610478565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905260408051929094018281037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00183528085528251928201929092207fff000000000000000000000000000000000000000000000000000000000000008383015260609890981b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602183015260358201969096526055808201979097528251808203909701875260750182525084519484019490942073ffffffffffffffffffffffffffffffffffffffff81166000908152938490529390922054929350505060ff161561063d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c7265616479206465706c6f79656400000000000000000000000000000000604482015290519081900360640190fd5b81602001825184818334f5965050508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146106e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43524541544532206661696c6564000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff85166000818152602081815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055815186815290810187905281517fc877950e53df8be800e454c6b5998cc737fca2ea44c18e91aac5f37b60419fc4929181900390910190a2505050509056fea265627a7a723058209728f66b03bdf6ad60de37e1bda1edea33cb602789739d9f0ca2e08c6d054dd764736f6c634300050a0032

Deployed Bytecode

0x6080604052600436106100345760003560e01c806308508b8f146100395780638084aeb91461008d578063831a9527146100cb575b600080fd5b34801561004557600080fd5b506100796004803603602081101561005c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166100d3565b604080519115158252519081900360200190f35b34801561009957600080fd5b506100a26100fe565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100a2610351565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205460ff1690565b6040805133606090811b6020808401829052436034850152309283901b6054850152845160488186030181526068850186528051908201206088850181905260a88501929092528451609c81860301815260bc850186528051908201207f600a600c600039600a6000f3000000000000000000000000000000000000000060dc8601527f602a60005260206000f30000000000000000000000000000000000000000000060e886015260f28086018490528651808703909101815261011286019096528551600096939591949285928592610132909101918291908401908083835b6020831061021d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016101e0565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905260408051929094018281037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00183528085528251928201929092207fff000000000000000000000000000000000000000000000000000000000000008383015260609890981b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602183015260358201969096526055808201979097528251808203909701875260750182525084519484019490942073ffffffffffffffffffffffffffffffffffffffff81166000908152938490529390922054929650505060ff161561034a576000935050505061034e565b5050505b90565b6000803360014303405a604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606095861b16602080830191909152603482019490945260548101929092523080851b6074840152426088808501919091528251808503909101815260a88401835280519085012060c884018190523390951b60e8840152815160dc81850301815260fc840183528051908501207f600a600c600039600a6000f3000000000000000000000000000000000000000061011c8501527f602a60005260206000f30000000000000000000000000000000000000000000061012885015261013280850187905283518086039091018152610152850190935282519596509491936000939192869286926101729091019182918401908083835b602083106104b557805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610478565b51815160209384036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909216911617905260408051929094018281037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00183528085528251928201929092207fff000000000000000000000000000000000000000000000000000000000000008383015260609890981b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602183015260358201969096526055808201979097528251808203909701875260750182525084519484019490942073ffffffffffffffffffffffffffffffffffffffff81166000908152938490529390922054929350505060ff161561063d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c7265616479206465706c6f79656400000000000000000000000000000000604482015290519081900360640190fd5b81602001825184818334f5965050508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146106e657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43524541544532206661696c6564000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff85166000818152602081815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055815186815290810187905281517fc877950e53df8be800e454c6b5998cc737fca2ea44c18e91aac5f37b60419fc4929181900390910190a2505050509056fea265627a7a723058209728f66b03bdf6ad60de37e1bda1edea33cb602789739d9f0ca2e08c6d054dd764736f6c634300050a0032

Deployed Bytecode Sourcemap

27:3533:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2357:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2357:103:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2357:103:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2468:1089;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2468:1089:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;201:2148;;;:::i;2357:103::-;2440:12;;2416:4;2440:12;;;;;;;;;;;;;;2357:103::o;2468:1089::-;2652:139;;;2691:10;2652:139;;;;;;;;;;;2724:12;2652:139;;;;2767:4;2652:139;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;2652:139:0;;;;;2624:182;;;;;;2853:34;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;2853:34:0;;;;;2843:45;;;;;;2923:139;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2923:139:0;;;;;;3373:26;;2552:17;;2624:182;;2843:45;;2767:4;2843:45;;2923:139;;3373:26;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;246:30;;311:9;;295:26;;;340:21;;377:20;365:33;;3373:26:0;;;;;;;26:21:-1;;;22:32;;6:49;;3373:26:0;;;3363:37;;;;;;;;;3199:228;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;3199:228:0;;;;-1:-1:-1;3163:287:0;;;;;;;;;3199:228;3510:20;;-1:-1:-1;3510:20:0;;;;;;;;;;;;3163:287;;-1:-1:-1;;;3510:20:0;;3506:43;;;3547:1;3532:17;;;;;;;3506:43;2468:1089;;;;;:::o;201:2148::-;281:25;373:12;477:10;535:1;520:12;:16;510:27;560:9;438:224;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;600:4;438:224;;;;;;;628:15;438:224;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;438:224:0;;;;;410:267;;;;;;726:34;;;;;;749:10;726:34;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;726:34:0;;;;;716:45;;;;;;964:245;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;964:245:0;;;;;;1572:26;;410:267;;-1:-1:-1;716:45:0;964:245;;-1:-1:-1;;600:4:0;;716:45;;964:245;;1572:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;246:30;;311:9;;295:26;;;340:21;;377:20;365:33;;1572:26:0;;;;;;;26:21:-1;;;22:32;;6:49;;1572:26:0;;;1562:37;;;;;;;;;1398:228;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;1398:228:0;;;;-1:-1:-1;1362:287:0;;;;;;;;;1398:228;1716:34;;-1:-1:-1;1716:34:0;;;;;;;;;;;;1362:287;;-1:-1:-1;;;1716:34:0;;1715:35;1707:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1879:8;1873:4;1869:19;1928:8;1922:15;2088:4;2057:12;2026;1998:9;1972:135;1951:156;;1834:284;;2173:23;2152:44;;:17;:44;;;2130:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2251:28;;;:9;:28;;;;;;;;;;;;:35;;;;2282:4;2251:35;;;2302:39;;;;;;;;;;;;;;;;;;;;;;;;201:2148;;;;;:::o

Swarm Source

bzzr://9728f66b03bdf6ad60de37e1bda1edea33cb602789739d9f0ca2e08c6d054dd7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.