ETH Price: $2,847.24 (-9.91%)
Gas: 13 Gwei

Contract

0xA9b07a3039ADc6b2c6cA1e4A76F240A7b8D66409
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Multi Split160464232022-11-25 10:32:23587 days ago1669372343IN
0xA9b07a30...7b8D66409
0 ETH0.0083152910.62237554
Multi Split160464122022-11-25 10:30:11587 days ago1669372211IN
0xA9b07a30...7b8D66409
1 ETH0.0119921312.24603097
Multi Split160348452022-11-23 19:41:59589 days ago1669232519IN
0xA9b07a30...7b8D66409
0 ETH0.0037871615.72163179

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
160464122022-11-25 10:30:11587 days ago1669372211
0xA9b07a30...7b8D66409
0.00000507 ETH
160464122022-11-25 10:30:11587 days ago1669372211
0xA9b07a30...7b8D66409
0.00000507 ETH
160464122022-11-25 10:30:11587 days ago1669372211
0xA9b07a30...7b8D66409
0.99973289 ETH
160464122022-11-25 10:30:11587 days ago1669372211
0xA9b07a30...7b8D66409
0.00026203 ETH
160179822022-11-21 11:06:47591 days ago1669028807  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSplit

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 3 : MultiSplit.sol
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.8.17 <0.9.0;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { SafeTransferLib } from "solmate/utils/SafeTransferLib.sol";

/// @title Multi Split - Allows to batch multiple split swap transactions into one.
/// @notice Based on Gnosis MultiSend v1.1.1 (https://etherscan.io/address/0x8d29be29923b68abfdd21e541b9374737b49cdad#code)
/// @author Sandy Bradley - <@sandybradley>
contract MultiSplit {
    using SafeTransferLib for ERC20;

    /// @notice Split Swap Router address
    address public ROUTER;
    /// @dev Governence for sweeping dust
    address internal GOV;
    /// @dev max uint256 for approvals
    uint256 internal constant MAX_UINT = 115792089237316195423570985008687907853269984665640564039457584007913129639935;

    error ExecuteNotAuthorized();

    constructor(address router) {
        ROUTER = router;
        GOV = tx.origin;
    }

    /// @dev Sends multiple transactions, allowing fails.
    ///      NB assumes all swaps originate from same token / eth to save multiple transfer gas fees
    /// @param transactions Encoded transactions. Each transaction is encoded as a packed bytes of
    ///                     value as a uint256 (=> 32 bytes),
    ///                     data length as a uint256 (=> 32 bytes),
    ///                     data as bytes.
    ///                     see abi.encodePacked for more information on packed encoding
    function multiSplit(bytes memory transactions) external payable {
        // solhint-disable-next-line no-inline-assembly
        assembly ("memory-safe") {

            // ERC20 helper functions
            function allowance(token0) -> tokenAllowance {
                let pos := mload(0x40) // free memory pointer
                mstore(pos, add(pos, 68))  // allocate memory
                mstore(pos, shl(224, 0xdd62ed3e)) // store allowance sig
                mstore(add(pos, 0x04), address()) // store owner address
                mstore(
                    add(pos, 0x24),
                    and(sload(0), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                ) // store spender address
                let success := staticcall(gas(), token0, pos, 68, pos, 0x20) // call allowance of token0 for router
                tokenAllowance := mload(pos)
            }

            function balanceOf(token0) -> bal {
                let pos := mload(0x40) // free memory pointer
                mstore(pos, add(pos, 36))  // allocate memory
                mstore(pos, shl(224, 0x70a08231)) // store balanceof sig
                mstore(add(pos, 0x04), address()) // store address
                let success := staticcall(gas(), token0, pos, 36, pos, 0x20) // call balance of token0 at this address
                bal := mload(pos)
            }

            function approve(token0, amount) {
                let pos := mload(0x40) // free memory pointer
                mstore(pos, add(pos, 68))  // allocate memory
                mstore(pos, shl(224, 0x095ea7b3)) // store approve sig
                mstore(
                    add(pos, 0x04),
                    and(sload(0), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                ) // store spender address
                mstore(add(pos, 0x24), amount) // store amount
                let success := call(gas(), token0, 0, pos, 68, 0, 0) // call approve 0 of token0 for router
            }

            function transferFrom(token0, amountIn) {
                let pos := mload(0x40) // free memory pointer
                mstore(pos, add(pos, 100))  // allocate memory
                mstore(pos, shl(224, 0x23b872dd)) // store transferFrom sig
                mstore(add(pos, 0x04), caller()) // store sender address
                mstore(add(pos, 0x24), address()) // store recipient address
                mstore(add(pos, 0x44), amountIn) // store amount
                let success := call(gas(), token0, 0, pos, 100, 0, 0) // call transferFrom of token0 to this address
                if iszero(success) { revert(0, 0) }
            }

            function transfer(token0, amount) {
                let pos := mload(0x40) // free memory pointer
                mstore(pos, add(pos, 68))  // allocate memory
                mstore(pos, shl(224, 0x23b872dd)) // store transfer sig
                mstore(add(pos, 0x04), caller()) // store address
                mstore(add(pos, 0x24), amount) // store amount
                let success := call(gas(), token0, 0, pos, 68, 0, 0) // call transfer token0 to sender
            }
           
            let bal := 0
            let token0 := 0
            let amountIn := 0
            let length := mload(transactions)
            let i := 0x20
            // assume all txs have same origin token
            // i.e. either eth or a single token
            // get initial tokens / eth and record balance
            // assure approve allowance is good
            switch iszero(iszero(callvalue())) 
            case 1 {
                bal := balance(address()) // eth balance
            } 
            default {
                for {
                    // Pre block is not used in "while mode"
                } lt(i, length) {
                    // Post block is not used in "while mode"
                } {
                    let data := add(transactions, add(i, 0x40))
                    let dataLength := mload(add(transactions, add(i, 0x20)))
                    // extract token0 and amountIn from data
                    amountIn := add(amountIn, mload(add(data, 0x04))) // amountIn at slot 1 of data (offset = 4)
                    if iszero(token0) {
                        token0 := mload(add(data, 0xC4)) // token0 at slot 7 of data (offset = 6 * 32 = 196 = 0xC4)
                    }
                    // Next entry starts at 0x40 byte + data length
                    i := add(i, add(0x40, dataLength))
                }
                // transfer token0 to this contract
                transferFrom(token0, amountIn)
                // check token balance
                bal := balanceOf(token0)  // token0 balance
                // check router allowance
                let tokenAllowance := allowance(token0)
                if gt(amountIn, tokenAllowance) {
                    // if allowance greater than 0, be safe and reset to 0 first (for usdt etc)
                    if iszero(iszero(tokenAllowance)) {
                        approve(token0, 0)
                    }
                    // set to max
                    approve(token0, MAX_UINT)
                }
            }            

            //  run swaps
            i := 0x20
            for {
                // Pre block is not used in "while mode"
            } lt(i, length) {
                // Post block is not used in "while mode"
            } {
                let value := mload(add(transactions, i))
                let dataLength := mload(add(transactions, add(i, 0x20)))
                let data := add(transactions, add(i, 0x40))
                let success := 0
                switch iszero(value)
                case 0 {
                    // ETH -> token
                    // requires eth to have been sent to this contract
                    success := call(
                        gas(),
                        and(sload(0), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff), // router
                        value,
                        data,
                        dataLength,
                        0,
                        0
                    )
                }
                default {
                    // token -> token / ETH
                    // requires token0 to have been approved to this contract
                    success := call(
                        gas(),
                        and(sload(0), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff), // router
                        0, //value
                        data, // input data
                        dataLength,
                        0,
                        0
                    )
                }
                // Next entry starts at 0x40 byte + data length
                i := add(i, add(0x40, dataLength))
            }

            //  refund any input dust
            switch iszero(iszero(callvalue()))
            case 1{
                if gt(balance(address()), sub(bal, callvalue())) {
                    // refund any dust
                    let success := call(gas(), caller(), sub(balance(address()), sub(bal, callvalue())), 0, 0, 0, 0)
                }
            } 
            default {
                let newBal := balanceOf(token0)  // re-assign value as tokenBal2
                if gt(newBal, sub(bal, amountIn)) {
                    // transfer dust
                    transfer(token0, sub(newBal, sub(bal, amountIn)))
                }
            }
        }
    }

    /// @notice Function to receive Ether. msg.data must be empty
    receive() external payable {}

    /// @notice Fallback function is called when msg.data is not empty
    fallback() external payable {}

    function changeGov(address newGov) external {
        if (msg.sender != GOV) revert ExecuteNotAuthorized();
        GOV = newGov;
    }

    /// @notice Sweep dust tokens and eth to recipient
    /// @param tokens Array of token addresses
    /// @param recipient Address of recipient
    function sweep(address[] calldata tokens, address recipient) external {
        if (msg.sender != GOV) revert ExecuteNotAuthorized();
        for (uint256 i; i < tokens.length; i++) {
            address token = tokens[i];
            ERC20(token).safeTransfer(recipient, ERC20(token).balanceOf(address(this)));
        }
        SafeTransferLib.safeTransferETH(recipient, address(this).balance);
    }
}

File 2 of 3 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 3 of 3 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 2000,
    "details": {
      "constantOptimizer": true,
      "yul": true,
      "yulDetails": {
        "stackAllocation": true
      }
    }
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExecuteNotAuthorized","type":"error"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ROUTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newGov","type":"address"}],"name":"changeGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"transactions","type":"bytes"}],"name":"multiSplit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60803461007c57601f6108c638819003918201601f19168301916001600160401b038311848410176100815780849260209460405283398101031261007c57516001600160a01b0381169081900361007c5760018060a01b0319908160005416176000553290600154161760015560405161082e90816100988239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040526004361015610018575b361561001657005b005b6000803560e01c90816332fe7b26146100f45781636d7907f51461006257508063a962ef1e146100595763d20c88bd0361000e57610054610227565b61000e565b5061005461018f565b60206003193601126100f15767ffffffffffffffff6004358181116100ed57366023820112156100ed5780600401359182116100e0575b82604051916100b26020601f19601f870116018461013c565b83835236602485830101116100dc57836100d9946024602093018386013783010152610414565b80f35b5080fd5b6100e8610125565b610099565b8280fd5b80fd5b346100f157806003193601126100f15773ffffffffffffffffffffffffffffffffffffffff90541660805260206080f35b50634e487b7160e01b600052604160045260246000fd5b90601f601f19910116810190811067ffffffffffffffff82111761015f57604052565b610167610125565b604052565b73ffffffffffffffffffffffffffffffffffffffff81160361018a57565b600080fd5b503461018a57602060031936011261018a576004356101ad8161016c565b6001549073ffffffffffffffffffffffffffffffffffffffff80831633036101fd577fffffffffffffffffffffffff00000000000000000000000000000000000000009116911617600155600080f35b60046040517f75c366a9000000000000000000000000000000000000000000000000000000008152fd5b503461018a57604060031936011261018a5767ffffffffffffffff60043581811161018a573660238201121561018a57806004013591821161018a573660248360051b8301011161018a576100169160248035926102848461016c565b016105b4565b6020604491604051928380927fdd62ed3e00000000000000000000000000000000000000000000000000000000825230600483015260005460248301525afa505190565b6020602491604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa505190565b60006044819282604051917f095ea7b3000000000000000000000000000000000000000000000000000000008352815460048401528160248401525af150565b60006044819282604051917f095ea7b30000000000000000000000000000000000000000000000000000000083528154600484015260001960248401525af150565b6064600092838093604051927f23b872dd00000000000000000000000000000000000000000000000000000000845233600485015230602485015260448401525af11561018a57565b6044600092838093604051927f23b872dd00000000000000000000000000000000000000000000000000000000845233600485015260248401525af150565b60008082516020903415159182600114610538575b818110610507575061043b838561038c565b610444846102ce565b9461044e8561028a565b8085116104e5575b505b60205b8281106104ad5750505060011461049057610475826102ce565b920380831161048357505050565b61048e9203906103d5565b565b505034900380471161049f5750565b6000808080934703335af150565b8082019081519060008060208501518094604080970190801584146104db57508280545af1505b010161045b565b83545af1506104d4565b6104f9575b6104f38561034a565b38610456565b6105028561030a565b6104ea565b928386019360208501519160448601510194861561052a575b5001604001610429565b610104015195506040610520565b504794610458565b600019811461054f5760010190565b634e487b7160e01b600052601160045260246000fd5b91908110156105755760051b0190565b634e487b7160e01b600052603260045260246000fd5b356105958161016c565b90565b9081602091031261018a575190565b506040513d6000823e3d90fd5b906105f06105d760015473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b33036101fd57600090815b818110610611575050505061048e9047906106d9565b8061069361062e6105d761062961069895878a610565565b61058b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526020918991838160248173ffffffffffffffffffffffffffffffffffffffff86165afa9384156106cc575b899461069d575b5050610747565b610540565b6105fb565b6106bd929450803d106106c5575b6106b5818361013c565b810190610598565b91388061068c565b503d6106ab565b6106d46105a7565b610685565b600080809381935af1156106e957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152fd5b60009182604492602095604051937fa9059cbb000000000000000000000000000000000000000000000000000000008552600485015260248401525af13d15601f3d116001600051141617161561079a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152fdfea2646970667358221220b2e5e513d4f0d3ab4051d41e3179ea16c8e3fa58b26415b9fe0fcc23baa2d9e564736f6c6343000811003300000000000000000000000077337deea78720542f0a1325394def165918d562

Deployed Bytecode

0x60806040526004361015610018575b361561001657005b005b6000803560e01c90816332fe7b26146100f45781636d7907f51461006257508063a962ef1e146100595763d20c88bd0361000e57610054610227565b61000e565b5061005461018f565b60206003193601126100f15767ffffffffffffffff6004358181116100ed57366023820112156100ed5780600401359182116100e0575b82604051916100b26020601f19601f870116018461013c565b83835236602485830101116100dc57836100d9946024602093018386013783010152610414565b80f35b5080fd5b6100e8610125565b610099565b8280fd5b80fd5b346100f157806003193601126100f15773ffffffffffffffffffffffffffffffffffffffff90541660805260206080f35b50634e487b7160e01b600052604160045260246000fd5b90601f601f19910116810190811067ffffffffffffffff82111761015f57604052565b610167610125565b604052565b73ffffffffffffffffffffffffffffffffffffffff81160361018a57565b600080fd5b503461018a57602060031936011261018a576004356101ad8161016c565b6001549073ffffffffffffffffffffffffffffffffffffffff80831633036101fd577fffffffffffffffffffffffff00000000000000000000000000000000000000009116911617600155600080f35b60046040517f75c366a9000000000000000000000000000000000000000000000000000000008152fd5b503461018a57604060031936011261018a5767ffffffffffffffff60043581811161018a573660238201121561018a57806004013591821161018a573660248360051b8301011161018a576100169160248035926102848461016c565b016105b4565b6020604491604051928380927fdd62ed3e00000000000000000000000000000000000000000000000000000000825230600483015260005460248301525afa505190565b6020602491604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa505190565b60006044819282604051917f095ea7b3000000000000000000000000000000000000000000000000000000008352815460048401528160248401525af150565b60006044819282604051917f095ea7b30000000000000000000000000000000000000000000000000000000083528154600484015260001960248401525af150565b6064600092838093604051927f23b872dd00000000000000000000000000000000000000000000000000000000845233600485015230602485015260448401525af11561018a57565b6044600092838093604051927f23b872dd00000000000000000000000000000000000000000000000000000000845233600485015260248401525af150565b60008082516020903415159182600114610538575b818110610507575061043b838561038c565b610444846102ce565b9461044e8561028a565b8085116104e5575b505b60205b8281106104ad5750505060011461049057610475826102ce565b920380831161048357505050565b61048e9203906103d5565b565b505034900380471161049f5750565b6000808080934703335af150565b8082019081519060008060208501518094604080970190801584146104db57508280545af1505b010161045b565b83545af1506104d4565b6104f9575b6104f38561034a565b38610456565b6105028561030a565b6104ea565b928386019360208501519160448601510194861561052a575b5001604001610429565b610104015195506040610520565b504794610458565b600019811461054f5760010190565b634e487b7160e01b600052601160045260246000fd5b91908110156105755760051b0190565b634e487b7160e01b600052603260045260246000fd5b356105958161016c565b90565b9081602091031261018a575190565b506040513d6000823e3d90fd5b906105f06105d760015473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1690565b33036101fd57600090815b818110610611575050505061048e9047906106d9565b8061069361062e6105d761062961069895878a610565565b61058b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526020918991838160248173ffffffffffffffffffffffffffffffffffffffff86165afa9384156106cc575b899461069d575b5050610747565b610540565b6105fb565b6106bd929450803d106106c5575b6106b5818361013c565b810190610598565b91388061068c565b503d6106ab565b6106d46105a7565b610685565b600080809381935af1156106e957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c4544000000000000000000000000006044820152fd5b60009182604492602095604051937fa9059cbb000000000000000000000000000000000000000000000000000000008552600485015260248401525af13d15601f3d116001600051141617161561079a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152fdfea2646970667358221220b2e5e513d4f0d3ab4051d41e3179ea16c8e3fa58b26415b9fe0fcc23baa2d9e564736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000077337deea78720542f0a1325394def165918d562

-----Decoded View---------------
Arg [0] : router (address): 0x77337dEEA78720542f0A1325394Def165918D562

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000077337deea78720542f0a1325394def165918d562


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.