ETH Price: $3,300.43 (+0.64%)

Contract

0x27e6d3Ce99Fa5ec4019Ce598aF54bcB3A2FB2E5f
 
Transaction Hash
Method
Block
From
To
Claim Rewards156770092022-10-04 19:59:11838 days ago1664913551IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0012441812.9928513
Claim Rewards156758172022-10-04 15:59:47838 days ago1664899187IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0019062619.9069418
Claim Rewards155465622022-09-16 13:45:47856 days ago1663335947IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0013374313.96664308
Claim Rewards153759882022-08-20 6:12:45884 days ago1660975965IN
Nexus Mutual: Community Staking Incentives
0 ETH0.000459664.80019884
Claim Rewards153472542022-08-15 17:14:34888 days ago1660583674IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0028623629.89129571
Claim Rewards153057722022-08-09 4:02:53895 days ago1660017773IN
Nexus Mutual: Community Staking Incentives
0 ETH0.000858168.961715
Claim Rewards152655752022-08-02 21:43:49901 days ago1659476629IN
Nexus Mutual: Community Staking Incentives
0 ETH0.000927089.6814084
Claim Rewards152421432022-07-30 6:16:54905 days ago1659161814IN
Nexus Mutual: Community Staking Incentives
0 ETH0.000596276.22681593
Claim Rewards151280282022-07-12 13:16:47922 days ago1657631807IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0019962420.84656617
Claim Rewards151206502022-07-11 9:51:58923 days ago1657533118IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0010937911.42122477
Claim Rewards151003992022-07-08 6:48:49926 days ago1657262929IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0014365315
Claim Rewards150889672022-07-06 12:36:18928 days ago1657110978IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0009743610.17513578
Claim Rewards148780952022-05-31 10:03:15964 days ago1653991395IN
Nexus Mutual: Community Staking Incentives
0 ETH0.003255834
Claim Rewards148553132022-05-27 17:07:36968 days ago1653671256IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0048911251.07746737
Claim Rewards148345642022-05-24 7:49:18971 days ago1653378558IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0021066922
Claim Rewards147913972022-05-17 8:10:19978 days ago1652775019IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0034473236
Claim Rewards147889362022-05-16 22:44:03979 days ago1652741043IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0015263815.93988043
Claim Rewards147868972022-05-16 15:04:00979 days ago1652713440IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0056545159.0494677
Claim Rewards147824562022-05-15 21:52:14980 days ago1652651534IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0020168215.51889803
Claim Rewards147717602022-05-14 5:16:33982 days ago1652505393IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0023276324.30722605
Claim Rewards147707152022-05-14 1:04:15982 days ago1652490255IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0051983640
Claim Rewards147475012022-05-10 8:18:33985 days ago1652170713IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0042133944
Claim Rewards147358052022-05-08 11:26:41987 days ago1652009201IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0018008418.80598862
Claim Rewards147036972022-05-03 8:48:53992 days ago1651567733IN
Nexus Mutual: Community Staking Incentives
0 ETH0.0040218742
Claim Rewards146541682022-04-25 13:52:491000 days ago1650894769IN
Nexus Mutual: Community Staking Incentives
0 ETH0.008389364.5534761
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CommunityStakingIncentives

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-22
*/

/**
 *Submitted for verification at Etherscan.io on 2020-09-07
*/

// 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/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/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) {
        // 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 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/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/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: contracts/interfaces/IPooledStaking.sol

/*
    Copyright (C) 2020 NexusMutual.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

pragma solidity ^0.6.10;

interface IPooledStaking {
  function stakerContractStake(address staker, address contractAddress) external view returns (uint);
  function stakerContractPendingUnstakeTotal(address staker, address contractAddress) external view returns (uint);
}

// File: contracts/interfaces/INXMMaster.sol

/*
    Copyright (C) 2020 NexusMutual.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

pragma solidity ^0.6.10;

interface INXMMaster {
  function getLatestAddress(bytes2 _contractName) external view returns (address payable contractAddress);
}

// File: contracts/CommunityStakingIncentives.sol

/*
    Copyright (C) 2020 NexusMutual.io

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/
*/

pragma solidity ^0.6.10;







contract CommunityStakingIncentives is ReentrancyGuard {
  using SafeERC20 for IERC20;
  using SafeMath for uint;

  INXMMaster public master;
  uint public roundDuration;
  uint public roundsStartTime;
  uint public constant rewardRateScale = 1e18;

  /**
  * @dev Add rewards as a sponsor for a particular contract.
  * @param _roundDuration Duration of a reward round in seconds.
  * @param _roundsStartTime Timestamp in seconds at which rounds start. Needs to be in the future.
  * @param masterAddress NexusMutual Master contract address.
  */
  constructor(uint _roundDuration, uint _roundsStartTime, address masterAddress) public {

    require(_roundDuration > 0, "_roundDuration needs to be greater than 0");
    require(_roundsStartTime >= now, "_roundsStartTime needs to be in the future");
    roundDuration = _roundDuration;
    roundsStartTime = _roundsStartTime;
    master = INXMMaster(masterAddress);
  }

  struct RewardPool {
    uint amount;
    // rate nextRate and nextRateStartRound  may not be up to date. use _getRates to get the up to date values.
    uint rate;
    uint nextRate;
    uint nextRateStartRound;
    mapping(address => uint) lastRoundClaimed;
  }

  // stakedContractAddress => sponsorAddress => tokenAddress => RewardPool
  mapping (address => mapping (address => mapping (address => RewardPool))) rewardPools;

  event Deposited (
    address indexed stakedContract,
    address indexed sponsor,
    address tokenAddress,
    uint amount
  );

  event Withdrawn (
    address stakedContract,
    address sponsor,
    address tokenAddress,
    uint amount
  );

  event Claimed (
    address stakedContract,
    address sponsor,
    address tokenAddress,
    uint amount,
    address receiver,
    uint roundNumber
  );

  /**
  * @dev set the reward ratio as a sponsor for a particular contract and ERC20 token.
  * @param stakedContract Contract the staker has a stake on.
  * @param tokenAddress Address of the ERC20 token of the reward funds.
  * @param rate Rate between the NXM stake and the reward amount. (Scaled by 1e18)
  */
  function setRewardRate(address stakedContract, address tokenAddress, uint rate) public {

    RewardPool storage pool = rewardPools[stakedContract][msg.sender][tokenAddress];

    uint currentRound = getCurrentRound();
    uint currentRate;
    (currentRate, , ) = _getRates(pool, currentRound);
    if (currentRate == 0) {
      // set the rate for the current round
      pool.rate = rate;
      pool.nextRate = 0;
      pool.nextRateStartRound = 0;
    } else {
      // set the rate for the next round
      if (pool.rate != currentRate) {
        pool.rate = pool.nextRate;
      }
      pool.nextRate = rate;
      pool.nextRateStartRound = currentRound + 1;
    }
  }

  /**
  * @dev Add rewards as a sponsor for a particular contract.
  * @param stakedContract Contract the staker has a stake on.
  * @param tokenAddress Address of the ERC20 token of the reward funds.
  * @param amount Amount of rewards to be deposited.
  */
  function depositRewards(address stakedContract, address tokenAddress, uint amount) public {

    IERC20 erc20 = IERC20(tokenAddress);
    erc20.safeTransferFrom(msg.sender, address(this), amount);
    RewardPool storage pool = rewardPools[stakedContract][msg.sender][tokenAddress];
    pool.amount = pool.amount.add(amount);
    emit Deposited(stakedContract, msg.sender, tokenAddress, amount);
  }

  /**
  * @dev Add rewards as a sponsor for a particular contract.
  * @param stakedContract Contract the staker has a stake on.
  * @param tokenAddress Address of the ERC20 token of the reward funds.
  * @param amount Amount of rewards to be deposited.
  * @param rate Rate between the NXM stake and the reward amount. (Scaled by 1e18)
  */
  function depositRewardsAndSetRate(address stakedContract, address tokenAddress, uint amount, uint rate) external {
    depositRewards(stakedContract, tokenAddress, amount);
    setRewardRate(stakedContract, tokenAddress, rate);
  }

  /**
  * @dev Calls claimReward for each separate (stakedContract, sponsor, token) tuple specified.
  * @param stakedContracts Contracts the staker has a stake on.
  * @param sponsors Sponsors to claim rewards from.
  * @param tokenAddresses Addresses of the ERC20 token of the reward funds.
  * @return tokensRewarded Tokens rewarded by each sponsor.
  */
  function claimRewards(
    address[] calldata stakedContracts,
    address[] calldata sponsors,
    address[] calldata tokenAddresses
  ) external nonReentrant returns (uint[] memory tokensRewarded) {

    require(stakedContracts.length == sponsors.length, "stakedContracts.length != sponsors.length");
    require(stakedContracts.length == tokenAddresses.length, "stakedContracts.length != tokenAddresses.length");

    tokensRewarded = new uint[](stakedContracts.length);
    for (uint i = 0; i < stakedContracts.length; i++) {
      tokensRewarded[i] = claimReward(stakedContracts[i], sponsors[i], tokenAddresses[i]);
    }
  }

  /**
  * @dev Claims reward as a NexusMutual staker.
  * @param stakedContract contract the staker has a stake on.
  * @param sponsor Sponsor providing the reward funds.
  * @param tokenAddress address of the ERC20 token of the reward funds.
  * @return rewardAmount amount rewarded
  */
  function claimReward(
    address stakedContract,
    address sponsor,
    address tokenAddress
  ) internal returns (uint rewardAmount) {

    uint currentRound = getCurrentRound();
    RewardPool storage pool = rewardPools[stakedContract][sponsor][tokenAddress];
    uint lastRoundClaimed = pool.lastRoundClaimed[msg.sender];
    require(currentRound > lastRoundClaimed, "Already claimed this reward for this round");

    if (pool.nextRateStartRound != 0 && pool.nextRateStartRound <= currentRound) {
      pool.rate = pool.nextRate;
      pool.nextRateStartRound = 0;
      pool.nextRate = 0;
    }

    IPooledStaking pooledStaking = IPooledStaking(master.getLatestAddress("PS"));
    uint stake = pooledStaking.stakerContractStake(msg.sender, stakedContract);
    uint pendingUnstake = pooledStaking.stakerContractPendingUnstakeTotal(msg.sender, stakedContract);
    uint netStake = stake >= pendingUnstake ? stake.sub(pendingUnstake) : 0;
    rewardAmount = netStake.mul(pool.rate).div(rewardRateScale);
    uint rewardsAvailable = pool.amount;
    if (rewardAmount > rewardsAvailable) {
      rewardAmount = rewardsAvailable;
    }
    require(rewardAmount > 0, "rewardAmount needs to be greater than 0");

    pool.lastRoundClaimed[msg.sender] = currentRound;
    pool.amount = rewardsAvailable.sub(rewardAmount);

    IERC20 erc20 = IERC20(tokenAddress);
    erc20.safeTransfer(msg.sender, rewardAmount);
    emit Claimed(stakedContract, sponsor, tokenAddress, rewardAmount, msg.sender, currentRound);
  }

  /**
  * @dev Withdraw reward funds as a Sponsor for a particular staked contract.
  * @param stakedContract Contract the staker has a stake on.
  * @param tokenAddress Address of the ERC20 token of the reward funds.
  * @param amount Amount of reward funds to be withdrawn.
  */
  function withdrawRewards(address stakedContract, address tokenAddress, uint amount) external nonReentrant {
    IERC20 erc20 = IERC20(tokenAddress);
    RewardPool storage pool = rewardPools[stakedContract][msg.sender][tokenAddress];
    require(pool.amount >= amount, "Not enough tokens to withdraw");
    require(pool.rate == 0, "Reward rate is not 0");

    pool.amount = pool.amount.sub(amount);
    erc20.safeTransfer(msg.sender, amount);
    emit Withdrawn(stakedContract, msg.sender, tokenAddress, amount);
  }

  /**
  @dev Fetch the amount of available rewards for a staker for the current round from a particular reward pool.
  * @param staker whose rewards are counted.
  * @param stakedContract contract the staker has a stake on.
  * @param sponsor Sponsor providing the reward funds.
  * @param tokenAddress address of the ERC20 token of the reward funds.
  * @return rewardAmount amount of reward tokens available for this particular staker.
  */
  function getAvailableStakerReward(
    address staker,
    address stakedContract,
    address sponsor,
    address tokenAddress
  ) public view returns (uint rewardAmount) {

    uint currentRound = getCurrentRound();
    RewardPool storage pool = rewardPools[stakedContract][sponsor][tokenAddress];
    uint lastRoundClaimed = pool.lastRoundClaimed[staker];
    if (lastRoundClaimed >= currentRound) {
      return 0;
    }
    uint rate;
    (rate, , ) = _getRates(pool, currentRound);
    IPooledStaking pooledStaking = IPooledStaking(master.getLatestAddress("PS"));
    uint stake = pooledStaking.stakerContractStake(staker, stakedContract);
    uint pendingUnstake = pooledStaking.stakerContractPendingUnstakeTotal(staker, stakedContract);
    uint netStake = stake >= pendingUnstake ? stake.sub(pendingUnstake) : 0;
    rewardAmount = netStake.mul(rate).div(rewardRateScale);
    uint rewardsAvailable = pool.amount;
    if (rewardAmount > rewardsAvailable) {
      rewardAmount = rewardsAvailable;
    }
  }

  /**
  * @dev Calls claimReward for each separate (stakedContract, sponsor, token) tuple specified.
  * @param stakedContracts Contracts the staker has a stake on.
  * @param sponsors Sponsors to claim rewards from.
  * @param tokenAddresses Addresses of the ERC20 token of the reward funds.
  * @return tokensRewarded Tokens rewarded by each sponsor.
  */
  function getAvailableStakerRewards(
    address staker,
    address[] calldata stakedContracts,
    address[] calldata sponsors,
    address[] calldata tokenAddresses
  ) external view returns (uint[] memory tokensRewarded) {
    require(stakedContracts.length == sponsors.length, "stakedContracts.length != sponsors.length");
    require(stakedContracts.length == tokenAddresses.length, "stakedContracts.length != tokenAddresses.length");

    tokensRewarded = new uint[](stakedContracts.length);
    for (uint i = 0; i < stakedContracts.length; i++) {
      tokensRewarded[i] = getAvailableStakerReward(staker, stakedContracts[i], sponsors[i], tokenAddresses[i]);
    }
  }

  /**
  @dev Fetch RewardPool information
  * @param stakedContract contract a staker has a stake on.
  * @param sponsor Sponsor providing the reward funds.
  * @param tokenAddress address of the ERC20 token of the reward funds.
  * @return amount total available token amount of the RewardPool
  * @return rate rate to NXM of the RewardPool.
  * @return nextRateStartRound round number for which the next rate applies. if 0, no nextRate is set.
  * @return nextRate rate for the next round of the RewardPool. if nextRateStartRound is 0 this value is not relevant.
  */
  function getRewardPool(
      address stakedContract,
    address sponsor,
    address tokenAddress
  ) public view returns (uint amount, uint rate, uint nextRateStartRound, uint nextRate) {
    RewardPool storage pool = rewardPools[stakedContract][sponsor][tokenAddress];
    (rate, nextRateStartRound, nextRate) = _getRates(pool, getCurrentRound());
    amount = pool.amount;
  }


  /**
  @dev Fetch information for multiple RewardPools
  * @param stakedContracts contract a staker has a stake on.
  * @param sponsors Sponsor providing the reward funds.
  * @param tokenAddresses address of the ERC20 token of the reward funds.
  * @return amount total available token amount of the RewardPool
  * @return rate rate to NXM of the RewardPool.
  * @return nextRateStartRound round number for which the next rate applies. if 0, no nextRate is set.
  * @return nextRate rate for the next round of the RewardPool. if nextRateStartRound is 0 this value is not relevant.
  */
  function getRewardPools(
    address[] calldata stakedContracts,
    address[] calldata sponsors,
    address[] calldata tokenAddresses
  ) external view returns (
    uint[] memory amount,
    uint[] memory rate,
    uint[] memory nextRateStartRound,
    uint[] memory nextRate
  ) {
    require(stakedContracts.length == sponsors.length, "stakedContracts.length != sponsors.length");
    require(stakedContracts.length == tokenAddresses.length, "stakedContracts.length != tokenAddresses.length");

    amount = new uint[](stakedContracts.length);
    rate = new uint[](stakedContracts.length);
    nextRateStartRound = new uint[](stakedContracts.length);
    nextRate = new uint[](stakedContracts.length);

    for (uint i = 0; i < stakedContracts.length; i++) {
      RewardPool storage pool = rewardPools[stakedContracts[i]][sponsors[i]][tokenAddresses[i]];
      (rate[i], nextRateStartRound[i], nextRate[i]) = _getRates(pool, getCurrentRound());
      amount[i] = pool.amount;
    }
  }

  /**
  * @dev Fetch the current round number.
  */
  function getCurrentRound() public view returns (uint) {
    require(roundsStartTime <= now, "Rounds haven't started yet");
    return (now - roundsStartTime) / roundDuration + 1;
  }

  /**
  * @dev Fetch the last round in which a staker fetched his reward from a particular RewardPool.
  * @param stakedContract contract a staker has a stake on.
  * @param sponsor Sponsor providing the reward funds.
  * @param tokenAddress address of the ERC20 token of the reward funds.
  */
  function getLastRoundClaimed(
    address stakedContract,
    address sponsor,
    address tokenAddress,
    address staker
  ) external view returns (uint) {
    return rewardPools[stakedContract][sponsor][tokenAddress].lastRoundClaimed[staker];
  }

  function _getRates(RewardPool storage pool, uint currentRound) internal view returns (uint rate, uint nextRateStartRound, uint nextRate) {
    bool needsUpdate = pool.nextRateStartRound != 0 && pool.nextRateStartRound <= currentRound;
    if (needsUpdate) {
      return (pool.nextRate, 0, 0);
    }
    return (pool.rate, pool.nextRateStartRound, pool.nextRate);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_roundDuration","type":"uint256"},{"internalType":"uint256","name":"_roundsStartTime","type":"uint256"},{"internalType":"address","name":"masterAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakedContract","type":"address"},{"indexed":false,"internalType":"address","name":"sponsor","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"roundNumber","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"stakedContract","type":"address"},{"indexed":true,"internalType":"address","name":"sponsor","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakedContract","type":"address"},{"indexed":false,"internalType":"address","name":"sponsor","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address[]","name":"stakedContracts","type":"address[]"},{"internalType":"address[]","name":"sponsors","type":"address[]"},{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"claimRewards","outputs":[{"internalType":"uint256[]","name":"tokensRewarded","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"depositRewardsAndSetRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"sponsor","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getAvailableStakerReward","outputs":[{"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address[]","name":"stakedContracts","type":"address[]"},{"internalType":"address[]","name":"sponsors","type":"address[]"},{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"getAvailableStakerRewards","outputs":[{"internalType":"uint256[]","name":"tokensRewarded","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"sponsor","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"staker","type":"address"}],"name":"getLastRoundClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"sponsor","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getRewardPool","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"nextRateStartRound","type":"uint256"},{"internalType":"uint256","name":"nextRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"stakedContracts","type":"address[]"},{"internalType":"address[]","name":"sponsors","type":"address[]"},{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"getRewardPools","outputs":[{"internalType":"uint256[]","name":"amount","type":"uint256[]"},{"internalType":"uint256[]","name":"rate","type":"uint256[]"},{"internalType":"uint256[]","name":"nextRateStartRound","type":"uint256[]"},{"internalType":"uint256[]","name":"nextRate","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"master","outputs":[{"internalType":"contract INXMMaster","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRateScale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundsStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakedContract","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161203e38038061203e8339818101604052606081101561003357600080fd5b50805160208201516040909201516001600055909190826100855760405162461bcd60e51b8152600401808060200182810382526029815260200180611feb6029913960400191505060405180910390fd5b428210156100c45760405162461bcd60e51b815260040180806020018281038252602a815260200180612014602a913960400191505060405180910390fd5b600292909255600355600180546001600160a01b0319166001600160a01b03909216919091179055611ef0806100fb6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639aab296711610097578063e1ccb85b11610066578063e1ccb85b14610719578063e54219501461074f578063ee97f7f31461078b578063f7cb789a146107af576100f5565b80639aab296714610567578063a32bf597146105c5578063a82e84e9146105cd578063d57d6bbd146106db576100f5565b806359d0c12a116100d357806359d0c12a146102c05780635e2cb4ba146102f857806371266e431461052957806374ee6b6214610531576100f5565b8063313f3151146100fa578063407ad1f01461014a57806344ab2c7c146102b8575b600080fd5b6101386004803603608081101561011057600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166107b7565b60408051918252519081900360200190f35b6102686004803603608081101561016057600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561018a57600080fd5b82018360208201111561019c57600080fd5b803590602001918460208302840111600160201b831117156101bd57600080fd5b919390929091602081019035600160201b8111156101da57600080fd5b8201836020820111156101ec57600080fd5b803590602001918460208302840111600160201b8311171561020d57600080fd5b919390929091602081019035600160201b81111561022a57600080fd5b82018360208201111561023c57600080fd5b803590602001918460208302840111600160201b8311171561025d57600080fd5b509092509050610a1d565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102a457818101518382015260200161028c565b505050509050019250505060405180910390f35b610138610b72565b6102f6600480360360608110156102d657600080fd5b506001600160a01b03813581169160208101359091169060400135610b7e565b005b6104066004803603606081101561030e57600080fd5b810190602081018135600160201b81111561032857600080fd5b82018360208201111561033a57600080fd5b803590602001918460208302840111600160201b8311171561035b57600080fd5b919390929091602081019035600160201b81111561037857600080fd5b82018360208201111561038a57600080fd5b803590602001918460208302840111600160201b831117156103ab57600080fd5b919390929091602081019035600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460208302840111600160201b831117156103fb57600080fd5b509092509050610c17565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b8381101561045257818101518382015260200161043a565b50505050905001858103845288818151815260200191508051906020019060200280838360005b83811015610491578181015183820152602001610479565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156104d05781810151838201526020016104b8565b50505050905001858103825286818151815260200191508051906020019060200280838360005b8381101561050f5781810151838201526020016104f7565b505050509050019850505050505050505060405180910390f35b610138610efa565b6102f66004803603606081101561054757600080fd5b506001600160a01b03813581169160208101359091169060400135610f00565b61059f6004803603606081101561057d57600080fd5b506001600160a01b0381358116916020810135821691604090910135166110bb565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610138611110565b610268600480360360608110156105e357600080fd5b810190602081018135600160201b8111156105fd57600080fd5b82018360208201111561060f57600080fd5b803590602001918460208302840111600160201b8311171561063057600080fd5b919390929091602081019035600160201b81111561064d57600080fd5b82018360208201111561065f57600080fd5b803590602001918460208302840111600160201b8311171561068057600080fd5b919390929091602081019035600160201b81111561069d57600080fd5b8201836020820111156106af57600080fd5b803590602001918460208302840111600160201b831117156106d057600080fd5b509092509050611181565b610138600480360360808110156106f157600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516611336565b6102f66004803603606081101561072f57600080fd5b506001600160a01b03813581169160208101359091169060400135611378565b6102f66004803603608081101561076557600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135611425565b610793611441565b604080516001600160a01b039092168252519081900360200190f35b610138611450565b6000806107c2611110565b6001600160a01b0380871660009081526004602081815260408084208a86168552825280842089861685528252808420948c1684529184019052902054919250908281106108165760009350505050610a15565b60006108228385611456565b5050600154604080516227050b60e31b815261505360f01b600482015290519293506000926001600160a01b0390921691630138285891602480820192602092909190829003018186803b15801561087957600080fd5b505afa15801561088d573d6000803e3d6000fd5b505050506040513d60208110156108a357600080fd5b505160408051631d5c02e360e31b81526001600160a01b038d811660048301528c8116602483015291519293506000929184169163eae0171891604480820192602092909190829003018186803b1580156108fd57600080fd5b505afa158015610911573d6000803e3d6000fd5b505050506040513d602081101561092757600080fd5b505160408051631a44967560e11b81526001600160a01b038e811660048301528d811660248301529151929350600092918516916334892cea91604480820192602092909190829003018186803b15801561098157600080fd5b505afa158015610995573d6000803e3d6000fd5b505050506040513d60208110156109ab57600080fd5b505190506000818310156109c05760006109d0565b6109d0838363ffffffff6114ac16565b90506109fa670de0b6b3a76400006109ee838863ffffffff6114f716565b9063ffffffff61155016565b8754909950808a1115610a0b578099505b5050505050505050505b949350505050565b6060858414610a5d5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b858214610a9b5760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8567ffffffffffffffff81118015610ab257600080fd5b50604051908082528060200260200182016040528015610adc578160200160208202803683370190505b50905060005b86811015610b6657610b4789898984818110610afa57fe5b905060200201356001600160a01b0316888885818110610b1657fe5b905060200201356001600160a01b0316878786818110610b3257fe5b905060200201356001600160a01b03166107b7565b828281518110610b5357fe5b6020908102919091010152600101610ae2565b50979650505050505050565b670de0b6b3a764000081565b6001600160a01b0380841660009081526004602090815260408083203384528252808320938616835292905290812090610bb6611110565b90506000610bc48383611456565b509091505080610be857600183018490556000600284018190556003840155610c0f565b80836001015414610bfe57600283015460018401555b600283018490556001820160038401555b505050505050565b6060808080888714610c5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b888514610c985760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8867ffffffffffffffff81118015610caf57600080fd5b50604051908082528060200260200182016040528015610cd9578160200160208202803683370190505b5093508867ffffffffffffffff81118015610cf357600080fd5b50604051908082528060200260200182016040528015610d1d578160200160208202803683370190505b5092508867ffffffffffffffff81118015610d3757600080fd5b50604051908082528060200260200182016040528015610d61578160200160208202803683370190505b5091508867ffffffffffffffff81118015610d7b57600080fd5b50604051908082528060200260200182016040528015610da5578160200160208202803683370190505b50905060005b89811015610eec576000600460008d8d85818110610dc557fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008b8b85818110610e0357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000206000898985818110610e4157fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000209050610e8481610e7f611110565b611456565b878581518110610e9057fe5b60200260200101878681518110610ea357fe5b60200260200101878781518110610eb657fe5b60209081029190910101929092529190525280548651879084908110610ed857fe5b602090810291909101015250600101610dab565b509650965096509692505050565b60035481565b60026000541415610f58576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260009081556001600160a01b0380851682526004602090815260408084203385528252808420928616845291905290208054839190831115610fe3576040805162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320746f207769746864726177000000604482015290519081900360640190fd5b600181015415611031576040805162461bcd60e51b815260206004820152601460248201527305265776172642072617465206973206e6f7420360641b604482015290519081900360640190fd5b8054611043908463ffffffff6114ac16565b815561105f6001600160a01b038316338563ffffffff61159216565b604080516001600160a01b0380881682523360208301528616818301526060810185905290517fa4195c37c2947bbe89165f03e320b6903116f0b10d8cfdb522330f7ce6f9fa249181900360800190a150506001600055505050565b6001600160a01b0380841660009081526004602090815260408083208685168452825280832093851683529290529081208190819081906110fe81610e7f611110565b92549a91995097509095509350505050565b6000426003541115611169576040805162461bcd60e51b815260206004820152601a60248201527f526f756e647320686176656e2774207374617274656420796574000000000000604482015290519081900360640190fd5b60025460035442038161117857fe5b04600101905090565b6060600260005414156111db576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005585841461121e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b85821461125c5760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8567ffffffffffffffff8111801561127357600080fd5b5060405190808252806020026020018201604052801561129d578160200160208202803683370190505b50905060005b86811015611326576113078888838181106112ba57fe5b905060200201356001600160a01b03168787848181106112d657fe5b905060200201356001600160a01b03168686858181106112f257fe5b905060200201356001600160a01b03166115e9565b82828151811061131357fe5b60209081029190910101526001016112a3565b5060016000559695505050505050565b6001600160a01b039384166000908152600460208181526040808420968816845295815285832094871683529384528482209290951681529301905290205490565b816113946001600160a01b03821633308563ffffffff6119b516565b6001600160a01b038085166000908152600460209081526040808320338452825280832093871683529290522080546113d3908463ffffffff611a0f16565b8155604080516001600160a01b0386811682526020820186905282513393918916927f4174a9435a04d04d274c76779cad136a41fde6937c56241c09ab9d3c7064a1a992908290030190a35050505050565b611430848484611378565b61143b848483610b7e565b50505050565b6001546001600160a01b031681565b60025481565b6000806000808560030154600014158015611475575084866003015411155b9050801561148e575050505060028201546000806114a5565b856001015486600301548760020154935093509350505b9250925092565b60006114ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a69565b90505b92915050565b600082611506575060006114f1565b8282028284828161151357fe5b04146114ee5760405162461bcd60e51b8152600401808060200182810382526021815260200180611df06021913960400191505060405180910390fd5b60006114ee83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b00565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115e4908490611b65565b505050565b6000806115f4611110565b6001600160a01b0380871660009081526004602081815260408084208a8616855282528084209489168452938152838320338452918201905291902054919250908083116116735760405162461bcd60e51b815260040180806020018281038252602a815260200180611e91602a913960400191505060405180910390fd5b60038201541580159061168a575082826003015411155b156116a657600282018054600184015560006003840181905590555b600154604080516227050b60e31b815261505360f01b600482015290516000926001600160a01b0316916301382858916024808301926020929190829003018186803b1580156116f557600080fd5b505afa158015611709573d6000803e3d6000fd5b505050506040513d602081101561171f57600080fd5b505160408051631d5c02e360e31b81523360048201526001600160a01b038b8116602483015291519293506000929184169163eae0171891604480820192602092909190829003018186803b15801561177757600080fd5b505afa15801561178b573d6000803e3d6000fd5b505050506040513d60208110156117a157600080fd5b505160408051631a44967560e11b81523360048201526001600160a01b038c811660248301529151929350600092918516916334892cea91604480820192602092909190829003018186803b1580156117f957600080fd5b505afa15801561180d573d6000803e3d6000fd5b505050506040513d602081101561182357600080fd5b50519050600081831015611838576000611848565b611848838363ffffffff6114ac16565b905061186d670de0b6b3a76400006109ee8860010154846114f790919063ffffffff16565b86549098508089111561187e578098505b600089116118bd5760405162461bcd60e51b8152600401808060200182810382526027815260200180611e116027913960400191505060405180910390fd5b33600090815260048801602052604090208890556118e1818a63ffffffff6114ac16565b8755896118fe6001600160a01b038216338c63ffffffff61159216565b7f448983aa837d583b4bd9bced8f2aaca2dead3f4435d1710aa9cfae8b48c343ca8d8d8d8d338e60405180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001965050505050505060405180910390a15050505050505050509392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261143b908590611b65565b6000828201838110156114ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115611af85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611abd578181015183820152602001611aa5565b50505050905090810190601f168015611aea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611b4f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611abd578181015183820152602001611aa5565b506000838581611b5b57fe5b0495945050505050565b6060611bba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c169092919063ffffffff16565b8051909150156115e457808060200190516020811015611bd957600080fd5b50516115e45760405162461bcd60e51b815260040180806020018281038252602a815260200180611e38602a913960400191505060405180910390fd5b6060610a1584846000856060611c2b85611d8d565b611c7c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611cbb5780518252601f199092019160209182019101611c9c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d1d576040519150601f19603f3d011682016040523d82523d6000602084013e611d22565b606091505b50915091508115611d36579150610a159050565b805115611d465780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611abd578181015183820152602001611aa5565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610a1557505015159291505056fe7374616b6564436f6e7472616374732e6c656e67746820213d2073706f6e736f72732e6c656e677468536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77726577617264416d6f756e74206e6565647320746f2062652067726561746572207468616e20305361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565647374616b6564436f6e7472616374732e6c656e67746820213d20746f6b656e4164647265737365732e6c656e677468416c726561647920636c61696d656420746869732072657761726420666f72207468697320726f756e64a26469706673582212208af71a1960903027785775fce06ff77871a26c7e80981501ae71f2081149990e64736f6c634300060a00335f726f756e644475726174696f6e206e6565647320746f2062652067726561746572207468616e20305f726f756e6473537461727454696d65206e6565647320746f20626520696e20746865206675747572650000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000005f71a61000000000000000000000000001bfd82675dbcc7762c84019ca518e701c0cd07e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80639aab296711610097578063e1ccb85b11610066578063e1ccb85b14610719578063e54219501461074f578063ee97f7f31461078b578063f7cb789a146107af576100f5565b80639aab296714610567578063a32bf597146105c5578063a82e84e9146105cd578063d57d6bbd146106db576100f5565b806359d0c12a116100d357806359d0c12a146102c05780635e2cb4ba146102f857806371266e431461052957806374ee6b6214610531576100f5565b8063313f3151146100fa578063407ad1f01461014a57806344ab2c7c146102b8575b600080fd5b6101386004803603608081101561011057600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166107b7565b60408051918252519081900360200190f35b6102686004803603608081101561016057600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561018a57600080fd5b82018360208201111561019c57600080fd5b803590602001918460208302840111600160201b831117156101bd57600080fd5b919390929091602081019035600160201b8111156101da57600080fd5b8201836020820111156101ec57600080fd5b803590602001918460208302840111600160201b8311171561020d57600080fd5b919390929091602081019035600160201b81111561022a57600080fd5b82018360208201111561023c57600080fd5b803590602001918460208302840111600160201b8311171561025d57600080fd5b509092509050610a1d565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156102a457818101518382015260200161028c565b505050509050019250505060405180910390f35b610138610b72565b6102f6600480360360608110156102d657600080fd5b506001600160a01b03813581169160208101359091169060400135610b7e565b005b6104066004803603606081101561030e57600080fd5b810190602081018135600160201b81111561032857600080fd5b82018360208201111561033a57600080fd5b803590602001918460208302840111600160201b8311171561035b57600080fd5b919390929091602081019035600160201b81111561037857600080fd5b82018360208201111561038a57600080fd5b803590602001918460208302840111600160201b831117156103ab57600080fd5b919390929091602081019035600160201b8111156103c857600080fd5b8201836020820111156103da57600080fd5b803590602001918460208302840111600160201b831117156103fb57600080fd5b509092509050610c17565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b8381101561045257818101518382015260200161043a565b50505050905001858103845288818151815260200191508051906020019060200280838360005b83811015610491578181015183820152602001610479565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156104d05781810151838201526020016104b8565b50505050905001858103825286818151815260200191508051906020019060200280838360005b8381101561050f5781810151838201526020016104f7565b505050509050019850505050505050505060405180910390f35b610138610efa565b6102f66004803603606081101561054757600080fd5b506001600160a01b03813581169160208101359091169060400135610f00565b61059f6004803603606081101561057d57600080fd5b506001600160a01b0381358116916020810135821691604090910135166110bb565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610138611110565b610268600480360360608110156105e357600080fd5b810190602081018135600160201b8111156105fd57600080fd5b82018360208201111561060f57600080fd5b803590602001918460208302840111600160201b8311171561063057600080fd5b919390929091602081019035600160201b81111561064d57600080fd5b82018360208201111561065f57600080fd5b803590602001918460208302840111600160201b8311171561068057600080fd5b919390929091602081019035600160201b81111561069d57600080fd5b8201836020820111156106af57600080fd5b803590602001918460208302840111600160201b831117156106d057600080fd5b509092509050611181565b610138600480360360808110156106f157600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516611336565b6102f66004803603606081101561072f57600080fd5b506001600160a01b03813581169160208101359091169060400135611378565b6102f66004803603608081101561076557600080fd5b506001600160a01b03813581169160208101359091169060408101359060600135611425565b610793611441565b604080516001600160a01b039092168252519081900360200190f35b610138611450565b6000806107c2611110565b6001600160a01b0380871660009081526004602081815260408084208a86168552825280842089861685528252808420948c1684529184019052902054919250908281106108165760009350505050610a15565b60006108228385611456565b5050600154604080516227050b60e31b815261505360f01b600482015290519293506000926001600160a01b0390921691630138285891602480820192602092909190829003018186803b15801561087957600080fd5b505afa15801561088d573d6000803e3d6000fd5b505050506040513d60208110156108a357600080fd5b505160408051631d5c02e360e31b81526001600160a01b038d811660048301528c8116602483015291519293506000929184169163eae0171891604480820192602092909190829003018186803b1580156108fd57600080fd5b505afa158015610911573d6000803e3d6000fd5b505050506040513d602081101561092757600080fd5b505160408051631a44967560e11b81526001600160a01b038e811660048301528d811660248301529151929350600092918516916334892cea91604480820192602092909190829003018186803b15801561098157600080fd5b505afa158015610995573d6000803e3d6000fd5b505050506040513d60208110156109ab57600080fd5b505190506000818310156109c05760006109d0565b6109d0838363ffffffff6114ac16565b90506109fa670de0b6b3a76400006109ee838863ffffffff6114f716565b9063ffffffff61155016565b8754909950808a1115610a0b578099505b5050505050505050505b949350505050565b6060858414610a5d5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b858214610a9b5760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8567ffffffffffffffff81118015610ab257600080fd5b50604051908082528060200260200182016040528015610adc578160200160208202803683370190505b50905060005b86811015610b6657610b4789898984818110610afa57fe5b905060200201356001600160a01b0316888885818110610b1657fe5b905060200201356001600160a01b0316878786818110610b3257fe5b905060200201356001600160a01b03166107b7565b828281518110610b5357fe5b6020908102919091010152600101610ae2565b50979650505050505050565b670de0b6b3a764000081565b6001600160a01b0380841660009081526004602090815260408083203384528252808320938616835292905290812090610bb6611110565b90506000610bc48383611456565b509091505080610be857600183018490556000600284018190556003840155610c0f565b80836001015414610bfe57600283015460018401555b600283018490556001820160038401555b505050505050565b6060808080888714610c5a5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b888514610c985760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8867ffffffffffffffff81118015610caf57600080fd5b50604051908082528060200260200182016040528015610cd9578160200160208202803683370190505b5093508867ffffffffffffffff81118015610cf357600080fd5b50604051908082528060200260200182016040528015610d1d578160200160208202803683370190505b5092508867ffffffffffffffff81118015610d3757600080fd5b50604051908082528060200260200182016040528015610d61578160200160208202803683370190505b5091508867ffffffffffffffff81118015610d7b57600080fd5b50604051908082528060200260200182016040528015610da5578160200160208202803683370190505b50905060005b89811015610eec576000600460008d8d85818110610dc557fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060008b8b85818110610e0357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000206000898985818110610e4157fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000209050610e8481610e7f611110565b611456565b878581518110610e9057fe5b60200260200101878681518110610ea357fe5b60200260200101878781518110610eb657fe5b60209081029190910101929092529190525280548651879084908110610ed857fe5b602090810291909101015250600101610dab565b509650965096509692505050565b60035481565b60026000541415610f58576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260009081556001600160a01b0380851682526004602090815260408084203385528252808420928616845291905290208054839190831115610fe3576040805162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f75676820746f6b656e7320746f207769746864726177000000604482015290519081900360640190fd5b600181015415611031576040805162461bcd60e51b815260206004820152601460248201527305265776172642072617465206973206e6f7420360641b604482015290519081900360640190fd5b8054611043908463ffffffff6114ac16565b815561105f6001600160a01b038316338563ffffffff61159216565b604080516001600160a01b0380881682523360208301528616818301526060810185905290517fa4195c37c2947bbe89165f03e320b6903116f0b10d8cfdb522330f7ce6f9fa249181900360800190a150506001600055505050565b6001600160a01b0380841660009081526004602090815260408083208685168452825280832093851683529290529081208190819081906110fe81610e7f611110565b92549a91995097509095509350505050565b6000426003541115611169576040805162461bcd60e51b815260206004820152601a60248201527f526f756e647320686176656e2774207374617274656420796574000000000000604482015290519081900360640190fd5b60025460035442038161117857fe5b04600101905090565b6060600260005414156111db576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005585841461121e5760405162461bcd60e51b8152600401808060200182810382526029815260200180611dc76029913960400191505060405180910390fd5b85821461125c5760405162461bcd60e51b815260040180806020018281038252602f815260200180611e62602f913960400191505060405180910390fd5b8567ffffffffffffffff8111801561127357600080fd5b5060405190808252806020026020018201604052801561129d578160200160208202803683370190505b50905060005b86811015611326576113078888838181106112ba57fe5b905060200201356001600160a01b03168787848181106112d657fe5b905060200201356001600160a01b03168686858181106112f257fe5b905060200201356001600160a01b03166115e9565b82828151811061131357fe5b60209081029190910101526001016112a3565b5060016000559695505050505050565b6001600160a01b039384166000908152600460208181526040808420968816845295815285832094871683529384528482209290951681529301905290205490565b816113946001600160a01b03821633308563ffffffff6119b516565b6001600160a01b038085166000908152600460209081526040808320338452825280832093871683529290522080546113d3908463ffffffff611a0f16565b8155604080516001600160a01b0386811682526020820186905282513393918916927f4174a9435a04d04d274c76779cad136a41fde6937c56241c09ab9d3c7064a1a992908290030190a35050505050565b611430848484611378565b61143b848483610b7e565b50505050565b6001546001600160a01b031681565b60025481565b6000806000808560030154600014158015611475575084866003015411155b9050801561148e575050505060028201546000806114a5565b856001015486600301548760020154935093509350505b9250925092565b60006114ee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a69565b90505b92915050565b600082611506575060006114f1565b8282028284828161151357fe5b04146114ee5760405162461bcd60e51b8152600401808060200182810382526021815260200180611df06021913960400191505060405180910390fd5b60006114ee83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b00565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115e4908490611b65565b505050565b6000806115f4611110565b6001600160a01b0380871660009081526004602081815260408084208a8616855282528084209489168452938152838320338452918201905291902054919250908083116116735760405162461bcd60e51b815260040180806020018281038252602a815260200180611e91602a913960400191505060405180910390fd5b60038201541580159061168a575082826003015411155b156116a657600282018054600184015560006003840181905590555b600154604080516227050b60e31b815261505360f01b600482015290516000926001600160a01b0316916301382858916024808301926020929190829003018186803b1580156116f557600080fd5b505afa158015611709573d6000803e3d6000fd5b505050506040513d602081101561171f57600080fd5b505160408051631d5c02e360e31b81523360048201526001600160a01b038b8116602483015291519293506000929184169163eae0171891604480820192602092909190829003018186803b15801561177757600080fd5b505afa15801561178b573d6000803e3d6000fd5b505050506040513d60208110156117a157600080fd5b505160408051631a44967560e11b81523360048201526001600160a01b038c811660248301529151929350600092918516916334892cea91604480820192602092909190829003018186803b1580156117f957600080fd5b505afa15801561180d573d6000803e3d6000fd5b505050506040513d602081101561182357600080fd5b50519050600081831015611838576000611848565b611848838363ffffffff6114ac16565b905061186d670de0b6b3a76400006109ee8860010154846114f790919063ffffffff16565b86549098508089111561187e578098505b600089116118bd5760405162461bcd60e51b8152600401808060200182810382526027815260200180611e116027913960400191505060405180910390fd5b33600090815260048801602052604090208890556118e1818a63ffffffff6114ac16565b8755896118fe6001600160a01b038216338c63ffffffff61159216565b7f448983aa837d583b4bd9bced8f2aaca2dead3f4435d1710aa9cfae8b48c343ca8d8d8d8d338e60405180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001848152602001836001600160a01b03166001600160a01b03168152602001828152602001965050505050505060405180910390a15050505050505050509392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261143b908590611b65565b6000828201838110156114ee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115611af85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611abd578181015183820152602001611aa5565b50505050905090810190601f168015611aea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611b4f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611abd578181015183820152602001611aa5565b506000838581611b5b57fe5b0495945050505050565b6060611bba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c169092919063ffffffff16565b8051909150156115e457808060200190516020811015611bd957600080fd5b50516115e45760405162461bcd60e51b815260040180806020018281038252602a815260200180611e38602a913960400191505060405180910390fd5b6060610a1584846000856060611c2b85611d8d565b611c7c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611cbb5780518252601f199092019160209182019101611c9c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d1d576040519150601f19603f3d011682016040523d82523d6000602084013e611d22565b606091505b50915091508115611d36579150610a159050565b805115611d465780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611abd578181015183820152602001611aa5565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610a1557505015159291505056fe7374616b6564436f6e7472616374732e6c656e67746820213d2073706f6e736f72732e6c656e677468536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77726577617264416d6f756e74206e6565647320746f2062652067726561746572207468616e20305361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565647374616b6564436f6e7472616374732e6c656e67746820213d20746f6b656e4164647265737365732e6c656e677468416c726561647920636c61696d656420746869732072657761726420666f72207468697320726f756e64a26469706673582212208af71a1960903027785775fce06ff77871a26c7e80981501ae71f2081149990e64736f6c634300060a0033

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

0000000000000000000000000000000000000000000000000000000000093a80000000000000000000000000000000000000000000000000000000005f71a61000000000000000000000000001bfd82675dbcc7762c84019ca518e701c0cd07e

-----Decoded View---------------
Arg [0] : _roundDuration (uint256): 604800
Arg [1] : _roundsStartTime (uint256): 1601283600
Arg [2] : masterAddress (address): 0x01BFd82675DBCc7762C84019cA518e701C0cD07e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [1] : 000000000000000000000000000000000000000000000000000000005f71a610
Arg [2] : 00000000000000000000000001bfd82675dbcc7762c84019ca518e701c0cd07e


Deployed Bytecode Sourcemap

23681:14130:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31925:1039;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31925:1039:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;33335:688;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33335:688:0;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;33335:688:0;;;;;;;;;;-1:-1:-1;33335:688:0;;-1:-1:-1;33335:688:0;-1:-1:-1;33335:688:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23893:43;;;:::i;25825:694::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25825:694:0;;;;;;;;;;;;;;;;;:::i;:::-;;35604:1015;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35604:1015:0;;;;;;;;;;-1:-1:-1;35604:1015:0;;-1:-1:-1;35604:1015:0;-1:-1:-1;35604:1015:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23861:27;;;:::i;30942:526::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;30942:526:0;;;;;;;;;;;;;;;;;:::i;34609:389::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34609:389:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36680:185;;;:::i;28155:643::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;28155:643:0;;;;;;;;;;-1:-1:-1;28155:643:0;;-1:-1:-1;28155:643:0;-1:-1:-1;28155:643:0;:::i;37172:257::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;37172:257:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;26790:405::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26790:405:0;;;;;;;;;;;;;;;;;:::i;27550:234::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27550:234:0;;;;;;;;;;;;;;;;;;;;;;:::i;23802:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23802:24:0;;;;;;;;;;;;;;23831:25;;;:::i;31925:1039::-;32084:17;32112;32132;:15;:17::i;:::-;-1:-1:-1;;;;;32182:27:0;;;32156:23;32182:27;;;:11;:27;;;;;;;;:36;;;;;;;;;;:50;;;;;;;;;;32263:29;;;;;:21;;;:29;;;;;32112:37;;-1:-1:-1;32182:50:0;32303:32;;;32299:63;;32353:1;32346:8;;;;;;;32299:63;32368:9;32397:29;32407:4;32413:12;32397:9;:29::i;:::-;-1:-1:-1;;32479:6:0;;:29;;;-1:-1:-1;;;32479:29:0;;-1:-1:-1;;;32479:29:0;;;;;;32384:42;;-1:-1:-1;32433:28:0;;-1:-1:-1;;;;;32479:6:0;;;;:23;;:29;;;;;;;;;;;;;;;:6;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32479:29:0;32529:57;;;-1:-1:-1;;;32529:57:0;;-1:-1:-1;;;;;32529:57:0;;;;;;;;;;;;;;;;32479:29;;-1:-1:-1;32516:10:0;;32529:33;;;;;;:57;;;;;32479:29;;32529:57;;;;;;;;:33;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32529:57:0;32615:71;;;-1:-1:-1;;;32615:71:0;;-1:-1:-1;;;;;32615:71:0;;;;;;;;;;;;;;;;32529:57;;-1:-1:-1;32593:19:0;;32615:47;;;;;;:71;;;;;32529:57;;32615:71;;;;;;;;:47;:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32615:71:0;;-1:-1:-1;32693:13:0;32709:23;;;;:55;;32763:1;32709:55;;;32735:25;:5;32745:14;32735:25;:9;:25;:::i;:::-;32693:71;-1:-1:-1;32786:39:0;23932:4;32786:18;32693:71;32799:4;32786:18;:12;:18;:::i;:::-;:22;:39;:22;:39;:::i;:::-;32856:11;;32771:54;;-1:-1:-1;32878:31:0;;;32874:85;;;32935:16;32920:31;;32874:85;31925:1039;;;;;;;;;;;;;;;;:::o;33335:688::-;33534:28;33579:41;;;33571:95;;;;-1:-1:-1;;;33571:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33681:47;;;33673:107;;;;-1:-1:-1;;;33673:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33817:15;33806:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33806:34:0;-1:-1:-1;33789:51:0;-1:-1:-1;33852:6:0;33847:171;33864:26;;;33847:171;;;33926:84;33951:6;33959:15;;33975:1;33959:18;;;;;;;;;;;;;-1:-1:-1;;;;;33959:18:0;33979:8;;33988:1;33979:11;;;;;;;;;;;;;-1:-1:-1;;;;;33979:11:0;33992:14;;34007:1;33992:17;;;;;;;;;;;;;-1:-1:-1;;;;;33992:17:0;33926:24;:84::i;:::-;33906:14;33921:1;33906:17;;;;;;;;;;;;;;;;;:104;33892:3;;33847:171;;;;33335:688;;;;;;;;;:::o;23893:43::-;23932:4;23893:43;:::o;25825:694::-;-1:-1:-1;;;;;25947:27:0;;;25921:23;25947:27;;;:11;:27;;;;;;;;25975:10;25947:39;;;;;;;:53;;;;;;;;;;;;26029:17;:15;:17::i;:::-;26009:37;;26053:16;26096:29;26106:4;26112:12;26096:9;:29::i;:::-;-1:-1:-1;26076:49:0;;-1:-1:-1;;26136:16:0;26132:382;;26208:9;;;:16;;;26249:1;26233:13;;;:17;;;26259:23;;;:27;26132:382;;;26368:11;26355:4;:9;;;:24;26351:76;;26404:13;;;;26392:9;;;:25;26351:76;26435:13;;;:20;;;26505:1;26490:16;;26464:23;;;:42;26132:382;25825:694;;;;;;:::o;35604:1015::-;35777:20;;;;35911:41;;;35903:95;;;;-1:-1:-1;;;35903:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36013:47;;;36005:107;;;;-1:-1:-1;;;36005:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36141:15;36130:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36130:34:0;-1:-1:-1;36121:43:0;-1:-1:-1;36189:15:0;36178:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36178:34:0;-1:-1:-1;36171:41:0;-1:-1:-1;36251:15:0;36240:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36240:34:0;-1:-1:-1;36219:55:0;-1:-1:-1;36303:15:0;36292:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36292:34:0;-1:-1:-1;36281:45:0;-1:-1:-1;36340:6:0;36335:279;36352:26;;;36335:279;;;36394:23;36420:11;:31;36432:15;;36448:1;36432:18;;;;;;;;;;;;;-1:-1:-1;;;;;36432:18:0;-1:-1:-1;;;;;36420:31:0;-1:-1:-1;;;;;36420:31:0;;;;;;;;;;;;:44;36452:8;;36461:1;36452:11;;;;;;;;;;;;;-1:-1:-1;;;;;36452:11:0;-1:-1:-1;;;;;36420:44:0;-1:-1:-1;;;;;36420:44:0;;;;;;;;;;;;:63;36465:14;;36480:1;36465:17;;;;;;;;;;;;;-1:-1:-1;;;;;36465:17:0;-1:-1:-1;;;;;36420:63:0;-1:-1:-1;;;;;36420:63:0;;;;;;;;;;;;36394:89;;36540:34;36550:4;36556:17;:15;:17::i;:::-;36540:9;:34::i;:::-;36493:4;36498:1;36493:7;;;;;;;;;;;;;36502:18;36521:1;36502:21;;;;;;;;;;;;;36525:8;36534:1;36525:11;;;;;;;;;;;;;;;;;36492:82;;;;;;;;36595:11;;36583:9;;:6;;36590:1;;36583:9;;;;;;;;;;;;;;;:23;-1:-1:-1;36380:3:0;;36335:279;;;;35604:1015;;;;;;;;;;;:::o;23861:27::-;;;;:::o;30942:526::-;19951:1;20557:7;;:19;;20549:63;;;;;-1:-1:-1;;;20549:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19951:1;20690:7;:18;;;-1:-1:-1;;;;;31123:27:0;;::::1;::::0;;:11:::1;:27;::::0;;;;;;;31151:10:::1;31123:39:::0;;;;;;;:53;;::::1;::::0;;;;;;;31191:11;;31077:12;;31123:53;31191:21;-1:-1:-1;31191:21:0::1;31183:63;;;::::0;;-1:-1:-1;;;31183:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;31261:9;::::0;::::1;::::0;:14;31253:47:::1;;;::::0;;-1:-1:-1;;;31253:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31253:47:0;;;;;;;;;;;;;::::1;;31323:11:::0;;:23:::1;::::0;31339:6;31323:23:::1;:15;:23;:::i;:::-;31309:37:::0;;31353:38:::1;-1:-1:-1::0;;;;;31353:18:0;::::1;31372:10;31384:6:::0;31353:38:::1;:18;:38;:::i;:::-;31403:59;::::0;;-1:-1:-1;;;;;31403:59:0;;::::1;::::0;;31429:10:::1;31403:59;::::0;::::1;::::0;;::::1;::::0;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;;19907:1:0;20869:7;:22;-1:-1:-1;;;30942:526:0:o;34609:389::-;-1:-1:-1;;;;;34835:27:0;;;34738:11;34835:27;;;:11;:27;;;;;;;;:36;;;;;;;;;;:50;;;;;;;;;;;34738:11;;;;;;34931:34;34835:50;34947:17;:15;:17::i;34931:34::-;34981:11;;;34892:73;;-1:-1:-1;34892:73:0;-1:-1:-1;34892:73:0;;-1:-1:-1;34609:389:0;-1:-1:-1;;;;34609:389:0:o;36680:185::-;36728:4;36768:3;36749:15;;:22;;36741:61;;;;;-1:-1:-1;;;36741:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36842:13;;36823:15;;36817:3;:21;36816:39;;;;;;36858:1;36816:43;36809:50;;36680:185;:::o;28155:643::-;28328:28;19951:1;20557:7;;:19;;20549:63;;;;;-1:-1:-1;;;20549:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19951:1;20690:7;:18;28375:41;;::::1;28367:95;;;;-1:-1:-1::0;;;28367:95:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28477:47:::0;;::::1;28469:107;;;;-1:-1:-1::0;;;28469:107:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28613:15:::0;28602:34:::1;::::0;::::1;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;28602:34:0::1;-1:-1:-1::0;28585:51:0;-1:-1:-1;28648:6:0::1;28643:150;28660:26:::0;;::::1;28643:150;;;28722:63;28734:15;;28750:1;28734:18;;;;;;;;;;;;;-1:-1:-1::0;;;;;28734:18:0::1;28754:8;;28763:1;28754:11;;;;;;;;;;;;;-1:-1:-1::0;;;;;28754:11:0::1;28767:14;;28782:1;28767:17;;;;;;;;;;;;;-1:-1:-1::0;;;;;28767:17:0::1;28722:11;:63::i;:::-;28702:14;28717:1;28702:17;;;;;;;;;::::0;;::::1;::::0;;;;;:83;28688:3:::1;;28643:150;;;-1:-1:-1::0;19907:1:0;20869:7;:22;28155:643;;-1:-1:-1;;;;;;28155:643:0:o;37172:257::-;-1:-1:-1;;;;;37348:27:0;;;37328:4;37348:27;;;:11;:27;;;;;;;;:36;;;;;;;;;;;:50;;;;;;;;;;;:75;;;;;;:67;;:75;;;;;;37172:257::o;26790:405::-;26911:12;26931:57;-1:-1:-1;;;;;26931:22:0;;26954:10;26974:4;26981:6;26931:57;:22;:57;:::i;:::-;-1:-1:-1;;;;;27021:27:0;;;26995:23;27021:27;;;:11;:27;;;;;;;;27049:10;27021:39;;;;;;;:53;;;;;;;;;27095:11;;:23;;27111:6;27095:23;:15;:23;:::i;:::-;27081:37;;27130:59;;;-1:-1:-1;;;;;27130:59:0;;;;;;;;;;;;;27156:10;;27130:59;;;;;;;;;;;;;26790:405;;;;;:::o;27550:234::-;27670:52;27685:14;27701:12;27715:6;27670:14;:52::i;:::-;27729:49;27743:14;27759:12;27773:4;27729:13;:49::i;:::-;27550:234;;;;:::o;23802:24::-;;;-1:-1:-1;;;;;23802:24:0;;:::o;23831:25::-;;;;:::o;37435:373::-;37521:9;37532:23;37557:13;37579:16;37598:4;:23;;;37625:1;37598:28;;:71;;;;;37657:12;37630:4;:23;;;:39;;37598:71;37579:90;;37680:11;37676:62;;;-1:-1:-1;;;;37710:13:0;;;;37725:1;;37702:28;;37676:62;37752:4;:9;;;37763:4;:23;;;37788:4;:13;;;37744:58;;;;;;;37435:373;;;;;;:::o;4255:136::-;4313:7;4340:43;4344:1;4347;4340:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4333:50;;4255:136;;;;;:::o;5145:471::-;5203:7;5448:6;5444:47;;-1:-1:-1;5478:1:0;5471:8;;5444:47;5515:5;;;5519:1;5515;:5;:1;5539:5;;;;;:10;5531:56;;;;-1:-1:-1;;;5531:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6092:132;6150:7;6177:39;6181:1;6184;6177:39;;;;;;;;;;;;;;;;;:3;:39::i;15145:177::-;15255:58;;;-1:-1:-1;;;;;15255:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15255:58:0;-1:-1:-1;;;15255:58:0;;;15228:86;;15248:5;;15228:19;:86::i;:::-;15145:177;;;:::o;29100:1549::-;29222:17;29250;29270;:15;:17::i;:::-;-1:-1:-1;;;;;29320:27:0;;;29294:23;29320:27;;;:11;:27;;;;;;;;:36;;;;;;;;;;:50;;;;;;;;;;;29423:10;29401:33;;:21;;;:33;;;;;;29250:37;;-1:-1:-1;29320:50:0;29449:31;;;29441:86;;;;-1:-1:-1;;;29441:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29540:23;;;;:28;;;;:71;;;29599:12;29572:4;:23;;;:39;;29540:71;29536:181;;;29634:13;;;;;29622:9;;;:25;-1:-1:-1;29656:23:0;;;:27;;;29692:17;;29536:181;29771:6;;:29;;;-1:-1:-1;;;29771:29:0;;-1:-1:-1;;;29771:29:0;;;;;;29725:28;;-1:-1:-1;;;;;29771:6:0;;:23;;:29;;;;;;;;;;;;;;:6;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29771:29:0;29821:61;;;-1:-1:-1;;;29821:61:0;;29855:10;29821:61;;;;-1:-1:-1;;;;;29821:61:0;;;;;;;;;29771:29;;-1:-1:-1;29808:10:0;;29821:33;;;;;;:61;;;;;29771:29;;29821:61;;;;;;;;:33;:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29821:61:0;29911:75;;;-1:-1:-1;;;29911:75:0;;29959:10;29911:75;;;;-1:-1:-1;;;;;29911:75:0;;;;;;;;;29821:61;;-1:-1:-1;29889:19:0;;29911:47;;;;;;:75;;;;;29821:61;;29911:75;;;;;;;;:47;:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29911:75:0;;-1:-1:-1;29993:13:0;30009:23;;;;:55;;30063:1;30009:55;;;30035:25;:5;30045:14;30035:25;:9;:25;:::i;:::-;29993:71;;30086:44;23932:4;30086:23;30099:4;:9;;;30086:8;:12;;:23;;;;:::i;:44::-;30161:11;;30071:59;;-1:-1:-1;30183:31:0;;;30179:85;;;30240:16;30225:31;;30179:85;30293:1;30278:12;:16;30270:68;;;;-1:-1:-1;;;30270:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30369:10;30347:33;;;;:21;;;:33;;;;;:48;;;30416:34;:16;30437:12;30416:34;:20;:34;:::i;:::-;30402:48;;30481:12;30501:44;-1:-1:-1;;;;;30501:18:0;;30520:10;30532:12;30501:44;:18;:44;:::i;:::-;30557:86;30565:14;30581:7;30590:12;30604;30618:10;30630:12;30557:86;;;;-1:-1:-1;;;;;30557:86:0;-1:-1:-1;;;;;30557:86:0;;;;;;-1:-1:-1;;;;;30557:86:0;-1:-1:-1;;;;;30557:86:0;;;;;;-1:-1:-1;;;;;30557:86:0;-1:-1:-1;;;;;30557:86:0;;;;;;;;;;;-1:-1:-1;;;;;30557:86:0;-1:-1:-1;;;;;30557:86:0;;;;;;;;;;;;;;;;;;;;;;;;;29100:1549;;;;;;;;;;;;;;:::o;15330:205::-;15458:68;;;-1:-1:-1;;;;;15458:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15458:68:0;-1:-1:-1;;;15458:68:0;;;15431:96;;15451:5;;15431:19;:96::i;3791:181::-;3849:7;3881:5;;;3905:6;;;;3897:46;;;;;-1:-1:-1;;;3897:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;4694:192;4780:7;4816:12;4808:6;;;;4800:29;;;;-1:-1:-1;;;4800:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4852:5:0;;;4694:192::o;6720:278::-;6806:7;6841:12;6834:5;6826:28;;;;-1:-1:-1;;;6826:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6865:9;6881:1;6877;:5;;;;;;;6720:278;-1:-1:-1;;;;;6720:278:0:o;17450:761::-;17874:23;17900:69;17928:4;17900:69;;;;;;;;;;;;;;;;;17908:5;-1:-1:-1;;;;;17900:27:0;;;:69;;;;;:::i;:::-;17984:17;;17874:95;;-1:-1:-1;17984:21:0;17980:224;;18126:10;18115:30;;;;;;;;;;;;;;;-1:-1:-1;18115:30:0;18107:85;;;;-1:-1:-1;;;18107:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12128:196;12231:12;12263:53;12286:6;12294:4;12300:1;12303:12;13635;13668:18;13679:6;13668:10;:18::i;:::-;13660:60;;;;;-1:-1:-1;;;13660:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13794:12;13808:23;13835:6;-1:-1:-1;;;;;13835:11:0;13855:8;13866:4;13835:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13835:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13793:78;;;;13886:7;13882:595;;;13917:10;-1:-1:-1;13910:17:0;;-1:-1:-1;13910:17:0;13882:595;14031:17;;:21;14027:439;;14294:10;14288:17;14355:15;14342:10;14338:2;14334:19;14327:44;14242:148;14430:20;;-1:-1:-1;;;14430:20:0;;;;;;;;;;;;;;;;;14437:12;;14430:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9013:619;9073:4;9541:20;;9384:66;9581:23;;;;;;:42;;-1:-1:-1;;9608:15:0;;;9573:51;-1:-1:-1;;9013:619:0:o

Swarm Source

ipfs://8af71a1960903027785775fce06ff77871a26c7e80981501ae71f2081149990e

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  ]

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.