FTM Price: $0.510752 (-4.87%)
 

Sponsored

Transaction Hash
Method
Block
From
To
Swap638541512023-06-10 3:59:15408 days ago1686369555IN
0x93d2611E...90072eC0f
0 FTM0.0155209990.07858431
Swap638539872023-06-10 3:56:28408 days ago1686369388IN
0x93d2611E...90072eC0f
0 FTM0.0286876890.07858431
Swap638539082023-06-10 3:55:09408 days ago1686369309IN
0x93d2611E...90072eC0f
0 FTM0.024298291.44424929
Swap638536942023-06-10 3:51:02408 days ago1686369062IN
0x93d2611E...90072eC0f
2 FTM0.0312588491.44424929
Swap637130342023-06-07 9:09:27411 days ago1686128967IN
0x93d2611E...90072eC0f
0 FTM0.06044966173.47712889
Swap632865152023-05-29 12:58:52420 days ago1685365132IN
0x93d2611E...90072eC0f
9 FTM0.597184061,379.32451709
Swap632864992023-05-29 12:58:16420 days ago1685365096IN
0x93d2611E...90072eC0f
0 FTM0.262258891,388.92862814
Swap632864472023-05-29 12:56:25420 days ago1685364985IN
0x93d2611E...90072eC0f
10 FTM0.367539241,393.24432009
Swap627925992023-05-21 7:58:55428 days ago1684655935IN
0x93d2611E...90072eC0f
0 FTM0.316500741,315.01625174
Swap627925632023-05-21 7:57:48428 days ago1684655868IN
0x93d2611E...90072eC0f
0 FTM0.219587531,326.98931778
Swap627925222023-05-21 7:56:31428 days ago1684655791IN
0x93d2611E...90072eC0f
0 FTM0.318578721,329.71063134
Swap627924152023-05-21 7:53:12428 days ago1684655592IN
0x93d2611E...90072eC0f
0 FTM0.223325371,354.1354802
Swap627923722023-05-21 7:51:44428 days ago1684655504IN
0x93d2611E...90072eC0f
0 FTM0.310708111,359.03544597
Swap622610632023-05-14 8:42:15435 days ago1684053735IN
0x93d2611E...90072eC0f
0 FTM0.0504163118.18695152
Swap622609652023-05-14 8:40:41435 days ago1684053641IN
0x93d2611E...90072eC0f
5 FTM0.04922953118.58709405
Swap622595732023-05-14 8:17:15435 days ago1684052235IN
0x93d2611E...90072eC0f
5 FTM0.03425969193.700957
Swap622594802023-05-14 8:15:59435 days ago1684052159IN
0x93d2611E...90072eC0f
5 FTM0.03451672195.15420217
Swap622579632023-05-14 7:48:42435 days ago1684050522IN
0x93d2611E...90072eC0f
5 FTM0.02184731123.52260549
Swap622572592023-05-14 7:37:40435 days ago1684049860IN
0x93d2611E...90072eC0f
0 FTM0.02713121.94084573
Swap622567272023-05-14 7:29:12435 days ago1684049352IN
0x93d2611E...90072eC0f
0 FTM0.03660939122.5275505
Swap622543182023-05-14 6:43:24435 days ago1684046604IN
0x93d2611E...90072eC0f
5 FTM0.02471025116.86098738
Swap622530612023-05-14 6:22:07435 days ago1684045327IN
0x93d2611E...90072eC0f
0 FTM0.03370556112.8087449
Swap622527332023-05-14 6:16:52435 days ago1684045012IN
0x93d2611E...90072eC0f
0 FTM0.01204383110.86718355
Swap621863212023-05-13 10:29:19436 days ago1683973759IN
0x93d2611E...90072eC0f
0 FTM0.06007982192.53825489
Swap621859932023-05-13 10:22:53436 days ago1683973373IN
0x93d2611E...90072eC0f
0 FTM0.04116446135.48072912
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
817581342024-05-28 14:34:1455 days ago1716906854
0x93d2611E...90072eC0f
103.56344282 FTM
817581342024-05-28 14:34:1455 days ago1716906854
0x93d2611E...90072eC0f
103.56344282 FTM
817543272024-05-28 13:20:1455 days ago1716902414
0x93d2611E...90072eC0f
7.0157879 FTM
817543272024-05-28 13:20:1455 days ago1716902414
0x93d2611E...90072eC0f
7.0157879 FTM
817526172024-05-28 12:47:2855 days ago1716900448
0x93d2611E...90072eC0f
10 FTM
817526172024-05-28 12:47:2855 days ago1716900448
0x93d2611E...90072eC0f
10 FTM
817514362024-05-28 12:23:2155 days ago1716899001
0x93d2611E...90072eC0f
0.86757776 FTM
817514362024-05-28 12:23:2155 days ago1716899001
0x93d2611E...90072eC0f
0.86757776 FTM
817496282024-05-28 11:48:3455 days ago1716896914
0x93d2611E...90072eC0f
2.59383176 FTM
817496282024-05-28 11:48:3455 days ago1716896914
0x93d2611E...90072eC0f
2.59383176 FTM
817447962024-05-28 10:05:5255 days ago1716890752
0x93d2611E...90072eC0f
48.96763528 FTM
817447962024-05-28 10:05:5255 days ago1716890752
0x93d2611E...90072eC0f
48.96763528 FTM
817435282024-05-28 9:38:0455 days ago1716889084
0x93d2611E...90072eC0f
763.89 FTM
817435282024-05-28 9:38:0455 days ago1716889084
0x93d2611E...90072eC0f
763.89 FTM
817337432024-05-28 5:59:0755 days ago1716875947
0x93d2611E...90072eC0f
1.08838563 FTM
817337432024-05-28 5:59:0755 days ago1716875947
0x93d2611E...90072eC0f
1.08838563 FTM
817332192024-05-28 5:47:3755 days ago1716875257
0x93d2611E...90072eC0f
13.71863796 FTM
817332192024-05-28 5:47:3755 days ago1716875257
0x93d2611E...90072eC0f
13.71863796 FTM
817310302024-05-28 4:59:2855 days ago1716872368
0x93d2611E...90072eC0f
76.35962509 FTM
817310302024-05-28 4:59:2855 days ago1716872368
0x93d2611E...90072eC0f
76.35962509 FTM
817304972024-05-28 4:49:2655 days ago1716871766
0x93d2611E...90072eC0f
3.59 FTM
817304972024-05-28 4:49:2655 days ago1716871766
0x93d2611E...90072eC0f
3.59 FTM
817298092024-05-28 4:36:1455 days ago1716870974
0x93d2611E...90072eC0f
3.48 FTM
817298092024-05-28 4:36:1455 days ago1716870974
0x93d2611E...90072eC0f
3.48 FTM
817293392024-05-28 4:27:2455 days ago1716870444
0x93d2611E...90072eC0f
30 FTM
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DystopiaExchangeRouter

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 6 : DystopiaExchangeRouter.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
import "../../weth/IWETH.sol";
import "./IDystPair.sol";

contract DystopiaExchangeRouter {
    using SafeMath for uint256;

    /*solhint-disable var-name-mixedcase*/
    address private constant ETH_IDENTIFIER = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    // Pool bits are 255-161: fee, 160: direction flag, 159-0: address
    uint256 private constant FEE_OFFSET = 161;
    uint256 private constant DIRECTION_FLAG = 0x0000000000000000000000010000000000000000000000000000000000000000;

    /*solhint-enable var-name-mixedcase */

    /*solhint-disable no-empty-blocks */
    receive() external payable {}

    /*solhint-enable no-empty-blocks */

    function swap(
        address tokenIn,
        uint256 amountIn,
        uint256 amountOutMin,
        address weth,
        uint256[] calldata pools
    ) external payable returns (uint256 tokensBought) {
        return _swap(tokenIn, amountIn, amountOutMin, weth, pools);
    }

    function _swap(
        address tokenIn,
        uint256 amountIn,
        uint256 amountOutMin,
        address weth,
        uint256[] memory pools
    ) private returns (uint256 tokensBought) {
        uint256 pairs = pools.length;

        require(pairs != 0, "At least one pool required");

        bool tokensBoughtEth;

        if (tokenIn == ETH_IDENTIFIER) {
            require(amountIn == msg.value, "Incorrect amount of ETH sent");
            IWETH(weth).deposit{ value: msg.value }();
            require(IWETH(weth).transfer(address(pools[0]), msg.value));
        } else {
            TransferHelper.safeTransferFrom(tokenIn, msg.sender, address(pools[0]), amountIn);
            tokensBoughtEth = weth != address(0);
        }

        tokensBought = amountIn;

        for (uint256 i = 0; i < pairs; ++i) {
            uint256 p = pools[i];
            address pool = address(uint160(p));
            bool direction = p & DIRECTION_FLAG == 0;

            address tokenA = direction ? IDystPair(pool).token0() : IDystPair(pool).token1();
            tokensBought = IDystPair(pool).getAmountOut(tokensBought, tokenA);

            if (IDystPair(pool).stable()) {
                tokensBought = tokensBought.sub(100); // deduce 100wei to mitigate stable swap's K miscalculations
            }

            (uint256 amount0Out, uint256 amount1Out) = direction
                ? (uint256(0), tokensBought)
                : (tokensBought, uint256(0));
            IDystPair(pool).swap(
                amount0Out,
                amount1Out,
                i + 1 == pairs ? (tokensBoughtEth ? address(this) : msg.sender) : address(pools[i + 1]),
                ""
            );
        }

        if (tokensBoughtEth) {
            IWETH(weth).withdraw(tokensBought);
            TransferHelper.safeTransferETH(msg.sender, tokensBought);
        }

        require(tokensBought >= amountOutMin, "UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT");
    }
}

File 2 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 3 of 6 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}

File 4 of 6 : IWETH.sol
// SPDX-License-Identifier: ISC

pragma solidity 0.7.5;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

abstract contract IWETH is IERC20 {
    function deposit() external payable virtual;

    function withdraw(uint256 amount) external virtual;
}

File 5 of 6 : IDystPair.sol
// SPDX-License-Identifier: ISC

pragma solidity 0.7.5;

interface IDystPair {
    function getAmountOut(uint256, address) external view returns (uint256);

    function token0() external returns (address);

    function token1() external returns (address);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function stable() external returns (bool);
}

File 6 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

Settings
{
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"weth","type":"address"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"swap","outputs":[{"internalType":"uint256","name":"tokensBought","type":"uint256"}],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50610bfb806100206000396000f3fe6080604052600436106100225760003560e01c806391a32b691461002e57610029565b3661002957005b600080fd5b6100cf600480360360a081101561004457600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013592604082013592606083013516919081019060a08101608082013564010000000081111561009057600080fd5b8201836020820111156100a257600080fd5b803590602001918460208302840111640100000000831117156100c457600080fd5b5090925090506100e1565b60408051918252519081900360200190f35b60006101238787878787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061012e92505050565b979650505050505050565b80516000908061019f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4174206c65617374206f6e6520706f6f6c207265717569726564000000000000604482015290519081900360640190fd5b600073ffffffffffffffffffffffffffffffffffffffff881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156103615734871461024157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e7400000000604482015290519081900360640190fd5b8473ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561028957600080fd5b505af115801561029d573d6000803e3d6000fd5b50505050508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb856000815181106102cb57fe5b6020026020010151346040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561032757600080fd5b505af115801561033b573d6000803e3d6000fd5b505050506040513d602081101561035157600080fd5b505161035c57600080fd5b61039c565b61038188338660008151811061037357fe5b60200260200101518a610813565b5073ffffffffffffffffffffffffffffffffffffffff841615155b86925060005b828110156107335760008582815181106103b857fe5b60209081029190910101519050807401000000000000000000000000000000000000000081161560008161045f578273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b505050506040513d602081101561045857600080fd5b50516104d4565b8273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156104a757600080fd5b505af11580156104bb573d6000803e3d6000fd5b505050506040513d60208110156104d157600080fd5b50515b90508273ffffffffffffffffffffffffffffffffffffffff1663f140a35a89836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561054557600080fd5b505afa158015610559573d6000803e3d6000fd5b505050506040513d602081101561056f57600080fd5b5051604080517f22be3de1000000000000000000000000000000000000000000000000000000008152905191995073ffffffffffffffffffffffffffffffffffffffff8516916322be3de1916004808201926020929091908290030181600087803b1580156105dd57600080fd5b505af11580156105f1573d6000803e3d6000fd5b505050506040513d602081101561060757600080fd5b50511561061c576106198860646109f9565b97505b6000808361062c57896000610630565b60008a5b915091508473ffffffffffffffffffffffffffffffffffffffff1663022c0d9f83838c8b60010114610678578e8b6001018151811061066b57fe5b6020026020010151610685565b8b6106835733610685565b305b604080517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526004810194909452602484019290925273ffffffffffffffffffffffffffffffffffffffff16604483015260806064830152600060848301819052905160c48084019382900301818387803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b505050505050505050508060010190506103a2565b5080156107af578473ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050506107af3384610a70565b85831015610808576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610bc4602b913960400191505060405180910390fd5b505095945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b602083106108f157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016108b4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610953576040519150601f19603f3d011682016040523d82523d6000602084013e610958565b606091505b5091509150818015610986575080511580610986575080806020019051602081101561098357600080fd5b50515b6109f157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b505050505050565b600082821115610a6a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040518082805190602001908083835b60208310610ae757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610aaa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b49576040519150601f19603f3d011682016040523d82523d6000602084013e610b4e565b606091505b5050905080610bbe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b50505056fe556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e54a164736f6c6343000705000a

Deployed Bytecode

0x6080604052600436106100225760003560e01c806391a32b691461002e57610029565b3661002957005b600080fd5b6100cf600480360360a081101561004457600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013592604082013592606083013516919081019060a08101608082013564010000000081111561009057600080fd5b8201836020820111156100a257600080fd5b803590602001918460208302840111640100000000831117156100c457600080fd5b5090925090506100e1565b60408051918252519081900360200190f35b60006101238787878787878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061012e92505050565b979650505050505050565b80516000908061019f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4174206c65617374206f6e6520706f6f6c207265717569726564000000000000604482015290519081900360640190fd5b600073ffffffffffffffffffffffffffffffffffffffff881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156103615734871461024157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e636f727265637420616d6f756e74206f66204554482073656e7400000000604482015290519081900360640190fd5b8473ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561028957600080fd5b505af115801561029d573d6000803e3d6000fd5b50505050508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb856000815181106102cb57fe5b6020026020010151346040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561032757600080fd5b505af115801561033b573d6000803e3d6000fd5b505050506040513d602081101561035157600080fd5b505161035c57600080fd5b61039c565b61038188338660008151811061037357fe5b60200260200101518a610813565b5073ffffffffffffffffffffffffffffffffffffffff841615155b86925060005b828110156107335760008582815181106103b857fe5b60209081029190910101519050807401000000000000000000000000000000000000000081161560008161045f578273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b505050506040513d602081101561045857600080fd5b50516104d4565b8273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156104a757600080fd5b505af11580156104bb573d6000803e3d6000fd5b505050506040513d60208110156104d157600080fd5b50515b90508273ffffffffffffffffffffffffffffffffffffffff1663f140a35a89836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561054557600080fd5b505afa158015610559573d6000803e3d6000fd5b505050506040513d602081101561056f57600080fd5b5051604080517f22be3de1000000000000000000000000000000000000000000000000000000008152905191995073ffffffffffffffffffffffffffffffffffffffff8516916322be3de1916004808201926020929091908290030181600087803b1580156105dd57600080fd5b505af11580156105f1573d6000803e3d6000fd5b505050506040513d602081101561060757600080fd5b50511561061c576106198860646109f9565b97505b6000808361062c57896000610630565b60008a5b915091508473ffffffffffffffffffffffffffffffffffffffff1663022c0d9f83838c8b60010114610678578e8b6001018151811061066b57fe5b6020026020010151610685565b8b6106835733610685565b305b604080517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526004810194909452602484019290925273ffffffffffffffffffffffffffffffffffffffff16604483015260806064830152600060848301819052905160c48084019382900301818387803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b505050505050505050508060010190506103a2565b5080156107af578473ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050506107af3384610a70565b85831015610808576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610bc4602b913960400191505060405180910390fd5b505095945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b602083106108f157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016108b4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610953576040519150601f19603f3d011682016040523d82523d6000602084013e610958565b606091505b5091509150818015610986575080511580610986575080806020019051602081101561098357600080fd5b50515b6109f157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b505050505050565b600082821115610a6a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040518082805190602001908083835b60208310610ae757805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610aaa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b49576040519150601f19603f3d011682016040523d82523d6000602084013e610b4e565b606091505b5050905080610bbe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b50505056fe556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e54a164736f6c6343000705000a

Block Transaction 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
[ 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.