ETH Price: $2,907.87 (+2.99%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
End Completed St...211056782024-11-03 7:40:115 days ago1730619611IN
0xB7c9E99D...114d9dE02
0 ETH0.0001942.4
End Completed St...211053142024-11-03 6:27:115 days ago1730615231IN
0xB7c9E99D...114d9dE02
0 ETH0.000211853.91339033
Approve211048992024-11-03 5:03:355 days ago1730610215IN
0xB7c9E99D...114d9dE02
0 ETH0.00019854.28465509
End Completed St...210894302024-11-01 1:12:237 days ago1730423543IN
0xB7c9E99D...114d9dE02
0 ETH0.00042155.91692697
Extend Stake210818632024-10-30 23:53:478 days ago1730332427IN
0xB7c9E99D...114d9dE02
0 ETH0.000521817.27245188
Approve210815382024-10-30 22:48:358 days ago1730328515IN
0xB7c9E99D...114d9dE02
0 ETH0.000476110.27630648
End Completed St...210815192024-10-30 22:44:478 days ago1730328287IN
0xB7c9E99D...114d9dE02
0 ETH0.0009717212.0207352
Extend Stake210694552024-10-29 6:18:3510 days ago1730182715IN
0xB7c9E99D...114d9dE02
0 ETH0.0008550711.91713089
Transfer210605292024-10-28 0:23:2311 days ago1730075003IN
0xB7c9E99D...114d9dE02
0 ETH0.000331797.1
Extend Stake210577802024-10-27 15:12:3511 days ago1730041955IN
0xB7c9E99D...114d9dE02
0 ETH0.000765148.61143779
Early End Stake ...210577592024-10-27 15:08:2311 days ago1730041703IN
0xB7c9E99D...114d9dE02
0 ETH0.000576469.37736834
End Completed St...210577352024-10-27 15:03:2311 days ago1730041403IN
0xB7c9E99D...114d9dE02
0 ETH0.0009820712.14877779
End Completed St...210567222024-10-27 11:39:4711 days ago1730029187IN
0xB7c9E99D...114d9dE02
0 ETH0.000363815.7081008
End Completed St...210544432024-10-27 4:02:1112 days ago1730001731IN
0xB7c9E99D...114d9dE02
0 ETH0.000292284.58583666
End Completed St...210422502024-10-25 11:11:4713 days ago1729854707IN
0xB7c9E99D...114d9dE02
0 ETH0.000521946.45676886
Restake Expired ...210383312024-10-24 22:04:5914 days ago1729807499IN
0xB7c9E99D...114d9dE02
0 ETH0.001766479.79505806
Restake Expired ...210188102024-10-22 4:44:1117 days ago1729572251IN
0xB7c9E99D...114d9dE02
0 ETH0.00118376.56356864
Restake Expired ...210187342024-10-22 4:28:5917 days ago1729571339IN
0xB7c9E99D...114d9dE02
0 ETH0.000974895.40574782
Approve210186452024-10-22 4:10:5917 days ago1729570259IN
0xB7c9E99D...114d9dE02
0 ETH0.000145866.00010884
Stake Team210172922024-10-21 23:38:1117 days ago1729553891IN
0xB7c9E99D...114d9dE02
0 ETH0.001204935.62603517
Restake Expired ...210168752024-10-21 22:14:4717 days ago1729548887IN
0xB7c9E99D...114d9dE02
0 ETH0.000411486.67545354
End Completed St...210168702024-10-21 22:13:4717 days ago1729548827IN
0xB7c9E99D...114d9dE02
0 ETH0.000462156.48866865
Stake Team210168632024-10-21 22:12:2317 days ago1729548743IN
0xB7c9E99D...114d9dE02
0 ETH0.001257096.53775061
Restake Expired ...210167552024-10-21 21:50:3517 days ago1729547435IN
0xB7c9E99D...114d9dE02
0 ETH0.001082066
Stake Team210167382024-10-21 21:47:1117 days ago1729547231IN
0xB7c9E99D...114d9dE02
0 ETH0.001715048.19047655
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
211056782024-11-03 7:40:115 days ago1730619611
0xB7c9E99D...114d9dE02
0 ETH
211053202024-11-03 6:28:235 days ago1730615303
0xB7c9E99D...114d9dE02
0 ETH
211053202024-11-03 6:28:235 days ago1730615303
0xB7c9E99D...114d9dE02
0 ETH
211053142024-11-03 6:27:115 days ago1730615231
0xB7c9E99D...114d9dE02
0 ETH
211045122024-11-03 3:45:475 days ago1730605547
0xB7c9E99D...114d9dE02
0 ETH
211045052024-11-03 3:44:235 days ago1730605463
0xB7c9E99D...114d9dE02
0 ETH
210894302024-11-01 1:12:237 days ago1730423543
0xB7c9E99D...114d9dE02
0 ETH
210818632024-10-30 23:53:478 days ago1730332427
0xB7c9E99D...114d9dE02
0 ETH
210818632024-10-30 23:53:478 days ago1730332427
0xB7c9E99D...114d9dE02
0 ETH
210818632024-10-30 23:53:478 days ago1730332427
0xB7c9E99D...114d9dE02
0 ETH
210818632024-10-30 23:53:478 days ago1730332427
0xB7c9E99D...114d9dE02
0 ETH
210815192024-10-30 22:44:478 days ago1730328287
0xB7c9E99D...114d9dE02
0 ETH
210694552024-10-29 6:18:3510 days ago1730182715
0xB7c9E99D...114d9dE02
0 ETH
210694552024-10-29 6:18:3510 days ago1730182715
0xB7c9E99D...114d9dE02
0 ETH
210694552024-10-29 6:18:3510 days ago1730182715
0xB7c9E99D...114d9dE02
0 ETH
210694552024-10-29 6:18:3510 days ago1730182715
0xB7c9E99D...114d9dE02
0 ETH
210577802024-10-27 15:12:3511 days ago1730041955
0xB7c9E99D...114d9dE02
0 ETH
210577802024-10-27 15:12:3511 days ago1730041955
0xB7c9E99D...114d9dE02
0 ETH
210577802024-10-27 15:12:3511 days ago1730041955
0xB7c9E99D...114d9dE02
0 ETH
210577802024-10-27 15:12:3511 days ago1730041955
0xB7c9E99D...114d9dE02
0 ETH
210577592024-10-27 15:08:2311 days ago1730041703
0xB7c9E99D...114d9dE02
0 ETH
210577592024-10-27 15:08:2311 days ago1730041703
0xB7c9E99D...114d9dE02
0 ETH
210577592024-10-27 15:08:2311 days ago1730041703
0xB7c9E99D...114d9dE02
0 ETH
210577352024-10-27 15:03:2311 days ago1730041403
0xB7c9E99D...114d9dE02
0 ETH
210567222024-10-27 11:39:4711 days ago1730029187
0xB7c9E99D...114d9dE02
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Team

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 201 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-05
*/

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


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.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].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

    /**
     * @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 a - b;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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

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


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

// File: contracts/PerpetualPool.sol


pragma solidity ^0.8.2;








contract HedronToken {
  function approve(address spender, uint256 amount) external returns (bool) {}
  function transfer(address recipient, uint256 amount) external returns (bool) {}
  function mintNative(uint256 stakeIndex, uint40 stakeId) external returns (uint256) {}
  function claimNative(uint256 stakeIndex, uint40 stakeId) external returns (uint256) {}
  function currentDay() external view returns (uint256) {}
}

contract HEXToken {
  function currentDay() external view returns (uint256){}
  function stakeStart(uint256 newStakedHearts, uint256 newStakedDays) external {}
  function approve(address spender, uint256 amount) external returns (bool) {}
  function transfer(address recipient, uint256 amount) public returns (bool) {}
  function stakeEnd(uint256 stakeIndex, uint40 stakeIdParam) public {}
  function stakeCount(address stakerAddr) external view returns (uint256) {}
}
/*
 /$$      /$$                     /$$                                         /$$$$$$$$ /$$$$$$$$  /$$$$$$  /$$      /$$
| $$$    /$$$                    |__/                                        |__  $$__/| $$_____/ /$$__  $$| $$$    /$$$
| $$$$  /$$$$  /$$$$$$  /$$   /$$ /$$ /$$$$$$/$$$$  /$$   /$$  /$$$$$$$         | $$   | $$      | $$  \ $$| $$$$  /$$$$
| $$ $$/$$ $$ |____  $$|  $$ /$$/| $$| $$_  $$_  $$| $$  | $$ /$$_____/         | $$   | $$$$$   | $$$$$$$$| $$ $$/$$ $$
| $$  $$$| $$  /$$$$$$$ \  $$$$/ | $$| $$ \ $$ \ $$| $$  | $$|  $$$$$$          | $$   | $$__/   | $$__  $$| $$  $$$| $$
| $$\  $ | $$ /$$__  $$  >$$  $$ | $$| $$ | $$ | $$| $$  | $$ \____  $$         | $$   | $$      | $$  | $$| $$\  $ | $$
| $$ \/  | $$|  $$$$$$$ /$$/\  $$| $$| $$ | $$ | $$|  $$$$$$/ /$$$$$$$/         | $$   | $$$$$$$$| $$  | $$| $$ \/  | $$
|__/     |__/ \_______/|__/  \__/|__/|__/ |__/ |__/ \______/ |_______/          |__/   |________/|__/  |__/|__/     |__/
                                                                                                                        
                                                                                                                        
                                                                                                                        
                           /$$         /$$     /$$                                                                      
                          | $$        | $$    | $$                                                                      
  /$$$$$$  /$$$$$$$   /$$$$$$$       /$$$$$$  | $$$$$$$   /$$$$$$                                                       
 |____  $$| $$__  $$ /$$__  $$      |_  $$_/  | $$__  $$ /$$__  $$                                                      
  /$$$$$$$| $$  \ $$| $$  | $$        | $$    | $$  \ $$| $$$$$$$$                                                      
 /$$__  $$| $$  | $$| $$  | $$        | $$ /$$| $$  | $$| $$_____/                                                      
|  $$$$$$$| $$  | $$|  $$$$$$$        |  $$$$/| $$  | $$|  $$$$$$$                                                      
 \_______/|__/  |__/ \_______/         \___/  |__/  |__/ \_______/                                                      
                                                                                                                        
                                                                                                                        
                                                                                                                        
 /$$$$$$$                                           /$$                         /$$                                     
| $$__  $$                                         | $$                        | $$                                     
| $$  \ $$ /$$$$$$   /$$$$$$   /$$$$$$   /$$$$$$  /$$$$$$   /$$   /$$  /$$$$$$ | $$  /$$$$$$$                           
| $$$$$$$//$$__  $$ /$$__  $$ /$$__  $$ /$$__  $$|_  $$_/  | $$  | $$ |____  $$| $$ /$$_____/                           
| $$____/| $$$$$$$$| $$  \__/| $$  \ $$| $$$$$$$$  | $$    | $$  | $$  /$$$$$$$| $$|  $$$$$$                            
| $$     | $$_____/| $$      | $$  | $$| $$_____/  | $$ /$$| $$  | $$ /$$__  $$| $$ \____  $$                           
| $$     |  $$$$$$$| $$      | $$$$$$$/|  $$$$$$$  |  $$$$/|  $$$$$$/|  $$$$$$$| $$ /$$$$$$$/                           
|__/      \_______/|__/      | $$____/  \_______/   \___/   \______/  \_______/|__/|_______/                            
                             | $$                                                                                       
                             | $$                                                                                       
                             |__/                                                                                      


// Anyone may choose to mint 1 Perpetual Pool Token per HEX pledged to the Perpetual Pool Contract during the minting phase.
// Pool Tokens are a standard ERC20 token, only minted upon HEX deposit and burnt upon HEX redemption with no pre-mine.
// Pool Token holders may choose to burn their Pool Tokens to redeem HEX principal and yield pro-rata from the Pool Token Contract Address during the reload phase.
// The Perpetual Pools start with an initial minting phase, followed by a stake phase. Then once the HEX stake has ended they enter a reload phase where HEX may be redeemed with Pool Tokens or Pool Tokens may be minted with HEX - all at the same redemption rate.
// Then after the reload phase ends another Stake Phase begins and the cycle repeats forever.


// PHASES:        |----- Minting Phase ----|------ Stake Phase -----...-----|---- Reload Phase ----->|----- Stake Phase ------|----> REPEAT FOREVER
// WHAT HAPPENS?  |       Mint and redeem  |    No Minting or Redeeming     |   Mint and redeem      | No Minting or Redeeming|---->
// FUNCTIONS USED:| pledgeHEX(),redeemHEX()|      mintHedron()              | pledgeHEX(),redeemHEX()|      mintHedron().     |
// TRANSITION FUNCTION:       stakeStart() ^                  endStakeHex() ^           stakeStart() ^          endStakeHex() ^ 

// The Pool Contracts send half of it's Bigger Pays Better Bonus HEX Yield and all of the HDRN the stake accumulated to the Maximus TEAM Contract as a thank you for deploying the pools and an incentive to grow the stake pooling economy.



THE PERPETUAL POOLS CONTRACTS, SUPPORTING WEBSITES, AND ALL OTHER INTERFACES (THE SOFTWARE) IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

BY INTERACTING WITH THE SOFTWARE YOU ARE ASSERTING THAT YOU BEAR ALL THE RISKS ASSOCIATED WITH DOING SO. AN INFINITE NUMBER OF UNPREDICTABLE THINGS MAY GO WRONG WHICH COULD POTENTIALLY RESULT IN CRITICAL FAILURE AND FINANCIAL LOSS. BY INTERACTING WITH THE SOFTWARE YOU ARE ASSERTING THAT YOU AGREE THERE IS NO RECOURSE AVAILABLE AND YOU WILL NOT SEEK IT.

INTERACTING WITH THE SOFTWARE SHALL NOT BE CONSIDERED AN INVESTMENT OR A COMMON ENTERPRISE. INSTEAD, INTERACTING WITH THE SOFTWARE IS EQUIVALENT TO CARPOOLING WITH FRIENDS TO SAVE ON GAS AND EXPERIENCE THE BENEFITS OF THE H.O.V. LANE. 

YOU SHALL HAVE NO EXPECTATION OF PROFIT OR ANY TYPE OF GAIN FROM THE WORK OF OTHER PEOPLE.

*/


contract PerpetualPool is ERC20, ERC20Burnable, ReentrancyGuard {
    // all days are measured in terms of the HEX contract day number
    uint256 public RELOAD_PHASE_DURATION; // How many days are between each stake
    uint256 public RELOAD_PHASE_START; // the day when the current reload phase starts, is updated as each stake ends
    uint256 public RELOAD_PHASE_END; // the day when the current reload phase ends, is updated as each stake ends
    uint256 public STAKE_START_DAY; // the day when the current stake starts, is updated as each stake starts
    uint256 public STAKE_END_DAY; // the day when the current stake ends, is updated as each stake starts
    uint256 public STAKE_LENGTH; // length of the stake
    uint256 public HEX_REDEMPTION_RATE; // Number of HEX units redeemable per Perpetual Pool Token and the number of HEX required to mint a new Perpetual Pool Token after a stake ends
    bool public STAKE_IS_ACTIVE; // Used to keep track of whether or not the HEX stake is active. Is TRUE during stake phases and FALSE during reload ohases
    address public END_STAKER; // Address who paid the gas to end the stake
    address public TEAM_CONTRACT_ADDRESS;
    uint256 public CURRENT_STAKE_PRINCIPAL; // Principal of current stake, updated whenever a stake starts and reset to zero when a stake ends.
    uint256 public CURRENT_PERIOD; // even numbers are Reload Period, odd numbers are staking periods.

    
    constructor(uint256 initial_mint_duration, uint256 stake_duration, uint256 reload_duration,address team_address, string memory name, string memory ticker) ERC20(name, ticker) ReentrancyGuard() {
        RELOAD_PHASE_DURATION=reload_duration;
        uint256 start_day=hex_token.currentDay();
        RELOAD_PHASE_START = start_day;
        RELOAD_PHASE_END = start_day+initial_mint_duration; // The initial RELOAD PHASE may be set to be different than the ongoing reload phases.
        STAKE_LENGTH=stake_duration; 
        STAKE_IS_ACTIVE=false;
        TEAM_CONTRACT_ADDRESS=team_address;
        HEX_REDEMPTION_RATE=100000000; // HEX and MINI are 1:1 convertible during first minting/redemption phase. Then this will scale based on treasury value.
        CURRENT_STAKE_PRINCIPAL=0;
        CURRENT_PERIOD=0;
    }
    
    address POOL_ADDRESS =address(this);
    address constant HEX_ADDRESS = 0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39; // "2b, 5 9 1e? that is the question..."
    address constant HEDRON_ADDRESS=0x3819f64f282bf135d62168C1e513280dAF905e06; 

    IERC20 hex_contract = IERC20(HEX_ADDRESS);
    IERC20 hedron_contract=IERC20(HEDRON_ADDRESS);
    HEXToken hex_token = HEXToken(HEX_ADDRESS);
    HedronToken hedron_token = HedronToken(HEDRON_ADDRESS);
    
    /**
    * @dev View number of decimal places the Pool Token is divisible to. Manually overwritten from default 18 to 8 to match that of HEX. 1 Pool Token = 10^8 mini
    */
    function decimals() public view virtual override returns (uint8) {return 8;}

    /**
    * @dev Returns the current Period. Even numbers are Reload Phases, Odd numbers are staking phases."
    * @return Current Period
    */
    function getCurrentPeriod() external view returns (uint256){
        return CURRENT_PERIOD;
    }
    // @dev Returns the current day from the hex contract.
    function getHexDay() external view returns (uint256){
        uint256 day = hex_token.currentDay();
        return day;
    }

     /**
    * @dev Returns the address of the person who ends stake. May be used by external gas pooling contracts. If stake has not been ended yet will return 0x000...000"
    * @return end_staker_address This person should be honored and celebrated as a hero.
    */
    function getEndStaker() external view returns (address end_staker_address) {return END_STAKER;}

    // Pool Token Issuance and Redemption Functions
    /**
     * @dev Mints Pool Token.
     * @param amount of Pool Tokens to mint, measured in minis
     */
    function mint(uint256 amount) private {
        _mint(msg.sender, amount);
    }
     /**
     * @dev Ensures that Pool Token Minting Phase is ongoing and that the user has allowed the Perpetual Pool Contract address to spend the amount of HEX the user intends to pledge to The Perpetual Pool. Then sends the designated HEX from the user to the Perpetual Pool Contract address and mints 1 Pool Token per HEX pledged.
     * @param amount of HEX user chose to pledge, measured in hearts
     */
    function pledgeHEX(uint256 amount) nonReentrant external {
        require(STAKE_IS_ACTIVE==false, "Minting may only be done if a stake is not active");
        require(hex_token.currentDay()<=RELOAD_PHASE_END, "Minting Phase is Done");
        require(hex_contract.allowance(msg.sender, POOL_ADDRESS)>=amount, "Please approve contract address as allowed spender in the hex contract.");
        address from = msg.sender;
        hex_contract.transferFrom(from, POOL_ADDRESS, amount);
        uint256 mintable_amount = (10**8)*amount/HEX_REDEMPTION_RATE;
        mint(mintable_amount);
    }
     /**
     * @dev Ensures that it is currently a redemption period (before stake starts or after stake ends) and that the user has at least the number of Pool Tokens they entered. Then it calculates how much hex may be redeemed, burns the Pool Token, and transfers them the hex.
     * @param amount number of Pool Tokens that the user is redeeming, measured in mini
     */
    function redeemHEX(uint256 amount) nonReentrant external {
        require(STAKE_IS_ACTIVE==false, "Redemption can not happen while stake is active");
        uint256 your_balance = balanceOf(msg.sender);
        require(your_balance>=amount, "You do not have that much of the Pool Token.");
        uint256 raw_redeemable_amount = amount*HEX_REDEMPTION_RATE;
        uint256 redeemable_amount = raw_redeemable_amount/(10**8); //scaled back down to handle integer rounding
        burn(amount);
        hex_token.transfer(msg.sender, redeemable_amount);
        
    }
    //Staking Functions
    // Anyone may run these functions during the allowed time, so long as they pay the gas.
    // While nothing is forcing you to, gracious Perpetual Pool members will tip the sender some ETH for paying gas to end your stake.

    /**
     * @dev Ensures that the stake has not started yet and that the minting phase is over. Then it stakes all the hex in the contract and schedules the STAKE_END_DAY.
     * @notice This will trigger the start of the HEX stake. If you run this, you will pay the gas on behalf of the contract and you should not expect reimbursement.
     
     */
    function stakeHEX() nonReentrant external {
        require(STAKE_IS_ACTIVE==false, "Stake has already started.");
        uint256 current_day = hex_token.currentDay();
        require(current_day>RELOAD_PHASE_END, "Minting Phase is still ongoing - see RELOAD_PHASE_END day.");
        uint256 amount = hex_contract.balanceOf(address(this));
        _stakeHEX(amount);
        CURRENT_STAKE_PRINCIPAL=amount;
        STAKE_START_DAY=current_day;
        STAKE_END_DAY=current_day+STAKE_LENGTH;
        STAKE_IS_ACTIVE=true;
        CURRENT_PERIOD = CURRENT_PERIOD+1;
    }
    function _stakeHEX(uint256 amount) private  {
        hex_token.stakeStart(amount,STAKE_LENGTH);
        }
    
    function _endStakeHEX(uint256 stakeIndex,uint40 stakeIdParam ) private  {
        hex_token.stakeEnd(stakeIndex, stakeIdParam);
        }
    /**
     * @dev Ensures that the stake is fully complete and that it has not already been ended. Then it ends the hex stake and updates the redemption rate.
     * @notice This will trigger the ending of the HEX stake and calculate the new redemption rate. This may be very expensive. If you run this, you will pay the gas on behalf of the contract and you should not expect reimbursement.
     * @param stakeIndex index of stake found in stakeLists[contract_address] in hex contract.
     * @param stakeIdParam stake identifier found in stakeLists[contract_address] in hex contract.
     */
    function endStakeHEX(uint256 stakeIndex,uint40 stakeIdParam ) nonReentrant external {
        require(hex_token.currentDay()>STAKE_END_DAY, "Stake is not complete yet.");
        require(STAKE_IS_ACTIVE==true, "Stake must be active.");
        _endStakeHEX(stakeIndex, stakeIdParam);
        uint256 hex_balance = hex_contract.balanceOf(address(this));
        uint256 bpb_bonus_sharing_amount = get_bonus_sharing_amount(CURRENT_STAKE_PRINCIPAL, hex_balance,STAKE_LENGTH);
        hex_token.transfer(TEAM_CONTRACT_ADDRESS, bpb_bonus_sharing_amount);
        hedron_token.transfer(TEAM_CONTRACT_ADDRESS,hedron_contract.balanceOf(address(this)));
        uint256 total_supply = IERC20(address(this)).totalSupply();
        HEX_REDEMPTION_RATE  = calculate_redemption_rate(hex_contract.balanceOf(address(this)), total_supply);
        END_STAKER=msg.sender;
        CURRENT_STAKE_PRINCIPAL=0;
        STAKE_IS_ACTIVE=false;
        RELOAD_PHASE_START=hex_token.currentDay();
        RELOAD_PHASE_END=RELOAD_PHASE_START+RELOAD_PHASE_DURATION;
        CURRENT_PERIOD = CURRENT_PERIOD+1;
         
        
    }

    //@dev This calculates the amount of HEX to send to the Maximus TEAM Contract. See HEX Staking Bonuses for Details about BPB and LPB Bonuses
    function get_bonus_sharing_amount(uint256 principal,uint256 end_value, uint256 stake_length) private pure returns(uint256) {
        
        
        uint256 bpb_effective_hex;
        
        uint256 bpb_threshold = 150000000*(10**8);
        if (principal>bpb_threshold) {
            bpb_effective_hex = principal/10;
        }
        else {
            uint256 scaled_bpb_multiplier = (((10**8)*(principal))/(10*bpb_threshold));
            bpb_effective_hex = principal * (scaled_bpb_multiplier)/(10**8);
        }   
        uint256 lpb_effective_hex;
        uint256 scaled_lpb_multiplier;
        uint256 lpb_threshold = 3650;
        if (stake_length>lpb_threshold) {
            scaled_lpb_multiplier = 2*(10**8);
        }
        else {
            scaled_lpb_multiplier = 2*((10**8)*(stake_length))/lpb_threshold;
            
        }   
        lpb_effective_hex = principal * (scaled_lpb_multiplier)/(10**8);
        uint256 scalar = 10**8;
        uint256 earnings = end_value-principal;
        uint256 bpb_makeup_scaled = (scalar * bpb_effective_hex)/(bpb_effective_hex+principal+lpb_effective_hex);
        uint256 bpb_earnings_scaled = earnings *bpb_makeup_scaled;
        uint256 bpb_earnings = bpb_earnings_scaled/scalar;
        return bpb_earnings/2;

    }
    /**
     * @dev Calculates the pro-rata redemption rate of any coin per Pool Token. Scales value by 10^8 to handle integer rounding.
     * @param treasury_balance The balance of coins in contract address (either HEX or HEDRON)
     * @param token_supply total Pool Token supply
     * @return redemption_rate Number of units redeemable per 10^8 decimal units of Pool Tokens. Is scaled back down by 10^8 on redemption transaction.
     */
    function calculate_redemption_rate(uint treasury_balance, uint token_supply) private pure returns (uint redemption_rate) {
        uint256 scalar = 10**8;
        uint256 scaled = (treasury_balance * scalar) / token_supply; // scale value to calculate redemption amount per Pool Token and then divide by same scalar after multiplication
        return scaled;
    }
    
    /**
     * @dev Public function which calls the private function which is used for minting available HDRN accumulated by the contract stake. 
     * @notice This will trigger the minting of the mintable Hedron earned by the stake. If you run this, you will pay the gas on behalf of the contract and you should not expect reimbursement. If check to make sure this has not been run yet already or the transaction will fail.
     * @param stakeIndex index of stake found in stakeLists[contract_address] in hex contract.
     * @param stakeId stake identifier found in stakeLists[contract_address] in hex contract.
     */
  function mintHedron(uint256 stakeIndex,uint40 stakeId ) external  {
      _mintHedron(stakeIndex, stakeId);
        }
   /**
     * @dev Private function used for minting available HDRN accumulated by the contract stake.
     * @param stakeIndex index of stake found in stakeLists[contract_address] in hex contract.
     * @param stakeId stake identifier found in stakeLists[contract_address] in hex contract.
     */
  function _mintHedron(uint256 stakeIndex,uint40 stakeId ) private  {
        hedron_token.mintNative(stakeIndex, stakeId);
        }
}
// File: contracts/Team.sol

//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.2;








/// @title Maximus DAO TEAM Contract
/// @author Dip Catcher @TantoNomini
/// @notice Contract for Minting and Staking TEAM.
/// @dev Deploys Perpetual HEX Stake Pool Contracts, Mystery Box Contract, 369 MAXI Escrow contract, Stake Rewards Claiming Contract. It also governs the minting and staking of TEAM.
contract Team is ERC20, ERC20Burnable, ReentrancyGuard {
/// Initialization
    // Events - used for analysis and offchain UI
    event Mint(
        address indexed minter,
        uint256 amount);
    event Stake(
        address indexed staker,
        uint256 amount, 
        uint256 current_period,
        uint256 stakeID, 
        bool is_initial);
    event ExtendStake(
        address indexed staker,
        uint256 amount, 
        uint256 staking_period, 
        uint256 stakeID);
    event EarlyEndStake(address indexed staker,
        uint256 amount, 
        uint256 staking_period, 
        uint256 stakeID);
    event EndExpiredStake(address indexed staker,
        uint256 amount, 
        uint256 staking_period, 
        uint256 stakeID);
    event RestakeExpiredStake(address indexed staker,
        uint256 amount, 
        uint256 staking_period, 
        uint256 stakeID);
    
    // Global Variables Setup
    address TEAM_ADDRESS = address(this);
    address constant MAXI_ADDRESS = 0x0d86EB9f43C57f6FF3BC9E23D8F9d82503f0e84b;
    address constant HEX_ADDRESS  = 0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39; // "2b, 5 9 1e? that is the question..."
    address constant HEDRON_ADDRESS = 0x3819f64f282bf135d62168C1e513280dAF905e06; 
    
    // Token Interfaces
    IERC20 hex_contract = IERC20(HEX_ADDRESS);  //things like TransferFrom
    IERC20 hedron_contract=IERC20(HEDRON_ADDRESS);
    HEXToken hex_token = HEXToken(HEX_ADDRESS); //things like stakeStart
    HedronToken hedron_token = HedronToken(HEDRON_ADDRESS);
    IERC20 maxi_contract = IERC20(MAXI_ADDRESS);
    MAXIToken maxi_token = MAXIToken(MAXI_ADDRESS);

    // Initialization Variables
    uint256 public MINTING_PHASE_START; // hex day that TEAM Minting Begins
    uint256 public MINTING_PHASE_END; // hex day that TEAM Minting Ends
    bool public IS_MINTING_ONGOING;
    address public ESCROW_ADDRESS; // Contract where the MAXI is held and distributed from
    address public MYSTERY_BOX_ADDRESS;
    address public STAKE_REWARD_DISTRIBUTION_ADDRESS;
    bool HAVE_POOLS_DEPLOYED;
    
    constructor() ERC20("Maximus Team", "TEAM") ReentrancyGuard() {
        IS_MINTING_ONGOING=true;
        uint256 start_day=hex_token.currentDay();
        uint256 mint_duration=21;
        MINTING_PHASE_START = start_day;
        MINTING_PHASE_END = start_day+mint_duration;
        HAVE_POOLS_DEPLOYED = false;
        GLOBAL_AMOUNT_STAKED=0;
        deployPools(); // deploy the perpetual pools
        declareSupportedTokens();  // designate the tokens supported by the staking reward distribution contract.
        deployStakeRewardDistributionContract(); // activate the staking reward distribution contract.
        deployMAXIEscrow();
        deployMysteryBox();
    }
/// Pool Deployment 
    mapping (string =>address) public poolAddresses; // poolAddresses[ticker] = address
    /*
    @notice Deploys the Perpetual Stake Pools.
    */
    function deployPools() private {
        require(HAVE_POOLS_DEPLOYED==false);
        deployPool("Maximus Base", "BASE", 369, 21, 7);
        deployPool("Maximus Trio", "TRIO", 1111, 21, 7);
        deployPool("Maximus Lucky", "LUCKY", 2555, 21, 14);
        deployPool("Maximus Decimus", "DECI", 3696, 21, 14);
        HAVE_POOLS_DEPLOYED=true;
    }  
    /*
    @dev Deploys the Perpetual Pool contract and saves the address to the poolAddresses mapping
    @param name Full contract name
    @param ticker Contract ticker symbol
    @param stake_length length of stake cycle in days
    @param mint_length length of period between stakes
    */
    function deployPool(string memory name, string memory ticker, uint stake_length, uint256 initial_mint_length, uint256 reload_length) private {
        PerpetualPool pool = new PerpetualPool(initial_mint_length, stake_length, reload_length, address(this) ,name,  ticker);
        poolAddresses[ticker] =address(pool);
    }

/// Declaring Supported Tokens
    // Income received by the TEAM Contract in tokens from the below declared supported tokens list are split up and claimable
    mapping (string => address) supportedTokens;
    /*
    @dev Declares which tokens that will be supported by the reward distribution contract.
    */
    function declareSupportedTokens() private {
        supportedTokens["HEX"] = HEX_ADDRESS;
        supportedTokens["MAXI"]=MAXI_ADDRESS;
        supportedTokens["HDRN"]=HEDRON_ADDRESS;
        supportedTokens["BASE"]=poolAddresses["BASE"];
        supportedTokens["TRIO"]=poolAddresses["TRIO"];
        supportedTokens["LUCKY"]=poolAddresses["LUCKY"];
        supportedTokens["DECI"]=poolAddresses["DECI"];
        supportedTokens["TEAM"]=address(this);
        supportedTokens["ICSA"]=0xfc4913214444aF5c715cc9F7b52655e788A569ed;
        
    }
    /*
    @dev Alternative way to get the address of a supported token. If token is not declared via declareSupportedTokens() it will return 0x0000...00000
    @return token_address of supported token.
    */
    function getSupportedTokens(string memory ticker) public view returns(address) {
            return supportedTokens[ticker];
        }
/// Activating Stake Reward Distribution Contract
    /*
    @dev deploys StakeRewardDistribution contract, detailed below. Saves STAKE_REWARD_DISTRIBUTION_CONTRACT which is used to hold and distribute staker rewards.
    */
    function deployStakeRewardDistributionContract() private {
        StakeRewardDistribution srd = new StakeRewardDistribution(address(this));
        STAKE_REWARD_DISTRIBUTION_ADDRESS = address(srd);
    }

    // MINTING
    /**
     * @dev Ensures that TEAM Minting Phase is ongoing and that the user has allowed the Team Contract address to spend the amount of MAXI the user intends to pledge to Maximus Team. 
     ** Then sends the designated MAXI from the user to the Maximus Team Contract address and mints 1 TEAM per MAXI pledged.
     * @param amount of MAXI user chose to mint with, measured in mini (minimum divisible unit of MAXI 10^-8)
     */
    function mintTEAM(uint256 amount) nonReentrant external {
        require(IS_MINTING_ONGOING==true);
        maxi_contract.transferFrom(msg.sender, TEAM_ADDRESS, amount);
        mint(amount);
        emit Mint(msg.sender, amount);
    }

    /**
     * @dev When the minting period ends:
     **   20% of the MAXI is burnt
     **   30% of the MAXI is held in a trustless escrow contract to be redistributed to stakers during designated years
     **   50% goes to the Mystery Box
     ** Deploys the 369 MAXI escrow contract, deploys the mystery box contract, completes the burn, sends the correct amount to the Escrow address and Mystery Box. Also, mints a copy of TEAM into the mystery box. Schedules the 369 MAXI Rebate.
     */
    function finalizeMinting() nonReentrant external {
        require(hex_token.currentDay()>MINTING_PHASE_END);
        require(IS_MINTING_ONGOING==true);
        uint256 total_MAXI = maxi_contract.balanceOf(address(this)); 
        uint256 burn_factor = 20; // 20% of the MAXI used to mint TEAM is burnt.
        uint256 rebate_factor = 30; // 30% of the MAXI used to mint TEAM is redistributed to TEAM stakers during years 3, 6, and 9.
        uint256 mb_factor = 50; // 50% of the MAXI used to mint TEAM is allocated to the Mystery Box.
        maxi_token.burn(burn_factor*total_MAXI/100); // burn 20% of the MAXI in the TEAM contract
        maxi_contract.transfer(ESCROW_ADDRESS, rebate_factor*total_MAXI/100); // transfer 30% of the MAXI to the 369 ESCROW address
        maxi_contract.transfer(MYSTERY_BOX_ADDRESS, mb_factor*total_MAXI/100); // Transfer 50% of the MAXI to the Mystery Box
        uint256 current_TEAM_supply = IERC20(address(this)).totalSupply();
        _mint(MYSTERY_BOX_ADDRESS,current_TEAM_supply+GLOBAL_AMOUNT_STAKED); // mint a copy of all TEAM into the Mystery Box. Include Liquid and Staked TEAM.
        IS_MINTING_ONGOING=false;
        MAXIEscrow(ESCROW_ADDRESS).scheduleRebates();
    }
    

    function deployMAXIEscrow() private {
        MAXIEscrow newEscrow = new MAXIEscrow(address(this), MAXI_ADDRESS);
        ESCROW_ADDRESS = address(newEscrow);
    }

    function deployMysteryBox() private {
        MysteryBox newMB = new MysteryBox(address(this), MAXI_ADDRESS);
        MYSTERY_BOX_ADDRESS = address(newMB);
    } 

/// Staking
    // A StakeRecord is created for each user when they stake into a new period.
    // If a stake record for a user has already been created for a particular period, the existing one will be updated.
    struct StakeRecord {
        address staker; // staker
        uint256 balance; // the remaining balance of the stake.
        uint stakeID; // how a user identifies their stakes. Each period stake increments stakeID.
        uint256 stake_expiry_period; // what period this stake is scheduled to serve through. May be extended to the next staking period during the stake_expiry_period.
        mapping(uint => uint256) stakedTeamPerPeriod; // A record of the number of TEAM that successfully served each staking period during this stake. This number crystallizes as each staking period ends and is used to claim rewards.
        bool initiated;
    }
    uint256 public GLOBAL_AMOUNT_STAKED; // Running total number of TEAM staked by all users. Incremented when any user stakes TEAM and decremented when any user end-stakes TEAM.
    mapping (address=> uint256) public USER_AMOUNT_STAKED;// Running total number of TEAM staked per user. Incremented when user stakes TEAM and decremented when user end-stakes TEAM.
    mapping (uint => uint256) public globalStakedTeamPerPeriod; // A record of the number of TEAM that are successfully staked for each stake period. Value crystallizes in each period as period ends.
    mapping (address =>mapping(uint => StakeRecord)) public stakes; // Mapping of all users stake records.
    
    /*
    @notice stakeTeam(amount) User facing function for staking TEAM. 
    @dev 1) Checks if user balance exceeds input stake amount. 2) Saves stake data via newStakeRecord(). 3) Burns the staked TEAM. 4) Update global and user stake tally.
    @param amount number of TEAM staked, include enough zeros to support 8 decimal units. to stake 1 TEAM, enter amount = 100000000
    */
    function stakeTeam(uint256 amount) external nonReentrant {
        require(amount>0);
        newStakeRecord(amount); // updates the stake record
        burn(amount); //when TEAM is staked, it is burnt and then is reminted when it is unstaked.
        GLOBAL_AMOUNT_STAKED = GLOBAL_AMOUNT_STAKED + amount;
        USER_AMOUNT_STAKED[msg.sender]=USER_AMOUNT_STAKED[msg.sender] + amount;
    }
        /*
        @dev Function that determines which is the next staking period, and creates or updates the users stake record for that period.
        */
        function newStakeRecord(uint256 amount) private {
            uint256 next_staking_period = getNextStakingPeriod(); // the contract period number for each staking period is used as a unique identifier for a stake. 
            StakeRecord storage stake = stakes[msg.sender][next_staking_period]; // retrieves the existing stake record for this upcoming staking period, or render a new one if this is the first time.
            bool is_initial;
            if (stake.initiated==false){ // first time setup. values that should not change if this user stakes again in this period.
                stake.stakeID = next_staking_period;
                stake.initiated = true;
                stake.staker = msg.sender;
                stake.stake_expiry_period = next_staking_period;
                is_initial = true;
            }
            stake.balance = amount + stake.balance;
            stake.stakedTeamPerPeriod[next_staking_period] = amount + stake.stakedTeamPerPeriod[next_staking_period];
            globalStakedTeamPerPeriod[next_staking_period] = amount + globalStakedTeamPerPeriod[next_staking_period];
            emit Stake(msg.sender, amount, getCurrentPeriod(), stake.stakeID, is_initial);
        }
    /*
    @notice earlyEndStakeTeam(stakeID, amount) User facing function for ending a part or all of a stake either before or during its expiry period. A 3.69% penalty is applied to the amount reminted to the user.
    @dev checks that they have this stake, updates the stake record via earlyEndStakeRecord() function, updates the global tallies, calculates the early end stake penalty, and remints back into existance the amount requested minus penalty.
    @param stakeID the ID of the stake the user wants to early end stake
    @param amount number of TEAM early end staked, include enough zeros to support 8 decimal units. to end stake 1 TEAM, enter amount = 100000000
    */
    function earlyEndStakeTeam(uint256 stakeID, uint256 amount) external nonReentrant {
        earlyEndStakeRecord(stakeID, amount); // update the stake record
        uint256 current_potential_penalty_scaled = 369*(10**4)*amount; // scaled up before division 
        uint256 penalty = current_potential_penalty_scaled/(10**8); 
        GLOBAL_AMOUNT_STAKED = GLOBAL_AMOUNT_STAKED - amount;
        USER_AMOUNT_STAKED[msg.sender]=USER_AMOUNT_STAKED[msg.sender] - amount;
        mint(amount-penalty);
    }
         /*
        @dev Determines if stake is pending, or in progress and updates the record to reflect the amount of TEAM that remains actively staked from that particular stake.
        @param stakeID the ID of the stake the user wants to early end stake
        @param amount number of TEAM early end staked, include enough zeros to support 8 decimal units. to end stake 1 TEAM, enter amount = 100000000
        */
        function earlyEndStakeRecord(uint256 stakeID, uint256 amount) private {
            uint256 current_period = getCurrentPeriod();
            uint256 next_staking_period = getNextStakingPeriod();
            StakeRecord storage stake = stakes[msg.sender][stakeID];
            require(stake.initiated==true);
            require(stake.stake_expiry_period>=current_period); // must be before the stake has expired
            require(stake.balance>=amount);
            stake.balance = stake.balance - amount;
            // Decrement staked TEAM from next staking period
            if (stake.stakedTeamPerPeriod[next_staking_period]>0){
                globalStakedTeamPerPeriod[next_staking_period]=globalStakedTeamPerPeriod[next_staking_period]-amount;
                stake.stakedTeamPerPeriod[next_staking_period]=stake.stakedTeamPerPeriod[next_staking_period]-amount;
            }
            // Decrement staked TEAM from current staking period.
            if (stake.stakedTeamPerPeriod[current_period]>0) {
                globalStakedTeamPerPeriod[current_period]=globalStakedTeamPerPeriod[current_period]-amount;
                stake.stakedTeamPerPeriod[current_period]=stake.stakedTeamPerPeriod[current_period]-amount;
            }
            emit EarlyEndStake(msg.sender, amount, stake.stake_expiry_period, stakeID);
        }
    /*
    @notice End a stake which has already served its full staking period. This function updates your stake record and remints your staked TEAM back into your address.
    @param stakeID the ID of the stake the user wants to end stake
    @param amount number of TEAM end staked, include enough zeros to support 8 decimal units. to end stake 1 TEAM, enter amount = 100000000
            
    */
    function endCompletedStake(uint256 stakeID, uint256 amount) external nonReentrant {
        endExpiredStake(stakeID, amount);
        GLOBAL_AMOUNT_STAKED = GLOBAL_AMOUNT_STAKED - amount;
        USER_AMOUNT_STAKED[msg.sender]=USER_AMOUNT_STAKED[msg.sender] - amount;
        mint(amount);
    }
        function endExpiredStake(uint256 stakeID, uint256 amount) private {
            uint256 current_period=getCurrentPeriod();
            StakeRecord storage stake = stakes[msg.sender][stakeID];
            require(stake.stake_expiry_period<current_period);
            require(stake.balance>=amount);
            stake.balance = stake.balance-amount;
            emit EndExpiredStake(msg.sender, amount, stake.stake_expiry_period, stakeID);
        }

    /*
    @notice This function extends a currently active stake into the next staking period. It can only be run during the expiry period of a stake. This extends the entire stake into the next period.
    @param stakeID the ID of the stake the user wants to extend into the next staking period.
*/
        function extendStake(uint256 stakeID) external nonReentrant {
            uint256 current_period=getCurrentPeriod();
            uint256 next_staking_period = getNextStakingPeriod();
            StakeRecord storage stake = stakes[msg.sender][stakeID];
            require(isStakingPeriod());
            require(stake.stake_expiry_period==current_period);
            stake.stake_expiry_period=next_staking_period;
            stake.stakedTeamPerPeriod[next_staking_period] = stake.stakedTeamPerPeriod[next_staking_period] + stake.balance;
            globalStakedTeamPerPeriod[next_staking_period] = globalStakedTeamPerPeriod[next_staking_period] + stake.balance;
            emit ExtendStake(msg.sender, stake.balance, next_staking_period, stakeID);
        }
    /*
    @notice This function ends and restakes a stake which has been completed (if current period is greater than stake expiry period). It ends the stake but does not remint your TEAM, instead it rolls those team into a brand new stake record starting in the next staking period.
    @param stakeID the ID of the stake the user wants to extend into the next staking period.
    */
    function restakeExpiredStake(uint256 stakeID) public nonReentrant {
        uint256 current_period=getCurrentPeriod();
        StakeRecord storage stake = stakes[msg.sender][stakeID];
        require(stake.stake_expiry_period<current_period);
        require(stake.balance > 0);
        newStakeRecord(stake.balance);
        uint256 amount = stake.balance;
        stake.balance = 0;
        emit RestakeExpiredStake(msg.sender, amount, stake.stake_expiry_period, stakeID);
    }
  
/// Rewards Allocation   
    mapping (string => mapping (uint => bool)) didRecordPeriodEndBalance; // didRecordPeriodEndBalance[TICKER][period]
    mapping (string =>mapping (uint => uint256)) periodEndBalance; //periodEndBalance[TICKER][period]
    mapping (string => mapping (uint => uint256)) public periodRedemptionRates; //periodRedemptionRates[TICKER][period] Number of coins claimable per team staked 

    /*
    @notice This function checks to make sure that a staking period just ended, and then measures and saves the TEAM Contracts balance of the designated token.
    @param ticker is the ticker that is to be 
    */ 
    function prepareClaim(string memory ticker) external nonReentrant {
        require(isStakingPeriod()==false);
        uint256 latest_staking_period = getCurrentPeriod()-1;
        require(didRecordPeriodEndBalance[ticker][latest_staking_period]==false);
        periodEndBalance[ticker][latest_staking_period] = IERC20(supportedTokens[ticker]).balanceOf(address(this)); //measures how many of the designated token are in the TEAM contract address
        IERC20(supportedTokens[ticker]).transfer(STAKE_REWARD_DISTRIBUTION_ADDRESS, periodEndBalance[ticker][latest_staking_period]);
        didRecordPeriodEndBalance[ticker][latest_staking_period]=true;
        uint256 scaled_rate = periodEndBalance[ticker][latest_staking_period] *(10**8)/globalStakedTeamPerPeriod[latest_staking_period];
        periodRedemptionRates[ticker][latest_staking_period] = scaled_rate;
    }
    

    function getAddressPeriodEndTotal(address staker_address, uint256 period, uint stakeID) public view returns (uint256) {
        StakeRecord storage stake = stakes[staker_address][stakeID];
        return stake.stakedTeamPerPeriod[period]; 
    }
    function getPeriodRedemptionRates(string memory ticker, uint256 period) public view returns (uint256) {
        return periodRedemptionRates[ticker][period];
    }
    
    function getPoolAddresses(string memory ticker) public view returns (address) {
        return poolAddresses[ticker];
    }


    function getClaimableAmount(address user, uint256 period, string memory ticker, uint stakeID) public view returns (uint256, address) {
        uint256 total_amount_succesfully_staked = getAddressPeriodEndTotal(user, period, stakeID);
        uint256 redeemable_amount = getPeriodRedemptionRates(ticker,period) * total_amount_succesfully_staked / (10**8);
        return (redeemable_amount, getSupportedTokens(ticker));
    }

    
/// Utilities
    /*
    @notice The current period of the TEAM Contract is the current period of the BASE Contract.
    */
    function getCurrentPeriod() public view returns (uint current_period){
        
        return PerpetualPool(poolAddresses["BASE"]).getCurrentPeriod(); 
    }
    
    
    function isStakingPeriod() public view returns (bool) {
        uint remainder = getCurrentPeriod()%2;
        if(remainder==0){
            return false;
        }
        else {
            return true;
        }
    }

    function getNextStakingPeriod() private view returns(uint256) {
        uint256 current_period=getCurrentPeriod();
        uint256 next_staking_period;
        if (isStakingPeriod()==true) {
            next_staking_period = current_period+2;
        }
        else {
            next_staking_period=current_period+1;
        }
        return next_staking_period;
    }
    
    function decimals() public view virtual override returns (uint8) {
        return 8;
	}
    
    // TEAM Issuance and Redemption Functions
    /**
     * @dev Mints TEAM.
     * @param amount of TEAM to mint, measured in meat
     */
    function mint(uint256 amount) private {
        _mint(msg.sender, amount);
    }
}

/// @title Team Stake Reward Distribution Contract
/// @author Dip Catcher @TantoNomini
/// @notice Contract for Collecting and Distributing TEAM staker reward.
contract StakeRewardDistribution is ReentrancyGuard {
    address public TEAM_ADDRESS;
    TEAMToken team_token;
    mapping (string => address) public supportedTokens;
    mapping (address => mapping(uint => mapping(uint => mapping (string => bool)))) public didUserStakeClaimFromPeriod; // log which periods and which tokens a user's stake has claimed rewards from
    constructor(address team_address) ReentrancyGuard(){
      TEAM_ADDRESS=team_address;
      team_token = TEAMToken(TEAM_ADDRESS); 
    }
    /*
    @notice Claim Rewards in the designated ticker for a period served by a stake record designated by stake ID. You can only run this function if you have not already claimed and if you have redeemable rewards for that coin from that period.
    @param period is the period you want to claim rewards from
    @param ticker is the ticker symbol for the token you want to claim
    @param stakeID is the stakeID of the stake record that contains TEAM that was succesfully staked during the period you input.
    */
    function claimRewards(uint256 period, string memory ticker, uint stakeID) nonReentrant external {
        (uint256 redeemable_amount, address token_address) = team_token.getClaimableAmount(msg.sender,period, ticker, stakeID);
        require(didUserStakeClaimFromPeriod[msg.sender][stakeID][period][ticker]==false, "You must not have already claimed from this stake on this period.");
        require(redeemable_amount>0, "No rewards from this period.");
        IERC20(token_address).transfer(msg.sender, redeemable_amount);
        didUserStakeClaimFromPeriod[msg.sender][stakeID][period][ticker]=true;
    }

    function collectSupportedTokenAddress(string memory ticker) private {
        require(supportedTokens[ticker]==address(0));
        supportedTokens[ticker]=team_token.getSupportedTokens(ticker);
    }
    /*
    @notice Run this function to retrieve and save all of the supported token addresses from the TEAM contract into the Stake Reward Distribution contract. This should be run once after the supported tokens are declared in the team contract.
    */
    function prepareSupportedTokens() nonReentrant public {
        collectSupportedTokenAddress("HEX");
        collectSupportedTokenAddress("MAXI");
        collectSupportedTokenAddress("HDRN");
        collectSupportedTokenAddress("BASE");
        collectSupportedTokenAddress("TRIO");
        collectSupportedTokenAddress("LUCKY");
        collectSupportedTokenAddress("DECI");
        collectSupportedTokenAddress("TEAM");
        collectSupportedTokenAddress("ICSA");
    }
}
/// @title 369 MAXI Escrow Contract
/// @author Dip Catcher @TantoNomini
/// @notice Contract for scheduling and releasing the MAXI rebates in years 3,6, and 9 to the TEAM Contract.
contract  MAXIEscrow is ReentrancyGuard{
  mapping (uint => uint256) public rebateSchedule;
  address MAXI_ADDRESS;
  IERC20 maxi_contract; 
  TEAMToken team_token;
  address TEAM_ADDRESS;
  bool IS_SCHEDULED;
  constructor(address team_address, address maxi_address) ReentrancyGuard(){
      TEAM_ADDRESS=team_address;
      MAXI_ADDRESS = maxi_address;
      IS_SCHEDULED=false;
      team_token = TEAMToken(TEAM_ADDRESS);  
      maxi_contract = IERC20(MAXI_ADDRESS);
  }
  /**
     * @dev Schedules the 369 MAXI Rebate by calculating amount of MAXI to send to TEAM during years 3, 6, and 9. 
  **/
  function scheduleRebates() public {
      require(IS_SCHEDULED==false, "Rebates have already been scheduled.");
      require(team_token.getCurrentPeriod()>0, "TEAM minting must be complete in order to schedule rebates.");
      uint256 total_maxi = maxi_contract.balanceOf(address(this)); // total amount of MAXI that is in the escrow contract
      uint256 scalar = 10**8;
      uint256 scaled_rebate_3 = total_maxi * 3 * scalar;
      rebateSchedule[3] = scaled_rebate_3 / (18 * scalar);
      uint256 scaled_rebate_6 = total_maxi * 6 * scalar;
      rebateSchedule[6] = scaled_rebate_6 / (18 * scalar);


      
      uint256 remaining = total_maxi - (rebateSchedule[3]+rebateSchedule[6]);
      rebateSchedule[9] = remaining;
      IS_SCHEDULED=true;
  }
  /**
     * @dev Uses current period to determine if it is year 3, 6, or 9. Then Sends the MAXI to the TEAM contract address.
  **/
  function releaseMAXI() external {
      require(IS_SCHEDULED==true, "Rebates must be scheduled before release.");
      uint256 period=team_token.getCurrentPeriod();
      require((period==5 || period==11 || period==17), "Rebates may only happen in years 3, 6, or 9.");
      uint year = (period+1)/2;
      require(rebateSchedule[year]>0, "Rebate cant be zero.");
      maxi_contract.transfer(TEAM_ADDRESS,rebateSchedule[year]);
      rebateSchedule[year]=0;

  }
}
/// @title Mystery Box
/// @author Dip Catcher @TantoNomini
/// @notice The Mystery Box is and always will be a mystery. You can't possibly have any expectations of profit resulting from the Mystery Box because it is a mystery. how could you expect anything of a mystery? you cant! Please do not run these functions because they are expensive to run and you do not benefit in any way from running them. 
contract MysteryBox is ReentrancyGuard{
    address MAXI_ADDRESS;
    IERC20 maxi_contract;
    IERC20 team_contract;
    address constant public MYSTERY_BOX_HOT_ADDRESS=0x00C055Ee792B5bC9AeB06ced73bB71ce7E5773Ce;
    address TEAM_ADDRESS;
    constructor(address team_address, address maxi_address) ReentrancyGuard() {
        TEAM_ADDRESS=team_address;
        MAXI_ADDRESS = maxi_address;
        
        team_contract = IERC20(TEAM_ADDRESS);
        maxi_contract= IERC20(MAXI_ADDRESS);
    }
    
    /**
     * @dev Sends TEAM to the MYSTERY_BOX_HOT_ADDRESS
     * ALTHOUGH ANYONE CAN RUN THSEE PUBLIC FUNCTIONS YOU ABSOLUTELY SHOULD NOT DO IT BECAUSE IT WILL COST YOU A NON-REFUNDABLE MAXI TRANSFER TO THE MYSTERY BOX HOT ADDRESS.
     * THE CONTENTS OF THE MYSTERY BOX ARE NOT YOURS. 
     * THERE IS OBVIOUSLY NO BENEFIT FOR ANYONE TO RUN THIS.
     * SERIOUSLY DON'T RUN IT, THERE ARE NO REFUNDS SO DO NOT EVEN ASK IF YOU MESS THIS UP - THERE IS NO ONE TO EVEN ASK.
     * IT IS DELIBERATELY DIFFICULT TO RUN TO PREVENT PEOPLE FROM ACCIDENTALLY RUNNING IT.
     * @param amount of MAXI SEND TO THE MYSTERY_BOX_HOT_ADDRESS
     *@param confirmation the message you have to deliberately type and broadcast stating that you know this function costs a non refundable MAXI equal to the amount you are flushing to run.
     */
    function flushTEAM(uint256 amount, string memory confirmation) nonReentrant public {
        require(amount < 1000000*(10**8), "No more than 1M TEAM may be flushed in any one transaction.");
        require(keccak256(bytes(confirmation)) == keccak256(bytes("I UNDERSTAND I WILL NOT GET THIS MAXI BACK")));
        maxi_contract.transferFrom(msg.sender, MYSTERY_BOX_HOT_ADDRESS, amount);
        team_contract.transfer(MYSTERY_BOX_HOT_ADDRESS, amount);
    }

    function flushMAXI(uint256 amount, string memory confirmation) nonReentrant public {
        require(amount < 1000000*(10**8), "No more than 1M MAXI may be flushed in any one transaction.");
        require(keccak256(bytes(confirmation)) == keccak256(bytes("I UNDERSTAND I WILL NOT GET THIS MAXI BACK")));
        maxi_contract.transferFrom(msg.sender, MYSTERY_BOX_HOT_ADDRESS, amount);
        maxi_contract.transfer(MYSTERY_BOX_HOT_ADDRESS, amount);
    }
}

contract MAXIToken {
  function approve(address spender, uint256 amount) external returns (bool) {}
  function transfer(address recipient, uint256 amount) public returns (bool) {}
  function burn(uint256 amount) public {}
  
}
contract TEAMToken {
    function getCurrentPeriod() public view returns (uint) {}
    function getAddressPeriodEndTotal(address staker_address, uint256 period, uint stakeID) public view returns (uint256) {}
    function getSupportedTokens(string memory ticker) public view returns(address) {}
    
    function getClaimableAmount(address user, uint256 period, string memory ticker, uint stakeID) public view returns (uint256, address){}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"staking_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"EarlyEndStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"staking_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"EndExpiredStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"staking_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"ExtendStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"staking_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"RestakeExpiredStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"current_period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeID","type":"uint256"},{"indexed":false,"internalType":"bool","name":"is_initial","type":"bool"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ESCROW_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GLOBAL_AMOUNT_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_MINTING_ONGOING","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTING_PHASE_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTING_PHASE_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MYSTERY_BOX_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKE_REWARD_DISTRIBUTION_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"USER_AMOUNT_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"earlyEndStakeTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"endCompletedStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"extendStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker_address","type":"address"},{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"getAddressPeriodEndTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"string","name":"ticker","type":"string"},{"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPeriod","outputs":[{"internalType":"uint256","name":"current_period","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticker","type":"string"},{"internalType":"uint256","name":"period","type":"uint256"}],"name":"getPeriodRedemptionRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticker","type":"string"}],"name":"getPoolAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticker","type":"string"}],"name":"getSupportedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"globalStakedTeamPerPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isStakingPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTEAM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"periodRedemptionRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"poolAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticker","type":"string"}],"name":"prepareClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeID","type":"uint256"}],"name":"restakeExpiredStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"stakeID","type":"uint256"},{"internalType":"uint256","name":"stake_expiry_period","type":"uint256"},{"internalType":"bool","name":"initiated","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6080604052600680546001600160a01b03199081163017909155600780548216732b591e99afe9f32eaa6214f7b7629768c40eeb39908117909155600880548316733819f64f282bf135d62168c1e513280daf905e06908117909155600980548416909217909155600a805483169091179055600b80548216730d86eb9f43c57f6ff3bc9e23d8f9d82503f0e84b908117909155600c8054909216179055348015620000aa57600080fd5b506040518060400160405280600c81526020016b4d6178696d7573205465616d60a01b815250604051806040016040528060048152602001635445414d60e01b8152508160039081620000fe919062000884565b5060046200010d828262000884565b505060016005819055600f805460ff191690911790555060095460408051635c9302c960e01b815290516000926001600160a01b031691635c9302c99160048083019260209291908290030181865afa1580156200016f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000195919062000950565b600d81905590506015620001aa81836200096a565b600e556011805460ff60a01b191690556000601455620001c9620001f9565b620001d36200038f565b620001dd620005b2565b620001e762000614565b620001f162000698565b505062000a5a565b601154600160a01b900460ff16156200021157600080fd5b6200026a6040518060400160405280600c81526020016b4d6178696d7573204261736560a01b815250604051806040016040528060048152602001634241534560e01b815250610171601560076200071660201b60201c565b620002c36040518060400160405280600c81526020016b4d6178696d7573205472696f60a01b815250604051806040016040528060048152602001635452494f60e01b815250610457601560076200071660201b60201c565b6200031e6040518060400160405280600d81526020016c4d6178696d7573204c75636b7960981b815250604051806040016040528060058152602001644c55434b5960d81b8152506109fb6015600e6200071660201b60201c565b6200037a6040518060400160405280600f81526020016e4d6178696d757320446563696d757360881b815250604051806040016040528060048152602001634445434960e01b815250610e706015600e6200071660201b60201c565b6011805460ff60a01b1916600160a01b179055565b732b591e99afe9f32eaa6214f7b7629768c40eeb396013604051620003bd90620908ab60eb1b815260030190565b9081526040805191829003602001822080546001600160a01b039485166001600160a01b031991821617909155634d41584960e01b835260136004808501829052835194859003602490810186208054730d86eb9f43c57f6ff3bc9e23d8f9d82503f0e84b908616179055632422292760e11b8652858201839052845195869003810186208054733819f64f282bf135d62168c1e513280daf905e06908616179055634241534560e01b808752601287840181905286519788900383018820549188528784018590528651978890038301882080548716928a1692909217909155635452494f60e01b8088528784018290528651978890038301882054908852878401859052865197889003830188208054918a16918716919091179055644c55434b5960d81b808852600580890183905287519889900360259081018a2054928a529089018690528751988990030188208054918a16918716919091179055634445434960e01b80885287840191909152855196879003820187205490875286830184905285519687900382018720805486169190981617909655635445414d60e01b8552848101829052835194859003860185208054841630179055634943534160e01b85528401529051918290039092019020805490911673fc4913214444af5c715cc9f7b52655e788a569ed179055565b600030604051620005c390620007a7565b6001600160a01b039091168152602001604051809103906000f080158015620005f0573d6000803e3d6000fd5b50601180546001600160a01b0319166001600160a01b039290921691909117905550565b600030730d86eb9f43c57f6ff3bc9e23d8f9d82503f0e84b6040516200063a90620007b5565b6001600160a01b03928316815291166020820152604001604051809103906000f0801580156200066e573d6000803e3d6000fd5b50600f80546001600160a01b0390921661010002610100600160a81b031990921691909117905550565b600030730d86eb9f43c57f6ff3bc9e23d8f9d82503f0e84b604051620006be90620007c3565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015620006f2573d6000803e3d6000fd5b50601080546001600160a01b0319166001600160a01b039290921691909117905550565b60008284833089896040516200072c90620007d1565b6200073d96959493929190620009e6565b604051809103906000f0801580156200075a573d6000803e3d6000fd5b5090508060128660405162000770919062000a3c565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055505050505050565b610a468062002e8b83390190565b6107fa80620038d183390190565b6106e280620040cb83390190565b6122d080620047ad83390190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200080a57607f821691505b6020821081036200082b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200087f57600081815260208120601f850160051c810160208610156200085a5750805b601f850160051c820191505b818110156200087b5782815560010162000866565b5050505b505050565b81516001600160401b03811115620008a057620008a0620007df565b620008b881620008b18454620007f5565b8462000831565b602080601f831160018114620008f05760008415620008d75750858301515b600019600386901b1c1916600185901b1785556200087b565b600085815260208120601f198616915b82811015620009215788860151825594840194600190910190840162000900565b5085821015620009405787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200096357600080fd5b5051919050565b808201808211156200098c57634e487b7160e01b600052601160045260246000fd5b92915050565b60005b83811015620009af57818101518382015260200162000995565b50506000910152565b60008151808452620009d281602086016020860162000992565b601f01601f19169290920160200192915050565b86815285602082015284604082015260018060a01b038416606082015260c06080820152600062000a1b60c0830185620009b8565b82810360a084015262000a2f8185620009b8565b9998505050505050505050565b6000825162000a5081846020870162000992565b9190910192915050565b6124218062000a6a6000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80636b406b6d1161013b578063858b4e02116100b8578063a2c25dc31161007c578063a2c25dc314610608578063a457c2d71461061b578063a9059cbb1461062e578063dd62ed3e14610641578063f20a25b21461067a57600080fd5b8063858b4e02146105ce57806391a9634b146105e157806395d89b41146105ee5780639a0dfcf3146105f65780639d763964146105ff57600080fd5b80637e0e00cf116100ff5780637e0e00cf146105535780637e49627d1461059757806380ba40d1146105aa57806380ff3473146105b3578063813f4db4146105c657600080fd5b80636b406b6d146104de57806370a08231146104f157806370f283b11461051a57806379cc67901461052d5780637d6039a61461054057600080fd5b8063313ce567116101c957806344e6f28b1161018d57806344e6f28b146103e757806353b7980b146103fa578063584b62a1146104125780636065f9d61461049b57806369c966a3146104ae57600080fd5b8063313ce5671461037f57806331f909f81461038e57806339509351146103a15780633df97da0146103b457806342966c68146103d457600080fd5b80630de18bc6116102105780630de18bc6146102fb57806318160ddd1461034757806323b872dd1461034f5780632968115a146103625780632c1c86d01461037557600080fd5b8063019cca4b1461024d57806306fdde0314610280578063086146d214610295578063095ea7b31461029d5780630d4d77f4146102c0575b600080fd5b61026d61025b366004611f8d565b60156020526000908152604090205481565b6040519081526020015b60405180910390f35b61028861068d565b6040516102779190611fcc565b61026d61071f565b6102b06102ab366004611fff565b6107b2565b6040519015158152602001610277565b61026d6102ce3660046120cc565b8151602081840181018051601a825292820194820194909420919093529091526000908152604090205481565b61032f610309366004612111565b80516020818301810180516012825292820191909301209152546001600160a01b031681565b6040516001600160a01b039091168152602001610277565b60025461026d565b6102b061035d36600461214e565b6107c9565b60105461032f906001600160a01b031681565b61037d610878565b005b60405160088152602001610277565b61037d61039c36600461218a565b610c64565b6102b06103af366004611fff565b610d65565b61026d6103c236600461218a565b60166020526000908152604090205481565b61037d6103e236600461218a565b610da1565b61032f6103f5366004612111565b610dae565b600f5461032f9061010090046001600160a01b031681565b610467610420366004611fff565b6017602090815260009283526040808420909152908252902080546001820154600283015460038401546005909401546001600160a01b0390931693919290919060ff1685565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a001610277565b61037d6104a93660046121a3565b610ddf565b6104c16104bc3660046121c5565b610e5e565b604080519283526001600160a01b03909116602083015201610277565b60115461032f906001600160a01b031681565b61026d6104ff366004611f8d565b6001600160a01b031660009081526020819052604090205490565b61037d610528366004612111565b610ed0565b61037d61053b366004611fff565b6111a0565b61032f61054e366004612111565b611226565b61026d610561366004612224565b6001600160a01b038316600090815260176020908152604080832084845282528083208584526004019091529020549392505050565b61037d6105a536600461218a565b611238565b61026d600d5481565b61037d6105c136600461218a565b61136f565b6102b061143c565b61037d6105dc36600461218a565b61146d565b600f546102b09060ff1681565b6102886114f4565b61026d60145481565b61026d600e5481565b61037d6106163660046121a3565b611503565b6102b0610629366004611fff565b6115b0565b6102b061063c366004611fff565b611649565b61026d61064f366004612257565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61026d6106883660046120cc565b611656565b60606003805461069c9061228a565b80601f01602080910402602001604051908101604052809291908181526020018280546106c89061228a565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b5050505050905090565b6000601260405161073a90634241534560e01b815260040190565b908152604080516020928190038301812054630430a36960e11b825291516001600160a01b039092169263086146d2926004808401938290030181865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906122c4565b905090565b60006107bf338484611690565b5060015b92915050565b60006107d68484846117b4565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108605760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61086d8533858403611690565b506001949350505050565b60026005540361089a5760405162461bcd60e51b8152600401610857906122dd565b6002600555600e5460095460408051635c9302c960e01b815290516001600160a01b0390921691635c9302c9916004808201926020929091908290030181865afa1580156108ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091091906122c4565b1161091a57600080fd5b600f5460ff16151560011461092e57600080fd5b600b546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099b91906122c4565b600c54909150601490601e906032906001600160a01b03166342966c6860646109c4878761232a565b6109ce919061235f565b6040518263ffffffff1660e01b81526004016109ec91815260200190565b600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b5050600b54600f546001600160a01b03918216935063a9059cbb92506101009004166064610a48888761232a565b610a52919061235f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac19190612373565b50600b546010546001600160a01b039182169163a9059cbb91166064610ae7888661232a565b610af1919061235f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610b3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b609190612373565b506000306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc591906122c4565b601054601454919250610bed916001600160a01b0390911690610be89084612395565b611983565b600f805460ff191690819055604080516333dce38360e21b815290516101009092046001600160a01b03169163cf738e0c9160048082019260009290919082900301818387803b158015610c4057600080fd5b505af1158015610c54573d6000803e3d6000fd5b5050600160055550505050505050565b600260055403610c865760405162461bcd60e51b8152600401610857906122dd565b6002600555600f5460ff161515600114610c9f57600080fd5b600b546006546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018490529116906323b872dd906064016020604051808303816000875af1158015610cfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e9190612373565b50610d2881611a62565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2506001600555565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107bf918590610d9c908690612395565b611690565b610dab3382611a6c565b50565b6000601382604051610dc091906123a8565b908152604051908190036020019020546001600160a01b031692915050565b600260055403610e015760405162461bcd60e51b8152600401610857906122dd565b6002600555610e108282611bba565b80601454610e1e91906123c4565b60145533600090815260156020526040902054610e3c9082906123c4565b33600090815260156020526040902055610e5581611a62565b50506001600555565b6001600160a01b03841660009081526017602090815260408083208484528252808320868452600401909152812054819060006305f5e10082610ea1888a611656565b610eab919061232a565b610eb5919061235f565b905080610ec187610dae565b93509350505094509492505050565b600260055403610ef25760405162461bcd60e51b8152600401610857906122dd565b6002600555610eff61143c565b15610f0957600080fd5b60006001610f1561071f565b610f1f91906123c4565b9050601882604051610f3191906123a8565b90815260408051602092819003830190206000848152925290205460ff1615610f5957600080fd5b601382604051610f6991906123a8565b908152604051908190036020018120546370a0823160e01b82523060048301526001600160a01b0316906370a0823190602401602060405180830381865afa158015610fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdd91906122c4565b601983604051610fed91906123a8565b9081526040805191829003602090810183206000868152915220919091556013906110199084906123a8565b908152604051908190036020018120546011546001600160a01b039182169263a9059cbb9291909116906019906110519087906123a8565b90815260408051602092819003830181206000888152935291205460e084901b6001600160e01b03191682526001600160a01b03909216600482015260248101919091526044016020604051808303816000875af11580156110b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110db9190612373565b5060016018836040516110ee91906123a8565b90815260408051602092819003830181206000868152908452828120805460ff1916951515959095179094556016909252822054906019906111319086906123a8565b90815260408051602092819003830190206000868152925290205461115a906305f5e10061232a565b611164919061235f565b905080601a8460405161117791906123a8565b908152604080516020928190038301902060009586529091529092209190915550506001600555565b60006111ac833361064f565b90508181101561120a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610857565b6112178333848403611690565b6112218383611a6c565b505050565b6000601282604051610dc091906123a8565b60026005540361125a5760405162461bcd60e51b8152600401610857906122dd565b6002600555600061126961071f565b90506000611275611c67565b336000908152601760209081526040808320878452909152902090915061129a61143c565b6112a357600080fd5b828160030154146112b357600080fd5b60038101829055600181015460008381526004830160205260409020546112da9190612395565b600083815260048301602090815260408083209390935560018401546016909152919020546113099190612395565b6000838152601660209081526040918290209290925560018301548151908152918201849052810185905233907fa8066869490ef421f05bad45cd697329771b6cf22e60b0fbfebc1f6dbee85679906060015b60405180910390a2505060016005555050565b6002600554036113915760405162461bcd60e51b8152600401610857906122dd565b600260055560006113a061071f565b336000908152601760209081526040808320868452909152902060038101549192509082116113ce57600080fd5b60008160010154116113df57600080fd5b6113ec8160010154611cab565b60018101805460009091556003820154604080518381526020810192909252810185905233907f6c6afda2278fafa8f9f636cdf4af81f3ffc6ff41d12bea3b731cf924126fdcfa9060600161135c565b600080600261144961071f565b61145391906123d7565b90508060000361146557600091505090565b600191505090565b60026005540361148f5760405162461bcd60e51b8152600401610857906122dd565b60026005558061149e57600080fd5b6114a781611cab565b6114b081610da1565b806014546114be9190612395565b601455336000908152601560205260409020546114dc908290612395565b33600090815260156020526040902055506001600555565b60606004805461069c9061228a565b6002600554036115255760405162461bcd60e51b8152600401610857906122dd565b60026005556115348282611dcd565b60006115438262384e1061232a565b905060006115556305f5e1008361235f565b90508260145461156591906123c4565b601455336000908152601560205260409020546115839084906123c4565b336000908152601560205260409020556115a56115a082856123c4565b611a62565b505060016005555050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156116325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610857565b61163f3385858403611690565b5060019392505050565b60006107bf3384846117b4565b6000601a8360405161166891906123a8565b9081526020016040518091039020600083815260200190815260200160002054905092915050565b6001600160a01b0383166116f25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610857565b6001600160a01b0382166117535760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610857565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610857565b6001600160a01b03821661187a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610857565b6001600160a01b038316600090815260208190526040902054818110156118f25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610857565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611929908490612395565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161197591815260200190565b60405180910390a350505050565b6001600160a01b0382166119d95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610857565b80600260008282546119eb9190612395565b90915550506001600160a01b03821660009081526020819052604081208054839290611a18908490612395565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b610dab3382611983565b6001600160a01b038216611acc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610857565b6001600160a01b03821660009081526020819052604090205481811015611b405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610857565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b6f9084906123c4565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611bc461071f565b33600090815260176020908152604080832087845290915290206003810154919250908211611bf257600080fd5b8281600101541015611c0357600080fd5b828160010154611c1391906123c4565b60018201556003810154604080518581526020810192909252810185905233907f7fca7f23e28ab4ea8ec17e674c7e959ed9737ce4930613fb69d59b09b1c78b73906060015b60405180910390a250505050565b600080611c7261071f565b90506000611c7e61143c565b1515600103611c9957611c92826002612395565b90506107c3565b611ca4826001612395565b9392505050565b6000611cb5611c67565b336000908152601760209081526040808320848452909152812060058101549293509160ff1615158103611d1557506002810182905560058101805460ff1916600190811790915581546001600160a01b03191633178255600382018390555b6001820154611d249085612395565b60018301556000838152600483016020526040902054611d449085612395565b6000848152600484016020908152604080832093909355601690522054611d6b9085612395565b600084815260166020526040902055337f9427353240d93cb4f15e429717c3e4e45b6f499959900935e731d6c0d2f1101485611da561071f565b6002860154604080519384526020840192909252908201528315156060820152608001611c59565b6000611dd761071f565b90506000611de3611c67565b336000908152601760209081526040808320888452909152902060058101549192509060ff161515600114611e1757600080fd5b8281600301541015611e2857600080fd5b8381600101541015611e3957600080fd5b838160010154611e4991906123c4565b6001820155600082815260048201602052604090205415611eb857600082815260166020526040902054611e7e9085906123c4565b6000838152601660209081526040808320939093556004840190522054611ea69085906123c4565b60008381526004830160205260409020555b600083815260048201602052604090205415611f2257600083815260166020526040902054611ee89085906123c4565b6000848152601660209081526040808320939093556004840190522054611f109085906123c4565b60008481526004830160205260409020555b6003810154604080518681526020810192909252810186905233907fd024fb5309d60d56df8339015fd653666f4e9f5eec9985b62bdeb4c38be456239060600160405180910390a25050505050565b80356001600160a01b0381168114611f8857600080fd5b919050565b600060208284031215611f9f57600080fd5b611ca482611f71565b60005b83811015611fc3578181015183820152602001611fab565b50506000910152565b6020815260008251806020840152611feb816040850160208701611fa8565b601f01601f19169190910160400192915050565b6000806040838503121561201257600080fd5b61201b83611f71565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261205057600080fd5b813567ffffffffffffffff8082111561206b5761206b612029565b604051601f8301601f19908116603f0116810190828211818310171561209357612093612029565b816040528381528660208588010111156120ac57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156120df57600080fd5b823567ffffffffffffffff8111156120f657600080fd5b6121028582860161203f565b95602094909401359450505050565b60006020828403121561212357600080fd5b813567ffffffffffffffff81111561213a57600080fd5b6121468482850161203f565b949350505050565b60008060006060848603121561216357600080fd5b61216c84611f71565b925061217a60208501611f71565b9150604084013590509250925092565b60006020828403121561219c57600080fd5b5035919050565b600080604083850312156121b657600080fd5b50508035926020909101359150565b600080600080608085870312156121db57600080fd5b6121e485611f71565b935060208501359250604085013567ffffffffffffffff81111561220757600080fd5b6122138782880161203f565b949793965093946060013593505050565b60008060006060848603121561223957600080fd5b61224284611f71565b95602085013595506040909401359392505050565b6000806040838503121561226a57600080fd5b61227383611f71565b915061228160208401611f71565b90509250929050565b600181811c9082168061229e57607f821691505b6020821081036122be57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156122d657600080fd5b5051919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561234457612344612314565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261236e5761236e612349565b500490565b60006020828403121561238557600080fd5b81518015158114611ca457600080fd5b808201808211156107c3576107c3612314565b600082516123ba818460208701611fa8565b9190910192915050565b818103818111156107c3576107c3612314565b6000826123e6576123e6612349565b50069056fea26469706673582212200bee58f7fedaf6f2cb5f0e384d92f5646e1637dba480edf57107929d8a52a21964736f6c63430008100033608060405234801561001057600080fd5b50604051610a46380380610a4683398101604081905261002f91610063565b6001600081905580546001600160a01b039092166001600160a01b0319928316811790915560028054909216179055610093565b60006020828403121561007557600080fd5b81516001600160a01b038116811461008c57600080fd5b9392505050565b6109a4806100a26000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063351509a81461005c57806389919cdd1461008c578063a1e9f285146100c0578063c49c1270146100ca578063f1d927d41461012a575b600080fd5b60015461006f906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61006f61009a366004610739565b80516020818301810180516003825292820191909301209152546001600160a01b031681565b6100c861013d565b005b61011a6100d836600461078e565b60046020908152600094855260408086208252938552838520815291845291909220815180830184018051928152908401929093019190912091525460ff1681565b6040519015158152602001610083565b6100c86101383660046107f1565b6102ec565b6002600054036101945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60026000556040805180820190915260038152620908ab60eb1b60208201526101bc906105a5565b6101e1604051806040016040528060048152602001634d41584960e01b8152506105a5565b610206604051806040016040528060048152602001632422292760e11b8152506105a5565b61022b604051806040016040528060048152602001634241534560e01b8152506105a5565b610250604051806040016040528060048152602001635452494f60e01b8152506105a5565b610276604051806040016040528060058152602001644c55434b5960d81b8152506105a5565b61029b604051806040016040528060048152602001634445434960e01b8152506105a5565b6102c0604051806040016040528060048152602001635445414d60e01b8152506105a5565b6102e5604051806040016040528060048152602001634943534160e01b8152506105a5565b6001600055565b60026000540361033e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161018b565b6002600081815590546040516369c966a360e01b815282916001600160a01b0316906369c966a39061037a903390899089908990600401610891565b6040805180830381865afa158015610396573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ba91906108c9565b33600090815260046020908152604080832088845282528083208a8452909152908190209051929450909250906103f29086906108f9565b9081526040519081900360200190205460ff16156104825760405162461bcd60e51b815260206004820152604160248201527f596f75206d757374206e6f74206861766520616c726561647920636c61696d6560448201527f642066726f6d2074686973207374616b65206f6e207468697320706572696f646064820152601760f91b608482015260a40161018b565b600082116104d25760405162461bcd60e51b815260206004820152601c60248201527f4e6f20726577617264732066726f6d207468697320706572696f642e00000000604482015260640161018b565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b0382169063a9059cbb906044016020604051808303816000875af115801561051f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105439190610915565b503360009081526004602090815260408083208684528252808320888452909152908190209051600191906105799087906108f9565b908152604051908190036020019020805491151560ff1990921691909117905550506001600055505050565b60006001600160a01b03166003826040516105c091906108f9565b908152604051908190036020019020546001600160a01b0316146105e357600080fd5b6002546040516344e6f28b60e01b81526001600160a01b03909116906344e6f28b9061061390849060040161093e565b602060405180830381865afa158015610630573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106549190610951565b60038260405161066491906108f9565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b031990921691909117905550565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126106bd57600080fd5b813567ffffffffffffffff808211156106d8576106d8610696565b604051601f8301601f19908116603f0116810190828211818310171561070057610700610696565b8160405283815286602085880101111561071957600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561074b57600080fd5b813567ffffffffffffffff81111561076257600080fd5b61076e848285016106ac565b949350505050565b6001600160a01b038116811461078b57600080fd5b50565b600080600080608085870312156107a457600080fd5b84356107af81610776565b93506020850135925060408501359150606085013567ffffffffffffffff8111156107d957600080fd5b6107e5878288016106ac565b91505092959194509250565b60008060006060848603121561080657600080fd5b83359250602084013567ffffffffffffffff81111561082457600080fd5b610830868287016106ac565b925050604084013590509250925092565b60005b8381101561085c578181015183820152602001610844565b50506000910152565b6000815180845261087d816020860160208601610841565b601f01601f19169290920160200192915050565b60018060a01b03851681528360208201526080604082015260006108b86080830185610865565b905082606083015295945050505050565b600080604083850312156108dc57600080fd5b8251915060208301516108ee81610776565b809150509250929050565b6000825161090b818460208701610841565b9190910192915050565b60006020828403121561092757600080fd5b8151801515811461093757600080fd5b9392505050565b6020815260006109376020830184610865565b60006020828403121561096357600080fd5b81516109378161077656fea26469706673582212202980422537226f38558803621ad093b5a75822e43c95d23ed5d19e13d9c9277664736f6c63430008100033608060405234801561001057600080fd5b506040516107fa3803806107fa83398101604081905261002f916100a4565b600160005560058054600280546001600160a01b03199081166001600160a01b03958616908117909255949093166001600160a81b031990911681179091556004805484169091179055600380549092161790556100d7565b80516001600160a01b038116811461009f57600080fd5b919050565b600080604083850312156100b757600080fd5b6100c083610088565b91506100ce60208401610088565b90509250929050565b610714806100e66000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806357b0e7df1461004657806379f0487d14610078578063cf738e0c14610082575b600080fd5b610066610054366004610600565b60016020526000908152604090205481565b60405190815260200160405180910390f35b61008061008a565b005b610080610300565b600554600160a01b900460ff1615156001146100ff5760405162461bcd60e51b815260206004820152602960248201527f52656261746573206d757374206265207363686564756c6564206265666f7265604482015268103932b632b0b9b29760b91b60648201526084015b60405180910390fd5b6000600460009054906101000a90046001600160a01b03166001600160a01b031663086146d26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610154573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101789190610619565b90508060051480610189575080600b145b806101945750806011145b6101f55760405162461bcd60e51b815260206004820152602c60248201527f52656261746573206d6179206f6e6c792068617070656e20696e20796561727360448201526b101996101b161037b9101c9760a11b60648201526084016100f6565b60006002610204836001610648565b61020e9190610661565b6000818152600160205260409020549091506102635760405162461bcd60e51b81526020600482015260146024820152732932b130ba329031b0b73a103132903d32b9379760611b60448201526064016100f6565b6003546005546000838152600160205260409081902054905163a9059cbb60e01b81526001600160a01b039283166004820152602481019190915291169063a9059cbb906044016020604051808303816000875af11580156102c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ed9190610683565b5060009081526001602052604081205550565b600554600160a01b900460ff16156103665760405162461bcd60e51b8152602060048201526024808201527f52656261746573206861766520616c7265616479206265656e207363686564756044820152633632b21760e11b60648201526084016100f6565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663086146d26040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103df9190610619565b116104525760405162461bcd60e51b815260206004820152603b60248201527f5445414d206d696e74696e67206d75737420626520636f6d706c65746520696e60448201527f206f7264657220746f207363686564756c6520726562617465732e000000000060648201526084016100f6565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561049b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bf9190610619565b90506305f5e1006000816104d48460036106ac565b6104de91906106ac565b90506104eb8260126106ac565b6104f59082610661565b6003600090815260016020527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60b91909155826105328560066106ac565b61053c91906106ac565b90506105498360126106ac565b6105539082610661565b60016020527f8f331abe73332f95a25873e8b430885974c0409691f89d643119a11623a7924a819055600360009081527f7dfe757ecd65cbd7922a9c0161e935dd7fdbcc0e999689c7d31633896b1fc60b5490916105b091610648565b6105ba90866106cb565b600960005260016020527f74a5fbcb419ab7dbacbb2c92a4e163730f0da5c72b911deecf4f05a6b327d0a45550506005805460ff60a01b1916600160a01b179055505050565b60006020828403121561061257600080fd5b5035919050565b60006020828403121561062b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561065b5761065b610632565b92915050565b60008261067e57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561069557600080fd5b815180151581146106a557600080fd5b9392505050565b60008160001904831182151516156106c6576106c6610632565b500290565b8181038181111561065b5761065b61063256fea264697066735822122051cad0869c35471f7225a7eada5322d96cbfd2b3fda67243e145dc4f9c88bf8e64736f6c63430008100033608060405234801561001057600080fd5b506040516106e23803806106e283398101604081905261002f9161009a565b60016000819055600480546001600160a01b039485166001600160a01b0319918216811790925582549390941692841683179091556003805484169091179055600280549092161790556100cd565b80516001600160a01b038116811461009557600080fd5b919050565b600080604083850312156100ad57600080fd5b6100b68361007e565b91506100c46020840161007e565b90509250929050565b610606806100dc6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301b32bfe146100465780634cab13021461007c5780634ed89de814610091575b600080fd5b61006072c055ee792b5bc9aeb06ced73bb71ce7e5773ce81565b6040516001600160a01b03909116815260200160405180910390f35b61008f61008a3660046104c2565b6100a4565b005b61008f61009f3660046104c2565b6102cf565b6002600054036100fb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600055655af3107a4000821061017b5760405162461bcd60e51b815260206004820152603b60248201527f4e6f206d6f7265207468616e20314d205445414d206d617920626520666c757360448201527f68656420696e20616e79206f6e65207472616e73616374696f6e2e000000000060648201526084016100f2565b6040518060600160405280602a81526020016105a7602a9139805190602001208180519060200120146101ad57600080fd5b6002546040516323b872dd60e01b815233600482015272c055ee792b5bc9aeb06ced73bb71ce7e5773ce6024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023b919061057d565b5060035460405163a9059cbb60e01b815272c055ee792b5bc9aeb06ced73bb71ce7e5773ce6004820152602481018490526001600160a01b039091169063a9059cbb906044015b6020604051808303816000875af11580156102a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c5919061057d565b5050600160005550565b6002600054036103215760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016100f2565b6002600055655af3107a400082106103a15760405162461bcd60e51b815260206004820152603b60248201527f4e6f206d6f7265207468616e20314d204d415849206d617920626520666c757360448201527f68656420696e20616e79206f6e65207472616e73616374696f6e2e000000000060648201526084016100f2565b6040518060600160405280602a81526020016105a7602a9139805190602001208180519060200120146103d357600080fd5b6002546040516323b872dd60e01b815233600482015272c055ee792b5bc9aeb06ced73bb71ce7e5773ce6024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561043d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610461919061057d565b5060025460405163a9059cbb60e01b815272c055ee792b5bc9aeb06ced73bb71ce7e5773ce6004820152602481018490526001600160a01b039091169063a9059cbb90604401610282565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156104d557600080fd5b82359150602083013567ffffffffffffffff808211156104f457600080fd5b818501915085601f83011261050857600080fd5b81358181111561051a5761051a6104ac565b604051601f8201601f19908116603f01168101908382118183101715610542576105426104ac565b8160405282815288602084870101111561055b57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60006020828403121561058f57600080fd5b8151801515811461059f57600080fd5b939250505056fe4920554e4445525354414e4420492057494c4c204e4f54204745542054484953204d415849204241434ba2646970667358221220b4e46a692fd76d16f7e8aad21fb9a4962ec2eb58544fb0367ca5df84f1aceafb64736f6c634300081000336080604052601180546001600160a01b03199081163017909155601280548216732b591e99afe9f32eaa6214f7b7629768c40eeb39908117909155601380548316733819f64f282bf135d62168c1e513280daf905e06908117909155601480548416909217909155601580549092161790553480156200007e57600080fd5b50604051620022d0380380620022d0833981016040819052620000a19162000265565b81816003620000b183826200039c565b506004620000c082826200039c565b5050600160055550600684905560145460408051635c9302c960e01b815290516000926001600160a01b031691635c9302c99160048083019260209291908290030181865afa15801562000118573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013e919062000468565b6007819055905062000151878262000482565b600855505050600b9290925550600d805460ff19169055600e80546001600160a01b0319166001600160a01b03909216919091179055506305f5e100600c556000600f819055601055620004aa565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001c857600080fd5b81516001600160401b0380821115620001e557620001e5620001a0565b604051601f8301601f19908116603f01168101908282118183101715620002105762000210620001a0565b816040528381526020925086838588010111156200022d57600080fd5b600091505b8382101562000251578582018301518183018401529082019062000232565b600093810190920192909252949350505050565b60008060008060008060c087890312156200027f57600080fd5b86516020880151604089015160608a015192985090965094506001600160a01b0381168114620002ae57600080fd5b60808801519093506001600160401b0380821115620002cc57600080fd5b620002da8a838b01620001b6565b935060a0890151915080821115620002f157600080fd5b506200030089828a01620001b6565b9150509295509295509295565b600181811c908216806200032257607f821691505b6020821081036200034357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039757600081815260208120601f850160051c81016020861015620003725750805b601f850160051c820191505b8181101562000393578281556001016200037e565b5050505b505050565b81516001600160401b03811115620003b857620003b8620001a0565b620003d081620003c984546200030d565b8462000349565b602080601f831160018114620004085760008415620003ef5750858301515b600019600386901b1c1916600185901b17855562000393565b600085815260208120601f198616915b82811015620004395788860151825594840194600190910190840162000418565b5085821015620004585787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200047b57600080fd5b5051919050565b80820180821115620004a457634e487b7160e01b600052601160045260246000fd5b92915050565b611e1680620004ba6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636a63ef6e1161011a578063a9059cbb116100ad578063ba777bcc1161007c578063ba777bcc146103f1578063ccaa408f146103f9578063dd62ed3e14610402578063e7644fb91461043b578063fecf706e1461044e57600080fd5b8063a9059cbb146103bf578063b2d2997a146103d2578063b4a2bc0e146103db578063b7241ba5146103e457600080fd5b80638d2fe35d116100e95780638d2fe35d146103795780638dff901b1461038c57806395d89b41146103a4578063a457c2d7146103ac57600080fd5b80636a63ef6e1461032157806370a082311461032a57806379cc6790146103535780638412d89b1461036657600080fd5b806323b872dd1161019257806342966c681161016157806342966c68146102dd5780634537523c146102f25780634953a509146103055780634e67581e1461031857600080fd5b806323b872dd1461029f578063313ce567146102b257806339509351146102c15780633d720dda146102d457600080fd5b806318160ddd116101ce57806318160ddd1461027d57806318edf0dd146102855780631d92803d1461028d5780631fa0bb3d1461029657600080fd5b806306fdde0314610200578063086146d21461021e578063095ea7b3146102305780630a19d93314610253575b600080fd5b610208610457565b6040516102159190611b3f565b60405180910390f35b6010545b604051908152602001610215565b61024361023e366004611ba9565b6104e9565b6040519015158152602001610215565b600d5461010090046001600160a01b03165b6040516001600160a01b039091168152602001610215565b600254610222565b610222610500565b61022260085481565b61022260105481565b6102436102ad366004611bd3565b61057a565b60405160088152602001610215565b6102436102cf366004611ba9565b610629565b610222600a5481565b6102f06102eb366004611c0f565b610665565b005b6102f0610300366004611c0f565b610672565b6102f0610313366004611c28565b61097c565b61022260065481565b610222600c5481565b610222610338366004611c62565b6001600160a01b031660009081526020819052604090205490565b6102f0610361366004611ba9565b610e41565b6102f0610374366004611c28565b610ec7565b600e54610265906001600160a01b031681565b600d546102659061010090046001600160a01b031681565b610208610ed5565b6102436103ba366004611ba9565b610ee4565b6102436103cd366004611ba9565b610f7d565b61022260075481565b610222600b5481565b600d546102439060ff1681565b6102f0610f8a565b610222600f5481565b610222610410366004611c84565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102f0610449366004611c0f565b6111a5565b61022260095481565b60606003805461046690611cb7565b80601f016020809104026020016040519081016040528092919081815260200182805461049290611cb7565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b5050505050905090565b60006104f633848461135a565b5060015b92915050565b600080601460009054906101000a90046001600160a01b03166001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa158015610556573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fa9190611cf1565b600061058784848461147e565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106115760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61061e853385840361135a565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916104f6918590610660908690611d20565b61135a565b61066f338261164d565b50565b6002600554036106945760405162461bcd60e51b815260040161060890611d33565b6002600555600d5460ff16156107065760405162461bcd60e51b815260206004820152603160248201527f4d696e74696e67206d6179206f6e6c7920626520646f6e652069662061207374604482015270616b65206973206e6f742061637469766560781b6064820152608401610608565b600854601460009054906101000a90046001600160a01b03166001600160a01b0316635c9302c96040518163ffffffff1660e01b8152600401602060405180830381865afa15801561075c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107809190611cf1565b11156107c65760405162461bcd60e51b81526020600482015260156024820152744d696e74696e6720506861736520697320446f6e6560581b6044820152606401610608565b601254601154604051636eb1769f60e11b81523360048201526001600160a01b0391821660248201528392919091169063dd62ed3e90604401602060405180830381865afa15801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190611cf1565b10156108c45760405162461bcd60e51b815260206004820152604760248201527f506c6561736520617070726f766520636f6e747261637420616464726573732060448201527f617320616c6c6f776564207370656e64657220696e207468652068657820636f606482015266373a3930b1ba1760c91b608482015260a401610608565b6012546011546040516323b872dd60e01b815233600482018190526001600160a01b039283166024830152604482018590529291909116906323b872dd906064016020604051808303816000875af1158015610924573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109489190611d6a565b50600c5460009061095d846305f5e100611d8c565b6109679190611dab565b90506109728161179b565b5050600160055550565b60026005540361099e5760405162461bcd60e51b815260040161060890611d33565b6002600555600a5460145460408051635c9302c960e01b815290516001600160a01b0390921691635c9302c9916004808201926020929091908290030181865afa1580156109f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a149190611cf1565b11610a615760405162461bcd60e51b815260206004820152601a60248201527f5374616b65206973206e6f7420636f6d706c657465207965742e0000000000006044820152606401610608565b600d5460ff161515600114610ab05760405162461bcd60e51b815260206004820152601560248201527429ba30b5b29036bab9ba1031329030b1ba34bb329760591b6044820152606401610608565b610aba82826117a5565b6012546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610b03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b279190611cf1565b90506000610b3a600f5483600b54611814565b601454600e5460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af1158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611d6a565b50601554600e546013546040516370a0823160e01b81523060048201526001600160a01b039384169363a9059cbb9381169216906370a0823190602401602060405180830381865afa158015610c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c339190611cf1565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca29190611d6a565b506000306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d079190611cf1565b6012546040516370a0823160e01b8152306004820152919250610d80916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7a9190611cf1565b82611952565b600c55600d80546000600f556001600160a81b031916336101000260ff191617905560145460408051635c9302c960e01b815290516001600160a01b0390921691635c9302c9916004808201926020929091908290030181865afa158015610dec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e109190611cf1565b6007819055600654610e2191611d20565b600855601054610e32906001611d20565b60105550506001600555505050565b6000610e4d8333610410565b905081811015610eab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610608565b610eb8833384840361135a565b610ec2838361164d565b505050565b610ed18282611978565b5050565b60606004805461046690611cb7565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f665760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610608565b610f73338585840361135a565b5060019392505050565b60006104f633848461147e565b600260055403610fac5760405162461bcd60e51b815260040161060890611d33565b6002600555600d5460ff16156110045760405162461bcd60e51b815260206004820152601a60248201527f5374616b652068617320616c726561647920737461727465642e0000000000006044820152606401610608565b60145460408051635c9302c960e01b815290516000926001600160a01b031691635c9302c99160048083019260209291908290030181865afa15801561104e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110729190611cf1565b905060085481116110eb5760405162461bcd60e51b815260206004820152603a60248201527f4d696e74696e67205068617365206973207374696c6c206f6e676f696e67202d60448201527f207365652052454c4f41445f50484153455f454e44206461792e0000000000006064820152608401610608565b6012546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611134573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111589190611cf1565b9050611163816119f4565b600f8190556009829055600b5461117a9083611d20565b600a55600d805460ff1916600190811790915560105461119991611d20565b60105550506001600555565b6002600554036111c75760405162461bcd60e51b815260040161060890611d33565b6002600555600d5460ff16156112375760405162461bcd60e51b815260206004820152602f60248201527f526564656d7074696f6e2063616e206e6f742068617070656e207768696c652060448201526e7374616b652069732061637469766560881b6064820152608401610608565b33600090815260208190526040902054818110156112ac5760405162461bcd60e51b815260206004820152602c60248201527f596f7520646f206e6f7420686176652074686174206d756368206f662074686560448201526b102837b7b6102a37b5b2b71760a11b6064820152608401610608565b6000600c54836112bc9190611d8c565b905060006112ce6305f5e10083611dab565b90506112d984610665565b60145460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af115801561132a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134e9190611d6a565b50506001600555505050565b6001600160a01b0383166113bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610608565b6001600160a01b03821661141d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610608565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166114e25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610608565b6001600160a01b0382166115445760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610608565b6001600160a01b038316600090815260208190526040902054818110156115bc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610608565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906115f3908490611d20565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161163f91815260200190565b60405180910390a350505050565b6001600160a01b0382166116ad5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610608565b6001600160a01b038216600090815260208190526040902054818110156117215760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610608565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611750908490611dcd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b61066f3382611a60565b601454604051631a1804d160e11b81526004810184905264ffffffffff831660248201526001600160a01b039091169063343009a290604401600060405180830381600087803b1580156117f857600080fd5b505af115801561180c573d6000803e3d6000fd5b505050505050565b60008066354a6ba7a180008086111561183957611832600a87611dab565b915061187d565b600061184682600a611d8c565b611854886305f5e100611d8c565b61185e9190611dab565b90506305f5e10061186f8289611d8c565b6118799190611dab565b9250505b600080610e428087111561189757630bebc20091506118be565b806118a6886305f5e100611d8c565b6118b1906002611d8c565b6118bb9190611dab565b91505b6305f5e1006118cd838b611d8c565b6118d79190611dab565b92506305f5e10060006118ea8b8b611dcd565b90506000856118f98d8a611d20565b6119039190611d20565b61190d8985611d8c565b6119179190611dab565b905060006119258284611d8c565b905060006119338583611dab565b9050611940600282611dab565b9e9d5050505050505050505050505050565b60006305f5e10081836119658387611d8c565b61196f9190611dab565b95945050505050565b601554604051633e04ae6960e21b81526004810184905264ffffffffff831660248201526001600160a01b039091169063f812b9a4906044016020604051808303816000875af11580156119d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec29190611cf1565b601454600b54604051630a54871760e31b81526004810184905260248101919091526001600160a01b03909116906352a438b890604401600060405180830381600087803b158015611a4557600080fd5b505af1158015611a59573d6000803e3d6000fd5b5050505050565b6001600160a01b038216611ab65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610608565b8060026000828254611ac89190611d20565b90915550506001600160a01b03821660009081526020819052604081208054839290611af5908490611d20565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b81811015611b6c57858101830151858201604001528201611b50565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611ba457600080fd5b919050565b60008060408385031215611bbc57600080fd5b611bc583611b8d565b946020939093013593505050565b600080600060608486031215611be857600080fd5b611bf184611b8d565b9250611bff60208501611b8d565b9150604084013590509250925092565b600060208284031215611c2157600080fd5b5035919050565b60008060408385031215611c3b57600080fd5b82359150602083013564ffffffffff81168114611c5757600080fd5b809150509250929050565b600060208284031215611c7457600080fd5b611c7d82611b8d565b9392505050565b60008060408385031215611c9757600080fd5b611ca083611b8d565b9150611cae60208401611b8d565b90509250929050565b600181811c90821680611ccb57607f821691505b602082108103611ceb57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d0357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104fa576104fa611d0a565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215611d7c57600080fd5b81518015158114611c7d57600080fd5b6000816000190483118215151615611da657611da6611d0a565b500290565b600082611dc857634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156104fa576104fa611d0a56fea26469706673582212208cd7daa8d5b1cbe8387d850e90b145394dec9825d24bc295e71df6d2f631539264736f6c63430008100033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80636b406b6d1161013b578063858b4e02116100b8578063a2c25dc31161007c578063a2c25dc314610608578063a457c2d71461061b578063a9059cbb1461062e578063dd62ed3e14610641578063f20a25b21461067a57600080fd5b8063858b4e02146105ce57806391a9634b146105e157806395d89b41146105ee5780639a0dfcf3146105f65780639d763964146105ff57600080fd5b80637e0e00cf116100ff5780637e0e00cf146105535780637e49627d1461059757806380ba40d1146105aa57806380ff3473146105b3578063813f4db4146105c657600080fd5b80636b406b6d146104de57806370a08231146104f157806370f283b11461051a57806379cc67901461052d5780637d6039a61461054057600080fd5b8063313ce567116101c957806344e6f28b1161018d57806344e6f28b146103e757806353b7980b146103fa578063584b62a1146104125780636065f9d61461049b57806369c966a3146104ae57600080fd5b8063313ce5671461037f57806331f909f81461038e57806339509351146103a15780633df97da0146103b457806342966c68146103d457600080fd5b80630de18bc6116102105780630de18bc6146102fb57806318160ddd1461034757806323b872dd1461034f5780632968115a146103625780632c1c86d01461037557600080fd5b8063019cca4b1461024d57806306fdde0314610280578063086146d214610295578063095ea7b31461029d5780630d4d77f4146102c0575b600080fd5b61026d61025b366004611f8d565b60156020526000908152604090205481565b6040519081526020015b60405180910390f35b61028861068d565b6040516102779190611fcc565b61026d61071f565b6102b06102ab366004611fff565b6107b2565b6040519015158152602001610277565b61026d6102ce3660046120cc565b8151602081840181018051601a825292820194820194909420919093529091526000908152604090205481565b61032f610309366004612111565b80516020818301810180516012825292820191909301209152546001600160a01b031681565b6040516001600160a01b039091168152602001610277565b60025461026d565b6102b061035d36600461214e565b6107c9565b60105461032f906001600160a01b031681565b61037d610878565b005b60405160088152602001610277565b61037d61039c36600461218a565b610c64565b6102b06103af366004611fff565b610d65565b61026d6103c236600461218a565b60166020526000908152604090205481565b61037d6103e236600461218a565b610da1565b61032f6103f5366004612111565b610dae565b600f5461032f9061010090046001600160a01b031681565b610467610420366004611fff565b6017602090815260009283526040808420909152908252902080546001820154600283015460038401546005909401546001600160a01b0390931693919290919060ff1685565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a001610277565b61037d6104a93660046121a3565b610ddf565b6104c16104bc3660046121c5565b610e5e565b604080519283526001600160a01b03909116602083015201610277565b60115461032f906001600160a01b031681565b61026d6104ff366004611f8d565b6001600160a01b031660009081526020819052604090205490565b61037d610528366004612111565b610ed0565b61037d61053b366004611fff565b6111a0565b61032f61054e366004612111565b611226565b61026d610561366004612224565b6001600160a01b038316600090815260176020908152604080832084845282528083208584526004019091529020549392505050565b61037d6105a536600461218a565b611238565b61026d600d5481565b61037d6105c136600461218a565b61136f565b6102b061143c565b61037d6105dc36600461218a565b61146d565b600f546102b09060ff1681565b6102886114f4565b61026d60145481565b61026d600e5481565b61037d6106163660046121a3565b611503565b6102b0610629366004611fff565b6115b0565b6102b061063c366004611fff565b611649565b61026d61064f366004612257565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61026d6106883660046120cc565b611656565b60606003805461069c9061228a565b80601f01602080910402602001604051908101604052809291908181526020018280546106c89061228a565b80156107155780601f106106ea57610100808354040283529160200191610715565b820191906000526020600020905b8154815290600101906020018083116106f857829003601f168201915b5050505050905090565b6000601260405161073a90634241534560e01b815260040190565b908152604080516020928190038301812054630430a36960e11b825291516001600160a01b039092169263086146d2926004808401938290030181865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906122c4565b905090565b60006107bf338484611690565b5060015b92915050565b60006107d68484846117b4565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108605760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61086d8533858403611690565b506001949350505050565b60026005540361089a5760405162461bcd60e51b8152600401610857906122dd565b6002600555600e5460095460408051635c9302c960e01b815290516001600160a01b0390921691635c9302c9916004808201926020929091908290030181865afa1580156108ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091091906122c4565b1161091a57600080fd5b600f5460ff16151560011461092e57600080fd5b600b546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610977573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099b91906122c4565b600c54909150601490601e906032906001600160a01b03166342966c6860646109c4878761232a565b6109ce919061235f565b6040518263ffffffff1660e01b81526004016109ec91815260200190565b600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b5050600b54600f546001600160a01b03918216935063a9059cbb92506101009004166064610a48888761232a565b610a52919061235f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac19190612373565b50600b546010546001600160a01b039182169163a9059cbb91166064610ae7888661232a565b610af1919061235f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610b3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b609190612373565b506000306001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc591906122c4565b601054601454919250610bed916001600160a01b0390911690610be89084612395565b611983565b600f805460ff191690819055604080516333dce38360e21b815290516101009092046001600160a01b03169163cf738e0c9160048082019260009290919082900301818387803b158015610c4057600080fd5b505af1158015610c54573d6000803e3d6000fd5b5050600160055550505050505050565b600260055403610c865760405162461bcd60e51b8152600401610857906122dd565b6002600555600f5460ff161515600114610c9f57600080fd5b600b546006546040516323b872dd60e01b81523360048201526001600160a01b039182166024820152604481018490529116906323b872dd906064016020604051808303816000875af1158015610cfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e9190612373565b50610d2881611a62565b60405181815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2506001600555565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107bf918590610d9c908690612395565b611690565b610dab3382611a6c565b50565b6000601382604051610dc091906123a8565b908152604051908190036020019020546001600160a01b031692915050565b600260055403610e015760405162461bcd60e51b8152600401610857906122dd565b6002600555610e108282611bba565b80601454610e1e91906123c4565b60145533600090815260156020526040902054610e3c9082906123c4565b33600090815260156020526040902055610e5581611a62565b50506001600555565b6001600160a01b03841660009081526017602090815260408083208484528252808320868452600401909152812054819060006305f5e10082610ea1888a611656565b610eab919061232a565b610eb5919061235f565b905080610ec187610dae565b93509350505094509492505050565b600260055403610ef25760405162461bcd60e51b8152600401610857906122dd565b6002600555610eff61143c565b15610f0957600080fd5b60006001610f1561071f565b610f1f91906123c4565b9050601882604051610f3191906123a8565b90815260408051602092819003830190206000848152925290205460ff1615610f5957600080fd5b601382604051610f6991906123a8565b908152604051908190036020018120546370a0823160e01b82523060048301526001600160a01b0316906370a0823190602401602060405180830381865afa158015610fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fdd91906122c4565b601983604051610fed91906123a8565b9081526040805191829003602090810183206000868152915220919091556013906110199084906123a8565b908152604051908190036020018120546011546001600160a01b039182169263a9059cbb9291909116906019906110519087906123a8565b90815260408051602092819003830181206000888152935291205460e084901b6001600160e01b03191682526001600160a01b03909216600482015260248101919091526044016020604051808303816000875af11580156110b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110db9190612373565b5060016018836040516110ee91906123a8565b90815260408051602092819003830181206000868152908452828120805460ff1916951515959095179094556016909252822054906019906111319086906123a8565b90815260408051602092819003830190206000868152925290205461115a906305f5e10061232a565b611164919061235f565b905080601a8460405161117791906123a8565b908152604080516020928190038301902060009586529091529092209190915550506001600555565b60006111ac833361064f565b90508181101561120a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610857565b6112178333848403611690565b6112218383611a6c565b505050565b6000601282604051610dc091906123a8565b60026005540361125a5760405162461bcd60e51b8152600401610857906122dd565b6002600555600061126961071f565b90506000611275611c67565b336000908152601760209081526040808320878452909152902090915061129a61143c565b6112a357600080fd5b828160030154146112b357600080fd5b60038101829055600181015460008381526004830160205260409020546112da9190612395565b600083815260048301602090815260408083209390935560018401546016909152919020546113099190612395565b6000838152601660209081526040918290209290925560018301548151908152918201849052810185905233907fa8066869490ef421f05bad45cd697329771b6cf22e60b0fbfebc1f6dbee85679906060015b60405180910390a2505060016005555050565b6002600554036113915760405162461bcd60e51b8152600401610857906122dd565b600260055560006113a061071f565b336000908152601760209081526040808320868452909152902060038101549192509082116113ce57600080fd5b60008160010154116113df57600080fd5b6113ec8160010154611cab565b60018101805460009091556003820154604080518381526020810192909252810185905233907f6c6afda2278fafa8f9f636cdf4af81f3ffc6ff41d12bea3b731cf924126fdcfa9060600161135c565b600080600261144961071f565b61145391906123d7565b90508060000361146557600091505090565b600191505090565b60026005540361148f5760405162461bcd60e51b8152600401610857906122dd565b60026005558061149e57600080fd5b6114a781611cab565b6114b081610da1565b806014546114be9190612395565b601455336000908152601560205260409020546114dc908290612395565b33600090815260156020526040902055506001600555565b60606004805461069c9061228a565b6002600554036115255760405162461bcd60e51b8152600401610857906122dd565b60026005556115348282611dcd565b60006115438262384e1061232a565b905060006115556305f5e1008361235f565b90508260145461156591906123c4565b601455336000908152601560205260409020546115839084906123c4565b336000908152601560205260409020556115a56115a082856123c4565b611a62565b505060016005555050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156116325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610857565b61163f3385858403611690565b5060019392505050565b60006107bf3384846117b4565b6000601a8360405161166891906123a8565b9081526020016040518091039020600083815260200190815260200160002054905092915050565b6001600160a01b0383166116f25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610857565b6001600160a01b0382166117535760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610857565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610857565b6001600160a01b03821661187a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610857565b6001600160a01b038316600090815260208190526040902054818110156118f25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610857565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611929908490612395565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161197591815260200190565b60405180910390a350505050565b6001600160a01b0382166119d95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610857565b80600260008282546119eb9190612395565b90915550506001600160a01b03821660009081526020819052604081208054839290611a18908490612395565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b610dab3382611983565b6001600160a01b038216611acc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610857565b6001600160a01b03821660009081526020819052604090205481811015611b405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610857565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b6f9084906123c4565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000611bc461071f565b33600090815260176020908152604080832087845290915290206003810154919250908211611bf257600080fd5b8281600101541015611c0357600080fd5b828160010154611c1391906123c4565b60018201556003810154604080518581526020810192909252810185905233907f7fca7f23e28ab4ea8ec17e674c7e959ed9737ce4930613fb69d59b09b1c78b73906060015b60405180910390a250505050565b600080611c7261071f565b90506000611c7e61143c565b1515600103611c9957611c92826002612395565b90506107c3565b611ca4826001612395565b9392505050565b6000611cb5611c67565b336000908152601760209081526040808320848452909152812060058101549293509160ff1615158103611d1557506002810182905560058101805460ff1916600190811790915581546001600160a01b03191633178255600382018390555b6001820154611d249085612395565b60018301556000838152600483016020526040902054611d449085612395565b6000848152600484016020908152604080832093909355601690522054611d6b9085612395565b600084815260166020526040902055337f9427353240d93cb4f15e429717c3e4e45b6f499959900935e731d6c0d2f1101485611da561071f565b6002860154604080519384526020840192909252908201528315156060820152608001611c59565b6000611dd761071f565b90506000611de3611c67565b336000908152601760209081526040808320888452909152902060058101549192509060ff161515600114611e1757600080fd5b8281600301541015611e2857600080fd5b8381600101541015611e3957600080fd5b838160010154611e4991906123c4565b6001820155600082815260048201602052604090205415611eb857600082815260166020526040902054611e7e9085906123c4565b6000838152601660209081526040808320939093556004840190522054611ea69085906123c4565b60008381526004830160205260409020555b600083815260048201602052604090205415611f2257600083815260166020526040902054611ee89085906123c4565b6000848152601660209081526040808320939093556004840190522054611f109085906123c4565b60008481526004830160205260409020555b6003810154604080518681526020810192909252810186905233907fd024fb5309d60d56df8339015fd653666f4e9f5eec9985b62bdeb4c38be456239060600160405180910390a25050505050565b80356001600160a01b0381168114611f8857600080fd5b919050565b600060208284031215611f9f57600080fd5b611ca482611f71565b60005b83811015611fc3578181015183820152602001611fab565b50506000910152565b6020815260008251806020840152611feb816040850160208701611fa8565b601f01601f19169190910160400192915050565b6000806040838503121561201257600080fd5b61201b83611f71565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261205057600080fd5b813567ffffffffffffffff8082111561206b5761206b612029565b604051601f8301601f19908116603f0116810190828211818310171561209357612093612029565b816040528381528660208588010111156120ac57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156120df57600080fd5b823567ffffffffffffffff8111156120f657600080fd5b6121028582860161203f565b95602094909401359450505050565b60006020828403121561212357600080fd5b813567ffffffffffffffff81111561213a57600080fd5b6121468482850161203f565b949350505050565b60008060006060848603121561216357600080fd5b61216c84611f71565b925061217a60208501611f71565b9150604084013590509250925092565b60006020828403121561219c57600080fd5b5035919050565b600080604083850312156121b657600080fd5b50508035926020909101359150565b600080600080608085870312156121db57600080fd5b6121e485611f71565b935060208501359250604085013567ffffffffffffffff81111561220757600080fd5b6122138782880161203f565b949793965093946060013593505050565b60008060006060848603121561223957600080fd5b61224284611f71565b95602085013595506040909401359392505050565b6000806040838503121561226a57600080fd5b61227383611f71565b915061228160208401611f71565b90509250929050565b600181811c9082168061229e57607f821691505b6020821081036122be57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156122d657600080fd5b5051919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561234457612344612314565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261236e5761236e612349565b500490565b60006020828403121561238557600080fd5b81518015158114611ca457600080fd5b808201808211156107c3576107c3612314565b600082516123ba818460208701611fa8565b9190910192915050565b818103818111156107c3576107c3612314565b6000826123e6576123e6612349565b50069056fea26469706673582212200bee58f7fedaf6f2cb5f0e384d92f5646e1637dba480edf57107929d8a52a21964736f6c63430008100033

Deployed Bytecode Sourcemap

60965:22221:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70521:53;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;529:25:1;;;517:2;502:18;70521:53:0;;;;;;;;28585:100;;;:::i;:::-;;;;;;;:::i;82048:161::-;;;:::i;30752:169::-;;;;;;:::i;:::-;;:::i;:::-;;;1645:14:1;;1638:22;1620:41;;1608:2;1593:18;30752:169:0;1480:187:1;79626:74:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79626:74:0;;;;;;;;;63825:47;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;63825:47:0;;;;;;-1:-1:-1;;;;;3414:32:1;;;3396:51;;3384:2;3369:18;63825:47:0;3250:203:1;29705:108:0;29793:12;;29705:108;;31403:492;;;;;;:::i;:::-;;:::i;62976:34::-;;;;;-1:-1:-1;;;;;62976:34:0;;;67865:1234;;;:::i;:::-;;82854:89;;;82937:1;3933:36:1;;3921:2;3906:18;82854:89:0;3791:184:1;67113:242:0;;;;;;:::i;:::-;;:::i;32304:215::-;;;;;;:::i;:::-;;:::i;70706:58::-;;;;;;:::i;:::-;;;;;;;;;;;;;;39114:91;;;;;;:::i;:::-;;:::i;66071:136::-;;;;;;:::i;:::-;;:::i;62884:29::-;;;;;;;;-1:-1:-1;;;;;62884:29:0;;;70907:62;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70907:62:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4436:32:1;;;4418:51;;4500:2;4485:18;;4478:34;;;;4528:18;;;4521:34;;;;4586:2;4571:18;;4564:34;4642:14;4635:22;4629:3;4614:19;;4607:51;4405:3;4390:19;70907:62:0;4165:499:1;76628:300:0;;;;;;:::i;:::-;;:::i;81478:428::-;;;;;;:::i;:::-;;:::i;:::-;;;;5634:25:1;;;-1:-1:-1;;;;;5695:32:1;;;5690:2;5675:18;;5668:60;5607:18;81478:428:0;5460:274:1;63017:48:0;;;;;-1:-1:-1;;;;;63017:48:0;;;29876:127;;;;;;:::i;:::-;-1:-1:-1;;;;;29977:18:0;29950:7;29977:18;;;;;;;;;;;;29876:127;80018:880;;;;;;:::i;:::-;;:::i;39524:368::-;;;;;;:::i;:::-;;:::i;81343:125::-;;;;;;:::i;:::-;;:::i;80912:248::-;;;;;;:::i;:::-;-1:-1:-1;;;;;81069:22:0;;81021:7;81069:22;;;:6;:22;;;;;;;;:31;;;;;;;;81118:33;;;:25;;:33;;;;;;80912:248;;;;;;77710:771;;;;;;:::i;:::-;;:::i;62697:34::-;;;;;;78877:489;;;;;;:::i;:::-;;:::i;82227:228::-;;;:::i;71412:398::-;;;;;;:::i;:::-;;:::i;62847:30::-;;;;;;;;;28804:104;;;:::i;70341:35::-;;;;;;62774:32;;;;;;73907:511;;;;;;:::i;:::-;;:::i;33022:413::-;;;;;;:::i;:::-;;:::i;30216:175::-;;;;;;:::i;:::-;;:::i;30454:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;30570:18:0;;;30543:7;30570:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;30454:151;81166:165;;;;;;:::i;:::-;;:::i;28585:100::-;28639:13;28672:5;28665:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28585:100;:::o;82048:161::-;82097:19;82159:13;:21;;;;-1:-1:-1;;;6918:19:1;;6962:1;6953:11;;6716:254;82159:21:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;82145:55:0;;;;-1:-1:-1;;;;;82159:21:0;;;;82145:53;;:55;;;;;;;;;;82159:21;82145:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;82138:62;;82048:161;:::o;30752:169::-;30835:4;30852:39;18696:10;30875:7;30884:6;30852:8;:39::i;:::-;-1:-1:-1;30909:4:0;30752:169;;;;;:::o;31403:492::-;31543:4;31560:36;31570:6;31578:9;31589:6;31560:9;:36::i;:::-;-1:-1:-1;;;;;31636:19:0;;31609:24;31636:19;;;:11;:19;;;;;;;;18696:10;31636:33;;;;;;;;31688:26;;;;31680:79;;;;-1:-1:-1;;;31680:79:0;;7366:2:1;31680:79:0;;;7348:21:1;7405:2;7385:18;;;7378:30;7444:34;7424:18;;;7417:62;-1:-1:-1;;;7495:18:1;;;7488:38;7543:19;;31680:79:0;;;;;;;;;31795:57;31804:6;18696:10;31845:6;31826:16;:25;31795:8;:57::i;:::-;-1:-1:-1;31883:4:0;;31403:492;-1:-1:-1;;;;31403:492:0:o;67865:1234::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;67956:17:::1;::::0;67933:9:::1;::::0;:22:::1;::::0;;-1:-1:-1;;;67933:22:0;;;;-1:-1:-1;;;;;67933:9:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;:9;:22:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;67925:49;;;::::0;::::1;;67993:18;::::0;::::1;;:24;;:18:::0;:24:::1;67985:33;;;::::0;::::1;;68050:13;::::0;:38:::1;::::0;-1:-1:-1;;;68050:38:0;;68082:4:::1;68050:38;::::0;::::1;3396:51:1::0;68029:18:0::1;::::0;-1:-1:-1;;;;;68050:13:0::1;::::0;:23:::1;::::0;3369:18:1;;68050:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68418:10;::::0;68029:59;;-1:-1:-1;68122:2:0::1;::::0;68206::::1;::::0;68335::::1;::::0;-1:-1:-1;;;;;68418:10:0::1;:15;68457:3;68434:22;68029:59:::0;68122:2;68434:22:::1;:::i;:::-;:26;;;;:::i;:::-;68418:43;;;;;;;;;;;;;529:25:1::0;;517:2;502:18;;383:177;68418:43:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;68517:13:0::1;::::0;68540:14:::1;::::0;-1:-1:-1;;;;;68517:13:0;;::::1;::::0;-1:-1:-1;68517:22:0::1;::::0;-1:-1:-1;68517:13:0::1;68540:14:::0;::::1;;68581:3;68556:24;68570:10:::0;68556:13;:24:::1;:::i;:::-;:28;;;;:::i;:::-;68517:68;::::0;-1:-1:-1;;;;;;68517:68:0::1;::::0;;;;;;-1:-1:-1;;;;;8687:32:1;;;68517:68:0::1;::::0;::::1;8669:51:1::0;8736:18;;;8729:34;8642:18;;68517:68:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;68650:13:0::1;::::0;68673:19:::1;::::0;-1:-1:-1;;;;;68650:13:0;;::::1;::::0;:22:::1;::::0;68673:19:::1;68715:3;68694:20;68704:10:::0;68694:9;:20:::1;:::i;:::-;:24;;;;:::i;:::-;68650:69;::::0;-1:-1:-1;;;;;;68650:69:0::1;::::0;;;;;;-1:-1:-1;;;;;8687:32:1;;;68650:69:0::1;::::0;::::1;8669:51:1::0;8736:18;;;8729:34;8642:18;;68650:69:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;68777:27;68822:4;-1:-1:-1::0;;;;;68807:33:0::1;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68859:19;::::0;68899:20:::1;::::0;68777:65;;-1:-1:-1;68853:67:0::1;::::0;-1:-1:-1;;;;;68859:19:0;;::::1;::::0;68879:40:::1;::::0;68777:65;68879:40:::1;:::i;:::-;68853:5;:67::i;:::-;69012:18;:24:::0;;-1:-1:-1;;69012:24:0::1;::::0;;;;69047:44:::1;::::0;;-1:-1:-1;;;69047:44:0;;;;69012:24:::1;69058:14:::0;;::::1;-1:-1:-1::0;;;;;69058:14:0::1;::::0;69047:42:::1;::::0;:44:::1;::::0;;::::1;::::0;-1:-1:-1;;69047:44:0;;;;;;;;-1:-1:-1;69058:14:0;69047:44;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;;;;;;;67865:1234:0:o;67113:242::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;67188::::1;::::0;::::1;;:24;;:18:::0;:24:::1;67180:33;;;::::0;::::1;;67224:13;::::0;67263:12:::1;::::0;67224:60:::1;::::0;-1:-1:-1;;;67224:60:0;;67251:10:::1;67224:60;::::0;::::1;9426:34:1::0;-1:-1:-1;;;;;67263:12:0;;::::1;9476:18:1::0;;;9469:43;9528:18;;;9521:34;;;67224:13:0;::::1;::::0;:26:::1;::::0;9361:18:1;;67224:60:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67295:12;67300:6;67295:4;:12::i;:::-;67323:24;::::0;529:25:1;;;67328:10:0::1;::::0;67323:24:::1;::::0;517:2:1;502:18;67323:24:0::1;;;;;;;-1:-1:-1::0;1768:1:0;2722:7;:22;67113:242::o;32304:215::-;18696:10;32392:4;32441:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;32441:34:0;;;;;;;;;;32392:4;;32409:80;;32432:7;;32441:47;;32478:10;;32441:47;:::i;:::-;32409:8;:80::i;39114:91::-;39170:27;18696:10;39190:6;39170:5;:27::i;:::-;39114:91;:::o;66071:136::-;66141:7;66172:15;66188:6;66172:23;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;;;;66172:23:0;;66071:136;-1:-1:-1;;66071:136:0:o;76628:300::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;76721:32:::1;76737:7:::0;76746:6;76721:15:::1;:32::i;:::-;76810:6;76787:20;;:29;;;;:::i;:::-;76764:20;:52:::0;76877:10:::1;76858:30;::::0;;;:18:::1;:30;::::0;;;;;:39:::1;::::0;76891:6;;76858:39:::1;:::i;:::-;76846:10;76827:30;::::0;;;:18:::1;:30;::::0;;;;:70;76908:12:::1;76913:6:::0;76908:4:::1;:12::i;:::-;-1:-1:-1::0;;1768:1:0;2722:7;:22;76628:300::o;81478:428::-;-1:-1:-1;;;;;81069:22:0;;81593:7;81069:22;;;:6;:22;;;;;;;;:31;;;;;;;;81118:33;;;:25;;:33;;;;;;81593:7;;81722:25;81827:5;81792:31;81750:39;81775:6;81782;81750:24;:39::i;:::-;:73;;;;:::i;:::-;:83;;;;:::i;:::-;81722:111;;81852:17;81871:26;81890:6;81871:18;:26::i;:::-;81844:54;;;;;;81478:428;;;;;;;:::o;80018:880::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;80103:17:::1;:15;:17::i;:::-;:24;80095:33;;;::::0;::::1;;80139:29;80190:1;80171:18;:16;:18::i;:::-;:20;;;;:::i;:::-;80139:52;;80210:25;80236:6;80210:33;;;;;;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:56:::1;::::0;;;;;;;;::::1;;:63;80202:72;;;::::0;::::1;;80342:15;80358:6;80342:23;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;-1:-1:-1;;;80335:56:0;;80385:4:::1;80335:56;::::0;::::1;3396:51:1::0;-1:-1:-1;;;;;80342:23:0::1;::::0;80335:41:::1;::::0;3369:18:1;;80335:56:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80285:16;80302:6;80285:24;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;;::::1;::::0;;;;;:47:::1;::::0;;;;;;:106;;;;80486:15:::1;::::0;:23:::1;::::0;80502:6;;80486:23:::1;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;80520:33:::1;::::0;-1:-1:-1;;;;;80486:23:0;;::::1;::::0;80479:40:::1;::::0;80520:33;;;::::1;::::0;80555:16:::1;::::0;:24:::1;::::0;80572:6;;80555:24:::1;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:47:::1;::::0;;;;;;;;80479:124:::1;::::0;;;-1:-1:-1;;;;;;80479:124:0;;;-1:-1:-1;;;;;8687:32:1;;;80479:124:0::1;::::0;::::1;8669:51:1::0;8736:18;;;8729:34;;;;8642:18;;80479:124:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;80671:4;80614:25;80640:6;80614:33;;;;;;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:56:::1;::::0;;;;;;;;;:61;;-1:-1:-1;;80614:61:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;80765:25:::1;:48:::0;;;;;;;80708:16:::1;::::0;:24:::1;::::0;80725:6;;80708:24:::1;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:47:::1;::::0;;;;;;;;:56:::1;::::0;80758:5:::1;80708:56;:::i;:::-;:105;;;;:::i;:::-;80686:127;;80879:11;80824:21;80846:6;80824:29;;;;;;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:52:::1;::::0;;;;;;;;;:66;;;;-1:-1:-1;;1768:1:0;2722:7;:22;80018:880::o;39524:368::-;39601:24;39628:32;39638:7;18696:10;30454:151;:::i;39628:32::-;39601:59;;39699:6;39679:16;:26;;39671:75;;;;-1:-1:-1;;;39671:75:0;;10195:2:1;39671:75:0;;;10177:21:1;10234:2;10214:18;;;10207:30;10273:34;10253:18;;;10246:62;-1:-1:-1;;;10324:18:1;;;10317:34;10368:19;;39671:75:0;9993:400:1;39671:75:0;39782:58;39791:7;18696:10;39833:6;39814:16;:25;39782:8;:58::i;:::-;39862:22;39868:7;39877:6;39862:5;:22::i;:::-;39590:302;39524:368;;:::o;81343:125::-;81412:7;81439:13;81453:6;81439:21;;;;;;:::i;77710:771::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;77785:22:::1;77808:18;:16;:18::i;:::-;77785:41;;77841:27;77871:22;:20;:22::i;:::-;77943:10;77908:25;77936:18:::0;;;:6:::1;:18;::::0;;;;;;;:27;;;;;;;;77841:52;;-1:-1:-1;77986:17:0::1;:15;:17::i;:::-;77978:26;;;::::0;::::1;;78054:14;78027:5;:25;;;:41;78019:50;;;::::0;::::1;;78084:25;::::0;::::1;:45:::0;;;78242:13:::1;::::0;::::1;::::0;78193:46:::1;::::0;;;:25:::1;::::0;::::1;:46;::::0;;;;;:62:::1;::::0;78242:13;78193:62:::1;:::i;:::-;78144:46;::::0;;;:25:::1;::::0;::::1;:46;::::0;;;;;;;:111;;;;78368:13:::1;::::0;::::1;::::0;78319:25:::1;:46:::0;;;;;;;:62:::1;::::0;78368:13;78319:62:::1;:::i;:::-;78270:46;::::0;;;:25:::1;:46;::::0;;;;;;;;:111;;;;78425:13:::1;::::0;::::1;::::0;78401:68;;10600:25:1;;;10641:18;;;10634:34;;;10684:18;;10677:34;;;78413:10:0::1;::::0;78401:68:::1;::::0;10588:2:1;10573:18;78401:68:0::1;;;;;;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;;77710:771:0:o;78877:489::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;78954:22:::1;78977:18;:16;:18::i;:::-;79041:10;79006:25;79034:18:::0;;;:6:::1;:18;::::0;;;;;;;:27;;;;;;;;79080:25:::1;::::0;::::1;::::0;78954:41;;-1:-1:-1;79034:27:0;79080:40;-1:-1:-1;79072:49:0::1;;;::::0;::::1;;79156:1;79140:5;:13;;;:17;79132:26;;;::::0;::::1;;79169:29;79184:5;:13;;;79169:14;:29::i;:::-;79226:13;::::0;::::1;::::0;;79209:14:::1;79250:17:::0;;;79323:25:::1;::::0;::::1;::::0;79283:75:::1;::::0;;10600:25:1;;;10656:2;10641:18;;10634:34;;;;10684:18;;10677:34;;;79303:10:0::1;::::0;79283:75:::1;::::0;10588:2:1;10573:18;79283:75:0::1;10398:319:1::0;82227:228:0;82275:4;82292:14;82328:1;82309:18;:16;:18::i;:::-;:20;;;;:::i;:::-;82292:37;;82343:9;82354:1;82343:12;82340:108;;82378:5;82371:12;;;82227:228;:::o;82340:108::-;82432:4;82425:11;;;82227:228;:::o;71412:398::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;71488:8;71480:17:::1;;;::::0;::::1;;71508:22;71523:6;71508:14;:22::i;:::-;71569:12;71574:6;71569:4;:12::i;:::-;71715:6;71692:20;;:29;;;;:::i;:::-;71669:20;:52:::0;71782:10:::1;71763:30;::::0;;;:18:::1;:30;::::0;;;;;:39:::1;::::0;71796:6;;71763:39:::1;:::i;:::-;71751:10;71732:30;::::0;;;:18:::1;:30;::::0;;;;:70;-1:-1:-1;1768:1:0;2722:7;:22;71412:398::o;28804:104::-;28860:13;28893:7;28886:14;;;;;:::i;73907:511::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;74000:36:::1;74020:7:::0;74029:6;74000:19:::1;:36::i;:::-;74074:40;74117:18;74129:6:::0;74117:11:::1;:18;:::i;:::-;74074:61:::0;-1:-1:-1;74176:15:0::1;74194:40;74228:5;74074:61:::0;74194:40:::1;:::i;:::-;74176:58;;74292:6;74269:20;;:29;;;;:::i;:::-;74246:20;:52:::0;74359:10:::1;74340:30;::::0;;;:18:::1;:30;::::0;;;;;:39:::1;::::0;74373:6;;74340:39:::1;:::i;:::-;74328:10;74309:30;::::0;;;:18:::1;:30;::::0;;;;:70;74390:20:::1;74395:14;74402:7:::0;74395:6;:14:::1;:::i;:::-;74390:4;:20::i;:::-;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;;73907:511:0:o;33022:413::-;18696:10;33115:4;33159:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;33159:34:0;;;;;;;;;;33212:35;;;;33204:85;;;;-1:-1:-1;;;33204:85:0;;11041:2:1;33204:85:0;;;11023:21:1;11080:2;11060:18;;;11053:30;11119:34;11099:18;;;11092:62;-1:-1:-1;;;11170:18:1;;;11163:35;11215:19;;33204:85:0;10839:401:1;33204:85:0;33325:67;18696:10;33348:7;33376:15;33357:16;:34;33325:8;:67::i;:::-;-1:-1:-1;33423:4:0;;33022:413;-1:-1:-1;;;33022:413:0:o;30216:175::-;30302:4;30319:42;18696:10;30343:9;30354:6;30319:9;:42::i;81166:165::-;81259:7;81286:21;81308:6;81286:29;;;;;;:::i;:::-;;;;;;;;;;;;;:37;81316:6;81286:37;;;;;;;;;;;;81279:44;;81166:165;;;;:::o;36706:380::-;-1:-1:-1;;;;;36842:19:0;;36834:68;;;;-1:-1:-1;;;36834:68:0;;11447:2:1;36834:68:0;;;11429:21:1;11486:2;11466:18;;;11459:30;11525:34;11505:18;;;11498:62;-1:-1:-1;;;11576:18:1;;;11569:34;11620:19;;36834:68:0;11245:400:1;36834:68:0;-1:-1:-1;;;;;36921:21:0;;36913:68;;;;-1:-1:-1;;;36913:68:0;;11852:2:1;36913:68:0;;;11834:21:1;11891:2;11871:18;;;11864:30;11930:34;11910:18;;;11903:62;-1:-1:-1;;;11981:18:1;;;11974:32;12023:19;;36913:68:0;11650:398:1;36913:68:0;-1:-1:-1;;;;;36994:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;37046:32;;529:25:1;;;37046:32:0;;502:18:1;37046:32:0;;;;;;;36706:380;;;:::o;33925:733::-;-1:-1:-1;;;;;34065:20:0;;34057:70;;;;-1:-1:-1;;;34057:70:0;;12255:2:1;34057:70:0;;;12237:21:1;12294:2;12274:18;;;12267:30;12333:34;12313:18;;;12306:62;-1:-1:-1;;;12384:18:1;;;12377:35;12429:19;;34057:70:0;12053:401:1;34057:70:0;-1:-1:-1;;;;;34146:23:0;;34138:71;;;;-1:-1:-1;;;34138:71:0;;12661:2:1;34138:71:0;;;12643:21:1;12700:2;12680:18;;;12673:30;12739:34;12719:18;;;12712:62;-1:-1:-1;;;12790:18:1;;;12783:33;12833:19;;34138:71:0;12459:399:1;34138:71:0;-1:-1:-1;;;;;34306:17:0;;34282:21;34306:17;;;;;;;;;;;34342:23;;;;34334:74;;;;-1:-1:-1;;;34334:74:0;;13065:2:1;34334:74:0;;;13047:21:1;13104:2;13084:18;;;13077:30;13143:34;13123:18;;;13116:62;-1:-1:-1;;;13194:18:1;;;13187:36;13240:19;;34334:74:0;12863:402:1;34334:74:0;-1:-1:-1;;;;;34444:17:0;;;:9;:17;;;;;;;;;;;34464:22;;;34444:42;;34508:20;;;;;;;;:30;;34480:6;;34444:9;34508:30;;34480:6;;34508:30;:::i;:::-;;;;;;;;34573:9;-1:-1:-1;;;;;34556:35:0;34565:6;-1:-1:-1;;;;;34556:35:0;;34584:6;34556:35;;;;529:25:1;;517:2;502:18;;383:177;34556:35:0;;;;;;;;34046:612;33925:733;;;:::o;34945:399::-;-1:-1:-1;;;;;35029:21:0;;35021:65;;;;-1:-1:-1;;;35021:65:0;;13472:2:1;35021:65:0;;;13454:21:1;13511:2;13491:18;;;13484:30;13550:33;13530:18;;;13523:61;13601:18;;35021:65:0;13270:355:1;35021:65:0;35177:6;35161:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;35194:18:0;;:9;:18;;;;;;;;;;:28;;35216:6;;35194:9;:28;;35216:6;;35194:28;:::i;:::-;;;;-1:-1:-1;;35238:37:0;;529:25:1;;;-1:-1:-1;;;;;35238:37:0;;;35255:1;;35238:37;;517:2:1;502:18;35238:37:0;;;;;;;34945:399;;:::o;83101:82::-;83150:25;83156:10;83168:6;83150:5;:25::i;35677:591::-;-1:-1:-1;;;;;35761:21:0;;35753:67;;;;-1:-1:-1;;;35753:67:0;;13832:2:1;35753:67:0;;;13814:21:1;13871:2;13851:18;;;13844:30;13910:34;13890:18;;;13883:62;-1:-1:-1;;;13961:18:1;;;13954:31;14002:19;;35753:67:0;13630:397:1;35753:67:0;-1:-1:-1;;;;;35920:18:0;;35895:22;35920:18;;;;;;;;;;;35957:24;;;;35949:71;;;;-1:-1:-1;;;35949:71:0;;14234:2:1;35949:71:0;;;14216:21:1;14273:2;14253:18;;;14246:30;14312:34;14292:18;;;14285:62;-1:-1:-1;;;14363:18:1;;;14356:32;14405:19;;35949:71:0;14032:398:1;35949:71:0;-1:-1:-1;;;;;36056:18:0;;:9;:18;;;;;;;;;;36077:23;;;36056:44;;36122:12;:22;;36094:6;;36056:9;36122:22;;36094:6;;36122:22;:::i;:::-;;;;-1:-1:-1;;36162:37:0;;529:25:1;;;36188:1:0;;-1:-1:-1;;;;;36162:37:0;;;;;517:2:1;502:18;36162:37:0;;;;;;;39590:302;39524:368;;:::o;76938:455::-;77019:22;77042:18;:16;:18::i;:::-;77110:10;77075:25;77103:18;;;:6;:18;;;;;;;;:27;;;;;;;;77153:25;;;;77019:41;;-1:-1:-1;77103:27:0;77153:40;-1:-1:-1;77145:49:0;;;;;;77232:6;77217:5;:13;;;:21;;77209:30;;;;;;77284:6;77270:5;:13;;;:20;;;;:::i;:::-;77254:13;;;:36;77346:25;;;;77310:71;;;10600:25:1;;;10656:2;10641:18;;10634:34;;;;10684:18;;10677:34;;;77326:10:0;;77310:71;;10588:2:1;10573:18;77310:71:0;;;;;;;;77004:389;;76938:455;;:::o;82463:379::-;82516:7;82536:22;82559:18;:16;:18::i;:::-;82536:41;;82588:27;82630:17;:15;:17::i;:::-;:23;;82649:4;82630:23;82626:172;;82692:16;:14;82707:1;82692:16;:::i;:::-;82670:38;;82626:172;;;82770:16;:14;82785:1;82770:16;:::i;:::-;82750:36;82815:19;-1:-1:-1;;;82463:379:0:o;71980:1232::-;72043:27;72073:22;:20;:22::i;:::-;72244:10;72209:25;72237:18;;;:6;:18;;;;;;;;:39;;;;;;;;72445:15;;;;72043:52;;-1:-1:-1;72237:39:0;72445:15;;:22;;;;72441:377;;-1:-1:-1;72580:13:0;;;:35;;;72634:15;;;:22;;-1:-1:-1;;72634:22:0;72652:4;72634:22;;;;;;72675:25;;-1:-1:-1;;;;;;72675:25:0;72690:10;72675:25;;;72719;;;:47;;;72441:377;72857:13;;;;72848:22;;:6;:22;:::i;:::-;72832:13;;;:38;72943:46;;;;:25;;;:46;;;;;;72934:55;;:6;:55;:::i;:::-;72885:46;;;;:25;;;:46;;;;;;;;:104;;;;73062:25;:46;;;;73053:55;;:6;:55;:::i;:::-;73004:46;;;;:25;:46;;;;;:104;73134:10;73128:72;73146:6;73154:18;:16;:18::i;:::-;73174:13;;;;73128:72;;;14660:25:1;;;14716:2;14701:18;;14694:34;;;;14744:18;;;14737:34;14814:14;;14807:22;14802:2;14787:18;;14780:50;14647:3;14632:19;73128:72:0;14435:401:1;74853:1362:0;74938:22;74963:18;:16;:18::i;:::-;74938:43;;74996:27;75026:22;:20;:22::i;:::-;75098:10;75063:25;75091:18;;;:6;:18;;;;;;;;:27;;;;;;;;75141:15;;;;74996:52;;-1:-1:-1;75091:27:0;75141:15;;:21;;:15;:21;75133:30;;;;;;75213:14;75186:5;:25;;;:41;;75178:50;;;;;;75306:6;75291:5;:13;;;:21;;75283:30;;;;;;75360:6;75344:5;:13;;;:22;;;;:::i;:::-;75328:13;;;:38;75495:1;75448:46;;;:25;;;:46;;;;;;:48;75444:307;;75563:46;;;;:25;:46;;;;;;:53;;75610:6;;75563:53;:::i;:::-;75516:46;;;;:25;:46;;;;;;;;:100;;;;75682:25;;;:46;;;;:53;;75729:6;;75682:53;:::i;:::-;75635:46;;;;:25;;;:46;;;;;:100;75444:307;75878:1;75836:41;;;:25;;;:41;;;;;;:43;75832:283;;75942:41;;;;:25;:41;;;;;;:48;;75984:6;;75942:48;:::i;:::-;75900:41;;;;:25;:41;;;;;;;;:90;;;;76051:25;;;:41;;;;:48;;76093:6;;76051:48;:::i;:::-;76009:41;;;;:25;;;:41;;;;;:90;75832:283;76168:25;;;;76134:69;;;10600:25:1;;;10656:2;10641:18;;10634:34;;;;10684:18;;10677:34;;;76148:10:0;;76134:69;;10588:2:1;10573:18;76134:69:0;;;;;;;74923:1292;;;74853:1362;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:250::-;650:1;660:113;674:6;671:1;668:13;660:113;;;750:11;;;744:18;731:11;;;724:39;696:2;689:10;660:113;;;-1:-1:-1;;807:1:1;789:16;;782:27;565:250::o;820:396::-;969:2;958:9;951:21;932:4;1001:6;995:13;1044:6;1039:2;1028:9;1024:18;1017:34;1060:79;1132:6;1127:2;1116:9;1112:18;1107:2;1099:6;1095:15;1060:79;:::i;:::-;1200:2;1179:15;-1:-1:-1;;1175:29:1;1160:45;;;;1207:2;1156:54;;820:396;-1:-1:-1;;820:396:1:o;1221:254::-;1289:6;1297;1350:2;1338:9;1329:7;1325:23;1321:32;1318:52;;;1366:1;1363;1356:12;1318:52;1389:29;1408:9;1389:29;:::i;:::-;1379:39;1465:2;1450:18;;;;1437:32;;-1:-1:-1;;;1221:254:1:o;1672:127::-;1733:10;1728:3;1724:20;1721:1;1714:31;1764:4;1761:1;1754:15;1788:4;1785:1;1778:15;1804:719;1847:5;1900:3;1893:4;1885:6;1881:17;1877:27;1867:55;;1918:1;1915;1908:12;1867:55;1954:6;1941:20;1980:18;2017:2;2013;2010:10;2007:36;;;2023:18;;:::i;:::-;2098:2;2092:9;2066:2;2152:13;;-1:-1:-1;;2148:22:1;;;2172:2;2144:31;2140:40;2128:53;;;2196:18;;;2216:22;;;2193:46;2190:72;;;2242:18;;:::i;:::-;2282:10;2278:2;2271:22;2317:2;2309:6;2302:18;2363:3;2356:4;2351:2;2343:6;2339:15;2335:26;2332:35;2329:55;;;2380:1;2377;2370:12;2329:55;2444:2;2437:4;2429:6;2425:17;2418:4;2410:6;2406:17;2393:54;2491:1;2484:4;2479:2;2471:6;2467:15;2463:26;2456:37;2511:6;2502:15;;;;;;1804:719;;;;:::o;2528:390::-;2606:6;2614;2667:2;2655:9;2646:7;2642:23;2638:32;2635:52;;;2683:1;2680;2673:12;2635:52;2723:9;2710:23;2756:18;2748:6;2745:30;2742:50;;;2788:1;2785;2778:12;2742:50;2811;2853:7;2844:6;2833:9;2829:22;2811:50;:::i;:::-;2801:60;2908:2;2893:18;;;;2880:32;;-1:-1:-1;;;;2528:390:1:o;2923:322::-;2992:6;3045:2;3033:9;3024:7;3020:23;3016:32;3013:52;;;3061:1;3058;3051:12;3013:52;3101:9;3088:23;3134:18;3126:6;3123:30;3120:50;;;3166:1;3163;3156:12;3120:50;3189;3231:7;3222:6;3211:9;3207:22;3189:50;:::i;:::-;3179:60;2923:322;-1:-1:-1;;;;2923:322:1:o;3458:328::-;3535:6;3543;3551;3604:2;3592:9;3583:7;3579:23;3575:32;3572:52;;;3620:1;3617;3610:12;3572:52;3643:29;3662:9;3643:29;:::i;:::-;3633:39;;3691:38;3725:2;3714:9;3710:18;3691:38;:::i;:::-;3681:48;;3776:2;3765:9;3761:18;3748:32;3738:42;;3458:328;;;;;:::o;3980:180::-;4039:6;4092:2;4080:9;4071:7;4067:23;4063:32;4060:52;;;4108:1;4105;4098:12;4060:52;-1:-1:-1;4131:23:1;;3980:180;-1:-1:-1;3980:180:1:o;4669:248::-;4737:6;4745;4798:2;4786:9;4777:7;4773:23;4769:32;4766:52;;;4814:1;4811;4804:12;4766:52;-1:-1:-1;;4837:23:1;;;4907:2;4892:18;;;4879:32;;-1:-1:-1;4669:248:1:o;4922:533::-;5018:6;5026;5034;5042;5095:3;5083:9;5074:7;5070:23;5066:33;5063:53;;;5112:1;5109;5102:12;5063:53;5135:29;5154:9;5135:29;:::i;:::-;5125:39;;5211:2;5200:9;5196:18;5183:32;5173:42;;5266:2;5255:9;5251:18;5238:32;5293:18;5285:6;5282:30;5279:50;;;5325:1;5322;5315:12;5279:50;5348;5390:7;5381:6;5370:9;5366:22;5348:50;:::i;:::-;4922:533;;;;-1:-1:-1;5338:60:1;;5445:2;5430:18;5417:32;;-1:-1:-1;;;4922:533:1:o;5739:322::-;5816:6;5824;5832;5885:2;5873:9;5864:7;5860:23;5856:32;5853:52;;;5901:1;5898;5891:12;5853:52;5924:29;5943:9;5924:29;:::i;:::-;5914:39;6000:2;5985:18;;5972:32;;-1:-1:-1;6051:2:1;6036:18;;;6023:32;;5739:322;-1:-1:-1;;;5739:322:1:o;6066:260::-;6134:6;6142;6195:2;6183:9;6174:7;6170:23;6166:32;6163:52;;;6211:1;6208;6201:12;6163:52;6234:29;6253:9;6234:29;:::i;:::-;6224:39;;6282:38;6316:2;6305:9;6301:18;6282:38;:::i;:::-;6272:48;;6066:260;;;;;:::o;6331:380::-;6410:1;6406:12;;;;6453;;;6474:61;;6528:4;6520:6;6516:17;6506:27;;6474:61;6581:2;6573:6;6570:14;6550:18;6547:38;6544:161;;6627:10;6622:3;6618:20;6615:1;6608:31;6662:4;6659:1;6652:15;6690:4;6687:1;6680:15;6544:161;;6331:380;;;:::o;6975:184::-;7045:6;7098:2;7086:9;7077:7;7073:23;7069:32;7066:52;;;7114:1;7111;7104:12;7066:52;-1:-1:-1;7137:16:1;;6975:184;-1:-1:-1;6975:184:1:o;7573:355::-;7775:2;7757:21;;;7814:2;7794:18;;;7787:30;7853:33;7848:2;7833:18;;7826:61;7919:2;7904:18;;7573:355::o;7933:127::-;7994:10;7989:3;7985:20;7982:1;7975:31;8025:4;8022:1;8015:15;8049:4;8046:1;8039:15;8065:168;8105:7;8171:1;8167;8163:6;8159:14;8156:1;8153:21;8148:1;8141:9;8134:17;8130:45;8127:71;;;8178:18;;:::i;:::-;-1:-1:-1;8218:9:1;;8065:168::o;8238:127::-;8299:10;8294:3;8290:20;8287:1;8280:31;8330:4;8327:1;8320:15;8354:4;8351:1;8344:15;8370:120;8410:1;8436;8426:35;;8441:18;;:::i;:::-;-1:-1:-1;8475:9:1;;8370:120::o;8774:277::-;8841:6;8894:2;8882:9;8873:7;8869:23;8865:32;8862:52;;;8910:1;8907;8900:12;8862:52;8942:9;8936:16;8995:5;8988:13;8981:21;8974:5;8971:32;8961:60;;9017:1;9014;9007:12;9056:125;9121:9;;;9142:10;;;9139:36;;;9155:18;;:::i;9566:289::-;9697:3;9735:6;9729:13;9751:66;9810:6;9805:3;9798:4;9790:6;9786:17;9751:66;:::i;:::-;9833:16;;;;;9566:289;-1:-1:-1;;9566:289:1:o;9860:128::-;9927:9;;;9948:11;;;9945:37;;;9962:18;;:::i;10722:112::-;10754:1;10780;10770:35;;10785:18;;:::i;:::-;-1:-1:-1;10819:9:1;;10722:112::o

Swarm Source

ipfs://8cd7daa8d5b1cbe8387d850e90b145394dec9825d24bc295e71df6d2f6315392

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.