ETH Price: $2,520.00 (+2.85%)

Contract

0xd8cb7339B5e9fc1c4477B4c900110d74b72b4830
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake And With...119645242021-03-03 9:44:011279 days ago1614764641IN
Typhoon.Cash: 100 ETH
0 ETH0.00433056120
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.00909366178
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.00909366178
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.0089404175
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.0089404175
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.00848372166.10000023
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.00848571166.10000023
Unstake And With...118891512021-02-19 19:08:501291 days ago1613761730IN
Typhoon.Cash: 100 ETH
0 ETH0.00842952165
Unstake And With...118891172021-02-19 19:00:041291 days ago1613761204IN
Typhoon.Cash: 100 ETH
0 ETH0.00825755161.71
Unstake And With...118886082021-02-19 17:05:201291 days ago1613754320IN
Typhoon.Cash: 100 ETH
0 ETH0.01364049267
Update Rewarder118884612021-02-19 16:33:441291 days ago1613752424IN
Typhoon.Cash: 100 ETH
0 ETH0.00728294256
Unstake And With...118858522021-02-19 7:06:301291 days ago1613718390IN
Typhoon.Cash: 100 ETH
0 ETH0.01025139186.00000145
Unstake And With...118805732021-02-18 11:25:451292 days ago1613647545IN
Typhoon.Cash: 100 ETH
0 ETH0.01151898132
Unstake And With...118805302021-02-18 11:15:351292 days ago1613646935IN
Typhoon.Cash: 100 ETH
0 ETH0.00959915110
Unstake And With...118804992021-02-18 11:11:141292 days ago1613646674IN
Typhoon.Cash: 100 ETH
0 ETH0.01055394107.00000145
Unstake And With...118804932021-02-18 11:10:191292 days ago1613646619IN
Typhoon.Cash: 100 ETH
0 ETH0.01079921109.5
Unstake And With...118804912021-02-18 11:09:541292 days ago1613646594IN
Typhoon.Cash: 100 ETH
0 ETH0.01084985110
Unstake And With...118804852021-02-18 11:09:251292 days ago1613646565IN
Typhoon.Cash: 100 ETH
0 ETH0.01094848111
Unstake And With...118804802021-02-18 11:08:441292 days ago1613646524IN
Typhoon.Cash: 100 ETH
0 ETH0.01134164115
Unstake And With...118804782021-02-18 11:08:141292 days ago1613646494IN
Typhoon.Cash: 100 ETH
0 ETH0.01134302115
Unstake And With...118804762021-02-18 11:08:081292 days ago1613646488IN
Typhoon.Cash: 100 ETH
0 ETH0.01134164115
Unstake And With...118804672021-02-18 11:06:541292 days ago1613646414IN
Typhoon.Cash: 100 ETH
0 ETH0.01134302115
Unstake And With...118804662021-02-18 11:06:481292 days ago1613646408IN
Typhoon.Cash: 100 ETH
0 ETH0.01134302115
Unstake And With...118804322021-02-18 11:01:011292 days ago1613646061IN
Typhoon.Cash: 100 ETH
0 ETH0.01301982132
Unstake And With...118804202021-02-18 10:58:021292 days ago1613645882IN
Typhoon.Cash: 100 ETH
0 ETH0.01282255130
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
119645242021-03-03 9:44:011279 days ago1614764641
Typhoon.Cash: 100 ETH
99.5 ETH
119645242021-03-03 9:44:011279 days ago1614764641
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
99.5 ETH
118891512021-02-19 19:08:501291 days ago1613761730
Typhoon.Cash: 100 ETH
0.5 ETH
118891172021-02-19 19:00:041291 days ago1613761204
Typhoon.Cash: 100 ETH
99.5 ETH
118891172021-02-19 19:00:041291 days ago1613761204
Typhoon.Cash: 100 ETH
0.5 ETH
118886082021-02-19 17:05:201291 days ago1613754320
Typhoon.Cash: 100 ETH
99.5 ETH
118886082021-02-19 17:05:201291 days ago1613754320
Typhoon.Cash: 100 ETH
0.5 ETH
118858522021-02-19 7:06:301291 days ago1613718390
Typhoon.Cash: 100 ETH
99.5 ETH
118858522021-02-19 7:06:301291 days ago1613718390
Typhoon.Cash: 100 ETH
0.5 ETH
118805732021-02-18 11:25:451292 days ago1613647545
Typhoon.Cash: 100 ETH
99.5 ETH
118805732021-02-18 11:25:451292 days ago1613647545
Typhoon.Cash: 100 ETH
0.5 ETH
118805302021-02-18 11:15:351292 days ago1613646935
Typhoon.Cash: 100 ETH
99.5 ETH
View All Internal Transactions
Loading...
Loading

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

Contract Name:
ETHTornado

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : ETHTornado.sol
// https://tornado.cash
/*
* d888888P                                           dP              a88888b.                   dP
*    88                                              88             d8'   `88                   88
*    88    .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b.    88        .d8888b. .d8888b. 88d888b.
*    88    88'  `88 88'  `88 88'  `88 88'  `88 88'  `88 88'  `88    88        88'  `88 Y8ooooo. 88'  `88
*    88    88.  .88 88       88    88 88.  .88 88.  .88 88.  .88 dP Y8.   .88 88.  .88       88 88    88
*    dP    `88888P' dP       dP    dP `88888P8 `88888P8 `88888P' 88  Y88888P' `88888P8 `88888P' dP    dP
* ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
*/

pragma solidity 0.5.17;

import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./Tornado.sol";

contract ETHTornado is Tornado {
  using SafeERC20 for IERC20;

  constructor(
    IVerifier _verifier,
    uint256 _denomination,
    uint32 _merkleTreeHeight,
    address _operator,
    address _governance,
    address _reserve
  ) Tornado(_verifier, _denomination, _merkleTreeHeight, _operator, _governance, _reserve) public {
  }

  function _processDeposit() internal {
    require(msg.value == denomination, "Please send `mixDenomination` ETH along with transaction");
  }

  function _processWithdraw(address payable _recipient, uint256 _withdraw_fee, address payable _relayer, uint256 _fee, uint256 _refund) internal {
    // sanity checks
    require(msg.value == 0, "Message value is supposed to be zero for ETH instance");
    require(_refund == 0, "Refund value is supposed to be zero for ETH instance");

    (bool success_fee, ) = reserve.call.value(_withdraw_fee)("");
    require(success_fee, "payment to reserve did not go thru");
    (bool success, ) = _recipient.call.value(denomination - _withdraw_fee - _fee)("");
    require(success, "payment to _recipient did not go thru");
    if (_fee > 0) {
      (success, ) = _relayer.call.value(_fee)("");
      require(success, "payment to _relayer did not go thru");
    }
  }

  /** @dev seize accidental sent erc20 token */
  function seize(IERC20 _token, uint amount) external onlyGovernance {
    _token.safeTransfer(governance, amount);
  }
}

File 2 of 9 : Counter.sol
pragma solidity 0.5.17;

import "@openzeppelin/contracts/math/SafeMath.sol";

library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

File 3 of 9 : MerkleTreeWithHistory.sol
// https://tornado.cash
/*
* d888888P                                           dP              a88888b.                   dP
*    88                                              88             d8'   `88                   88
*    88    .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b.    88        .d8888b. .d8888b. 88d888b.
*    88    88'  `88 88'  `88 88'  `88 88'  `88 88'  `88 88'  `88    88        88'  `88 Y8ooooo. 88'  `88
*    88    88.  .88 88       88    88 88.  .88 88.  .88 88.  .88 dP Y8.   .88 88.  .88       88 88    88
*    dP    `88888P' dP       dP    dP `88888P8 `88888P8 `88888P' 88  Y88888P' `88888P8 `88888P' dP    dP
* ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
*/

pragma solidity 0.5.17;

library Hasher {
  function MiMCSponge(uint256 in_xL, uint256 in_xR) public pure returns (uint256 xL, uint256 xR);
}

contract MerkleTreeWithHistory {
  uint256 public constant FIELD_SIZE = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
  uint256 public constant ZERO_VALUE = 21663839004416932945382355908790599225266501822907911457504978515578255421292; // = keccak256("tornado") % FIELD_SIZE

  uint32 public levels;

  // the following variables are made public for easier testing and debugging and
  // are not supposed to be accessed in regular code
  bytes32[] public filledSubtrees;
  bytes32[] public zeros;
  uint32 public currentRootIndex = 0;
  uint32 public nextIndex = 0;
  uint32 public constant ROOT_HISTORY_SIZE = 100;
  bytes32[ROOT_HISTORY_SIZE] public roots;

  constructor(uint32 _treeLevels) public {
    require(_treeLevels > 0, "_treeLevels should be greater than zero");
    require(_treeLevels < 32, "_treeLevels should be less than 32");
    levels = _treeLevels;

    bytes32 currentZero = bytes32(ZERO_VALUE);
    zeros.push(currentZero);
    filledSubtrees.push(currentZero);

    for (uint32 i = 1; i < levels; i++) {
      currentZero = hashLeftRight(currentZero, currentZero);
      zeros.push(currentZero);
      filledSubtrees.push(currentZero);
    }

    roots[0] = hashLeftRight(currentZero, currentZero);
  }

  /**
    @dev Hash 2 tree leaves, returns MiMC(_left, _right)
  */
  function hashLeftRight(bytes32 _left, bytes32 _right) public pure returns (bytes32) {
    require(uint256(_left) < FIELD_SIZE, "_left should be inside the field");
    require(uint256(_right) < FIELD_SIZE, "_right should be inside the field");
    uint256 R = uint256(_left);
    uint256 C = 0;
    (R, C) = Hasher.MiMCSponge(R, C);
    R = addmod(R, uint256(_right), FIELD_SIZE);
    (R, C) = Hasher.MiMCSponge(R, C);
    return bytes32(R);
  }

  function _insert(bytes32 _leaf) internal returns(uint32 index) {
    uint32 currentIndex = nextIndex;
    require(currentIndex != uint32(2)**levels, "Merkle tree is full. No more leafs can be added");
    nextIndex += 1;
    bytes32 currentLevelHash = _leaf;
    bytes32 left;
    bytes32 right;

    for (uint32 i = 0; i < levels; i++) {
      if (currentIndex % 2 == 0) {
        left = currentLevelHash;
        right = zeros[i];

        filledSubtrees[i] = currentLevelHash;
      } else {
        left = filledSubtrees[i];
        right = currentLevelHash;
      }

      currentLevelHash = hashLeftRight(left, right);

      currentIndex /= 2;
    }

    currentRootIndex = (currentRootIndex + 1) % ROOT_HISTORY_SIZE;
    roots[currentRootIndex] = currentLevelHash;
    return nextIndex - 1;
  }

  /**
    @dev Whether the root is present in the root history
  */
  function isKnownRoot(bytes32 _root) public view returns(bool) {
    if (_root == 0) {
      return false;
    }
    uint32 i = currentRootIndex;
    do {
      if (_root == roots[i]) {
        return true;
      }
      if (i == 0) {
        i = ROOT_HISTORY_SIZE;
      }
      i--;
    } while (i != currentRootIndex);
    return false;
  }

  /**
    @dev Returns the last root
  */
  function getLastRoot() public view returns(bytes32) {
    return roots[currentRootIndex];
  }
}

File 4 of 9 : Tornado.sol
// https://tornado.cash
/*
* d888888P                                           dP              a88888b.                   dP
*    88                                              88             d8'   `88                   88
*    88    .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b.    88        .d8888b. .d8888b. 88d888b.
*    88    88'  `88 88'  `88 88'  `88 88'  `88 88'  `88 88'  `88    88        88'  `88 Y8ooooo. 88'  `88
*    88    88.  .88 88       88    88 88.  .88 88.  .88 88.  .88 dP Y8.   .88 88.  .88       88 88    88
*    dP    `88888P' dP       dP    dP `88888P8 `88888P8 `88888P' 88  Y88888P' `88888P8 `88888P' dP    dP
* ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
*/

pragma solidity 0.5.17;

import "./MerkleTreeWithHistory.sol";
import "./Counter.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract IVerifier {
  function verifyProof(bytes memory _proof, uint256[6] memory _input) public returns(bool);
}

interface IReward {
  function stake(bytes32 _nullifierHash) external;
  function withdraw(bytes32 _nullifierHash, address payable _recipient) external;
}

contract Tornado is MerkleTreeWithHistory, ReentrancyGuard {
  using SafeMath for uint256;
  using Counters for Counters.Counter;
  Counters.Counter private _stakedCounter;

  uint256 public denomination;
  mapping(bytes32 => bool) public nullifierHashes;
  // we store all commitments just to prevent accidental deposits with the same commitment
  mapping(bytes32 => bool) public commitments;
  IVerifier public verifier;
  IReward public rewarder;
  mapping(address => mapping(bytes32 => bool)) public stakedNullifierHashes;
  mapping(bytes32 => address) public stakedNullifierHashOwner;

  // reserve pool address
  address public reserve;

  // operator can update snark verification key
  // after the final trusted setup ceremony operator rights are supposed to be transferred to zero address
  address public operator;
  modifier onlyOperator {
    require(msg.sender == operator, "Only operator can call this function.");
    _;
  }

  address public governance;
  modifier onlyGovernance {
    require(msg.sender == governance, "Only governance can call this function.");
    _;
  }

  uint public withdrawalFee = 50;
  uint constant public withdrawalMax = 10000;

  event Deposit(bytes32 indexed commitment, uint32 leafIndex, uint256 timestamp);
  event Withdrawal(address to, bytes32 nullifierHash, address indexed relayer, uint256 fee);
  event StakedWithdrawal(address indexed recipient, bytes32 nullifierHash, uint256 timestamp);
  event UnstakedWithdrawal(address indexed recipient, bytes32 nullifierHash);

  /**
    @dev The constructor
    @param _verifier the address of SNARK verifier for this contract
    @param _denomination transfer amount for each deposit
    @param _merkleTreeHeight the height of deposits' Merkle Tree
    @param _operator operator address (see operator comment above)
  */
  constructor(
    IVerifier _verifier,
    uint256 _denomination,
    uint32 _merkleTreeHeight,
    address _operator,
    address _governance,
    address _reserve
  ) MerkleTreeWithHistory(_merkleTreeHeight) public {
    require(_denomination > 0, "denomination should be greater than 0");
    verifier = _verifier;
    operator = _operator;
    governance = _governance;
    denomination = _denomination;
    reserve = _reserve;
  }

  /**
    @dev Deposit funds into the contract. The caller must send (for ETH) or approve (for ERC20) value equal to or `denomination` of this instance.
    @param _commitment the note commitment, which is PedersenHash(nullifier + secret)
  */
  function deposit(bytes32 _commitment) external payable nonReentrant {
    require(!commitments[_commitment], "The commitment has been submitted");

    uint32 insertedIndex = _insert(_commitment);
    commitments[_commitment] = true;
    _processDeposit();
    emit Deposit(_commitment, insertedIndex, block.timestamp);
  }

  /** @dev this function is defined in a child contract */
  function _processDeposit() internal;

  /**
    @dev Withdraw a deposit from the contract. `proof` is a zkSNARK proof data, and input is an array of circuit public inputs
    `input` array consists of:
      - merkle root of all deposits in the contract
      - hash of unique deposit nullifier to prevent double spends
      - the recipient of funds
      - optional fee that goes to the transaction sender (usually a relay)
  */
  function withdraw(bytes calldata _proof, bytes32 _root, bytes32 _nullifierHash, address payable _recipient, address payable _relayer, uint256 _fee, uint256 _refund) external payable nonReentrant {
    uint256 _withdraw_fee = denomination.mul(withdrawalFee).div(withdrawalMax);
    require(_withdraw_fee + _fee <= denomination, "Fee exceeds transfer value");
    require(!nullifierHashes[_nullifierHash], "The note has been already spent");
    require(isKnownRoot(_root), "Cannot find your merkle root"); // Make sure to use a recent one
    require(verifier.verifyProof(_proof, [uint256(_root), uint256(_nullifierHash), uint256(_recipient), uint256(_relayer), _fee, _refund]), "Invalid withdraw proof");

    nullifierHashes[_nullifierHash] = true;
    _processWithdraw(_recipient, _withdraw_fee, _relayer, _fee, _refund);
    emit Withdrawal(_recipient, _nullifierHash, _relayer, _fee);
  }

  function stakeWithdraw(bytes calldata _proof, bytes32 _root, bytes32 _nullifierHash, address payable _recipient) external payable nonReentrant {
    uint256 _withdraw_fee = denomination.mul(withdrawalFee).div(withdrawalMax);
    require(_withdraw_fee <= denomination, "Fee exceeds transfer value");
    require(!nullifierHashes[_nullifierHash], "The note has been already spent");
    require(isKnownRoot(_root), "Cannot find your merkle root"); // Make sure to use a recent one
    require(verifier.verifyProof(_proof, [uint256(_root), uint256(_nullifierHash), uint256(_recipient), uint256(address(0)), 0, 0]), "Invalid withdraw proof");

    nullifierHashes[_nullifierHash] = true;
    rewarder.stake(_nullifierHash);
    stakedNullifierHashOwner[_nullifierHash] = _recipient;
    stakedNullifierHashes[_recipient][_nullifierHash] = true;
    _stakedCounter.increment();
    emit StakedWithdrawal(_recipient, _nullifierHash, block.timestamp);
  }

  function unstakeAndWithdraw(bytes32 _nullifierHash) external payable nonReentrant {
    require(stakedNullifierHashes[msg.sender][_nullifierHash]);
    uint256 _withdraw_fee = denomination.mul(withdrawalFee).div(withdrawalMax);
    require(_withdraw_fee <= denomination, "Fee exceeds transfer value");
    _processWithdraw(msg.sender, _withdraw_fee, address(0), 0, 0);
    emit Withdrawal(msg.sender, _nullifierHash, address(0), 0);
    rewarder.withdraw(_nullifierHash, msg.sender);
    stakedNullifierHashes[msg.sender][_nullifierHash] = false;
    _stakedCounter.decrement();
    emit UnstakedWithdrawal(msg.sender, _nullifierHash);
  }

  /** @dev this function is defined in a child contract */
  function _processWithdraw(address payable _recipient, uint256 _withdraw_fee, address payable _relayer, uint256 _fee, uint256 _refund) internal;

  /** @dev whether a note is already spent */
  function isSpent(bytes32 _nullifierHash) public view returns(bool) {
    return nullifierHashes[_nullifierHash];
  }

  /** @dev whether an array of notes is already spent */
  function isSpentArray(bytes32[] calldata _nullifierHashes) external view returns(bool[] memory spent) {
    spent = new bool[](_nullifierHashes.length);
    for(uint i = 0; i < _nullifierHashes.length; i++) {
      if (isSpent(_nullifierHashes[i])) {
        spent[i] = true;
      }
    }
  }

  /**
    @dev allow operator to update SNARK verification keys. This is needed to update keys after the final trusted setup ceremony is held.
    After that operator rights are supposed to be transferred to zero address
  */
  function updateVerifier(address _newVerifier) external onlyOperator {
    verifier = IVerifier(_newVerifier);
  }

  function updateRewarder(address _newRewarder) external onlyOperator {
    rewarder = IReward(_newRewarder);
  }

  /** @dev operator can change his address */
  function changeOperator(address _newOperator) external onlyOperator {
    operator = _newOperator;
  }

  /** @dev get current staked count */
  function getStakedCount() public view returns (uint256) {
    return _stakedCounter.current();
  }

  /** @dev set governance address */
  function setGovernance(address _governance) external onlyGovernance {
    governance = _governance;
  }

  /** @dev set withdraw fee */
  function setWithdrawalFee(uint _withdrawalFee) external onlyGovernance {
    withdrawalFee = _withdrawalFee;
  }

  function setReserveAddress(address _newReserve) external onlyGovernance {
    reserve = _newReserve;
  }
}

File 5 of 9 : SafeMath.sol
pragma solidity ^0.5.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 6 of 9 : IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);
}

File 7 of 9 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 9 : Address.sol
pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 9 of 9 : ReentrancyGuard.sol
pragma solidity ^0.5.0;

/**
 * @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].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial 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 percetange 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.
        _notEntered = true;
    }

    /**
     * @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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {
    "/Users/jack/Desktop/program/typhoon-finance-contracts/contracts/Hasher.sol": {
      "Hasher": "0xc4eb4781436362600eDee633Ac656D649109eCBf"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IVerifier","name":"_verifier","type":"address"},{"internalType":"uint256","name":"_denomination","type":"uint256"},{"internalType":"uint32","name":"_merkleTreeHeight","type":"uint32"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_reserve","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"commitment","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"leafIndex","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"bytes32","name":"nullifierHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StakedWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"bytes32","name":"nullifierHash","type":"bytes32"}],"name":"UnstakedWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"nullifierHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Withdrawal","type":"event"},{"constant":true,"inputs":[],"name":"FIELD_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ROOT_HISTORY_SIZE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ZERO_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"changeOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"commitments","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentRootIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"denomination","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_commitment","type":"bytes32"}],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"filledSubtrees","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLastRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStakedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_left","type":"bytes32"},{"internalType":"bytes32","name":"_right","type":"bytes32"}],"name":"hashLeftRight","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"isKnownRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"}],"name":"isSpent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32[]","name":"_nullifierHashes","type":"bytes32[]"}],"name":"isSpentArray","outputs":[{"internalType":"bool[]","name":"spent","type":"bool[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"levels","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nextIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nullifierHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reserve","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewarder","outputs":[{"internalType":"contract IReward","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"seize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newReserve","type":"address"}],"name":"setReserveAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_withdrawalFee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"_proof","type":"bytes"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"},{"internalType":"address payable","name":"_recipient","type":"address"}],"name":"stakeWithdraw","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"stakedNullifierHashOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"stakedNullifierHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"}],"name":"unstakeAndWithdraw","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newRewarder","type":"address"}],"name":"updateRewarder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newVerifier","type":"address"}],"name":"updateVerifier","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"verifier","outputs":[{"internalType":"contract IVerifier","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"_proof","type":"bytes"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"},{"internalType":"address payable","name":"_recipient","type":"address"},{"internalType":"address payable","name":"_relayer","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_refund","type":"uint256"}],"name":"withdraw","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"zeros","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x6080604052600436106102255760003560e01c806397d1471411610123578063cd3293de116100ab578063e82955881161006f578063e829558814610cfb578063eb9253c014610d4a578063ec73295914610da5578063f178e47c14610dd0578063fc7e9c6f14610e1f57610225565b8063cd3293de14610b98578063cd87a3b414610bef578063d5c1ff7314610c26578063dcc3e06e14610c51578063e5285dcc14610ca857610225565b8063ac1e5025116100f2578063ac1e502514610a42578063b214faa514610a7d578063ba70f75714610aab578063bdd016f814610ad6578063c2b40ae414610b4957610225565b806397d147141461087457806397fc007c146108c55780639fa12d0b14610916578063ab033ea9146109f157610225565b8063414a37ba116101b1578063839df94511610175578063839df9451461076957806386d17082146107bc5780638bc7e8c4146107e75780638bca6d161461081257806390eeb02b1461083d57610225565b8063414a37ba146106065780634ecf518b14610631578063570ca735146106685780635aa6e675146106bf5780636d9833e31461071657610225565b806318948ab0116101f857806318948ab0146103cc57806321a0adb6146104475780632b7ac3f314610528578063305154fd1461057f57806338bf282e146105ad57610225565b806306394c9b1461022a57806314673d311461027b57806316a80711146102cc57806317cc915c14610379575b600080fd5b34801561023657600080fd5b506102796004803603602081101561024d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e56565b005b34801561028757600080fd5b506102ca6004803603602081101561029e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f40565b005b610377600480360360808110156102e257600080fd5b81019080803590602001906401000000008111156102ff57600080fd5b82018360208201111561031157600080fd5b8035906020019184600183028401116401000000008311171561033357600080fd5b90919293919293908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061102a565b005b34801561038557600080fd5b506103b26004803603602081101561039c57600080fd5b8101908080359060200190929190505050611653565b604051808215151515815260200191505060405180910390f35b3480156103d857600080fd5b50610405600480360360208110156103ef57600080fd5b8101908080359060200190929190505050611673565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610526600480360360e081101561045d57600080fd5b810190808035906020019064010000000081111561047a57600080fd5b82018360208201111561048c57600080fd5b803590602001918460018302840111640100000000831117156104ae57600080fd5b90919293919293908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291905050506116a6565b005b34801561053457600080fd5b5061053d611bc0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105ab6004803603602081101561059557600080fd5b8101908080359060200190929190505050611be6565b005b3480156105b957600080fd5b506105f0600480360360408110156105d057600080fd5b810190808035906020019092919080359060200190929190505050611fcd565b6040518082815260200191505060405180910390f35b34801561061257600080fd5b5061061b612273565b6040518082815260200191505060405180910390f35b34801561063d57600080fd5b50610646612297565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b34801561067457600080fd5b5061067d6122ac565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156106cb57600080fd5b506106d46122d2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561072257600080fd5b5061074f6004803603602081101561073957600080fd5b81019080803590602001909291905050506122f8565b604051808215151515815260200191505060405180910390f35b34801561077557600080fd5b506107a26004803603602081101561078c57600080fd5b810190808035906020019092919050505061239a565b604051808215151515815260200191505060405180910390f35b3480156107c857600080fd5b506107d16123ba565b6040518082815260200191505060405180910390f35b3480156107f357600080fd5b506107fc6123cb565b6040518082815260200191505060405180910390f35b34801561081e57600080fd5b506108276123d1565b6040518082815260200191505060405180910390f35b34801561084957600080fd5b506108526123d7565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b34801561088057600080fd5b506108c36004803603602081101561089757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506123ed565b005b3480156108d157600080fd5b50610914600480360360208110156108e857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506124d7565b005b34801561092257600080fd5b5061099a6004803603602081101561093957600080fd5b810190808035906020019064010000000081111561095657600080fd5b82018360208201111561096857600080fd5b8035906020019184602083028401116401000000008311171561098a57600080fd5b90919293919293905050506125c1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156109dd5780820151818401526020810190506109c2565b505050509050019250505060405180910390f35b3480156109fd57600080fd5b50610a4060048036036020811015610a1457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061265e565b005b348015610a4e57600080fd5b50610a7b60048036036020811015610a6557600080fd5b8101908080359060200190929190505050612748565b005b610aa960048036036020811015610a9357600080fd5b81019080803590602001909291905050506127f8565b005b348015610ab757600080fd5b50610ac06129b8565b6040518082815260200191505060405180910390f35b348015610ae257600080fd5b50610b2f60048036036040811015610af957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506129e6565b604051808215151515815260200191505060405180910390f35b348015610b5557600080fd5b50610b8260048036036020811015610b6c57600080fd5b8101908080359060200190929190505050612a15565b6040518082815260200191505060405180910390f35b348015610ba457600080fd5b50610bad612a2d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610bfb57600080fd5b50610c04612a53565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b348015610c3257600080fd5b50610c3b612a58565b6040518082815260200191505060405180910390f35b348015610c5d57600080fd5b50610c66612a5e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610cb457600080fd5b50610ce160048036036020811015610ccb57600080fd5b8101908080359060200190929190505050612a84565b604051808215151515815260200191505060405180910390f35b348015610d0757600080fd5b50610d3460048036036020811015610d1e57600080fd5b8101908080359060200190929190505050612aae565b6040518082815260200191505060405180910390f35b348015610d5657600080fd5b50610da360048036036040811015610d6d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612acf565b005b348015610db157600080fd5b50610dba612bc6565b6040518082815260200191505060405180910390f35b348015610ddc57600080fd5b50610e0960048036036020811015610df357600080fd5b8101908080359060200190929190505050612bea565b6040518082815260200191505060405180910390f35b348015610e2b57600080fd5b50610e34612c0b565b604051808263ffffffff1663ffffffff16815260200191505060405180910390f35b607260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610efc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806139e16025913960400191505060405180910390fd5b80607260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180613a066027913960400191505060405180910390fd5b80607160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606860009054906101000a900460ff166110ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6000606860006101000a81548160ff02191690831515021790555060006110f46127106110e6607454606a54612c2190919063ffffffff16565b612ca790919063ffffffff16565b9050606a5481111561116e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4665652065786365656473207472616e736665722076616c756500000000000081525060200191505060405180910390fd5b606b600084815260200190815260200160002060009054906101000a900460ff1615611202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f546865206e6f746520686173206265656e20616c7265616479207370656e740081525060200191505060405180910390fd5b61120b846122f8565b61127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f43616e6e6f742066696e6420796f7572206d65726b6c6520726f6f740000000081525060200191505060405180910390fd5b606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663695ef6f987876040518060c001604052808960001c81526020018860001c81526020018773ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152506040518463ffffffff1660e01b8152600401808060200183600660200280838360005b8381101561135d578082015181840152602081019050611342565b505050509050018281038252858582818152602001925080828437600081840152601f19601f820116905080830192505050945050505050602060405180830381600087803b1580156113af57600080fd5b505af11580156113c3573d6000803e3d6000fd5b505050506040513d60208110156113d957600080fd5b810190808051906020019092919050505061145c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f496e76616c69642077697468647261772070726f6f660000000000000000000081525060200191505060405180910390fd5b6001606b600085815260200190815260200160002060006101000a81548160ff021916908315150217905550606e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c0d64a87846040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156114fd57600080fd5b505af1158015611511573d6000803e3d6000fd5b50505050816070600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001606f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060006101000a81548160ff0219169083151502179055506115da6069612cf1565b8173ffffffffffffffffffffffffffffffffffffffff167f71ec99cf8957eb0a020131dc9be47872d6c5c41064a8b51f5dd9e06ce3f7e5478442604051808381526020018281526020019250505060405180910390a2506001606860006101000a81548160ff0219169083151502179055505050505050565b606b6020528060005260406000206000915054906101000a900460ff1681565b60706020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606860009054906101000a900460ff16611728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6000606860006101000a81548160ff0219169083151502179055506000611770612710611762607454606a54612c2190919063ffffffff16565b612ca790919063ffffffff16565b9050606a5483820111156117ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4665652065786365656473207472616e736665722076616c756500000000000081525060200191505060405180910390fd5b606b600087815260200190815260200160002060009054906101000a900460ff1615611880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f546865206e6f746520686173206265656e20616c7265616479207370656e740081525060200191505060405180910390fd5b611889876122f8565b6118fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f43616e6e6f742066696e6420796f7572206d65726b6c6520726f6f740000000081525060200191505060405180910390fd5b606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663695ef6f98a8a6040518060c001604052808c60001c81526020018b60001c81526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff168152602001888152602001878152506040518463ffffffff1660e01b8152600401808060200183600660200280838360005b838110156119d85780820151818401526020810190506119bd565b505050509050018281038252858582818152602001925080828437600081840152601f19601f820116905080830192505050945050505050602060405180830381600087803b158015611a2a57600080fd5b505af1158015611a3e573d6000803e3d6000fd5b505050506040513d6020811015611a5457600080fd5b8101908080519060200190929190505050611ad7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f496e76616c69642077697468647261772070726f6f660000000000000000000081525060200191505060405180910390fd5b6001606b600088815260200190815260200160002060006101000a81548160ff021916908315150217905550611b108582868686612d07565b8373ffffffffffffffffffffffffffffffffffffffff167fe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c34931868886604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a2506001606860006101000a81548160ff0219169083151502179055505050505050505050565b606d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606860009054906101000a900460ff16611c68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6000606860006101000a81548160ff021916908315150217905550606f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082815260200190815260200160002060009054906101000a900460ff16611cea57600080fd5b6000611d17612710611d09607454606a54612c2190919063ffffffff16565b612ca790919063ffffffff16565b9050606a54811115611d91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4665652065786365656473207472616e736665722076616c756500000000000081525060200191505060405180910390fd5b611da033826000806000612d07565b600073ffffffffffffffffffffffffffffffffffffffff167fe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c3493133846000604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a2606e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631b258d5083336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611ed557600080fd5b505af1158015611ee9573d6000803e3d6000fd5b505050506000606f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff021916908315150217905550611f606069613031565b3373ffffffffffffffffffffffffffffffffffffffff167fa79727a9a6120b523496126ad516aa81a5ec0e8b61d310b155fdb53bc0388973836040518082815260200191505060405180910390a2506001606860006101000a81548160ff02191690831515021790555050565b60007f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018360001c10612067576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6481525060200191505060405180910390fd5b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018260001c106120e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806138d86021913960400191505060405180910390fd5b60008360001c9050600080905073c4eb4781436362600edee633ac656d649109ecbf63f47d33b583836040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b15801561214557600080fd5b505af4158015612159573d6000803e3d6000fd5b505050506040513d604081101561216f57600080fd5b81019080805190602001909291908051906020019092919050505080925081935050507f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001806121ba57fe5b8460001c8308915073c4eb4781436362600edee633ac656d649109ecbf63f47d33b583836040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b15801561221857600080fd5b505af415801561222c573d6000803e3d6000fd5b505050506040513d604081101561224257600080fd5b81019080805190602001909291908051906020019092919050505080925081935050508160001b9250505092915050565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181565b6000809054906101000a900463ffffffff1681565b607260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060001b82141561230e5760009050612395565b6000600360009054906101000a900463ffffffff1690505b60048163ffffffff166064811061233957fe5b015483141561234c576001915050612395565b60008163ffffffff16141561236057606490505b808060019003915050600360009054906101000a900463ffffffff1663ffffffff168163ffffffff1614156123265760009150505b919050565b606c6020528060005260406000206000915054906101000a900460ff1681565b60006123c66069613054565b905090565b60745481565b606a5481565b600360009054906101000a900463ffffffff1681565b607260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612493576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806139e16025913960400191505060405180910390fd5b80606e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b607260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461257d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806139e16025913960400191505060405180910390fd5b80606d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060828290506040519080825280602002602001820160405280156125f55781602001602082028038833980820191505090505b50905060008090505b838390508110156126575761262484848381811061261857fe5b90506020020135612a84565b1561264a57600182828151811061263757fe5b6020026020010190151590811515815250505b80806001019150506125fe565b5092915050565b607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612704576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180613a066027913960400191505060405180910390fd5b80607360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146127ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180613a066027913960400191505060405180910390fd5b8060748190555050565b606860009054906101000a900460ff1661287a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6000606860006101000a81548160ff021916908315150217905550606c600082815260200190815260200160002060009054906101000a900460ff161561290c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061394e6021913960400191505060405180910390fd5b600061291782613062565b90506001606c600084815260200190815260200160002060006101000a81548160ff02191690831515021790555061294d6132bb565b817fa945e51eec50ab98c161376f0db4cf2aeba3ec92755fe2fcd388bdbbb80ff1968242604051808363ffffffff1663ffffffff1681526020018281526020019250505060405180910390a2506001606860006101000a81548160ff02191690831515021790555050565b60006004600360009054906101000a900463ffffffff1663ffffffff16606481106129df57fe5b0154905090565b606f6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60048160648110612a2257fe5b016000915090505481565b607160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606481565b61271081565b606e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606b600083815260200190815260200160002060009054906101000a900460ff169050919050565b60028181548110612abb57fe5b906000526020600020016000915090505481565b607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180613a066027913960400191505060405180910390fd5b612bc2607360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff166133179092919063ffffffff16565b5050565b7f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c81565b60018181548110612bf757fe5b906000526020600020016000915090505481565b600360049054906101000a900463ffffffff1681565b600080831415612c345760009050612ca1565b6000828402905082848281612c4557fe5b0414612c9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061392d6021913960400191505060405180910390fd5b809150505b92915050565b6000612ce983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506133e8565b905092915050565b6001816000016000828254019250508190555050565b60003414612d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526035815260200180613a2d6035913960400191505060405180910390fd5b60008114612db9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806138f96034913960400191505060405180910390fd5b6000607160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168560405180600001905060006040518083038185875af1925050503d8060008114612e3b576040519150601f19603f3d011682016040523d82523d6000602084013e612e40565b606091505b5050905080612e9a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806138b66022913960400191505060405180910390fd5b60008673ffffffffffffffffffffffffffffffffffffffff168487606a54030360405180600001905060006040518083038185875af1925050503d8060008114612f00576040519150601f19603f3d011682016040523d82523d6000602084013e612f05565b606091505b5050905080612f5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061396f6025913960400191505060405180910390fd5b6000841115613028578473ffffffffffffffffffffffffffffffffffffffff168460405180600001905060006040518083038185875af1925050503d8060008114612fc6576040519150601f19603f3d011682016040523d82523d6000602084013e612fcb565b606091505b50508091505080613027576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806139946023913960400191505060405180910390fd5b5b50505050505050565b613049600182600001546134ae90919063ffffffff16565b816000018190555050565b600081600001549050919050565b600080600360049054906101000a900463ffffffff1690506000809054906101000a900463ffffffff1663ffffffff16600263ffffffff160a63ffffffff168163ffffffff1614156130ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061384f602f913960400191505060405180910390fd5b6001600360048282829054906101000a900463ffffffff160192506101000a81548163ffffffff021916908363ffffffff160217905550600083905060008060008090505b6000809054906101000a900463ffffffff1663ffffffff168163ffffffff16101561322257600060028663ffffffff168161317b57fe5b0663ffffffff1614156131d25783925060028163ffffffff168154811061319e57fe5b906000526020600020015491508360018263ffffffff16815481106131bf57fe5b90600052602060002001819055506131f6565b60018163ffffffff16815481106131e557fe5b906000526020600020015492508391505b6132008383611fcd565b935060028563ffffffff168161321257fe5b0494508080600101915050613144565b50606463ffffffff166001600360009054906101000a900463ffffffff160163ffffffff168161324e57fe5b06600360006101000a81548163ffffffff021916908363ffffffff160217905550826004600360009054906101000a900463ffffffff1663ffffffff166064811061329557fe5b01819055506001600360049054906101000a900463ffffffff1603945050505050919050565b606a543414613315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603881526020018061387e6038913960400191505060405180910390fd5b565b6133e3838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506134f8565b505050565b60008083118290613494576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561345957808201518184015260208101905061343e565b50505050905090810190601f1680156134865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816134a057fe5b049050809150509392505050565b60006134f083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613743565b905092915050565b6135178273ffffffffffffffffffffffffffffffffffffffff16613803565b613589576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106135d857805182526020820191506020810190506020830392506135b5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461363a576040519150601f19603f3d011682016040523d82523d6000602084013e61363f565b606091505b5091509150816136b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561373d578080602001905160208110156136d657600080fd5b810190808051906020019092919050505061373c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806139b7602a913960400191505060405180910390fd5b5b50505050565b60008383111582906137f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156137b557808201518184015260208101905061379a565b50505050905090810190601f1680156137e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f915080821415801561384557506000801b8214155b9250505091905056fe4d65726b6c6520747265652069732066756c6c2e204e6f206d6f7265206c656166732063616e206265206164646564506c656173652073656e6420606d697844656e6f6d696e6174696f6e602045544820616c6f6e672077697468207472616e73616374696f6e7061796d656e7420746f207265736572766520646964206e6f7420676f20746872755f72696768742073686f756c6420626520696e7369646520746865206669656c64526566756e642076616c756520697320737570706f73656420746f206265207a65726f20666f722045544820696e7374616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754686520636f6d6d69746d656e7420686173206265656e207375626d69747465647061796d656e7420746f205f726563697069656e7420646964206e6f7420676f20746872757061796d656e7420746f205f72656c6179657220646964206e6f7420676f20746872755361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644f6e6c79206f70657261746f722063616e2063616c6c20746869732066756e6374696f6e2e4f6e6c7920676f7665726e616e63652063616e2063616c6c20746869732066756e6374696f6e2e4d6573736167652076616c756520697320737570706f73656420746f206265207a65726f20666f722045544820696e7374616e6365a265627a7a7231582094d1e7e7c7e86f38c2a86e0e3ab82942c7bfc3b91f8714b1bd99217d3ce77cb164736f6c63430005110032

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.