FRAX Price: $1.04 (+7.69%)

Contract

0x1cf7895a4f0011668A70cD37D9D45478c73a1c58

Overview

FRAX Balance | FXTL Balance

0 FRAX | 0 FXTL

FRAX Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Claim14142012024-03-05 11:45:13690 days ago1709639113IN
0x1cf7895a...8c73a1c58
0 FRAX0.007644651.50000025
Mint14141012024-03-05 11:41:53690 days ago1709638913IN
0x1cf7895a...8c73a1c58
0.001 FRAX0.000317821.50000025
Mint14140872024-03-05 11:41:25690 days ago1709638885IN
0x1cf7895a...8c73a1c58
0.001 FRAX0.000332751.50000025

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
14142012024-03-05 11:45:13690 days ago1709639113
0x1cf7895a...8c73a1c58
0.0018 FRAX
14142012024-03-05 11:45:13690 days ago1709639113
0x1cf7895a...8c73a1c58
0.0002 FRAX

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x4493aD29...2743Fc2e7
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MintWar

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 999 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "../interfaces/IUniswapV2Router02.sol";
import "../libraries/TransferHelper.sol";

contract MintWar is ReentrancyGuard{
  uint256 public constant PRECISION = 100000;
  address public feeTo;
  address public token;
  IUniswapV2Router02 public router;
  uint256 public minFee;
  mapping(address => uint256) public accountTotalMint;
  mapping(address => uint256) public accountSuccessMint;
  mapping(address => uint256) public accountFailMint;
  mapping(address => uint256) public pointsOf;
  mapping(address => bool) public isClaimed;
  uint256 public totalPoints;

  uint256 public totalSuccessValue;
  uint256 public totalFailValue;
  uint256 public totalMintValue;

  uint256 public totalMintTimes;
  uint256 public totalSuccessMints;
  uint256 public totalFailMints;

  uint256 public maxPointsPerMint;
  bool public mintEnd;
  uint256 public mintStartAt;
  uint256 public mintEndAt;

  event Mint(address account,bool success,uint256 value,uint256 rate,uint256 points);
  event EndWar();
  event Claim(address account, uint256 value);

  constructor(address _router, address _token,uint256 _mintStartAt, uint256 _mintEndAt) {
    router = IUniswapV2Router02(_router);
    feeTo = msg.sender;
    token = _token;
    minFee = 0.0001e18;
    maxPointsPerMint = 100e18;
    require(_mintStartAt>block.timestamp && _mintEndAt>_mintStartAt, "Mint time error");
    mintStartAt = _mintStartAt;
    mintEndAt = _mintEndAt;
  }

  function mint(uint256 rate) external payable nonReentrant{
    require(block.timestamp >= mintStartAt, "Mint not started");
    require(block.timestamp<mintEndAt && !mintEnd, "Mint ended");
    require(msg.sender == tx.origin , "Must from EOA");
    require(rate>0 && rate<=PRECISION, "Invalid rate");
    require(msg.value>=minFee, "insufficient fee");
    uint256 points = msg.value*PRECISION/rate;
    require(points<=maxPointsPerMint, "max points exceeded");
    accountTotalMint[msg.sender] += msg.value;
    totalMintValue += msg.value;
    totalMintTimes += 1;
    if (_random() < rate) {
      totalSuccessMints += 1;
      totalSuccessValue += msg.value;
      accountSuccessMint[msg.sender] += msg.value;

      totalPoints += points;
      pointsOf[msg.sender] += points;

      emit Mint(msg.sender, true, msg.value, rate, points);
    } else {
      totalFailMints += 1;
      totalFailValue += msg.value;
      accountFailMint[msg.sender] += msg.value;

      emit Mint(msg.sender, false, msg.value, rate, 0);
    }
  }

  function endWar() external {
    require(!mintEnd, "Claim started");
    _endWar();    
  }

  function _endWar() private {
    require(mintEndAt<block.timestamp, "Mint War not ended");
    if(mintEnd){
      return;
    }

    mintEnd = true;
    uint256 fee = totalMintValue * 10/100; //10% fee
    uint256 afterFee = address(this).balance - fee;
    TransferHelper.safeTransferETH(feeTo, fee);

    uint256 totalToken = IERC20(token).balanceOf(address(this));
    require(totalToken == IERC20(token).totalSupply(), "Insufficient token amount");
    uint256 liquidityAmount = totalToken/2;
    IERC20(token).approve(address(router), liquidityAmount);
    router.addLiquidityETH{value:afterFee}(
        address(token),
        liquidityAmount,
        0,
        0,
        address(this),
        block.timestamp
    );

    emit EndWar();
  }

  function claim() external nonReentrant{
    require(mintEndAt<block.timestamp, "Mint War not ended");
    require(!isClaimed[msg.sender], "Account claimed");
    _endWar();

    uint256 claimAmount = getAccountClaimableAmount(msg.sender);
    require(claimAmount>0, "Insufficient claimable amount");
    TransferHelper.safeTransfer(token, msg.sender, claimAmount);
    isClaimed[msg.sender] = true;

    emit Claim(msg.sender, claimAmount);
  }

  function getAccountClaimableAmount(address account) public view returns(uint256){
    if(totalPoints == 0){
      return 0;
    }
    uint256 tokenMintTotal = IERC20(token).totalSupply()/2;
    return tokenMintTotal * pointsOf[account]/totalPoints;
  }

  function _random() private view returns(uint256){
    uint256 random = uint256(keccak256(abi.encodePacked(msg.sender,blockhash(block.number-1),block.timestamp,totalMintTimes,totalMintValue)));
    return random % PRECISION;
  }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.21;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_mintStartAt","type":"uint256"},{"internalType":"uint256","name":"_mintEndAt","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[],"name":"EndWar","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"points","type":"uint256"}],"name":"Mint","type":"event"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountFailMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountSuccessMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountTotalMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endWar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPointsPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnd","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pointsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFailMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFailValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSuccessMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSuccessValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x608060405234801561001057600080fd5b50604051620015253803806200152583398101604081905261003191610102565b60016000819055600380546001600160a01b038088166001600160a01b0319928316179092558254811633179092556002805491861691909216179055655af3107a400060045568056bc75e2d63100000601155428211801561009357508181115b6100d55760405162461bcd60e51b815260206004820152600f60248201526e26b4b73a103a34b6b29032b93937b960891b604482015260640160405180910390fd5b601391909155601455506101459050565b80516001600160a01b03811681146100fd57600080fd5b919050565b6000806000806080858703121561011857600080fd5b610121856100e6565b935061012f602086016100e6565b6040860151606090960151949790965092505050565b6113d080620001556000396000f3fe6080604052600436106101965760003560e01c8063a32b5e48116100e1578063ba3fcd9d1161008a578063ea2b4ab211610064578063ea2b4ab21461042d578063f67d699114610447578063f887ea401461045c578063fc0c546a1461047c57600080fd5b8063ba3fcd9d146103bd578063ca68a9d6146103ea578063cf6a44031461040057600080fd5b8063aaf5eb68116100bb578063aaf5eb681461037a578063ad61471414610391578063ae149b20146103a757600080fd5b8063a32b5e481461030a578063aabf1a0314610320578063aad9c5771461034d57600080fd5b8063559135f41161014357806377c06fb51161011d57806377c06fb5146102a15780638cc08025146102b7578063a0712d68146102f757600080fd5b8063559135f41461025f578063567142be14610275578063620500831461028b57600080fd5b806336326c7f1161017457806336326c7f146102125780633e6fccec146102325780634e71d92d1461024857600080fd5b8063017e7e581461019b5780630625a8a2146101d857806324ec7590146101fc575b600080fd5b3480156101a757600080fd5b506001546101bb906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101e457600080fd5b506101ee600f5481565b6040519081526020016101cf565b34801561020857600080fd5b506101ee60045481565b34801561021e57600080fd5b506101ee61022d366004611229565b61049c565b34801561023e57600080fd5b506101ee600d5481565b34801561025457600080fd5b5061025d61057e565b005b34801561026b57600080fd5b506101ee60105481565b34801561028157600080fd5b506101ee600a5481565b34801561029757600080fd5b506101ee600e5481565b3480156102ad57600080fd5b506101ee600c5481565b3480156102c357600080fd5b506102e76102d2366004611229565b60096020526000908152604090205460ff1681565b60405190151581526020016101cf565b61025d610305366004611252565b610718565b34801561031657600080fd5b506101ee60115481565b34801561032c57600080fd5b506101ee61033b366004611229565b60066020526000908152604090205481565b34801561035957600080fd5b506101ee610368366004611229565b60076020526000908152604090205481565b34801561038657600080fd5b506101ee620186a081565b34801561039d57600080fd5b506101ee60135481565b3480156103b357600080fd5b506101ee600b5481565b3480156103c957600080fd5b506101ee6103d8366004611229565b60056020526000908152604090205481565b3480156103f657600080fd5b506101ee60145481565b34801561040c57600080fd5b506101ee61041b366004611229565b60086020526000908152604090205481565b34801561043957600080fd5b506012546102e79060ff1681565b34801561045357600080fd5b5061025d610b3c565b34801561046857600080fd5b506003546101bb906001600160a01b031681565b34801561048857600080fd5b506002546101bb906001600160a01b031681565b6000600a546000036104b057506000919050565b60028054604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600093926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610515573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610539919061126b565b61054391906112b0565b600a546001600160a01b0385166000908152600860205260409020549192509061056d90836112c4565b61057791906112b0565b9392505050565b610586610b97565b42601454106105dc5760405162461bcd60e51b815260206004820152601260248201527f4d696e7420576172206e6f7420656e646564000000000000000000000000000060448201526064015b60405180910390fd5b3360009081526009602052604090205460ff161561063c5760405162461bcd60e51b815260206004820152600f60248201527f4163636f756e7420636c61696d6564000000000000000000000000000000000060448201526064016105d3565b610644610bda565b600061064f3361049c565b9050600081116106a15760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636c61696d61626c6520616d6f756e7400000060448201526064016105d3565b6002546106b8906001600160a01b03163383610f59565b33600081815260096020908152604091829020805460ff19166001179055815192835282018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1506107166001600055565b565b610720610b97565b6013544210156107725760405162461bcd60e51b815260206004820152601060248201527f4d696e74206e6f7420737461727465640000000000000000000000000000000060448201526064016105d3565b60145442108015610786575060125460ff16155b6107d25760405162461bcd60e51b815260206004820152600a60248201527f4d696e7420656e6465640000000000000000000000000000000000000000000060448201526064016105d3565b3332146108215760405162461bcd60e51b815260206004820152600d60248201527f4d7573742066726f6d20454f410000000000000000000000000000000000000060448201526064016105d3565b6000811180156108345750620186a08111155b6108805760405162461bcd60e51b815260206004820152600c60248201527f496e76616c69642072617465000000000000000000000000000000000000000060448201526064016105d3565b6004543410156108d25760405162461bcd60e51b815260206004820152601060248201527f696e73756666696369656e74206665650000000000000000000000000000000060448201526064016105d3565b6000816108e2620186a0346112c4565b6108ec91906112b0565b90506011548111156109405760405162461bcd60e51b815260206004820152601360248201527f6d617820706f696e74732065786365656465640000000000000000000000000060448201526064016105d3565b336000908152600560205260408120805434929061095f9084906112e1565b9250508190555034600d600082825461097891906112e1565b925050819055506001600e600082825461099291906112e1565b909155508290506109a16110c8565b1015610a8b576001600f60008282546109ba91906112e1565b9250508190555034600b60008282546109d391906112e1565b909155505033600090815260066020526040812080543492906109f79084906112e1565b9250508190555080600a6000828254610a1091906112e1565b90915550503360009081526008602052604081208054839290610a349084906112e1565b909155505060408051338152600160208201523481830152606081018490526080810183905290517f98b6b9c2f570ec1d2dd6dbd4743d1d3f912af590c9017670b4c223ee4536e9199181900360a00190a1610b2e565b600160106000828254610a9e91906112e1565b9250508190555034600c6000828254610ab791906112e1565b90915550503360009081526007602052604081208054349290610adb9084906112e1565b909155505060408051338152600060208201819052348284015260608201859052608082015290517f98b6b9c2f570ec1d2dd6dbd4743d1d3f912af590c9017670b4c223ee4536e9199181900360a00190a15b50610b396001600055565b50565b60125460ff1615610b8f5760405162461bcd60e51b815260206004820152600d60248201527f436c61696d20737461727465640000000000000000000000000000000000000060448201526064016105d3565b610716610bda565b600260005403610bd3576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b4260145410610c2b5760405162461bcd60e51b815260206004820152601260248201527f4d696e7420576172206e6f7420656e646564000000000000000000000000000060448201526064016105d3565b60125460ff1615610c3857565b6012805460ff19166001179055600d54600090606490610c5990600a6112c4565b610c6391906112b0565b90506000610c7182476112f4565b600154909150610c8a906001600160a01b031683611141565b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d10919061126b565b9050600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d89919061126b565b8114610dd75760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420746f6b656e20616d6f756e740000000000000060448201526064016105d3565b6000610de46002836112b0565b6002546003546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216600482015260248101849052929350169063095ea7b3906044016020604051808303816000875af1158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e789190611307565b506003546002546040517ff305d7190000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905260006044820181905260648201523060848201524260a482015291169063f305d71990859060c40160606040518083038185885af1158015610f02573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f279190611329565b50506040517fe0ce9ff53de9afa53a319443c3e3a923739fe70946c893fc49ec7987828879dc9150600090a150505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610fe39190611357565b6000604051808303816000865af19150503d8060008114611020576040519150601f19603f3d011682016040523d82523d6000602084013e611025565b606091505b509150915081801561104f57508051158061104f57508080602001905181019061104f9190611307565b6110c15760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c65640000000000000000000000000000000000000060648201526084016105d3565b5050505050565b600080336110d76001436112f4565b600e54600d5460405160609490941b6bffffffffffffffffffffffff19166020850152914060348401524260548401526074830152609482015260b40160408051601f198184030181529190528051602090910120905061113b620186a082611386565b91505090565b604080516000808252602082019092526001600160a01b03841690839060405161116b9190611357565b60006040518083038185875af1925050503d80600081146111a8576040519150601f19603f3d011682016040523d82523d6000602084013e6111ad565b606091505b50509050806112245760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c656400000000000000000000000060648201526084016105d3565b505050565b60006020828403121561123b57600080fd5b81356001600160a01b038116811461057757600080fd5b60006020828403121561126457600080fd5b5035919050565b60006020828403121561127d57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826112bf576112bf611284565b500490565b80820281158282048414176112db576112db61129a565b92915050565b808201808211156112db576112db61129a565b818103818111156112db576112db61129a565b60006020828403121561131957600080fd5b8151801515811461057757600080fd5b60008060006060848603121561133e57600080fd5b8351925060208401519150604084015190509250925092565b6000825160005b81811015611378576020818601810151858301520161135e565b506000920191825250919050565b60008261139557611395611284565b50069056fea2646970667358221220c01fe6bc054870cfbe82a8d97d1b777e6a11515560d475d7981e9801dcfa3e9d64736f6c634300081700330000000000000000000000002dd1b4d4548accea497050619965f91f78b3b5320000000000000000000000008a327a0fb234fed18b5f1d67bc44b18dc871cbb00000000000000000000000000000000000000000000000000000000065e704900000000000000000000000000000000000000000000000000000000065e705bc

Deployed Bytecode

0x6080604052600436106101965760003560e01c8063a32b5e48116100e1578063ba3fcd9d1161008a578063ea2b4ab211610064578063ea2b4ab21461042d578063f67d699114610447578063f887ea401461045c578063fc0c546a1461047c57600080fd5b8063ba3fcd9d146103bd578063ca68a9d6146103ea578063cf6a44031461040057600080fd5b8063aaf5eb68116100bb578063aaf5eb681461037a578063ad61471414610391578063ae149b20146103a757600080fd5b8063a32b5e481461030a578063aabf1a0314610320578063aad9c5771461034d57600080fd5b8063559135f41161014357806377c06fb51161011d57806377c06fb5146102a15780638cc08025146102b7578063a0712d68146102f757600080fd5b8063559135f41461025f578063567142be14610275578063620500831461028b57600080fd5b806336326c7f1161017457806336326c7f146102125780633e6fccec146102325780634e71d92d1461024857600080fd5b8063017e7e581461019b5780630625a8a2146101d857806324ec7590146101fc575b600080fd5b3480156101a757600080fd5b506001546101bb906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101e457600080fd5b506101ee600f5481565b6040519081526020016101cf565b34801561020857600080fd5b506101ee60045481565b34801561021e57600080fd5b506101ee61022d366004611229565b61049c565b34801561023e57600080fd5b506101ee600d5481565b34801561025457600080fd5b5061025d61057e565b005b34801561026b57600080fd5b506101ee60105481565b34801561028157600080fd5b506101ee600a5481565b34801561029757600080fd5b506101ee600e5481565b3480156102ad57600080fd5b506101ee600c5481565b3480156102c357600080fd5b506102e76102d2366004611229565b60096020526000908152604090205460ff1681565b60405190151581526020016101cf565b61025d610305366004611252565b610718565b34801561031657600080fd5b506101ee60115481565b34801561032c57600080fd5b506101ee61033b366004611229565b60066020526000908152604090205481565b34801561035957600080fd5b506101ee610368366004611229565b60076020526000908152604090205481565b34801561038657600080fd5b506101ee620186a081565b34801561039d57600080fd5b506101ee60135481565b3480156103b357600080fd5b506101ee600b5481565b3480156103c957600080fd5b506101ee6103d8366004611229565b60056020526000908152604090205481565b3480156103f657600080fd5b506101ee60145481565b34801561040c57600080fd5b506101ee61041b366004611229565b60086020526000908152604090205481565b34801561043957600080fd5b506012546102e79060ff1681565b34801561045357600080fd5b5061025d610b3c565b34801561046857600080fd5b506003546101bb906001600160a01b031681565b34801561048857600080fd5b506002546101bb906001600160a01b031681565b6000600a546000036104b057506000919050565b60028054604080517f18160ddd0000000000000000000000000000000000000000000000000000000081529051600093926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610515573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610539919061126b565b61054391906112b0565b600a546001600160a01b0385166000908152600860205260409020549192509061056d90836112c4565b61057791906112b0565b9392505050565b610586610b97565b42601454106105dc5760405162461bcd60e51b815260206004820152601260248201527f4d696e7420576172206e6f7420656e646564000000000000000000000000000060448201526064015b60405180910390fd5b3360009081526009602052604090205460ff161561063c5760405162461bcd60e51b815260206004820152600f60248201527f4163636f756e7420636c61696d6564000000000000000000000000000000000060448201526064016105d3565b610644610bda565b600061064f3361049c565b9050600081116106a15760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636c61696d61626c6520616d6f756e7400000060448201526064016105d3565b6002546106b8906001600160a01b03163383610f59565b33600081815260096020908152604091829020805460ff19166001179055815192835282018390527f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4910160405180910390a1506107166001600055565b565b610720610b97565b6013544210156107725760405162461bcd60e51b815260206004820152601060248201527f4d696e74206e6f7420737461727465640000000000000000000000000000000060448201526064016105d3565b60145442108015610786575060125460ff16155b6107d25760405162461bcd60e51b815260206004820152600a60248201527f4d696e7420656e6465640000000000000000000000000000000000000000000060448201526064016105d3565b3332146108215760405162461bcd60e51b815260206004820152600d60248201527f4d7573742066726f6d20454f410000000000000000000000000000000000000060448201526064016105d3565b6000811180156108345750620186a08111155b6108805760405162461bcd60e51b815260206004820152600c60248201527f496e76616c69642072617465000000000000000000000000000000000000000060448201526064016105d3565b6004543410156108d25760405162461bcd60e51b815260206004820152601060248201527f696e73756666696369656e74206665650000000000000000000000000000000060448201526064016105d3565b6000816108e2620186a0346112c4565b6108ec91906112b0565b90506011548111156109405760405162461bcd60e51b815260206004820152601360248201527f6d617820706f696e74732065786365656465640000000000000000000000000060448201526064016105d3565b336000908152600560205260408120805434929061095f9084906112e1565b9250508190555034600d600082825461097891906112e1565b925050819055506001600e600082825461099291906112e1565b909155508290506109a16110c8565b1015610a8b576001600f60008282546109ba91906112e1565b9250508190555034600b60008282546109d391906112e1565b909155505033600090815260066020526040812080543492906109f79084906112e1565b9250508190555080600a6000828254610a1091906112e1565b90915550503360009081526008602052604081208054839290610a349084906112e1565b909155505060408051338152600160208201523481830152606081018490526080810183905290517f98b6b9c2f570ec1d2dd6dbd4743d1d3f912af590c9017670b4c223ee4536e9199181900360a00190a1610b2e565b600160106000828254610a9e91906112e1565b9250508190555034600c6000828254610ab791906112e1565b90915550503360009081526007602052604081208054349290610adb9084906112e1565b909155505060408051338152600060208201819052348284015260608201859052608082015290517f98b6b9c2f570ec1d2dd6dbd4743d1d3f912af590c9017670b4c223ee4536e9199181900360a00190a15b50610b396001600055565b50565b60125460ff1615610b8f5760405162461bcd60e51b815260206004820152600d60248201527f436c61696d20737461727465640000000000000000000000000000000000000060448201526064016105d3565b610716610bda565b600260005403610bd3576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b4260145410610c2b5760405162461bcd60e51b815260206004820152601260248201527f4d696e7420576172206e6f7420656e646564000000000000000000000000000060448201526064016105d3565b60125460ff1615610c3857565b6012805460ff19166001179055600d54600090606490610c5990600a6112c4565b610c6391906112b0565b90506000610c7182476112f4565b600154909150610c8a906001600160a01b031683611141565b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d10919061126b565b9050600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d89919061126b565b8114610dd75760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420746f6b656e20616d6f756e740000000000000060448201526064016105d3565b6000610de46002836112b0565b6002546003546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216600482015260248101849052929350169063095ea7b3906044016020604051808303816000875af1158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e789190611307565b506003546002546040517ff305d7190000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905260006044820181905260648201523060848201524260a482015291169063f305d71990859060c40160606040518083038185885af1158015610f02573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f279190611329565b50506040517fe0ce9ff53de9afa53a319443c3e3a923739fe70946c893fc49ec7987828879dc9150600090a150505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610fe39190611357565b6000604051808303816000865af19150503d8060008114611020576040519150601f19603f3d011682016040523d82523d6000602084013e611025565b606091505b509150915081801561104f57508051158061104f57508080602001905181019061104f9190611307565b6110c15760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c65640000000000000000000000000000000000000060648201526084016105d3565b5050505050565b600080336110d76001436112f4565b600e54600d5460405160609490941b6bffffffffffffffffffffffff19166020850152914060348401524260548401526074830152609482015260b40160408051601f198184030181529190528051602090910120905061113b620186a082611386565b91505090565b604080516000808252602082019092526001600160a01b03841690839060405161116b9190611357565b60006040518083038185875af1925050503d80600081146111a8576040519150601f19603f3d011682016040523d82523d6000602084013e6111ad565b606091505b50509050806112245760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c656400000000000000000000000060648201526084016105d3565b505050565b60006020828403121561123b57600080fd5b81356001600160a01b038116811461057757600080fd5b60006020828403121561126457600080fd5b5035919050565b60006020828403121561127d57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000826112bf576112bf611284565b500490565b80820281158282048414176112db576112db61129a565b92915050565b808201808211156112db576112db61129a565b818103818111156112db576112db61129a565b60006020828403121561131957600080fd5b8151801515811461057757600080fd5b60008060006060848603121561133e57600080fd5b8351925060208401519150604084015190509250925092565b6000825160005b81811015611378576020818601810151858301520161135e565b506000920191825250919050565b60008261139557611395611284565b50069056fea2646970667358221220c01fe6bc054870cfbe82a8d97d1b777e6a11515560d475d7981e9801dcfa3e9d64736f6c63430008170033

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.