ETH Price: $3,187.44 (-0.74%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval194410102024-03-15 14:41:47675 days ago1710513707IN
0x78d742F4...a8bab3de4
0 ETH0.0024688453.03759012
Set Approval184258962023-10-25 7:54:11817 days ago1698220451IN
0x78d742F4...a8bab3de4
0 ETH0.0007716316.57685137
Set Approval169912312023-04-06 18:09:591019 days ago1680804599IN
0x78d742F4...a8bab3de4
0 ETH0.00145631.27898929
Set Approval162847502022-12-28 17:29:111118 days ago1672248551IN
0x78d742F4...a8bab3de4
0 ETH0.000869318.67513507
Set Approval159001182022-11-05 0:04:351172 days ago1667606675IN
0x78d742F4...a8bab3de4
0 ETH0.0007011215.06218431
Set Approval155581612022-09-18 4:49:471219 days ago1663476587IN
0x78d742F4...a8bab3de4
0 ETH0.0005120311
Set Approval154865022022-09-06 21:44:141231 days ago1662500654IN
0x78d742F4...a8bab3de4
0 ETH0.0005887512.64804986
Set Approval153300332022-08-12 23:51:261256 days ago1660348286IN
0x78d742F4...a8bab3de4
0 ETH0.0009642420.72005664
Set Approval148665512022-05-29 12:56:581331 days ago1653829018IN
0x78d742F4...a8bab3de4
0 ETH0.0009729220.9065581
Set Approval145896562022-04-15 11:21:481375 days ago1650021708IN
0x78d742F4...a8bab3de4
0 ETH0.0012617827.11352005
Set Approval145794152022-04-13 20:59:081377 days ago1649883548IN
0x78d742F4...a8bab3de4
0 ETH0.001978742.51894531
Set Approval145317572022-04-06 10:16:141384 days ago1649240174IN
0x78d742F4...a8bab3de4
0 ETH0.0020361243.75276434
Set Approval145120722022-04-03 8:20:221387 days ago1648974022IN
0x78d742F4...a8bab3de4
0 ETH0.0018587439.94121969
Set Approval139149002021-12-31 19:13:021480 days ago1640977982IN
0x78d742F4...a8bab3de4
0 ETH0.0029732763.89047184
Set Approval138552262021-12-22 13:19:021489 days ago1640179142IN
0x78d742F4...a8bab3de4
0 ETH0.0018972540.76869189
Set Approval138288532021-12-18 11:24:071493 days ago1639826647IN
0x78d742F4...a8bab3de4
0 ETH0.0014891832
Set Approval137964602021-12-13 11:12:201498 days ago1639393940IN
0x78d742F4...a8bab3de4
0 ETH0.001955842.02681435
Unstake137580712021-12-07 10:44:571504 days ago1638873897IN
0x78d742F4...a8bab3de4
0 ETH0.0035339256.5863277
Set Approval136953122021-11-27 9:31:191514 days ago1638005479IN
0x78d742F4...a8bab3de4
0 ETH0.003522875.69910352
Set Approval136549462021-11-21 0:04:221521 days ago1637453062IN
0x78d742F4...a8bab3de4
0 ETH0.0037691880.99328305
Set Approval135115922021-10-29 10:41:561543 days ago1635504116IN
0x78d742F4...a8bab3de4
0 ETH0.00611617131.42611464
Set Approval135037052021-10-28 4:56:421544 days ago1635397002IN
0x78d742F4...a8bab3de4
0 ETH0.00744778160.0400708
Set Approval135036092021-10-28 4:37:121544 days ago1635395832IN
0x78d742F4...a8bab3de4
0 ETH0.00856223183.98777755
Set Approval134799012021-10-24 11:27:121548 days ago1635074832IN
0x78d742F4...a8bab3de4
0 ETH0.0044648395.94159224
Set Approval134408652021-10-18 8:54:261554 days ago1634547266IN
0x78d742F4...a8bab3de4
0 ETH0.0029040662.40336638
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-116336962021-01-11 12:44:401834 days ago1610369080
0x78d742F4...a8bab3de4
 Contract Creation0 ETH
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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

Contract Name:
Staking

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-11
*/

// File: @openzeppelin/contracts/cryptography/MerkleProof.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}


// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol


pragma solidity ^0.6.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].
 */
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;

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

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

        _;

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


// File: @openzeppelin/contracts/utils/Address.sol


pragma solidity ^0.6.2;

/**
 * @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) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol


pragma solidity ^0.6.0;




/**
 * @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 IERC20;` 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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "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: @openzeppelin/contracts/math/SafeMath.sol


pragma solidity ^0.6.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.
     */
    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.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol


pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File: localhost/contracts/erc20-redeemable/contracts/MerkleRedeem.sol

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;


contract MerkleRedeem is Ownable {
    IERC20 public token;

    event Claimed(address _claimant, uint256 _balance);

    // Recorded weeks
    mapping(uint256 => bytes32) public weekMerkleRoots;
    mapping(uint256 => mapping(address => bool)) public claimed;

    constructor(address _token) public {
        token = IERC20(_token);
    }

    function disburse(address _liquidityProvider, uint256 _balance) private {
        if (_balance > 0) {
            emit Claimed(_liquidityProvider, _balance);
            require(
                token.transfer(_liquidityProvider, _balance),
                "ERR_TRANSFER_FAILED"
            );
        }
    }

    function claimWeek(
        address _liquidityProvider,
        uint256 _week,
        uint256 _claimedBalance,
        bytes32[] memory _merkleProof
    ) public {
        require(!claimed[_week][_liquidityProvider]);
        require(
            verifyClaim(
                _liquidityProvider,
                _week,
                _claimedBalance,
                _merkleProof
            ),
            "Incorrect merkle proof"
        );

        claimed[_week][_liquidityProvider] = true;
        disburse(_liquidityProvider, _claimedBalance);
    }

    struct Claim {
        uint256 week;
        uint256 balance;
        bytes32[] merkleProof;
    }

    function claimWeeks(address _liquidityProvider, Claim[] memory claims)
        public
    {
        uint256 totalBalance = 0;
        Claim memory claim;
        for (uint256 i = 0; i < claims.length; i++) {
            claim = claims[i];

            require(!claimed[claim.week][_liquidityProvider]);
            require(
                verifyClaim(
                    _liquidityProvider,
                    claim.week,
                    claim.balance,
                    claim.merkleProof
                ),
                "Incorrect merkle proof"
            );

            totalBalance += claim.balance;
            claimed[claim.week][_liquidityProvider] = true;
        }
        disburse(_liquidityProvider, totalBalance);
    }

    function claimStatus(
        address _liquidityProvider,
        uint256 _begin,
        uint256 _end
    ) external view returns (bool[] memory) {
        uint256 size = 1 + _end - _begin;
        bool[] memory arr = new bool[](size);
        for (uint256 i = 0; i < size; i++) {
            arr[i] = claimed[_begin + i][_liquidityProvider];
        }
        return arr;
    }

    function merkleRoots(uint256 _begin, uint256 _end)
        external
        view
        returns (bytes32[] memory)
    {
        uint256 size = 1 + _end - _begin;
        bytes32[] memory arr = new bytes32[](size);
        for (uint256 i = 0; i < size; i++) {
            arr[i] = weekMerkleRoots[_begin + i];
        }
        return arr;
    }

    function verifyClaim(
        address _liquidityProvider,
        uint256 _week,
        uint256 _claimedBalance,
        bytes32[] memory _merkleProof
    ) public view returns (bool valid) {
        bytes32 leaf = keccak256(
            abi.encodePacked(_liquidityProvider, _claimedBalance)
        );
        return MerkleProof.verify(_merkleProof, weekMerkleRoots[_week], leaf);
    }

    function seedAllocations(
        uint256 _week,
        bytes32 _merkleRoot,
        uint256 _totalAllocation
    ) external onlyOwner {
        require(
            weekMerkleRoots[_week] == bytes32(0),
            "cannot rewrite merkle root"
        );
        weekMerkleRoots[_week] = _merkleRoot;

        require(
            token.transferFrom(msg.sender, address(this), _totalAllocation),
            "ERR_TRANSFER_FAILED"
        );
    }
}

// File: @openzeppelin/contracts/utils/Pausable.sol


pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: localhost/contracts/Staking.sol


pragma solidity ^0.6.0;

/**
 * @title The staking contract for Furucombo
 */
contract Staking is Ownable, Pausable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public stakingToken;
    // The redeem contract location of claiming functions
    MerkleRedeem public redeemable;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => bool)) private _approvals;

    event Staked(
        address indexed sender,
        address indexed onBehalfOf,
        uint256 amount
    );
    event Unstaked(
        address indexed sender,
        address indexed onBehalfOf,
        uint256 amount
    );
    event Approved(address indexed user, address indexed agent, bool approval);

    modifier onlyApproved(address owner) {
        require(
            _approvals[owner][msg.sender],
            "Furucombo staking: agent is not approved"
        );
        _;
    }

    /**
     * @notice The redeem contract owner will be transferred to the deployer.
     */
    constructor(address _stakingToken, address _rewardToken) public {
        stakingToken = IERC20(_stakingToken);
        redeemable = new MerkleRedeem(_rewardToken);
        redeemable.transferOwnership(msg.sender);
        _pause();
    }

    /**
     * @notice Verify if the agent is approved by user. Approval is required to
     * perform `unstakeFor`.
     * @param user The user address.
     * @param agent The agent address to be verified.
     */
    function isApproved(address user, address agent)
        external
        view
        returns (bool)
    {
        return _approvals[user][agent];
    }

    /**
     * @notice Check the staked balance of user.
     * @param user The user address.
     * @return The staked balance.
     */
    function balanceOf(address user) external view returns (uint256) {
        return _balances[user];
    }

    /**
     * @notice Set the approval for agent.
     * @param agent The agent to be approved/disapproved.
     * @param approval The approval.
     */
    function setApproval(address agent, bool approval) external {
        require(agent != address(0), "Furucombo staking: agent is 0");
        require(
            _approvals[msg.sender][agent] != approval,
            "Furucombo staking: identical approval assigned"
        );
        _approvals[msg.sender][agent] = approval;
        emit Approved(msg.sender, agent, approval);
    }

    /**
     * @notice The staking function.
     * @param amount The amount to be staked.
     */
    function stake(uint256 amount) external nonReentrant whenNotPaused {
        _stakeInternal(msg.sender, amount);
    }

    /**
     * @notice The delegate staking function.
     * @param onBehalfOf The address to be staked.
     * @param amount The amount to be staked.
     */
    function stakeFor(address onBehalfOf, uint256 amount)
        external
        nonReentrant
        whenNotPaused
    {
        _stakeInternal(onBehalfOf, amount);
    }

    /**
     * @notice The unstaking function.
     * @param amount The amount to be unstaked.
     */
    function unstake(uint256 amount) external nonReentrant {
        _unstakeInternal(msg.sender, amount);
    }

    /**
     * @notice The delegate staking function. Approval is required. The
     * unstaked balance will be transferred to the caller.
     * @param onBehalfOf The address to be unstaked.
     * @param amount The amount to be unstaked.
     */
    function unstakeFor(address onBehalfOf, uint256 amount)
        external
        nonReentrant
        onlyApproved(onBehalfOf)
    {
        _unstakeInternal(onBehalfOf, amount);
    }

    /**
     * @notice The claiming function. The function call is forwarded to the
     * redeem contract.
     */
    function claimWeek(
        address user,
        uint256 week,
        uint256 balance,
        bytes32[] memory merkleProof
    ) public {
        redeemable.claimWeek(user, week, balance, merkleProof);
    }

    /**
     * @notice The claiming function. The function call is forwarded to the
     * redeem contract.
     */
    function claimWeeks(address user, MerkleRedeem.Claim[] memory claims)
        public
    {
        redeemable.claimWeeks(user, claims);
    }

    /**
     * @notice The pausing funciton. Can only be triggered by owner.
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     *
     */
    function unpause() external onlyOwner {
        _unpause();
    }

    function _stakeInternal(address user, uint256 amount) internal {
        require(amount > 0, "Furucombo staking: staking 0");
        _balances[user] = _balances[user].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, user, amount);
    }

    function _unstakeInternal(address user, uint256 amount) internal {
        require(amount > 0, "Furucombo staking: unstaking 0");
        _balances[user] = _balances[user].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Unstaked(msg.sender, user, amount);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"agent","type":"address"},{"indexed":false,"internalType":"bool","name":"approval","type":"bool"}],"name":"Approved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"onBehalfOf","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"onBehalfOf","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"week","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimWeek","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"internalType":"uint256","name":"week","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct MerkleRedeem.Claim[]","name":"claims","type":"tuple[]"}],"name":"claimWeeks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"agent","type":"address"}],"name":"isApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemable","outputs":[{"internalType":"contract MerkleRedeem","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"agent","type":"address"},{"internalType":"bool","name":"approval","type":"bool"}],"name":"setApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"onBehalfOf","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"onBehalfOf","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60806040523480156200001157600080fd5b506040516200272a3803806200272a83398101604081905262000034916200021f565b60006200004062000180565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b1916905560018055600280546001600160a01b0319166001600160a01b0384161790556040518190620000c69062000211565b620000d291906200025d565b604051809103906000f080158015620000ef573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b03928316179081905560405163f2fde38b60e01b815291169063f2fde38b90620001349033906004016200025d565b600060405180830381600087803b1580156200014f57600080fd5b505af115801562000164573d6000803e3d6000fd5b50505050620001786200018460201b60201c565b5050620002b4565b3390565b600054600160a01b900460ff1615620001ba5760405162461bcd60e51b8152600401620001b19062000271565b60405180910390fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001f862000180565b6040516200020791906200025d565b60405180910390a1565b610fae806200177c83390190565b6000806040838503121562000232578182fd5b82516200023f816200029b565b602084015190925062000252816200029b565b809150509250929050565b6001600160a01b0391909116815260200190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6001600160a01b0381168114620002b157600080fd5b50565b6114b880620002c46000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063715018a6116100a2578063a389783e11610071578063a389783e146101d9578063a694fc3a146101ec578063c804c39a146101ff578063db9b717014610212578063f2fde38b146102255761010b565b8063715018a6146101b957806372f702f3146101c15780638456cb59146101c95780638da5cb5b146101d15761010b565b80633f4ba83a116100de5780633f4ba83a1461016957806358b4e4b4146101715780635c975abb1461018457806370a08231146101995761010b565b80632d7ecd11146101105780632e17de781461012e5780632ee409081461014357806336ef088c14610156575b600080fd5b610118610238565b6040516101259190610f91565b60405180910390f35b61014161013c366004610f23565b610247565b005b610141610151366004610e7d565b610289565b610141610164366004610e7d565b6102ed565b61014161036d565b61014161017f366004610ea7565b6103ac565b61018c61041a565b60405161012591906110a5565b6101ac6101a7366004610d5b565b61042a565b60405161012591906113e0565b610141610445565b6101186104c4565b6101416104d3565b610118610510565b61018c6101e7366004610d76565b61051f565b6101416101fa366004610f23565b61054f565b61014161020d366004610daa565b6105ab565b610141610220366004610e46565b610613565b610141610233366004610d5b565b6106f2565b6003546001600160a01b031681565b600260015414156102735760405162461bcd60e51b815260040161026a90611372565b60405180910390fd5b600260015561028233826107a8565b5060018055565b600260015414156102ac5760405162461bcd60e51b815260040161026a90611372565b6002600155600054600160a01b900460ff16156102db5760405162461bcd60e51b815260040161026a9061120d565b6102e5828261085a565b505060018055565b600260015414156103105760405162461bcd60e51b815260040161026a90611372565b60026001556001600160a01b0382166000908152600560209081526040808320338452909152902054829060ff1661035a5760405162461bcd60e51b815260040161026a90611111565b61036483836107a8565b50506001805550565b61037561090d565b6000546001600160a01b039081169116146103a25760405162461bcd60e51b815260040161026a90611237565b6103aa610911565b565b60035460405163162d392d60e21b81526001600160a01b03909116906358b4e4b4906103e290879087908790879060040161106e565b600060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b5050505050505050565b600054600160a01b900460ff1690565b6001600160a01b031660009081526004602052604090205490565b61044d61090d565b6000546001600160a01b0390811691161461047a5760405162461bcd60e51b815260040161026a90611237565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6104db61090d565b6000546001600160a01b039081169116146105085760405162461bcd60e51b815260040161026a90611237565b6103aa610987565b6000546001600160a01b031690565b6001600160a01b0380831660009081526005602090815260408083209385168352929052205460ff165b92915050565b600260015414156105725760405162461bcd60e51b815260040161026a90611372565b6002600155600054600160a01b900460ff16156105a15760405162461bcd60e51b815260040161026a9061120d565b610282338261085a565b60035460405163640261cd60e11b81526001600160a01b039091169063c804c39a906105dd9085908590600401610fc9565b600060405180830381600087803b1580156105f757600080fd5b505af115801561060b573d6000803e3d6000fd5b505050505050565b6001600160a01b0382166106395760405162461bcd60e51b815260040161026a906113a9565b3360009081526005602090815260408083206001600160a01b038616845290915290205460ff16151581151514156106835760405162461bcd60e51b815260040161026a906112a3565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f1299be4ab334acdc5747f03ba508209acf422601c7ee3040dc8ff385b0aca989906106e69085906110a5565b60405180910390a35050565b6106fa61090d565b6000546001600160a01b039081169116146107275760405162461bcd60e51b815260040161026a90611237565b6001600160a01b03811661074d5760405162461bcd60e51b815260040161026a90611159565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081116107c85760405162461bcd60e51b815260040161026a9061126c565b6001600160a01b0382166000908152600460205260409020546107eb90826109ed565b6001600160a01b0380841660009081526004602052604090209190915560025461081791163383610a36565b816001600160a01b0316336001600160a01b03167fd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e3836040516106e691906113e0565b6000811161087a5760405162461bcd60e51b815260040161026a906111d6565b6001600160a01b03821660009081526004602052604090205461089d9082610a91565b6001600160a01b038084166000908152600460205260409020919091556002546108ca9116333084610ab6565b816001600160a01b0316336001600160a01b03167f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd7836040516106e691906113e0565b3390565b600054600160a01b900460ff1661093a5760405162461bcd60e51b815260040161026a906110e3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61097061090d565b60405161097d9190610f91565b60405180910390a1565b600054600160a01b900460ff16156109b15760405162461bcd60e51b815260040161026a9061120d565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861097061090d565b6000610a2f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610add565b9392505050565b610a8c8363a9059cbb60e01b8484604051602401610a55929190611055565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b09565b505050565b600082820183811015610a2f5760405162461bcd60e51b815260040161026a9061119f565b610ad7846323b872dd60e01b858585604051602401610a5593929190610fa5565b50505050565b60008184841115610b015760405162461bcd60e51b815260040161026a91906110b0565b505050900390565b6060610b5e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b989092919063ffffffff16565b805190915015610a8c5780806020019051810190610b7c9190610f07565b610a8c5760405162461bcd60e51b815260040161026a90611328565b6060610ba78484600085610baf565b949350505050565b6060610bba85610c73565b610bd65760405162461bcd60e51b815260040161026a906112f1565b60006060866001600160a01b03168587604051610bf39190610f75565b60006040518083038185875af1925050503d8060008114610c30576040519150601f19603f3d011682016040523d82523d6000602084013e610c35565b606091505b50915091508115610c49579150610ba79050565b805115610c595780518082602001fd5b8360405162461bcd60e51b815260040161026a91906110b0565b3b151590565b80356001600160a01b038116811461054957600080fd5b600082601f830112610ca0578081fd5b8135610cb3610cae82611410565b6113e9565b818152915060208083019084810181840286018201871015610cd457600080fd5b60005b84811015610cf357813584529282019290820190600101610cd7565b505050505092915050565b600060608284031215610d0f578081fd5b610d1960606113e9565b90508135815260208201356020820152604082013567ffffffffffffffff811115610d4357600080fd5b610d4f84828501610c90565b60408301525092915050565b600060208284031215610d6c578081fd5b610a2f8383610c79565b60008060408385031215610d88578081fd5b610d928484610c79565b9150610da18460208501610c79565b90509250929050565b60008060408385031215610dbc578182fd5b8235610dc78161145c565b915060208381013567ffffffffffffffff811115610de3578283fd5b8401601f81018613610df3578283fd5b8035610e01610cae82611410565b81815283810190838501865b84811015610e3657610e248b888435890101610cfe565b84529286019290860190600101610e0d565b5096999098509650505050505050565b60008060408385031215610e58578182fd5b610e628484610c79565b91506020830135610e7281611474565b809150509250929050565b60008060408385031215610e8f578182fd5b610e998484610c79565b946020939093013593505050565b60008060008060808587031215610ebc578182fd5b610ec68686610c79565b93506020850135925060408501359150606085013567ffffffffffffffff811115610eef578182fd5b610efb87828801610c90565b91505092959194509250565b600060208284031215610f18578081fd5b8151610a2f81611474565b600060208284031215610f34578081fd5b5035919050565b6000815180845260208085019450808401835b83811015610f6a57815187529582019590820190600101610f4e565b509495945050505050565b60008251610f87818460208701611430565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0383168152604060208083018290528351838301819052600092916060918286019080830287018401888401875b8381101561104557898303605f19018552815180518452868101518785015288015188840188905261103288850182610f3b565b9587019593505090850190600101610ffe565b50909a9950505050505050505050565b6001600160a01b03929092168252602082015260400190565b600060018060a01b03861682528460208301528360408301526080606083015261109b6080830184610f3b565b9695505050505050565b901515815260200190565b60006020825282518060208401526110cf816040850160208701611430565b601f01601f19169190910160400192915050565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526028908201527f46757275636f6d626f207374616b696e673a206167656e74206973206e6f7420604082015267185c1c1c9bdd995960c21b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f46757275636f6d626f207374616b696e673a207374616b696e67203000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f46757275636f6d626f207374616b696e673a20756e7374616b696e6720300000604082015260600190565b6020808252602e908201527f46757275636f6d626f207374616b696e673a206964656e746963616c2061707060408201526d1c9bdd985b08185cdcda59db995960921b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f46757275636f6d626f207374616b696e673a206167656e742069732030000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561140857600080fd5b604052919050565b600067ffffffffffffffff821115611426578081fd5b5060209081020190565b60005b8381101561144b578181015183820152602001611433565b83811115610ad75750506000910152565b6001600160a01b038116811461147157600080fd5b50565b801515811461147157600080fdfea2646970667358221220acf72a9e17fa7604fe5b906421212f81ce35fe5f8e9a7a727bd9e7f48a78bfff64736f6c634300060c0033608060405234801561001057600080fd5b50604051610fae380380610fae83398101604081905261002f916100ac565b60006100396100a8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100da565b3390565b6000602082840312156100bd578081fd5b81516001600160a01b03811681146100d3578182fd5b9392505050565b610ec5806100e96000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b14610152578063c804c39a14610167578063dd8c9c9d1461017a578063eb0d07f51461019a578063f2fde38b146101ad578063fc0c546a146101c0576100b4565b8063120aa877146100b957806339436b00146100e257806347fb23c1146101025780634cd488ab1461012257806358b4e4b414610137578063715018a61461014a575b600080fd5b6100cc6100c7366004610b96565b6101c8565b6040516100d99190610d0d565b60405180910390f35b6100f56100f0366004610bed565b6101e8565b6040516100d99190610cd5565b610115610110366004610acb565b61027e565b6040516100d99190610c8f565b610135610130366004610bc2565b610332565b005b610135610145366004610afe565b610455565b6101356104ea565b61015a610569565b6040516100d99190610c3e565b610135610175366004610a2f565b610578565b61018d610188366004610b7e565b610659565b6040516100d99190610d18565b6100cc6101a8366004610afe565b61066b565b6101356101bb366004610a0d565b6106c1565b61015a610777565b600360209081526000928352604080842090915290825290205460ff1681565b6060828203600101818167ffffffffffffffff8111801561020857600080fd5b50604051908082528060200260200182016040528015610232578160200160208202803683370190505b50905060005b8281101561027357858101600090815260026020526040902054825183908390811061026057fe5b6020908102919091010152600101610238565b509150505b92915050565b6060828203600101818167ffffffffffffffff8111801561029e57600080fd5b506040519080825280602002602001820160405280156102c8578160200160208202803683370190505b50905060005b828110156103285785810160009081526003602090815260408083206001600160a01b038b168452909152902054825160ff9091169083908390811061031057fe5b911515602092830291909101909101526001016102ce565b5095945050505050565b61033a610786565b6000546001600160a01b039081169116146103705760405162461bcd60e51b815260040161036790610d97565b60405180910390fd5b6000838152600260205260409020541561039c5760405162461bcd60e51b815260040161036790610df9565b6000838152600260205260409081902083905560015490516323b872dd60e01b81526001600160a01b03909116906323b872dd906103e290339030908690600401610c52565b602060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104349190610b5e565b6104505760405162461bcd60e51b815260040161036790610dcc565b505050565b60008381526003602090815260408083206001600160a01b038816845290915290205460ff161561048557600080fd5b6104918484848461066b565b6104ad5760405162461bcd60e51b815260040161036790610d67565b60008381526003602090815260408083206001600160a01b03881684529091529020805460ff191660011790556104e4848361078a565b50505050565b6104f2610786565b6000546001600160a01b0390811691161461051f5760405162461bcd60e51b815260040161036790610d97565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061058261090a565b60005b835181101561064e5783818151811061059a57fe5b602090810291909101810151805160009081526003835260408082206001600160a01b038a168352909352919091205490925060ff16156105da57600080fd5b6105f28583600001518460200151856040015161066b565b61060e5760405162461bcd60e51b815260040161036790610d67565b602080830151835160009081526003835260408082206001600160a01b038a16835290935291909120805460ff1916600190811790915593019201610585565b506104e4848361078a565b60026020526000908152604090205481565b6000808584604051602001610681929190610c0e565b6040516020818303038152906040528051906020012090506106b78360026000888152602001908152602001600020548361086d565b9695505050505050565b6106c9610786565b6000546001600160a01b039081169116146106f65760405162461bcd60e51b815260040161036790610d97565b6001600160a01b03811661071c5760405162461bcd60e51b815260040161036790610d21565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b8015610869577fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82826040516107c1929190610c76565b60405180910390a160015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107fb9085908590600401610c76565b602060405180830381600087803b15801561081557600080fd5b505af1158015610829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084d9190610b5e565b6108695760405162461bcd60e51b815260040161036790610dcc565b5050565b600081815b85518110156108ff57600086828151811061088957fe5b602002602001015190508083116108ca5782816040516020016108ad929190610c30565b6040516020818303038152906040528051906020012092506108f6565b80836040516020016108dd929190610c30565b6040516020818303038152906040528051906020012092505b50600101610872565b509092149392505050565b60405180606001604052806000815260200160008152602001606081525090565b80356001600160a01b038116811461027857600080fd5b600082601f830112610952578081fd5b813561096561096082610e57565b610e30565b81815291506020808301908481018184028601820187101561098657600080fd5b60005b848110156109a557813584529282019290820190600101610989565b505050505092915050565b6000606082840312156109c1578081fd5b6109cb6060610e30565b90508135815260208201356020820152604082013567ffffffffffffffff8111156109f557600080fd5b610a0184828501610942565b60408301525092915050565b600060208284031215610a1e578081fd5b610a28838361092b565b9392505050565b60008060408385031215610a41578081fd5b8235610a4c81610e77565b915060208381013567ffffffffffffffff811115610a68578283fd5b8401601f81018613610a78578283fd5b8035610a8661096082610e57565b81815283810190838501865b84811015610abb57610aa98b8884358901016109b0565b84529286019290860190600101610a92565b5096999098509650505050505050565b600080600060608486031215610adf578081fd5b610ae9858561092b565b95602085013595506040909401359392505050565b60008060008060808587031215610b13578081fd5b610b1d868661092b565b93506020850135925060408501359150606085013567ffffffffffffffff811115610b46578182fd5b610b5287828801610942565b91505092959194509250565b600060208284031215610b6f578081fd5b81518015158114610a28578182fd5b600060208284031215610b8f578081fd5b5035919050565b60008060408385031215610ba8578182fd5b82359150610bb9846020850161092b565b90509250929050565b600080600060608486031215610bd6578283fd5b505081359360208301359350604090920135919050565b60008060408385031215610bff578182fd5b50508035926020909101359150565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610cc9578351151583529284019291840191600101610cab565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610cc957835183529284019291840191600101610cf1565b901515815260200190565b90815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526016908201527524b731b7b93932b1ba1036b2b935b63290383937b7b360511b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527211549497d514905394d1915497d19052531151606a1b604082015260600190565b6020808252601a908201527f63616e6e6f742072657772697465206d65726b6c6520726f6f74000000000000604082015260600190565b60405181810167ffffffffffffffff81118282101715610e4f57600080fd5b604052919050565b600067ffffffffffffffff821115610e6d578081fd5b5060209081020190565b6001600160a01b0381168114610e8c57600080fd5b5056fea26469706673582212207074f4e13f39c54f61a24870b7c4d53e2328ce3a806a295e6db62a9c1e0e2c4e64736f6c634300060c0033000000000000000000000000040bef6a2984ba28d8af8a24ddb51d61fbf08a81000000000000000000000000ffffffff2ba8f66d4e51811c5190992176930278

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c8063715018a6116100a2578063a389783e11610071578063a389783e146101d9578063a694fc3a146101ec578063c804c39a146101ff578063db9b717014610212578063f2fde38b146102255761010b565b8063715018a6146101b957806372f702f3146101c15780638456cb59146101c95780638da5cb5b146101d15761010b565b80633f4ba83a116100de5780633f4ba83a1461016957806358b4e4b4146101715780635c975abb1461018457806370a08231146101995761010b565b80632d7ecd11146101105780632e17de781461012e5780632ee409081461014357806336ef088c14610156575b600080fd5b610118610238565b6040516101259190610f91565b60405180910390f35b61014161013c366004610f23565b610247565b005b610141610151366004610e7d565b610289565b610141610164366004610e7d565b6102ed565b61014161036d565b61014161017f366004610ea7565b6103ac565b61018c61041a565b60405161012591906110a5565b6101ac6101a7366004610d5b565b61042a565b60405161012591906113e0565b610141610445565b6101186104c4565b6101416104d3565b610118610510565b61018c6101e7366004610d76565b61051f565b6101416101fa366004610f23565b61054f565b61014161020d366004610daa565b6105ab565b610141610220366004610e46565b610613565b610141610233366004610d5b565b6106f2565b6003546001600160a01b031681565b600260015414156102735760405162461bcd60e51b815260040161026a90611372565b60405180910390fd5b600260015561028233826107a8565b5060018055565b600260015414156102ac5760405162461bcd60e51b815260040161026a90611372565b6002600155600054600160a01b900460ff16156102db5760405162461bcd60e51b815260040161026a9061120d565b6102e5828261085a565b505060018055565b600260015414156103105760405162461bcd60e51b815260040161026a90611372565b60026001556001600160a01b0382166000908152600560209081526040808320338452909152902054829060ff1661035a5760405162461bcd60e51b815260040161026a90611111565b61036483836107a8565b50506001805550565b61037561090d565b6000546001600160a01b039081169116146103a25760405162461bcd60e51b815260040161026a90611237565b6103aa610911565b565b60035460405163162d392d60e21b81526001600160a01b03909116906358b4e4b4906103e290879087908790879060040161106e565b600060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b5050505050505050565b600054600160a01b900460ff1690565b6001600160a01b031660009081526004602052604090205490565b61044d61090d565b6000546001600160a01b0390811691161461047a5760405162461bcd60e51b815260040161026a90611237565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6104db61090d565b6000546001600160a01b039081169116146105085760405162461bcd60e51b815260040161026a90611237565b6103aa610987565b6000546001600160a01b031690565b6001600160a01b0380831660009081526005602090815260408083209385168352929052205460ff165b92915050565b600260015414156105725760405162461bcd60e51b815260040161026a90611372565b6002600155600054600160a01b900460ff16156105a15760405162461bcd60e51b815260040161026a9061120d565b610282338261085a565b60035460405163640261cd60e11b81526001600160a01b039091169063c804c39a906105dd9085908590600401610fc9565b600060405180830381600087803b1580156105f757600080fd5b505af115801561060b573d6000803e3d6000fd5b505050505050565b6001600160a01b0382166106395760405162461bcd60e51b815260040161026a906113a9565b3360009081526005602090815260408083206001600160a01b038616845290915290205460ff16151581151514156106835760405162461bcd60e51b815260040161026a906112a3565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f1299be4ab334acdc5747f03ba508209acf422601c7ee3040dc8ff385b0aca989906106e69085906110a5565b60405180910390a35050565b6106fa61090d565b6000546001600160a01b039081169116146107275760405162461bcd60e51b815260040161026a90611237565b6001600160a01b03811661074d5760405162461bcd60e51b815260040161026a90611159565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081116107c85760405162461bcd60e51b815260040161026a9061126c565b6001600160a01b0382166000908152600460205260409020546107eb90826109ed565b6001600160a01b0380841660009081526004602052604090209190915560025461081791163383610a36565b816001600160a01b0316336001600160a01b03167fd8654fcc8cf5b36d30b3f5e4688fc78118e6d68de60b9994e09902268b57c3e3836040516106e691906113e0565b6000811161087a5760405162461bcd60e51b815260040161026a906111d6565b6001600160a01b03821660009081526004602052604090205461089d9082610a91565b6001600160a01b038084166000908152600460205260409020919091556002546108ca9116333084610ab6565b816001600160a01b0316336001600160a01b03167f5dac0c1b1112564a045ba943c9d50270893e8e826c49be8e7073adc713ab7bd7836040516106e691906113e0565b3390565b600054600160a01b900460ff1661093a5760405162461bcd60e51b815260040161026a906110e3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61097061090d565b60405161097d9190610f91565b60405180910390a1565b600054600160a01b900460ff16156109b15760405162461bcd60e51b815260040161026a9061120d565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861097061090d565b6000610a2f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610add565b9392505050565b610a8c8363a9059cbb60e01b8484604051602401610a55929190611055565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b09565b505050565b600082820183811015610a2f5760405162461bcd60e51b815260040161026a9061119f565b610ad7846323b872dd60e01b858585604051602401610a5593929190610fa5565b50505050565b60008184841115610b015760405162461bcd60e51b815260040161026a91906110b0565b505050900390565b6060610b5e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b989092919063ffffffff16565b805190915015610a8c5780806020019051810190610b7c9190610f07565b610a8c5760405162461bcd60e51b815260040161026a90611328565b6060610ba78484600085610baf565b949350505050565b6060610bba85610c73565b610bd65760405162461bcd60e51b815260040161026a906112f1565b60006060866001600160a01b03168587604051610bf39190610f75565b60006040518083038185875af1925050503d8060008114610c30576040519150601f19603f3d011682016040523d82523d6000602084013e610c35565b606091505b50915091508115610c49579150610ba79050565b805115610c595780518082602001fd5b8360405162461bcd60e51b815260040161026a91906110b0565b3b151590565b80356001600160a01b038116811461054957600080fd5b600082601f830112610ca0578081fd5b8135610cb3610cae82611410565b6113e9565b818152915060208083019084810181840286018201871015610cd457600080fd5b60005b84811015610cf357813584529282019290820190600101610cd7565b505050505092915050565b600060608284031215610d0f578081fd5b610d1960606113e9565b90508135815260208201356020820152604082013567ffffffffffffffff811115610d4357600080fd5b610d4f84828501610c90565b60408301525092915050565b600060208284031215610d6c578081fd5b610a2f8383610c79565b60008060408385031215610d88578081fd5b610d928484610c79565b9150610da18460208501610c79565b90509250929050565b60008060408385031215610dbc578182fd5b8235610dc78161145c565b915060208381013567ffffffffffffffff811115610de3578283fd5b8401601f81018613610df3578283fd5b8035610e01610cae82611410565b81815283810190838501865b84811015610e3657610e248b888435890101610cfe565b84529286019290860190600101610e0d565b5096999098509650505050505050565b60008060408385031215610e58578182fd5b610e628484610c79565b91506020830135610e7281611474565b809150509250929050565b60008060408385031215610e8f578182fd5b610e998484610c79565b946020939093013593505050565b60008060008060808587031215610ebc578182fd5b610ec68686610c79565b93506020850135925060408501359150606085013567ffffffffffffffff811115610eef578182fd5b610efb87828801610c90565b91505092959194509250565b600060208284031215610f18578081fd5b8151610a2f81611474565b600060208284031215610f34578081fd5b5035919050565b6000815180845260208085019450808401835b83811015610f6a57815187529582019590820190600101610f4e565b509495945050505050565b60008251610f87818460208701611430565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0383168152604060208083018290528351838301819052600092916060918286019080830287018401888401875b8381101561104557898303605f19018552815180518452868101518785015288015188840188905261103288850182610f3b565b9587019593505090850190600101610ffe565b50909a9950505050505050505050565b6001600160a01b03929092168252602082015260400190565b600060018060a01b03861682528460208301528360408301526080606083015261109b6080830184610f3b565b9695505050505050565b901515815260200190565b60006020825282518060208401526110cf816040850160208701611430565b601f01601f19169190910160400192915050565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526028908201527f46757275636f6d626f207374616b696e673a206167656e74206973206e6f7420604082015267185c1c1c9bdd995960c21b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f46757275636f6d626f207374616b696e673a207374616b696e67203000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f46757275636f6d626f207374616b696e673a20756e7374616b696e6720300000604082015260600190565b6020808252602e908201527f46757275636f6d626f207374616b696e673a206964656e746963616c2061707060408201526d1c9bdd985b08185cdcda59db995960921b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601d908201527f46757275636f6d626f207374616b696e673a206167656e742069732030000000604082015260600190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561140857600080fd5b604052919050565b600067ffffffffffffffff821115611426578081fd5b5060209081020190565b60005b8381101561144b578181015183820152602001611433565b83811115610ad75750506000910152565b6001600160a01b038116811461147157600080fd5b50565b801515811461147157600080fdfea2646970667358221220acf72a9e17fa7604fe5b906421212f81ce35fe5f8e9a7a727bd9e7f48a78bfff64736f6c634300060c0033

Deployed Bytecode Sourcemap

31604:5214:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31826:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;34748:110;;;;;;:::i;:::-;;:::i;:::-;;34458:175;;;;;;:::i;:::-;;:::i;35120:190::-;;;;;;:::i;:::-;;:::i;36121:67::-;;;:::i;35438:217::-;;;;;;:::i;:::-;;:::i;30299:78::-;;;:::i;:::-;;;;;;;:::i;33390:106::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;24741:148::-;;;:::i;31734:26::-;;;:::i;36024:63::-;;;:::i;24099:79::-;;;:::i;33081:159::-;;;;;;:::i;:::-;;:::i;34166:120::-;;;;;;:::i;:::-;;:::i;35783:145::-;;;;;;:::i;:::-;;:::i;33663:392::-;;;;;;:::i;:::-;;:::i;25044:244::-;;;;;;:::i;:::-;;:::i;31826:30::-;;;-1:-1:-1;;;;;31826:30:0;;:::o;34748:110::-;3114:1;3720:7;;:19;;3712:63;;;;-1:-1:-1;;;3712:63:0;;;;;;;:::i;:::-;;;;;;;;;3114:1;3853:7;:18;34814:36:::1;34831:10;34843:6:::0;34814:16:::1;:36::i;:::-;-1:-1:-1::0;3070:1:0;4032:22;;34748:110::o;34458:175::-;3114:1;3720:7;;:19;;3712:63;;;;-1:-1:-1;;;3712:63:0;;;;;;;:::i;:::-;3114:1;3853:7;:18;30617:7:::1;::::0;-1:-1:-1;;;30617:7:0;::::1;;;30616:8;30608:37;;;;-1:-1:-1::0;;;30608:37:0::1;;;;;;;:::i;:::-;34591:34:::2;34606:10;34618:6;34591:14;:34::i;:::-;-1:-1:-1::0;;3070:1:0;4032:22;;34458:175::o;35120:190::-;3114:1;3720:7;;:19;;3712:63;;;;-1:-1:-1;;;3712:63:0;;;;;;;:::i;:::-;3114:1;3853:7;:18;-1:-1:-1;;;;;32386:17:0;::::1;;::::0;;;:10:::1;:17;::::0;;;;;;;32404:10:::1;32386:29:::0;;;;;;;;35238:10;;32386:29:::1;;32364:119;;;;-1:-1:-1::0;;;32364:119:0::1;;;;;;;:::i;:::-;35266:36:::2;35283:10;35295:6;35266:16;:36::i;:::-;-1:-1:-1::0;;3070:1:0;4032:22;;-1:-1:-1;35120:190:0:o;36121:67::-;24321:12;:10;:12::i;:::-;24311:6;;-1:-1:-1;;;;;24311:6:0;;;:22;;;24303:67;;;;-1:-1:-1;;;24303:67:0;;;;;;;:::i;:::-;36170:10:::1;:8;:10::i;:::-;36121:67::o:0;35438:217::-;35593:10;;:54;;-1:-1:-1;;;35593:54:0;;-1:-1:-1;;;;;35593:10:0;;;;:20;;:54;;35614:4;;35620;;35626:7;;35635:11;;35593:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35438:217;;;;:::o;30299:78::-;30338:4;30362:7;-1:-1:-1;;;30362:7:0;;;;;30299:78::o;33390:106::-;-1:-1:-1;;;;;33473:15:0;33446:7;33473:15;;;:9;:15;;;;;;;33390:106::o;24741:148::-;24321:12;:10;:12::i;:::-;24311:6;;-1:-1:-1;;;;;24311:6:0;;;:22;;;24303:67;;;;-1:-1:-1;;;24303:67:0;;;;;;;:::i;:::-;24848:1:::1;24832:6:::0;;24811:40:::1;::::0;-1:-1:-1;;;;;24832:6:0;;::::1;::::0;24811:40:::1;::::0;24848:1;;24811:40:::1;24879:1;24862:19:::0;;-1:-1:-1;;;;;;24862:19:0::1;::::0;;24741:148::o;31734:26::-;;;-1:-1:-1;;;;;31734:26:0;;:::o;36024:63::-;24321:12;:10;:12::i;:::-;24311:6;;-1:-1:-1;;;;;24311:6:0;;;:22;;;24303:67;;;;-1:-1:-1;;;24303:67:0;;;;;;;:::i;:::-;36071:8:::1;:6;:8::i;24099:79::-:0;24137:7;24164:6;-1:-1:-1;;;;;24164:6:0;24099:79;:::o;33081:159::-;-1:-1:-1;;;;;33209:16:0;;;33180:4;33209:16;;;:10;:16;;;;;;;;:23;;;;;;;;;;;;33081:159;;;;;:::o;34166:120::-;3114:1;3720:7;;:19;;3712:63;;;;-1:-1:-1;;;3712:63:0;;;;;;;:::i;:::-;3114:1;3853:7;:18;30617:7:::1;::::0;-1:-1:-1;;;30617:7:0;::::1;;;30616:8;30608:37;;;;-1:-1:-1::0;;;30608:37:0::1;;;;;;;:::i;:::-;34244:34:::2;34259:10;34271:6;34244:14;:34::i;35783:145::-:0;35885:10;;:35;;-1:-1:-1;;;35885:35:0;;-1:-1:-1;;;;;35885:10:0;;;;:21;;:35;;35907:4;;35913:6;;35885:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35783:145;;:::o;33663:392::-;-1:-1:-1;;;;;33742:19:0;;33734:61;;;;-1:-1:-1;;;33734:61:0;;;;;;;:::i;:::-;33839:10;33828:22;;;;:10;:22;;;;;;;;-1:-1:-1;;;;;33828:29:0;;;;;;;;;;;;:41;;;;;;;33806:137;;;;-1:-1:-1;;;33806:137:0;;;;;;;:::i;:::-;33965:10;33954:22;;;;:10;:22;;;;;;;;-1:-1:-1;;;;;33954:29:0;;;;;;;;;;;:40;;-1:-1:-1;;33954:40:0;;;;;;;34010:37;;33954:29;;33965:10;34010:37;;;;33954:40;;34010:37;:::i;:::-;;;;;;;;33663:392;;:::o;25044:244::-;24321:12;:10;:12::i;:::-;24311:6;;-1:-1:-1;;;;;24311:6:0;;;:22;;;24303:67;;;;-1:-1:-1;;;24303:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;25133:22:0;::::1;25125:73;;;;-1:-1:-1::0;;;25125:73:0::1;;;;;;;:::i;:::-;25235:6;::::0;;25214:38:::1;::::0;-1:-1:-1;;;;;25214:38:0;;::::1;::::0;25235:6;::::1;::::0;25214:38:::1;::::0;::::1;25263:6;:17:::0;;-1:-1:-1;;;;;;25263:17:0::1;-1:-1:-1::0;;;;;25263:17:0;;;::::1;::::0;;;::::1;::::0;;25044:244::o;36516:299::-;36609:1;36600:6;:10;36592:53;;;;-1:-1:-1;;;36592:53:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;36674:15:0;;;;;;:9;:15;;;;;;:27;;36694:6;36674:19;:27::i;:::-;-1:-1:-1;;;;;36656:15:0;;;;;;;:9;:15;;;;;:45;;;;36712:12;;:45;;:12;36738:10;36750:6;36712:25;:45::i;:::-;36794:4;-1:-1:-1;;;;;36773:34:0;36782:10;-1:-1:-1;;;;;36773:34:0;;36800:6;36773:34;;;;;;:::i;36196:312::-;36287:1;36278:6;:10;36270:51;;;;-1:-1:-1;;;36270:51:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;36350:15:0;;;;;;:9;:15;;;;;;:27;;36370:6;36350:19;:27::i;:::-;-1:-1:-1;;;;;36332:15:0;;;;;;;:9;:15;;;;;:45;;;;36388:12;;:64;;:12;36418:10;36438:4;36445:6;36388:29;:64::i;:::-;36487:4;-1:-1:-1;;;;;36468:32:0;36475:10;-1:-1:-1;;;;;36468:32:0;;36493:6;36468:32;;;;;;:::i;22653:106::-;22741:10;22653:106;:::o;31348:120::-;30893:7;;-1:-1:-1;;;30893:7:0;;;;30885:40;;;;-1:-1:-1;;;30885:40:0;;;;;;;:::i;:::-;31417:5:::1;31407:15:::0;;-1:-1:-1;;;;31407:15:0::1;::::0;;31438:22:::1;31447:12;:10;:12::i;:::-;31438:22;;;;;;:::i;:::-;;;;;;;;31348:120::o:0;31089:118::-;30617:7;;-1:-1:-1;;;30617:7:0;;;;30616:8;30608:37;;;;-1:-1:-1;;;30608:37:0;;;;;;;:::i;:::-;31149:7:::1;:14:::0;;-1:-1:-1;;;;31149:14:0::1;-1:-1:-1::0;;;31149:14:0::1;::::0;;31179:20:::1;31186:12;:10;:12::i;18033:136::-:0;18091:7;18118:43;18122:1;18125;18118:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;18111:50;18033:136;-1:-1:-1;;;18033:136:0:o;13573:177::-;13656:86;13676:5;13706:23;;;13731:2;13735:5;13683:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;13683:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;13683:58:0;-1:-1:-1;;;;;;13683:58:0;;;;;;;;;;13656:19;:86::i;:::-;13573:177;;;:::o;17569:181::-;17627:7;17659:5;;;17683:6;;;;17675:46;;;;-1:-1:-1;;;17675:46:0;;;;;;;:::i;13758:205::-;13859:96;13879:5;13909:27;;;13938:4;13944:2;13948:5;13886:68;;;;;;;;;;:::i;13859:96::-;13758:205;;;;:::o;18472:192::-;18558:7;18594:12;18586:6;;;;18578:29;;;;-1:-1:-1;;;18578:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;18630:5:0;;;18472:192::o;15878:761::-;16302:23;16328:69;16356:4;16328:69;;;;;;;;;;;;;;;;;16336:5;-1:-1:-1;;;;;16328:27:0;;;:69;;;;;:::i;:::-;16412:17;;16302:95;;-1:-1:-1;16412:21:0;16408:224;;16554:10;16543:30;;;;;;;;;;;;:::i;:::-;16535:85;;;;-1:-1:-1;;;16535:85:0;;;;;;;:::i;7753:196::-;7856:12;7888:53;7911:6;7919:4;7925:1;7928:12;7888:22;:53::i;:::-;7881:60;7753:196;-1:-1:-1;;;;7753:196:0:o;9130:979::-;9260:12;9293:18;9304:6;9293:10;:18::i;:::-;9285:60;;;;-1:-1:-1;;;9285:60:0;;;;;;;:::i;:::-;9419:12;9433:23;9460:6;-1:-1:-1;;;;;9460:11:0;9480:8;9491:4;9460:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9418:78;;;;9511:7;9507:595;;;9542:10;-1:-1:-1;9535:17:0;;-1:-1:-1;9535:17:0;9507:595;9656:17;;:21;9652:439;;9919:10;9913:17;9980:15;9967:10;9963:2;9959:19;9952:44;9867:148;10062:12;10055:20;;-1:-1:-1;;;10055:20:0;;;;;;;;:::i;4835:422::-;5202:20;5241:8;;;4835:422::o;5:130:-1:-;72:20;;-1:-1;;;;;29231:54;;30787:35;;30777:2;;30836:1;;30826:12;160:707;;277:3;270:4;262:6;258:17;254:27;244:2;;-1:-1;;285:12;244:2;332:6;319:20;354:80;369:64;426:6;369:64;:::i;:::-;354:80;:::i;:::-;462:21;;;345:89;-1:-1;506:4;519:14;;;;494:17;;;608;;;599:27;;;;596:36;-1:-1;593:2;;;645:1;;635:12;593:2;670:1;655:206;680:6;677:1;674:13;655:206;;;1999:20;;748:50;;812:14;;;;840;;;;702:1;695:9;655:206;;;659:14;;;;;237:630;;;;:::o;2101:730::-;;2213:4;2201:9;2196:3;2192:19;2188:30;2185:2;;;-1:-1;;2221:12;2185:2;2249:20;2213:4;2249:20;:::i;:::-;2240:29;;2918:6;2905:20;2333:16;2326:75;2465:2;2523:9;2519:22;2905:20;2465:2;2484:5;2480:16;2473:75;2644:2;2633:9;2629:18;2616:32;2668:18;2660:6;2657:30;2654:2;;;-1:-1;;2690:12;2654:2;2735:74;2805:3;2796:6;2785:9;2781:22;2735:74;:::i;:::-;2644:2;2721:5;2717:16;2710:100;;2179:652;;;;:::o;2975:241::-;;3079:2;3067:9;3058:7;3054:23;3050:32;3047:2;;;-1:-1;;3085:12;3047:2;3147:53;3192:7;3168:22;3147:53;:::i;3223:366::-;;;3344:2;3332:9;3323:7;3319:23;3315:32;3312:2;;;-1:-1;;3350:12;3312:2;3412:53;3457:7;3433:22;3412:53;:::i;:::-;3402:63;;3520:53;3565:7;3502:2;3545:9;3541:22;3520:53;:::i;:::-;3510:63;;3306:283;;;;;:::o;3596:548::-;;;3765:2;3753:9;3744:7;3740:23;3736:32;3733:2;;;-1:-1;;3771:12;3733:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3823:63;-1:-1;3951:2;3936:18;;;3923:32;3975:18;3964:30;;3961:2;;;-1:-1;;3997:12;3961:2;4096:22;;1044:4;1032:17;;1028:27;-1:-1;1018:2;;-1:-1;;1059:12;1018:2;1106:6;1093:20;1128:103;1143:87;1223:6;1143:87;:::i;1128:103::-;1259:21;;;1316:14;;;;1291:17;;;-1:-1;1396:256;1421:6;1418:1;1415:13;1396:256;;;1528:60;1584:3;3951:2;1504:3;1491:17;1295:6;1479:30;;1528:60;:::i;:::-;1516:73;;1603:14;;;;1631;;;;1443:1;1436:9;1396:256;;;-1:-1;3727:417;;4017:111;;-1:-1;3727:417;-1:-1;;;;;;;3727:417::o;4151:360::-;;;4269:2;4257:9;4248:7;4244:23;4240:32;4237:2;;;-1:-1;;4275:12;4237:2;4337:53;4382:7;4358:22;4337:53;:::i;:::-;4327:63;;4427:2;4467:9;4463:22;1730:20;1755:30;1779:5;1755:30;:::i;:::-;4435:60;;;;4231:280;;;;;:::o;4518:366::-;;;4639:2;4627:9;4618:7;4614:23;4610:32;4607:2;;;-1:-1;;4645:12;4607:2;4707:53;4752:7;4728:22;4707:53;:::i;:::-;4697:63;4797:2;4836:22;;;;2905:20;;-1:-1;;;4601:283::o;4891:753::-;;;;;5071:3;5059:9;5050:7;5046:23;5042:33;5039:2;;;-1:-1;;5078:12;5039:2;5140:53;5185:7;5161:22;5140:53;:::i;:::-;5130:63;;5230:2;5273:9;5269:22;2905:20;5238:63;;5338:2;5381:9;5377:22;2905:20;5346:63;;5474:2;5463:9;5459:18;5446:32;5498:18;5490:6;5487:30;5484:2;;;-1:-1;;5520:12;5484:2;5550:78;5620:7;5611:6;5600:9;5596:22;5550:78;:::i;:::-;5540:88;;;5033:611;;;;;;;:::o;5651:257::-;;5763:2;5751:9;5742:7;5738:23;5734:32;5731:2;;;-1:-1;;5769:12;5731:2;1878:6;1872:13;1890:30;1914:5;1890:30;:::i;5915:241::-;;6019:2;6007:9;5998:7;5994:23;5990:32;5987:2;;;-1:-1;;6025:12;5987:2;-1:-1;2905:20;;5981:175;-1:-1;5981:175::o;6899:670::-;;7082:5;27283:12;28122:6;28117:3;28110:19;28159:4;;28154:3;28150:14;7094:83;;28159:4;7248:5;26956:14;-1:-1;7287:260;7312:6;7309:1;7306:13;7287:260;;;7373:13;;9585:37;;6317:14;;;;27837;;;;7334:1;7327:9;7287:260;;;-1:-1;7553:10;;7013:556;-1:-1;;;;;7013:556::o;16309:271::-;;9794:5;27283:12;9905:52;9950:6;9945:3;9938:4;9931:5;9927:16;9905:52;:::i;:::-;9969:16;;;;;16443:137;-1:-1;;16443:137::o;16587:222::-;-1:-1;;;;;29231:54;;;;6819:37;;16714:2;16699:18;;16685:124::o;17061:444::-;-1:-1;;;;;29231:54;;;6819:37;;29231:54;;;;17408:2;17393:18;;6819:37;17491:2;17476:18;;9585:37;;;;17244:2;17229:18;;17215:290::o;17512:573::-;-1:-1;;;;;29231:54;;6819:37;;17763:2;17881;17866:18;;;17859:48;;;27283:12;;17748:18;;;28110:19;;;17512:573;;17763:2;28150:14;;;;;;8816:17;;;8807:27;;;;26956:14;;;17512:573;8967:399;8992:6;8989:1;8986:13;8967:399;;;9044:20;;;-1:-1;;9044:20;9032:33;;9093:13;;15524:23;;9585:37;;15687:16;;;15681:23;15758:14;;;9585:37;15848:16;;15842:23;15885:14;;;15878:38;;;15931:103;15449:14;;;15842:23;15931:103;:::i;:::-;9345:14;;;;9113:118;-1:-1;;27837:14;;;;9014:1;9007:9;8967:399;;;-1:-1;17913:162;;17734:351;-1:-1;;;;;;;;;;17734:351::o;18092:333::-;-1:-1;;;;;29231:54;;;;6819:37;;18411:2;18396:18;;9585:37;18247:2;18232:18;;18218:207::o;18432:704::-;;29242:42;;;;;28980:5;29231:54;6826:3;6819:37;9615:5;18858:2;18847:9;18843:18;9585:37;9615:5;18941:2;18930:9;18926:18;9585:37;18693:3;18978:2;18967:9;18963:18;18956:48;19018:108;18693:3;18682:9;18678:19;19112:6;19018:108;:::i;:::-;19010:116;18664:472;-1:-1;;;;;;18664:472::o;19143:210::-;29064:13;;29057:21;9478:34;;19264:2;19249:18;;19235:118::o;19888:310::-;;20035:2;20056:17;20049:47;10478:5;27283:12;28122:6;20035:2;20024:9;20020:18;28110:19;10572:52;10617:6;28150:14;20024:9;28150:14;20035:2;10598:5;10594:16;10572:52;:::i;:::-;30707:7;30691:14;-1:-1;;30687:28;10636:39;;;;28150:14;10636:39;;20006:192;-1:-1;;20006:192::o;20205:416::-;20405:2;20419:47;;;10912:2;20390:18;;;28110:19;-1:-1;;;28150:14;;;10928:43;10990:12;;;20376:245::o;20628:416::-;20828:2;20842:47;;;11241:2;20813:18;;;28110:19;11277:34;28150:14;;;11257:55;-1:-1;;;11332:12;;;11325:32;11376:12;;;20799:245::o;21051:416::-;21251:2;21265:47;;;11627:2;21236:18;;;28110:19;11663:34;28150:14;;;11643:55;-1:-1;;;11718:12;;;11711:30;11760:12;;;21222:245::o;21474:416::-;21674:2;21688:47;;;12011:2;21659:18;;;28110:19;12047:29;28150:14;;;12027:50;12096:12;;;21645:245::o;21897:416::-;22097:2;22111:47;;;12347:2;22082:18;;;28110:19;12383:30;28150:14;;;12363:51;12433:12;;;22068:245::o;22320:416::-;22520:2;22534:47;;;12684:2;22505:18;;;28110:19;-1:-1;;;28150:14;;;12700:39;12758:12;;;22491:245::o;22743:416::-;22943:2;22957:47;;;22928:18;;;28110:19;13045:34;28150:14;;;13025:55;13099:12;;;22914:245::o;23166:416::-;23366:2;23380:47;;;13350:2;23351:18;;;28110:19;13386:32;28150:14;;;13366:53;13438:12;;;23337:245::o;23589:416::-;23789:2;23803:47;;;13689:2;23774:18;;;28110:19;13725:34;28150:14;;;13705:55;-1:-1;;;13780:12;;;13773:38;13830:12;;;23760:245::o;24012:416::-;24212:2;24226:47;;;14081:2;24197:18;;;28110:19;14117:31;28150:14;;;14097:52;14168:12;;;24183:245::o;24435:416::-;24635:2;24649:47;;;14419:2;24620:18;;;28110:19;14455:34;28150:14;;;14435:55;-1:-1;;;14510:12;;;14503:34;14556:12;;;24606:245::o;24858:416::-;25058:2;25072:47;;;14807:2;25043:18;;;28110:19;14843:33;28150:14;;;14823:54;14896:12;;;25029:245::o;25281:416::-;25481:2;25495:47;;;15147:2;25466:18;;;28110:19;15183:31;28150:14;;;15163:52;15234:12;;;25452:245::o;25704:222::-;9585:37;;;25831:2;25816:18;;25802:124::o;25933:256::-;25995:2;25989:9;26021:17;;;26096:18;26081:34;;26117:22;;;26078:62;26075:2;;;26153:1;;26143:12;26075:2;25995;26162:22;25973:216;;-1:-1;25973:216::o;26196:304::-;;26355:18;26347:6;26344:30;26341:2;;;-1:-1;;26377:12;26341:2;-1:-1;26422:4;26410:17;;;26475:15;;26278:222::o;30347:268::-;30412:1;30419:101;30433:6;30430:1;30427:13;30419:101;;;30500:11;;;30494:18;30481:11;;;30474:39;30455:2;30448:10;30419:101;;;30535:6;30532:1;30529:13;30526:2;;;-1:-1;;30412:1;30582:16;;30575:27;30396:219::o;30728:117::-;-1:-1;;;;;29231:54;;30787:35;;30777:2;;30836:1;;30826:12;30777:2;30771:74;:::o;30852:111::-;30933:5;29064:13;29057:21;30911:5;30908:32;30898:2;;30954:1;;30944:12

Swarm Source

ipfs://7074f4e13f39c54f61a24870b7c4d53e2328ce3a806a295e6db62a9c1e0e2c4e

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