Contract 0xfe350CD91Ec7B62467Ae3883A95856ca8C57D004 1

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0x3dfccd9a040bc25a164daa298986b3d914f40e1f64c894896ecd823bb7889694Pause160340112022-11-23 16:52:2315 days 20 hrs agoEXENO COIN: Deployer IN  0xfe350cd91ec7b62467ae3883a95856ca8c57d0040 Ether0.00033799 12.20712131
0xa469f247174bb31f99af4cb6b4b9cae03ab8da51e29ce8b0ebac98aef70676f1Unstake160334282022-11-23 14:55:4715 days 22 hrs agoENS Name tomake.eth IN  0xfe350cd91ec7b62467ae3883a95856ca8c57d0040 Ether0.00129554 14.38583989
0x925cce33b3c37e8b12f0b6203f47a3efd64efd5a63d67fa32c8090de10687a24Extend End Date148795372022-05-31 15:43:08191 days 21 hrs agoEXENO COIN: Deployer IN  0xfe350cd91ec7b62467ae3883a95856ca8c57d0040 Ether0.00171481 56.55900466
0xe87407765bd4d6b2ed616d33fde5b54422554aafcaf23491ebcadc8441bd8ae30x60e06040144823592022-03-29 17:09:42254 days 19 hrs agoEXENO COIN: Deployer IN  Create: ExenoTokenStaking0 Ether0.13953271 45.49556377
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ExenoTokenStaking

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-29
*/

// SPDX-License-Identifier: MIT
// File: erc-payable-token/contracts/token/ERC1363/IERC1363Spender.sol



pragma solidity ^0.8.0;

/**
 * @title IERC1363Spender Interface
 * @author Vittorio Minacori (https://github.com/vittominacori)
 * @dev Interface for any contract that wants to support approveAndCall
 *  from ERC1363 token contracts as defined in
 *  https://eips.ethereum.org/EIPS/eip-1363
 */
interface IERC1363Spender {
    /**
     * @notice Handle the approval of ERC1363 tokens
     * @dev Any ERC1363 smart contract calls this function on the recipient
     * after an `approve`. This function MAY throw to revert and reject the
     * approval. Return of other than the magic value MUST result in the
     * transaction being reverted.
     * Note: the token contract address is always the message sender.
     * @param sender address The address which called `approveAndCall` function
     * @param amount uint256 The amount of tokens to be spent
     * @param data bytes Additional data with no specified format
     * @return `bytes4(keccak256("onApprovalReceived(address,uint256,bytes)"))` unless throwing
     */
    function onApprovalReceived(
        address sender,
        uint256 amount,
        bytes calldata data
    ) external returns (bytes4);
}

// File: erc-payable-token/contracts/token/ERC1363/IERC1363Receiver.sol



pragma solidity ^0.8.0;

/**
 * @title IERC1363Receiver Interface
 * @author Vittorio Minacori (https://github.com/vittominacori)
 * @dev Interface for any contract that wants to support transferAndCall or transferFromAndCall
 *  from ERC1363 token contracts as defined in
 *  https://eips.ethereum.org/EIPS/eip-1363
 */
interface IERC1363Receiver {
    /**
     * @notice Handle the receipt of ERC1363 tokens
     * @dev Any ERC1363 smart contract calls this function on the recipient
     * after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the
     * transfer. Return of other than the magic value MUST result in the
     * transaction being reverted.
     * Note: the token contract address is always the message sender.
     * @param operator address The address which called `transferAndCall` or `transferFromAndCall` function
     * @param sender address The address which are token transferred from
     * @param amount uint256 The amount of tokens transferred
     * @param data bytes Additional data with no specified format
     * @return `bytes4(keccak256("onTransferReceived(address,address,uint256,bytes)"))` unless throwing
     */
    function onTransferReceived(
        address operator,
        address sender,
        uint256 amount,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/utils/introspection/ERC165Checker.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Checker.sol)

pragma solidity ^0.8.0;


/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return
            _supportsERC165Interface(account, type(IERC165).interfaceId) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) && _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns a boolean array where each value corresponds to the
     * interfaces passed in and whether they're supported or not. This allows
     * you to batch check interfaces for a contract where your expectation
     * is that some interfaces may not be supported.
     *
     * See {IERC165-supportsInterface}.
     *
     * _Available since v3.4._
     */
    function getSupportedInterfaces(address account, bytes4[] memory interfaceIds)
        internal
        view
        returns (bool[] memory)
    {
        // an array of booleans corresponding to interfaceIds and whether they're supported or not
        bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length);

        // query support of ERC165 itself
        if (supportsERC165(account)) {
            // query support of each interface in interfaceIds
            for (uint256 i = 0; i < interfaceIds.length; i++) {
                interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]);
            }
        }

        return interfaceIdsSupported;
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId);
        (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams);
        if (result.length < 32) return false;
        return success && abi.decode(result, (bool));
    }
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// 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/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/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: erc-payable-token/contracts/token/ERC1363/IERC1363.sol



pragma solidity ^0.8.0;



/**
 * @title IERC1363 Interface
 * @author Vittorio Minacori (https://github.com/vittominacori)
 * @dev Interface for a Payable Token contract as defined in
 *  https://eips.ethereum.org/EIPS/eip-1363
 */
interface IERC1363 is IERC20, IERC165 {
    /**
     * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
     * @param recipient address The address which you want to transfer to
     * @param amount uint256 The amount of tokens to be transferred
     * @return true unless throwing
     */
    function transferAndCall(address recipient, uint256 amount) external returns (bool);

    /**
     * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
     * @param recipient address The address which you want to transfer to
     * @param amount uint256 The amount of tokens to be transferred
     * @param data bytes Additional data with no specified format, sent in call to `recipient`
     * @return true unless throwing
     */
    function transferAndCall(
        address recipient,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);

    /**
     * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver
     * @param sender address The address which you want to send tokens from
     * @param recipient address The address which you want to transfer to
     * @param amount uint256 The amount of tokens to be transferred
     * @return true unless throwing
     */
    function transferFromAndCall(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver
     * @param sender address The address which you want to send tokens from
     * @param recipient address The address which you want to transfer to
     * @param amount uint256 The amount of tokens to be transferred
     * @param data bytes Additional data with no specified format, sent in call to `recipient`
     * @return true unless throwing
     */
    function transferFromAndCall(
        address sender,
        address recipient,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);

    /**
     * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
     * and then call `onApprovalReceived` on spender.
     * 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
     * @param spender address The address which will spend the funds
     * @param amount uint256 The amount of tokens to be spent
     */
    function approveAndCall(address spender, uint256 amount) external returns (bool);

    /**
     * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
     * and then call `onApprovalReceived` on spender.
     * 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
     * @param spender address The address which will spend the funds
     * @param amount uint256 The amount of tokens to be spent
     * @param data bytes Additional data with no specified format, sent in call to `spender`
     */
    function approveAndCall(
        address spender,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);
}

// 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/utils/math/Math.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

// 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: erc-payable-token/contracts/payment/ERC1363Payable.sol



pragma solidity ^0.8.0;







/**
 * @title ERC1363Payable
 * @author Vittorio Minacori (https://github.com/vittominacori)
 * @dev Implementation proposal of a contract that wants to accept ERC1363 payments
 */
contract ERC1363Payable is IERC1363Receiver, IERC1363Spender, ERC165, Context {
    using ERC165Checker for address;

    /**
     * @dev Emitted when `amount` tokens are moved from one account (`sender`) to
     * this by operator (`operator`) using {transferAndCall} or {transferFromAndCall}.
     */
    event TokensReceived(address indexed operator, address indexed sender, uint256 amount, bytes data);

    /**
     * @dev Emitted when the allowance of this for a `sender` is set by
     * a call to {approveAndCall}. `amount` is the new allowance.
     */
    event TokensApproved(address indexed sender, uint256 amount, bytes data);

    // The ERC1363 token accepted
    IERC1363 private _acceptedToken;

    /**
     * @param acceptedToken_ Address of the token being accepted
     */
    constructor(IERC1363 acceptedToken_) {
        require(address(acceptedToken_) != address(0), "ERC1363Payable: acceptedToken is zero address");
        require(acceptedToken_.supportsInterface(type(IERC1363).interfaceId));

        _acceptedToken = acceptedToken_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return
            interfaceId == type(IERC1363Receiver).interfaceId ||
            interfaceId == type(IERC1363Spender).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /*
     * @dev Note: remember that the token contract address is always the message sender.
     * @param operator The address which called `transferAndCall` or `transferFromAndCall` function
     * @param sender The address which are token transferred from
     * @param amount The amount of tokens transferred
     * @param data Additional data with no specified format
     */
    function onTransferReceived(
        address operator,
        address sender,
        uint256 amount,
        bytes memory data
    ) public override returns (bytes4) {
        require(_msgSender() == address(_acceptedToken), "ERC1363Payable: acceptedToken is not message sender");

        emit TokensReceived(operator, sender, amount, data);

        _transferReceived(operator, sender, amount, data);

        return IERC1363Receiver(this).onTransferReceived.selector;
    }

    /*
     * @dev Note: remember that the token contract address is always the message sender.
     * @param sender The address which called `approveAndCall` function
     * @param amount The amount of tokens to be spent
     * @param data Additional data with no specified format
     */
    function onApprovalReceived(
        address sender,
        uint256 amount,
        bytes memory data
    ) public override returns (bytes4) {
        require(_msgSender() == address(_acceptedToken), "ERC1363Payable: acceptedToken is not message sender");

        emit TokensApproved(sender, amount, data);

        _approvalReceived(sender, amount, data);

        return IERC1363Spender(this).onApprovalReceived.selector;
    }

    /**
     * @dev The ERC1363 token accepted
     */
    function acceptedToken() public view returns (IERC1363) {
        return _acceptedToken;
    }

    /**
     * @dev Called after validating a `onTransferReceived`. Override this method to
     * make your stuffs within your contract.
     * @param operator The address which called `transferAndCall` or `transferFromAndCall` function
     * @param sender The address which are token transferred from
     * @param amount The amount of tokens transferred
     * @param data Additional data with no specified format
     */
    function _transferReceived(
        address operator,
        address sender,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        // optional override
    }

    /**
     * @dev Called after validating a `onApprovalReceived`. Override this method to
     * make your stuffs within your contract.
     * @param sender The address which called `approveAndCall` function
     * @param amount The amount of tokens to be spent
     * @param data Additional data with no specified format
     */
    function _approvalReceived(
        address sender,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        // optional override
    }
}

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


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

pragma solidity ^0.8.0;


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

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

    bool private _paused;

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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/ExenoTokenStaking.sol


pragma solidity 0.8.4;








/**
 * @notice Staking utilizing a payable token (ERC1363)
 * No tokens are burnt or minted, whereas staked tokens are stored in this contract
 * Interest payouts are done from the wallet account (thus prior allowance is needed)
 * Note: Multiple staking contracts can be deployed simultaneously
 */
contract ExenoTokenStaking is
    Ownable,
    Pausable,
    ReentrancyGuard,
    ERC1363Payable
{
    using SafeERC20 for IERC1363;

    // The tokens being staked
    IERC1363 public immutable token;

    // Source of interest payouts
    address public immutable wallet;

    /**
     * Interest rate per annum
     * Expressed as 10**4, e.g. 1285 means 0.1285 or 12.85%
     */
    uint256 public annualizedInterestRate;

    /**
     * Rebase period, expressed in hours
     * 24 means rebasing every day, 168 means rebasing every week, etc
     */
    uint256 public immutable rebasePeriodInHours;

    // Mode of calculating start time for new stakes
    StakeStartMode public stakeStartMode;

    // Date when this staking contract is terminated
    uint256 public endDate;

    // The total amount of currently staked tokens
    uint256 public totalTokensStaked;

    // Available options for `stakeStartMode`
    enum StakeStartMode {
        IMMEDIATE,
        NEAREST_FULL_HOUR,
        NEAREST_MIDNIGHT,
        NEAREST_1AM,
        NEAREST_NOON,
        NEAREST_1PM
    }
    
    // Represents a single staking deposit
    struct Stake {
        address user;
        uint256 timestamp;
        uint256 amount;
    }

    // Represents a stakeholder with active stakes
    struct Stakeholder {
        address user;
        uint256 totalAmount;
        Stake[] stakes;
    }

    // Represents a financial record for a single stake
    struct Record {
        uint256 timestamp;
        uint256 amount;
        uint256 interest;
        uint256 claimable;
        uint256 nextRebaseClaimable;
        uint256 nextRebaseTimestamp;
    }

    // Represents all records owned by a stakeholder
    struct StakingStatus {
        uint256 timestamp;
        uint256 totalAmount;
        Record[] records;
    }

    /**
     * Contains all stakes done with this contract
     * The stakes for each address are stored at an index which can be found using the `stakes` mapping
     */
    Stakeholder[] internal _stakeholders;

    // Keeps track of the index for the stakers in the stakes array
    mapping(address => uint256) internal _stakeMap;

    // Triggered whenever someone stakes tokens
    event Staked(
        address indexed user,
        uint256 amount
    );

    // Triggered whenever someone unstakes tokens
    event Unstaked(
        address indexed user,
        uint256 amount,
        uint256 payout
    );

    // Triggered when interest-rate is updated
    event UpdateAnnualizedInterestRate(
        uint256 previousRate,
        uint256 currentRate
    );

    // Triggered when start-mode is updated
    event UpdateStakeStartMode(
        StakeStartMode previousMode,
        StakeStartMode currentMode
    );

    // Triggered when end-date is updated
    event ExtendEndDate(
        uint256 previousEndDate,
        uint256 currentEndDate
    );

    modifier validAddress(address a) {
        require(a != address(0),
            "ExenoTokenStaking: address cannot be zero");
        require(a != address(this),
            "ExenoTokenStaking: invalid address");
        _;
    }

    constructor(
        IERC1363 _token,
        uint256 _annualizedInterestRate,
        uint256 _rebasePeriodInHours,
        uint8 _stakeStartMode,
        address _wallet,
        uint256 _endDate
    )
        ERC1363Payable(_token)
        validAddress(_wallet)
    {
        require(_annualizedInterestRate > 0,
            "ExenoTokenStaking: invalid annualized interest rate");

        require(_rebasePeriodInHours > 0,
            "ExenoTokenStaking: invalid rebase period");

        require(_stakeStartMode <= uint256(StakeStartMode.NEAREST_1PM),
            "ExenoTokenStaking: invalid stake start mode");

        require(_endDate > block.timestamp,
            "ExenoTokenStaking: end-date cannot be in the past");

        token = _token;
        annualizedInterestRate = _annualizedInterestRate;
        rebasePeriodInHours = _rebasePeriodInHours;
        stakeStartMode = StakeStartMode(_stakeStartMode);
        wallet = _wallet;
        endDate = _endDate;
        
        // Index 0 indicates a non-existing stakeholder
        _stakeholders.push();
    }

    /**
     * @dev When tokens are sent to this contract with `transferAndCall` a new stake is created for the sender
     * @param sender The address performing the action
     * @param amount The amount of tokens transferred
     */
    function _transferReceived(address, address sender, uint256 amount, bytes memory)
        internal override validAddress(sender)
    {
        _stake(sender, amount);
    }

    /**
     * @dev Adds a stakeholder to the `_stakeholders` array
     * @param stakeholder The stakeholder to be added
     */
    function _addStakeholder(address stakeholder)
        internal validAddress(stakeholder) returns(uint256)
    {
        // Push a empty item to make space for the new stakeholder
        _stakeholders.push();
        // Calculate the index of the last item in the array
        uint256 userIndex = _stakeholders.length - 1;
        // Assign the address to the new index
        _stakeholders[userIndex].user = stakeholder;
        // Add index to the map
        _stakeMap[stakeholder] = userIndex;
        return userIndex;
    }

    /**
     * @dev Creates a new stake for a sender
     * @param stakeholder Who is staking
     * @param amount Amount of tokens to be staked
     */
    function _stake(address stakeholder, uint256 amount)
        internal validAddress(stakeholder) whenNotPaused
    {
        require(amount > 0,
            "ExenoTokenStaking: amount cannot be zero");

        require(endDate > block.timestamp,
            "ExenoTokenStaking: end-date is expired");

        // Make sure tokens have been received
        assert(_checkBalanceIntegrity(totalTokensStaked + amount));

        // Mappings in Solidity creates all values, so we can just check the address
        uint256 userIndex = _stakeMap[stakeholder];
        
        // Check if the stakeholder already has a staked index or if its the first time
        if (userIndex == 0) {
            // This stakeholder stakes for the first time
            // We need to add him to the stakeHolders and also map it into the index of the stakes
            // The index returned will be the index of the stakeholder in the _stakeholders array
            userIndex = _addStakeholder(stakeholder);
        }

        // Use the index to push a new stake
        _stakeholders[userIndex].stakes.push(
            Stake(stakeholder, _calculateStartTimestamp(), amount)
        );

        // Track the total amount of staked tokens for the user
        _stakeholders[userIndex].totalAmount += amount;

        // Track the total balance of staked tokens for all users
        totalTokensStaked += amount;

        // Emit an event that the stake has occurred
        emit Staked(stakeholder, amount);
    }

    /**
     * @dev Unstaking logic
     * @param userIndex Who is unstaking
     * @param stakeIndex Index of the stake is the users stake counter, starting at 0 for the first stake
     * @param amount Amount of tokens to be unstaked from stakeIndex
     * @return Amount of tokens to be paid as interest payout
     */
    function _unstake(uint256 userIndex, uint256 stakeIndex, uint256 amount)
        internal returns(uint256)
    {
        // Calculate duration
        (,uint256 recentRebaseDuration,,) = _calculateDuration(
            _stakeholders[userIndex].stakes[stakeIndex].timestamp);
        
        // Calculate payout
        uint256 payout = _calculatePayout(recentRebaseDuration, amount);
        
        // Reduce the stake by subtracting the unstaked amount
        _stakeholders[userIndex].stakes[stakeIndex].amount -= amount;

        // Track the total amount of staked tokens for the user
        _stakeholders[userIndex].totalAmount -= amount;

        // Track the balance of staked tokens for all users
        totalTokensStaked -= amount;
        
        return payout;
    }

    /**
     * @dev Purging logic for the stakes array
     * It should be applied after `_unstake` is called
     * @param userIndex User whose stakes are to be purged
     */
    function _purge(uint256 userIndex)
        internal
    {
        Stake[] storage stakes = _stakeholders[userIndex].stakes;

        uint256 i; //index of the current stake in the loop
        uint256 j; //index of the nearest non-zero stake

        // Loop through all stakes
        while (i < stakes.length && j < stakes.length) {
            // Amount equal zero indicates that a stake can be revmoved
            if (stakes[i].amount == 0) {
                // Find the nearest non-zero stake
                if (j == 0) j = i + 1;
                while (j < stakes.length && stakes[j].amount == 0) {
                    j++;
                }
                // If it's found, use it to replace the current stake and then delete it
                if (j < stakes.length) {
                    stakes[i] = stakes[j];
                    delete stakes[j];
                }
                j++;
            }
            i++;
        }

        // If stakes have been shifted, permanently remove the deleted ones
        if (j > i) {
            // At this stage all deleted stakes are at the end of the array
            for (uint256 k = 0; k < j - i; k++) {
                assert(stakes[stakes.length - 1].amount == 0);
                stakes.pop();
            }
        }
    }

    function _checkBalanceIntegrity(uint256 expectedBalance)
        internal view returns(bool)
    {
        return token.balanceOf(address(this)) >= expectedBalance;
    }

    /**
     * @dev Calculates start time for a new stake
     * @return startTimestamp
     */
    function _calculateStartTimestamp()
        internal view virtual returns(uint256)
    {
        if (stakeStartMode == StakeStartMode.IMMEDIATE) {
            return block.timestamp;
        }
        uint256 startTimestamp = block.timestamp;
        if (stakeStartMode == StakeStartMode.NEAREST_FULL_HOUR) {
            // Reverse time to the top of the hour and then add 1 hour
            startTimestamp = startTimestamp / 1 hours * 1 hours + 1 hours;
        } else if (stakeStartMode == StakeStartMode.NEAREST_MIDNIGHT) {
            // Reverse time to 00:00 UTC and then add 1 day
            startTimestamp = startTimestamp / 1 days * 1 days + 1 days;
        } else if (stakeStartMode == StakeStartMode.NEAREST_1AM) {
            // Reverse time to 00:00 UTC and then add 1 hour
            startTimestamp = startTimestamp / 1 days * 1 days + 1 hours;
        } else if (stakeStartMode == StakeStartMode.NEAREST_NOON) {
            // Reverse time to 00:00 UTC and then add 12 hours
            startTimestamp = startTimestamp / 1 days * 1 days + 12 hours;
        } else if (stakeStartMode == StakeStartMode.NEAREST_1PM) {
            // Reverse time to 00:00 UTC and then add 13 hours
            startTimestamp = startTimestamp / 1 days * 1 days + 13 hours;
        }
        // Shift by 1 day if the new start is earlier than the current time
        if (startTimestamp < block.timestamp) {
            startTimestamp += 1 days;
            assert(startTimestamp >= block.timestamp);
        }
        return startTimestamp;
    }

    /**
     * @dev Calculates durations for different scenarios
     * @param startTimestamp When staking started
     * @return actualDuration Actual duration, expressed in hours
     * @return recentRebaseDuration Recent rebase duration, expressed in hours
     * @return nextRebaseDuration Next rebase duration, expressed in hours
     * @return nextRebaseTimestamp Next rebase timestamp expressed in hours
     */
    function _calculateDuration(uint256 startTimestamp)
        internal view virtual returns(
            uint256 actualDuration,
            uint256 recentRebaseDuration,
            uint256 nextRebaseDuration,
            uint256 nextRebaseTimestamp
        )
    {
        // We assume the stake is going to be terminated now
        uint256 endTimestamp = block.timestamp;
        
        // In case endDate has already happened, allow endTimestamp to extend one extra rebase period
        if (endDate < endTimestamp) {
            endTimestamp = Math.min(endTimestamp, endDate + rebasePeriodInHours * 1 hours);
        }

        // Actual duration of the stake, expressed in hours
        actualDuration = 0;
        
        // When the stake is already started, actualDuration becomes non-zero
        if (startTimestamp < endTimestamp) {
            actualDuration = (endTimestamp - startTimestamp) / 1 hours;
        }

        // Duration of the most recent rebase, expressed in hours
        recentRebaseDuration = (actualDuration / rebasePeriodInHours) * rebasePeriodInHours;

        // If no additional interest can be accrued, reduce actualDuration to recentRebaseDuration
        if (endTimestamp < block.timestamp) {
            actualDuration = recentRebaseDuration;
        }

        // Duration of the next rebase, expressed in hours
        nextRebaseDuration = 0;
        nextRebaseTimestamp = 0;
        
        // If this in not the last rebase, set nextRebaseDuration by extending recentRebaseDuration by one rebase period
        if (startTimestamp + recentRebaseDuration * 1 hours < endDate) {
            nextRebaseDuration = recentRebaseDuration + rebasePeriodInHours;
            nextRebaseTimestamp = startTimestamp + nextRebaseDuration * 1 hours;
        }
    }

    /**
     * @dev Calculates interest payout
     * @param duration Duration expressed in hours
     * @param amount Amount of tokens staked
     * @return Actual or potential payout
     */
    function _calculatePayout(uint256 duration, uint256 amount)
        internal view virtual returns(uint256)
    {
        return duration * amount * annualizedInterestRate / 365 / 24 / 10**4;
    }

    function pause()
        external onlyOwner
    {
        _pause();
    }

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

    /**
     * @notice Sets a new annualized-interest-rate
     * @param newAnnualizedInterestRate New value for the rate
     */
    function updateAnnualizedInterestRate(uint256 newAnnualizedInterestRate)
        external onlyOwner
    {
        require(newAnnualizedInterestRate > 0,
            "ExenoTokenStaking: invalid annualized interest rate");
        
        emit UpdateAnnualizedInterestRate(annualizedInterestRate, newAnnualizedInterestRate);
        annualizedInterestRate = newAnnualizedInterestRate;
    }

    /**
     * @notice Sets a new stake-start-mode
     * @param newStakeStartValue New value for the mode
     */
    function updateStakeStartMode(uint8 newStakeStartValue)
        external onlyOwner
    {
        require(newStakeStartValue <= uint256(StakeStartMode.NEAREST_1PM),
            "ExenoTokenStaking: invalid stake start mode");
        
        StakeStartMode newStakeStartMode = StakeStartMode(newStakeStartValue);
        emit UpdateStakeStartMode(stakeStartMode, newStakeStartMode);
        stakeStartMode = newStakeStartMode;
    }

    /**
     * @notice Sets a new end-date under the following conditions:
     * (1) the existing end-date has not expired yet
     * (2) the new end-date is later then existing end-date
     * @param newEndDate New value for the end-date
     */
    function extendEndDate(uint256 newEndDate)
        external onlyOwner
    {
        require(newEndDate > block.timestamp,
            "ExenoTokenStaking: new end-date cannot be in the past");

        require(newEndDate > endDate,
            "ExenoTokenStaking: new end-date cannot be prior to existing end-date");
        
        require(endDate > block.timestamp,
            "ExenoTokenStaking: cannot set a new end-date as existing end-date is expired");
        
        emit ExtendEndDate(endDate, newEndDate);
        endDate = newEndDate;
    }

    /**
     * @notice Generates a staking status report for a given stakeholder
     * @param stakeholder For whom is the report
     * @return StakingStatus report
     */
    function getStakingStatus(address stakeholder)
        external view validAddress(stakeholder) returns(StakingStatus memory)
    {
        Stake[] memory stakes = _stakeholders[_stakeMap[stakeholder]].stakes;
        Record[] memory records = new Record[](stakes.length);
        for (uint256 i = 0; i < stakes.length; i++) {
            uint256 timestamp = stakes[i].timestamp;
            records[i].timestamp = timestamp;
            (
                uint256 actualDuration,
                uint256 recentRebaseDuration,
                uint256 nextRebaseDuration,
                uint256 nextRebaseTimestamp
            ) = _calculateDuration(timestamp);
            uint256 amount = stakes[i].amount;
            records[i].amount = amount;
            records[i].interest = _calculatePayout(actualDuration, amount);
            records[i].claimable = _calculatePayout(recentRebaseDuration, amount);
            records[i].nextRebaseClaimable = _calculatePayout(nextRebaseDuration, amount);
            records[i].nextRebaseTimestamp = nextRebaseTimestamp;
        }
        StakingStatus memory status = StakingStatus(block.timestamp,
            _stakeholders[_stakeMap[stakeholder]].totalAmount, records);
        return status;
    }

    /**
     * @notice Returns the number of stakeholders
     * @return Number of stakeholders
     */
    function getNumberOfStakeholders()
        external view returns(uint256)
    {
        return _stakeholders.length - 1;
    }

    /**
     * @notice Shows the current amount of tokens available for payouts
     * @return Owner's balance and this contract's allowance
     */
    function checkAvailableFunds()
        external view returns(uint256, uint256)
    {
        return (token.balanceOf(wallet), token.allowance(wallet, address(this)));
    }

    /**
     * @notice Withdraws stake from a given staking index and makes appropriate transfers
     * @param amount Amount to unstake, zero indicates maximum available
     * @param stakeIndex Index of the stake is the users stake counter, starting at 0 for the first stake
     * @param skipPayout Whether to give up interest payout (do not use it unless you have to)
     */
    function unstake(uint256 amount, uint256 stakeIndex, bool skipPayout)
        external nonReentrant
    {
        address stakeholder = msg.sender;
        uint256 userIndex = _stakeMap[stakeholder];

        Stake[] memory stakes = _stakeholders[userIndex].stakes;

        require(stakes.length > 0,
            "ExenoTokenStaking: this account has never made any staking");

        require(stakeIndex < stakes.length,
            "ExenoTokenStaking: provided index is out of range");

        Stake memory currentStake = stakes[stakeIndex];

        if (amount > 0) {
            require(currentStake.amount >= amount,
                "ExenoTokenStaking: there is not enough stake on the provided index for the requested amount");
        } else {
            // Amount equal to zero indicates that the entire index needs to be unstaked
            require(currentStake.amount > 0,
                "ExenoTokenStaking: there is not enough stake on the provided index for the requested amount");
            amount = currentStake.amount;
        }

        // Unstake and calculate the payout
        uint256 payout = _unstake(userIndex, stakeIndex, amount);
        
        // Reduce payout to zero in case we don't need it
        if (skipPayout) payout = 0;
        
        require(token.balanceOf(wallet) >= payout,
            "ExenoTokenStaking: not enough balance for payout");

        require(token.allowance(wallet, address(this)) >= payout,
            "ExenoTokenStaking: not enough allowance for payout");

        assert(_checkBalanceIntegrity(totalTokensStaked));

        // Apply purging right after unstaking to eliminate empty stakes
        _purge(userIndex);

        // Return staked tokens to the stakeholder
        token.safeTransfer(stakeholder, amount);

        // Send payout to the stakeholder
        if (payout > 0) {
            token.safeTransferFrom(wallet, stakeholder, payout);
        }
        
        assert(_checkBalanceIntegrity(totalTokensStaked));

        // Emit an event that unstaking has occurred
        emit Unstaked(stakeholder, amount, payout);
    }
    
    /**
     * @notice Withdraws stake by applying the FIFO rule - no staking index needs to be provided
     * @param amount Amount to unstake, zero indicates maximum available
     */
    function unstakeFifo(uint256 amount)
        external nonReentrant
    {
        address stakeholder = msg.sender;
        uint256 userIndex = _stakeMap[stakeholder];

        Stake[] memory stakes = _stakeholders[userIndex].stakes;

        require(stakes.length > 0,
            "ExenoTokenStaking: this account has never made any staking");

        // Amount equal to zero indicates that all indexes need to be unstaked
        if (amount == 0) {
            amount = _stakeholders[userIndex].totalAmount;
            require(amount > 0,
                "ExenoTokenStaking: not enough stake on all indexes for the requested amount");
        }
        
        // FIFO unstaking loop
        uint256 amountLeft = amount;
        uint256 payout = 0;
        uint256 index = 0;
        while (amountLeft > 0 && index < stakes.length) {
            uint256 bite = Math.min(stakes[index].amount, amountLeft);
            payout += _unstake(userIndex, index, bite);
            amountLeft -= bite;
            index++;
        }

        require(amountLeft == 0,
            "ExenoTokenStaking: not enough stake on all indexes for the requested amount");

        require(token.balanceOf(wallet) >= payout,
            "ExenoTokenStaking: not enough balance for payout");

        require(token.allowance(wallet, address(this)) >= payout,
            "ExenoTokenStaking: not enough allowance for payout");

        assert(_checkBalanceIntegrity(totalTokensStaked));

        // Apply purging after the entire unstaking loop
        _purge(userIndex);

        // Return staked tokens to the stakeholder
        token.safeTransfer(stakeholder, amount);

        // Send payout to the stakeholder
        token.safeTransferFrom(wallet, stakeholder, payout);

        assert(_checkBalanceIntegrity(totalTokensStaked));

        // Emit an event that unstaking has occurred
        emit Unstaked(stakeholder, amount, payout);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC1363","name":"_token","type":"address"},{"internalType":"uint256","name":"_annualizedInterestRate","type":"uint256"},{"internalType":"uint256","name":"_rebasePeriodInHours","type":"uint256"},{"internalType":"uint8","name":"_stakeStartMode","type":"uint8"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_endDate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousEndDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentEndDate","type":"uint256"}],"name":"ExtendEndDate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"TokensApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"TokensReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentRate","type":"uint256"}],"name":"UpdateAnnualizedInterestRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum ExenoTokenStaking.StakeStartMode","name":"previousMode","type":"uint8"},{"indexed":false,"internalType":"enum ExenoTokenStaking.StakeStartMode","name":"currentMode","type":"uint8"}],"name":"UpdateStakeStartMode","type":"event"},{"inputs":[],"name":"acceptedToken","outputs":[{"internalType":"contract IERC1363","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"annualizedInterestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkAvailableFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newEndDate","type":"uint256"}],"name":"extendEndDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getNumberOfStakeholders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakeholder","type":"address"}],"name":"getStakingStatus","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interest","type":"uint256"},{"internalType":"uint256","name":"claimable","type":"uint256"},{"internalType":"uint256","name":"nextRebaseClaimable","type":"uint256"},{"internalType":"uint256","name":"nextRebaseTimestamp","type":"uint256"}],"internalType":"struct ExenoTokenStaking.Record[]","name":"records","type":"tuple[]"}],"internalType":"struct ExenoTokenStaking.StakingStatus","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onApprovalReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onTransferReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasePeriodInHours","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeStartMode","outputs":[{"internalType":"enum ExenoTokenStaking.StakeStartMode","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC1363","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakeIndex","type":"uint256"},{"internalType":"bool","name":"skipPayout","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeFifo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAnnualizedInterestRate","type":"uint256"}],"name":"updateAnnualizedInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newStakeStartValue","type":"uint8"}],"name":"updateStakeStartMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b50604051620039a6380380620039a68339810160408190526200003491620004fc565b85620000403362000483565b6000805460ff60a01b19169055600180556001600160a01b038116620000c35760405162461bcd60e51b815260206004820152602d60248201527f4552433133363350617961626c653a206163636570746564546f6b656e20697360448201526c207a65726f206164647265737360981b60648201526084015b60405180910390fd5b6040516301ffc9a760e01b815263b0202a1160e01b60048201526001600160a01b038216906301ffc9a79060240160206040518083038186803b1580156200010a57600080fd5b505afa1580156200011f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001459190620004d3565b6200014f57600080fd5b600280546001600160a01b0319166001600160a01b0392831617905582908116620001cf5760405162461bcd60e51b815260206004820152602960248201527f4578656e6f546f6b656e5374616b696e673a20616464726573732063616e6e6f60448201526874206265207a65726f60b81b6064820152608401620000ba565b6001600160a01b038116301415620002355760405162461bcd60e51b815260206004820152602260248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c6964206164647265604482015261737360f01b6064820152608401620000ba565b60008611620002ad5760405162461bcd60e51b815260206004820152603360248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c696420616e6e756160448201527f6c697a656420696e7465726573742072617465000000000000000000000000006064820152608401620000ba565b60008511620003105760405162461bcd60e51b815260206004820152602860248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c696420726562617360448201526719481c195c9a5bd960c21b6064820152608401620000ba565b60058460ff1611156200037a5760405162461bcd60e51b815260206004820152602b60248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c6964207374616b6560448201526a207374617274206d6f646560a81b6064820152608401620000ba565b428211620003e55760405162461bcd60e51b815260206004820152603160248201527f4578656e6f546f6b656e5374616b696e673a20656e642d646174652063616e6e6044820152701bdd081899481a5b881d1a19481c185cdd607a1b6064820152608401620000ba565b6001600160601b0319606088901b16608052600386905560c085905260ff841660058111156200042557634e487b7160e01b600052602160045260246000fd5b6004805460ff191660018360058111156200045057634e487b7160e01b600052602160045260246000fd5b02179055505060609190911b6001600160601b03191660a052600555505060078054600101815560005250620005899050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620004e5578081fd5b81518015158114620004f5578182fd5b9392505050565b60008060008060008060c0878903121562000515578182fd5b8651620005228162000570565b809650506020870151945060408701519350606087015160ff8116811462000548578283fd5b60808801519093506200055b8162000570565b8092505060a087015190509295509295509295565b6001600160a01b03811681146200058657600080fd5b50565b60805160601c60a05160601c60c05161334d62000659600039600081816102a401528181611b3601528181611b9a0152611c060152600081816101e70152818161098c01528181610a4a01528181610d5801528181610e3301528181610f940152818161170e015281816117e9015261194401526000818161038e015281816109b901528181610a7801528181610d8201528181610e6301528181610f3801528181610f720152818161173801528181611819015281816118ee015281816119220152611e65015261334d6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806380a4c36f116100de578063b0e31b2d11610097578063c24a0f8b11610071578063c24a0f8b14610353578063db4984901461035c578063f2fde38b14610376578063fc0c546a1461038957600080fd5b8063b0e31b2d1461032f578063b3d8f3b514610338578063c00dbc581461034057600080fd5b806380a4c36f146102d45780638456cb59146102dd57806388a7ca5c146102e55780638da5cb5b146102f85780639a4e575014610309578063a1df5cd51461031c57600080fd5b80635d49c133116101305780635d49c1331461021b578063715018a61461023b57806374b882701461024357806379b91d69146102605780637b04a2d0146102735780637c6ce0811461029f57600080fd5b806301ffc9a7146101785780633b93d706146101a05780633f4ba83a146101b5578063451c3d80146101bd578063521eb273146101e25780635c975abb14610209575b600080fd5b61018b610186366004612d1b565b6103b0565b60405190151581526020015b60405180910390f35b6101b36101ae366004612d43565b610402565b005b6101b36104e2565b6002546001600160a01b03165b6040516001600160a01b039091168152602001610197565b6101ca7f000000000000000000000000000000000000000000000000000000000000000081565b600054600160a01b900460ff1661018b565b61022e610229366004612c2a565b610516565b6040516101979190613178565b6101b3610941565b61024b610975565b60408051928352602083019190915201610197565b6101b361026e366004612d73565b610afa565b610286610281366004612caa565b611031565b6040516001600160e01b03199091168152602001610197565b6102c67f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610197565b6102c660035481565b6101b36110bb565b6102866102f3366004612c44565b6110ed565b6000546001600160a01b03166101ca565b6101b3610317366004612d43565b61118d565b6101b361032a366004612dab565b611376565b6102c660065481565b6102c66114a5565b6101b361034e366004612d43565b6114bc565b6102c660055481565b6004546103699060ff1681565b6040516101979190612e36565b6101b3610384366004612c2a565b6119e0565b6101ca7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b03198216632229f29760e21b14806103e157506001600160e01b031982166307b04a2d60e41b145b806103fc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146104355760405162461bcd60e51b815260040161042c90613094565b60405180910390fd5b600081116104a15760405162461bcd60e51b815260206004820152603360248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c696420616e6e75616044820152726c697a656420696e746572657374207261746560681b606482015260840161042c565b60035460408051918252602082018390527fb80ed33968a4ea7ba3b4c381c8f7aa0bc266bca745547a3d2ab8c3f4e042c3d6910160405180910390a1600355565b6000546001600160a01b0316331461050c5760405162461bcd60e51b815260040161042c90613094565b610514611a7b565b565b61053a60405180606001604052806000815260200160008152602001606081525090565b816001600160a01b0381166105615760405162461bcd60e51b815260040161042c90612f75565b6001600160a01b03811630141561058a5760405162461bcd60e51b815260040161042c90612ec2565b6001600160a01b0383166000908152600860205260408120546007805490919081106105c657634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201805480602002602001604051908101604052809291908181526020016000905b8282101561064c576000848152602090819020604080516060810182526003860290920180546001600160a01b03168352600180820154848601526002909101549183019190915290835290920191016105f7565b5050505090506000815167ffffffffffffffff81111561067c57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156106e657816020015b6106d36040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b81526020019060019003908161069a5790505b50905060005b82518110156108c157600083828151811061071757634e487b7160e01b600052603260045260246000fd5b60200260200101516020015190508083838151811061074657634e487b7160e01b600052603260045260246000fd5b602090810291909101015152600080808061076085611b18565b9350935093509350600088878151811061078a57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001519050808888815181106107b957634e487b7160e01b600052603260045260246000fd5b602002602001015160200181815250506107d38582611c4e565b8888815181106107f357634e487b7160e01b600052603260045260246000fd5b6020026020010151604001818152505061080d8482611c4e565b88888151811061082d57634e487b7160e01b600052603260045260246000fd5b602002602001015160600181815250506108478382611c4e565b88888151811061086757634e487b7160e01b600052603260045260246000fd5b602002602001015160800181815250508188888151811061089857634e487b7160e01b600052603260045260246000fd5b602002602001015160a001818152505050505050505080806108b9906132c2565b9150506106ec565b50600060405180606001604052804281526020016007600860008a6001600160a01b03166001600160a01b03168152602001908152602001600020548154811061091b57634e487b7160e01b600052603260045260246000fd5b600091825260209182902060016003909202010154825201929092525092505050919050565b6000546001600160a01b0316331461096b5760405162461bcd60e51b815260040161042c90613094565b6105146000611c8f565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260009182917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156109fb57600080fd5b505afa158015610a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a339190612d5b565b604051636eb1769f60e11b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e9060440160206040518083038186803b158015610aba57600080fd5b505afa158015610ace573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af29190612d5b565b915091509091565b60026001541415610b4d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042c565b6002600155336000818152600860205260408120546007805491929183908110610b8757634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201805480602002602001604051908101604052809291908181526020016000905b82821015610c0d576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018082015484860152600290910154918301919091529083529092019101610bb8565b5050505090506000815111610c345760405162461bcd60e51b815260040161042c9061311b565b80518510610c9e5760405162461bcd60e51b815260206004820152603160248201527f4578656e6f546f6b656e5374616b696e673a2070726f766964656420696e646560448201527078206973206f7574206f662072616e676560781b606482015260840161042c565b6000818681518110610cc057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000871115610cfc578681604001511015610cf75760405162461bcd60e51b815260040161042c90613011565b610d28565b6000816040015111610d205760405162461bcd60e51b815260040161042c90613011565b806040015196505b6000610d3584888a611cdf565b90508515610d41575060005b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015282917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190612d5b565b1015610e1c5760405162461bcd60e51b815260040161042c90612e72565b604051636eb1769f60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015230602483015282917f00000000000000000000000000000000000000000000000000000000000000009091169063dd62ed3e9060440160206040518083038186803b158015610ea757600080fd5b505afa158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edf9190612d5b565b1015610efd5760405162461bcd60e51b815260040161042c906130c9565b610f08600654611e43565b610f2257634e487b7160e01b600052600160045260246000fd5b610f2b84611ee7565b610f5f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868a6121c0565b8015610fba57610fba6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008784612228565b610fc5600654611e43565b610fdf57634e487b7160e01b600052600160045260246000fd5b60408051898152602081018390526001600160a01b038716917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a2505060018055505050505050565b6002546000906001600160a01b0316336001600160a01b0316146110675760405162461bcd60e51b815260040161042c90612fbe565b836001600160a01b03167ffc47604465ac19edea172256bab2469184c3a6770701541635cf84241c2f24b484846040516110a292919061320f565b60405180910390a2506307b04a2d60e41b5b9392505050565b6000546001600160a01b031633146110e55760405162461bcd60e51b815260040161042c90613094565b610514612260565b6002546000906001600160a01b0316336001600160a01b0316146111235760405162461bcd60e51b815260040161042c90612fbe565b836001600160a01b0316856001600160a01b03167f01db5e58326b109682dc160b2e51aa7bf7e8d8ccf74bc242a3c5021793789055858560405161116892919061320f565b60405180910390a361117c858585856122e8565b50632229f29760e21b949350505050565b6000546001600160a01b031633146111b75760405162461bcd60e51b815260040161042c90613094565b4281116112245760405162461bcd60e51b815260206004820152603560248201527f4578656e6f546f6b656e5374616b696e673a206e657720656e642d646174652060448201527418d85b9b9bdd081899481a5b881d1a19481c185cdd605a1b606482015260840161042c565b60055481116112a95760405162461bcd60e51b8152602060048201526044602482018190527f4578656e6f546f6b656e5374616b696e673a206e657720656e642d6461746520908201527f63616e6e6f74206265207072696f7220746f206578697374696e6720656e642d6064820152636461746560e01b608482015260a40161042c565b42600554116113355760405162461bcd60e51b815260206004820152604c60248201527f4578656e6f546f6b656e5374616b696e673a2063616e6e6f742073657420612060448201527f6e657720656e642d64617465206173206578697374696e6720656e642d64617460648201526b19481a5cc8195e1c1a5c995960a21b608482015260a40161042c565b60055460408051918252602082018390527f3d757297f68f2711638902300096c774a3d91bd49603798a4d2836cf38e4fe34910160405180910390a1600555565b6000546001600160a01b031633146113a05760405162461bcd60e51b815260040161042c90613094565b60058160ff1611156114085760405162461bcd60e51b815260206004820152602b60248201527f4578656e6f546f6b656e5374616b696e673a20696e76616c6964207374616b6560448201526a207374617274206d6f646560a81b606482015260840161042c565b60008160ff16600581111561142d57634e487b7160e01b600052602160045260246000fd5b6004546040519192507fa8bdffc457972236498fae412ee0eecb91dbdb2ac1a3d51a8666164de77c4db2916114679160ff16908490612e44565b60405180910390a16004805482919060ff1916600183600581111561149c57634e487b7160e01b600052602160045260246000fd5b02179055505050565b6007546000906114b79060019061327f565b905090565b6002600154141561150f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161042c565b600260015533600081815260086020526040812054600780549192918390811061154957634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201805480602002602001604051908101604052809291908181526020016000905b828210156115cf576000848152602090819020604080516060810182526003860290920180546001600160a01b031683526001808201548486015260029091015491830191909152908352909201910161157a565b50505050905060008151116115f65760405162461bcd60e51b815260040161042c9061311b565b83611650576007828154811061161c57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600101549350600084116116505760405162461bcd60e51b815260040161042c90612f04565b836000805b6000831180156116655750835181105b156116d95760006116a185838151811061168f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040015185612342565b90506116ae868383611cdf565b6116b89084613228565b92506116c4818561327f565b9350816116d0816132c2565b92505050611655565b82156116f75760405162461bcd60e51b815260040161042c90612f04565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015283917f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b15801561177c57600080fd5b505afa158015611790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b49190612d5b565b10156117d25760405162461bcd60e51b815260040161042c90612e72565b604051636eb1769f60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015230602483015283917f00000000000000000000000000000000000000000000000000000000000000009091169063dd62ed3e9060440160206040518083038186803b15801561185d57600080fd5b505afa158015611871573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118959190612d5b565b10156118b35760405162461bcd60e51b815260040161042c906130c9565b6118be600654611e43565b6118d857634e487b7160e01b600052600160045260246000fd5b6118e185611ee7565b6119156001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001687896121c0565b61196a6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008885612228565b611975600654611e43565b61198f57634e487b7160e01b600052600160045260246000fd5b60408051888152602081018490526001600160a01b038816917f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e910160405180910390a25050600180555050505050565b6000546001600160a01b03163314611a0a5760405162461bcd60e51b815260040161042c90613094565b6001600160a01b038116611a6f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161042c565b611a7881611c8f565b50565b600054600160a01b900460ff16611acb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161042c565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000806000806000429050806005541015611b7257611b6f81611b5d7f0000000000000000000000000000000000000000000000000000000000000000610e10613260565b600554611b6a9190613228565b612342565b90505b6000945080861015611b9857610e10611b8b878361327f565b611b959190613240565b94505b7f0000000000000000000000000000000000000000000000000000000000000000611bc38187613240565b611bcd9190613260565b935042811015611bdb578394505b60055460009350839250611bf185610e10613260565b611bfb9088613228565b1015611c4657611c2b7f000000000000000000000000000000000000000000000000000000000000000085613228565b9250611c3983610e10613260565b611c439087613228565b91505b509193509193565b6000612710601861016d6003548587611c679190613260565b611c719190613260565b611c7b9190613240565b611c859190613240565b6110b49190613240565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080611d4d60078681548110611d0657634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018581548110611d3657634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160010154611b18565b50509150506000611d5e8285611c4e565b90508360078781548110611d8257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018681548110611db257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002016000828254611dd2919061327f565b925050819055508360078781548110611dfb57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016001016000828254611e1b919061327f565b925050819055508360066000828254611e34919061327f565b90915550909695505050505050565b6040516370a0823160e01b815230600482015260009082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015611ea757600080fd5b505afa158015611ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edf9190612d5b565b101592915050565b600060078281548110611f0a57634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160020190506000805b825482108015611f315750825481105b156120df57828281548110611f5657634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160020154600014156120cd5780611f8357611f80826001613228565b90505b825481108015611fc45750828181548110611fae57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201546000145b15611fdb5780611fd3816132c2565b915050611f83565b82548110156120bf5782818154811061200457634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020183838154811061203257634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460039092020180546001600160a01b0319166001600160a01b0390921691909117815560018083015490820155600291820154910155825483908290811061209657634e487b7160e01b600052603260045260246000fd5b60009182526020822060039091020180546001600160a01b031916815560018101829055600201555b806120c9816132c2565b9150505b816120d7816132c2565b925050611f21565b818111156121ba5760005b6120f4838361327f565b8110156121b8578354849061210b9060019061327f565b8154811061212957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002015460001461215857634e487b7160e01b600052600160045260246000fd5b8380548061217657634e487b7160e01b600052603160045260246000fd5b60008281526020812060036000199093019283020180546001600160a01b031916815560018101829055600201559055806121b0816132c2565b9150506120ea565b505b50505050565b6040516001600160a01b03831660248201526044810182905261222390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612358565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526121ba9085906323b872dd60e01b906084016121ec565b600054600160a01b900460ff16156122ad5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161042c565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611afb3390565b826001600160a01b03811661230f5760405162461bcd60e51b815260040161042c90612f75565b6001600160a01b0381163014156123385760405162461bcd60e51b815260040161042c90612ec2565b6121b8848461242a565b600081831061235157816110b4565b5090919050565b60006123ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127339092919063ffffffff16565b80519091501561222357808060200190518101906123cb9190612cff565b6122235760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161042c565b816001600160a01b0381166124515760405162461bcd60e51b815260040161042c90612f75565b6001600160a01b03811630141561247a5760405162461bcd60e51b815260040161042c90612ec2565b600054600160a01b900460ff16156124c75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161042c565b600082116125285760405162461bcd60e51b815260206004820152602860248201527f4578656e6f546f6b656e5374616b696e673a20616d6f756e742063616e6e6f74604482015267206265207a65726f60c01b606482015260840161042c565b42600554116125885760405162461bcd60e51b815260206004820152602660248201527f4578656e6f546f6b656e5374616b696e673a20656e642d6461746520697320656044820152651e1c1a5c995960d21b606482015260840161042c565b61259e826006546125999190613228565b611e43565b6125b857634e487b7160e01b600052600160045260246000fd5b6001600160a01b038316600090815260086020526040902054806125e2576125df8461274a565b90505b6007818154811061260357634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002016040518060600160405280866001600160a01b03168152602001612636612822565b81526020908101869052825460018082018555600094855293829020835160039092020180546001600160a01b0319166001600160a01b0390921691909117815590820151928101929092556040015160029091015560078054849190839081106126b157634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160010160008282546126d19190613228565b9250508190555082600660008282546126ea9190613228565b90915550506040518381526001600160a01b038516907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a250505050565b60606127428484600085612a2b565b949350505050565b6000816001600160a01b0381166127735760405162461bcd60e51b815260040161042c90612f75565b6001600160a01b03811630141561279c5760405162461bcd60e51b815260040161042c90612ec2565b60078054600190810180835560009283526127b7919061327f565b905083600782815481106127db57634e487b7160e01b600052603260045260246000fd5b60009182526020808320600390920290910180546001600160a01b039485166001600160a01b03199091161790559186168152600890915260409020819055915050919050565b60008060045460ff16600581111561284a57634e487b7160e01b600052602160045260246000fd5b141561285557504290565b42600160045460ff16600581111561287d57634e487b7160e01b600052602160045260246000fd5b14156128ae5761288f610e1082613240565b61289b90610e10613260565b6128a790610e10613228565b90506129f1565b600260045460ff1660058111156128d557634e487b7160e01b600052602160045260246000fd5b1415612902576128e86201518082613240565b6128f59062015180613260565b6128a79062015180613228565b600360045460ff16600581111561292957634e487b7160e01b600052602160045260246000fd5b14156129495761293c6201518082613240565b61289b9062015180613260565b6004805460ff16600581111561296f57634e487b7160e01b600052602160045260246000fd5b141561299b576129826201518082613240565b61298f9062015180613260565b6128a79061a8c0613228565b600560045460ff1660058111156129c257634e487b7160e01b600052602160045260246000fd5b14156129f1576129d56201518082613240565b6129e29062015180613260565b6129ee9061b6d0613228565b90505b42811015612a2657612a066201518082613228565b905042811015612a2657634e487b7160e01b600052600160045260246000fd5b919050565b606082471015612a8c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161042c565b843b612ada5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161042c565b600080866001600160a01b03168587604051612af69190612e1a565b60006040518083038185875af1925050503d8060008114612b33576040519150601f19603f3d011682016040523d82523d6000602084013e612b38565b606091505b5091509150612b48828286612b53565b979650505050505050565b60608315612b625750816110b4565b825115612b725782518084602001fd5b8160405162461bcd60e51b815260040161042c9190612e5f565b80356001600160a01b0381168114612a2657600080fd5b600082601f830112612bb3578081fd5b813567ffffffffffffffff80821115612bce57612bce6132f3565b604051601f8301601f19908116603f01168101908282118183101715612bf657612bf66132f3565b81604052838152866020858801011115612c0e578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612c3b578081fd5b6110b482612b8c565b60008060008060808587031215612c59578283fd5b612c6285612b8c565b9350612c7060208601612b8c565b925060408501359150606085013567ffffffffffffffff811115612c92578182fd5b612c9e87828801612ba3565b91505092959194509250565b600080600060608486031215612cbe578283fd5b612cc784612b8c565b925060208401359150604084013567ffffffffffffffff811115612ce9578182fd5b612cf586828701612ba3565b9150509250925092565b600060208284031215612d10578081fd5b81516110b481613309565b600060208284031215612d2c578081fd5b81356001600160e01b0319811681146110b4578182fd5b600060208284031215612d54578081fd5b5035919050565b600060208284031215612d6c578081fd5b5051919050565b600080600060608486031215612d87578283fd5b83359250602084013591506040840135612da081613309565b809150509250925092565b600060208284031215612dbc578081fd5b813560ff811681146110b4578182fd5b60008151808452612de4816020860160208601613296565b601f01601f19169290920160200192915050565b60068110612e1657634e487b7160e01b600052602160045260246000fd5b9052565b60008251612e2c818460208701613296565b9190910192915050565b602081016103fc8284612df8565b60408101612e528285612df8565b6110b46020830184612df8565b6020815260006110b46020830184612dcc565b60208082526030908201527f4578656e6f546f6b656e5374616b696e673a206e6f7420656e6f75676820626160408201526f1b185b98d948199bdc881c185e5bdd5d60821b606082015260800190565b60208082526022908201527f4578656e6f546f6b656e5374616b696e673a20696e76616c6964206164647265604082015261737360f01b606082015260800190565b6020808252604b908201527f4578656e6f546f6b656e5374616b696e673a206e6f7420656e6f75676820737460408201527f616b65206f6e20616c6c20696e646578657320666f722074686520726571756560608201526a1cdd195908185b5bdd5b9d60aa1b608082015260a00190565b60208082526029908201527f4578656e6f546f6b656e5374616b696e673a20616464726573732063616e6e6f60408201526874206265207a65726f60b81b606082015260800190565b60208082526033908201527f4552433133363350617961626c653a206163636570746564546f6b656e206973604082015272103737ba1036b2b9b9b0b3b29039b2b73232b960691b606082015260800190565b6020808252605b908201527f4578656e6f546f6b656e5374616b696e673a207468657265206973206e6f742060408201527f656e6f756768207374616b65206f6e207468652070726f766964656420696e6460608201527f657820666f72207468652072657175657374656420616d6f756e740000000000608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526032908201527f4578656e6f546f6b656e5374616b696e673a206e6f7420656e6f75676820616c6040820152711b1bddd85b98d948199bdc881c185e5bdd5d60721b606082015260800190565b6020808252603a908201527f4578656e6f546f6b656e5374616b696e673a2074686973206163636f756e742060408201527f686173206e65766572206d61646520616e79207374616b696e67000000000000606082015260800190565b60006020808352608080840185518386015282860151604081818801528088015191506060808189015283835180865260a09550858a0191508785019450885b818110156131ff57855180518452898101518a850152858101518685015284810151858501528881015189850152870151878401529488019460c0909201916001016131b8565b50909a9950505050505050505050565b8281526040602082015260006127426040830184612dcc565b6000821982111561323b5761323b6132dd565b500190565b60008261325b57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561327a5761327a6132dd565b500290565b600082821015613291576132916132dd565b500390565b60005b838110156132b1578181015183820152602001613299565b838111156121ba5750506000910152565b60006000198214156132d6576132d66132dd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611a7857600080fdfea264697066735822122075166ec2a69d8856ae4b4a750e21de5a2b72763deb5401c94cac6bba658b614b64736f6c634300080400330000000000000000000000000c9b3ab1bd0cf0745625381f5c3aa1cd9bbc7abb000000000000000000000000000000000000000000000000000000000000041a00000000000000000000000000000000000000000000000000000000000008700000000000000000000000000000000000000000000000000000000000000003000000000000000000000000463ec71b1e1faf554ef9d5b7852635bcf6d6e7360000000000000000000000000000000000000000000000000000000062be38ff

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

0000000000000000000000000c9b3ab1bd0cf0745625381f5c3aa1cd9bbc7abb000000000000000000000000000000000000000000000000000000000000041a00000000000000000000000000000000000000000000000000000000000008700000000000000000000000000000000000000000000000000000000000000003000000000000000000000000463ec71b1e1faf554ef9d5b7852635bcf6d6e7360000000000000000000000000000000000000000000000000000000062be38ff

-----Decoded View---------------
Arg [0] : _token (address): 0x0c9b3aB1bd0CF0745625381F5C3Aa1CD9BBc7Abb
Arg [1] : _annualizedInterestRate (uint256): 1050
Arg [2] : _rebasePeriodInHours (uint256): 2160
Arg [3] : _stakeStartMode (uint8): 3
Arg [4] : _wallet (address): 0x463EC71B1e1FaF554EF9d5B7852635bCf6d6E736
Arg [5] : _endDate (uint256): 1656633599

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000c9b3ab1bd0cf0745625381f5c3aa1cd9bbc7abb
Arg [1] : 000000000000000000000000000000000000000000000000000000000000041a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000870
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 000000000000000000000000463ec71b1e1faf554ef9d5b7852635bcf6d6e736
Arg [5] : 0000000000000000000000000000000000000000000000000000000062be38ff


Deployed ByteCode Sourcemap

43667:23244:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35166:305;;;;;;:::i;:::-;;:::i;:::-;;;5965:14:1;;5958:22;5940:41;;5928:2;5913:18;35166:305:0;;;;;;;;58339:397;;;;;;:::i;:::-;;:::i;:::-;;58116:81;;;:::i;37174:96::-;37248:14;;-1:-1:-1;;;;;37248:14:0;37174:96;;;-1:-1:-1;;;;;4788:32:1;;;4770:51;;4758:2;4743:18;37174:96:0;4725:102:1;43920:31:0;;;;;39559:86;39606:4;39630:7;-1:-1:-1;;;39630:7:0;;;;39559:86;;60320:1267;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;42458:103::-;;;:::i;61994:176::-;;;:::i;:::-;;;;19053:25:1;;;19109:2;19094:18;;19087:34;;;;19026:18;61994:176:0;19008:119:1;62564:2163:0;;;;;;:::i;:::-;;:::i;36665:443::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;6154:33:1;;;6136:52;;6124:2;6109:18;36665:443:0;6091:103:1;44249:44:0;;;;;;;;18550:25:1;;;18538:2;18523:18;44249:44:0;18505:76:1;44071:37:0;;;;;;58031:77;;;:::i;35870:491::-;;;;;;:::i;:::-;;:::i;41807:87::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;41807:87;;59565:568;;;;;;:::i;:::-;;:::i;58863:440::-;;;;;;:::i;:::-;;:::i;44538:32::-;;;;;;61703:130;;;:::i;64929:1979::-;;;;;;:::i;:::-;;:::i;44455:22::-;;;;;;44356:36;;;;;;;;;;;;;;;;:::i;42716:201::-;;;;;;:::i;:::-;;:::i;43845:31::-;;;;;35166:305;35259:4;-1:-1:-1;;;;;;35296:49:0;;-1:-1:-1;;;35296:49:0;;:114;;-1:-1:-1;;;;;;;35362:48:0;;-1:-1:-1;;;35362:48:0;35296:114;:167;;;-1:-1:-1;;;;;;;;;;9419:40:0;;;35427:36;35276:187;35166:305;-1:-1:-1;;35166:305:0:o;58339:397::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;;;;;;;;;58492:1:::1;58464:25;:29;58456:106;;;::::0;-1:-1:-1;;;58456:106:0;;7407:2:1;58456:106:0::1;::::0;::::1;7389:21:1::0;7446:2;7426:18;;;7419:30;7485:34;7465:18;;;7458:62;-1:-1:-1;;;7536:18:1;;;7529:49;7595:19;;58456:106:0::1;7379:241:1::0;58456:106:0::1;58617:22;::::0;58588:79:::1;::::0;;19053:25:1;;;19109:2;19094:18;;19087:34;;;58588:79:0::1;::::0;19026:18:1;58588:79:0::1;;;;;;;58678:22;:50:::0;58339:397::o;58116:81::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;58179:10:::1;:8;:10::i;:::-;58116:81::o:0;60320:1267::-;60424:20;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;60424:20:0;60403:11;-1:-1:-1;;;;;46725:15:0;;46717:82;;;;-1:-1:-1;;;46717:82:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46818:18:0;;46831:4;46818:18;;46810:78;;;;-1:-1:-1;;;46810:78:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;60500:22:0;::::1;60462:21;60500:22:::0;;;:9:::1;:22;::::0;;;;;60486:13:::1;:37:::0;;:13;;60500:22;60486:37;::::1;;;-1:-1:-1::0;;;60486:37:0::1;;;;;;;;;;;;;;;;;;;:44;;60462:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;60462:68:0::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;::::1;::::0;::::1;;;;;;;;;;60541:23;60580:6;:13;60567:27;;;;;;-1:-1:-1::0;;;60567:27:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60567:27:0::1;;;;;;;;;;;;;;;;;60541:53;;60610:9;60605:807;60629:6;:13;60625:1;:17;60605:807;;;60664:17;60684:6;60691:1;60684:9;;;;;;-1:-1:-1::0;;;60684:9:0::1;;;;;;;;;;;;;;;:19;;;60664:39;;60741:9;60718:7;60726:1;60718:10;;;;;;-1:-1:-1::0;;;60718:10:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;:32;:20:::1;::::0;;;60962:29:::1;60981:9:::0;60962:18:::1;:29::i;:::-;60765:226;;;;;;;;61006:14;61023:6;61030:1;61023:9;;;;;;-1:-1:-1::0;;;61023:9:0::1;;;;;;;;;;;;;;;:16;;;61006:33;;61074:6;61054:7;61062:1;61054:10;;;;;;-1:-1:-1::0;;;61054:10:0::1;;;;;;;;;;;;;;;:17;;:26;;;::::0;::::1;61117:40;61134:14;61150:6;61117:16;:40::i;:::-;61095:7;61103:1;61095:10;;;;;;-1:-1:-1::0;;;61095:10:0::1;;;;;;;;;;;;;;;:19;;:62;;;::::0;::::1;61195:46;61212:20;61234:6;61195:16;:46::i;:::-;61172:7;61180:1;61172:10;;;;;;-1:-1:-1::0;;;61172:10:0::1;;;;;;;;;;;;;;;:20;;:69;;;::::0;::::1;61289:44;61306:18;61326:6;61289:16;:44::i;:::-;61256:7;61264:1;61256:10;;;;;;-1:-1:-1::0;;;61256:10:0::1;;;;;;;;;;;;;;;:30;;:77;;;::::0;::::1;61381:19;61348:7;61356:1;61348:10;;;;;;-1:-1:-1::0;;;61348:10:0::1;;;;;;;;;;;;;;;:30;;:52;;;::::0;::::1;60605:807;;;;;;60644:3;;;;;:::i;:::-;;;;60605:807;;;;61422:27;61452:103;;;;;;;;61466:15;61452:103;;;;61496:13;61510:9;:22;61520:11;-1:-1:-1::0;;;;;61510:22:0::1;-1:-1:-1::0;;;;;61510:22:0::1;;;;;;;;;;;;;61496:37;;;;;;-1:-1:-1::0;;;61496:37:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;:49:::1;:37;::::0;;::::1;;:49;::::0;61452:103;;::::1;::::0;;;;-1:-1:-1;61422:133:0;-1:-1:-1;;60320:1267:0;;;;:::o;42458:103::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;42523:30:::1;42550:1;42523:18;:30::i;61994:176::-:0;62098:23;;-1:-1:-1;;;62098:23:0;;-1:-1:-1;;;;;62114:6:0;4788:32:1;;62098:23:0;;;4770:51:1;-1:-1:-1;;;;62098:5:0;:15;;;;4743:18:1;;62098:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62123:38;;-1:-1:-1;;;62123:38:0;;-1:-1:-1;;;;;62139:6:0;5062:15:1;;62123:38:0;;;5044:34:1;62155:4:0;5094:18:1;;;5087:43;62123:5:0;:15;;;;4979:18:1;;62123:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62090:72;;;;61994:176;;:::o;62564:2163::-;11286:1;11884:7;;:19;;11876:63;;;;-1:-1:-1;;;11876:63:0;;16091:2:1;11876:63:0;;;16073:21:1;16130:2;16110:18;;;16103:30;16169:33;16149:18;;;16142:61;16220:18;;11876:63:0;16063:181:1;11876:63:0;11286:1;12017:7;:18;62703:10:::1;62681:19;62744:22:::0;;;:9:::1;:22;::::0;;;;;62803:13:::1;:24:::0;;62744:22;;62681:19;62744:22;;62803:24;::::1;;;-1:-1:-1::0;;;62803:24:0::1;;;;;;;;;;;;;;;;;;;:31;;62779:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;62779:55:0::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;::::1;::::0;::::1;;;;;;;;;;62871:1;62855:6;:13;:17;62847:101;;;;-1:-1:-1::0;;;62847:101:0::1;;;;;;;:::i;:::-;62982:6;:13;62969:10;:26;62961:101;;;::::0;-1:-1:-1;;;62961:101:0;;8996:2:1;62961:101:0::1;::::0;::::1;8978:21:1::0;9035:2;9015:18;;;9008:30;9074:34;9054:18;;;9047:62;-1:-1:-1;;;9125:18:1;;;9118:47;9182:19;;62961:101:0::1;8968:239:1::0;62961:101:0::1;63075:25;63103:6;63110:10;63103:18;;;;;;-1:-1:-1::0;;;63103:18:0::1;;;;;;;;;;;;;;;63075:46;;63147:1;63138:6;:10;63134:503;;;63196:6;63173:12;:19;;;:29;;63165:150;;;;-1:-1:-1::0;;;63165:150:0::1;;;;;;;:::i;:::-;63134:503;;;63468:1;63446:12;:19;;;:23;63438:144;;;;-1:-1:-1::0;;;63438:144:0::1;;;;;;;:::i;:::-;63606:12;:19;;;63597:28;;63134:503;63694:14;63711:39;63720:9;63731:10;63743:6;63711:8;:39::i;:::-;63694:56;;63834:10;63830:26;;;-1:-1:-1::0;63855:1:0::1;63830:26;63885:23;::::0;-1:-1:-1;;;63885:23:0;;-1:-1:-1;;;;;63901:6:0::1;4788:32:1::0;;63885:23:0::1;::::0;::::1;4770:51:1::0;63912:6:0;;63885:5:::1;:15:::0;;::::1;::::0;::::1;::::0;4743:18:1;;63885:23:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:33;;63877:107;;;;-1:-1:-1::0;;;63877:107:0::1;;;;;;;:::i;:::-;64005:38;::::0;-1:-1:-1;;;64005:38:0;;-1:-1:-1;;;;;64021:6:0::1;5062:15:1::0;;64005:38:0::1;::::0;::::1;5044:34:1::0;64037:4:0::1;5094:18:1::0;;;5087:43;64047:6:0;;64005:5:::1;:15:::0;;::::1;::::0;::::1;::::0;4979:18:1;;64005:38:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;63997:124;;;;-1:-1:-1::0;;;63997:124:0::1;;;;;;;:::i;:::-;64141:41;64164:17;;64141:22;:41::i;:::-;64134:49;;-1:-1:-1::0;;;64134:49:0::1;;;;;;;;;64270:17;64277:9;64270:6;:17::i;:::-;64352:39;-1:-1:-1::0;;;;;64352:5:0::1;:18;64371:11:::0;64384:6;64352:18:::1;:39::i;:::-;64451:10:::0;;64447:94:::1;;64478:51;-1:-1:-1::0;;;;;64478:5:0::1;:22;64501:6;64509:11:::0;64522:6;64478:22:::1;:51::i;:::-;64568:41;64591:17;;64568:22;:41::i;:::-;64561:49;;-1:-1:-1::0;;;64561:49:0::1;;;;;;;;;64682:37;::::0;;19053:25:1;;;19109:2;19094:18;;19087:34;;;-1:-1:-1;;;;;64682:37:0;::::1;::::0;::::1;::::0;19026:18:1;64682:37:0::1;;;;;;;-1:-1:-1::0;;11242:1:0;12196:22;;-1:-1:-1;;;;;;62564:2163:0:o;36665:443::-;36854:14;;36803:6;;-1:-1:-1;;;;;36854:14:0;33570:10;-1:-1:-1;;;;;36830:39:0;;36822:103;;;;-1:-1:-1;;;36822:103:0;;;;;;;:::i;:::-;36958:6;-1:-1:-1;;;;;36943:36:0;;36966:6;36974:4;36943:36;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;36665:443:0;;;;;;:::o;58031:77::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;58092:8:::1;:6;:8::i;35870:491::-:0;36086:14;;36035:6;;-1:-1:-1;;;;;36086:14:0;33570:10;-1:-1:-1;;;;;36062:39:0;;36054:103;;;;-1:-1:-1;;;36054:103:0;;;;;;;:::i;:::-;36200:6;-1:-1:-1;;;;;36175:46:0;36190:8;-1:-1:-1;;;;;36175:46:0;;36208:6;36216:4;36175:46;;;;;;;:::i;:::-;;;;;;;;36234:49;36252:8;36262:6;36270;36278:4;36234:17;:49::i;:::-;-1:-1:-1;;;;35870:491:0;;;;;;:::o;59565:568::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;59673:15:::1;59660:10;:28;59652:107;;;::::0;-1:-1:-1;;;59652:107:0;;9821:2:1;59652:107:0::1;::::0;::::1;9803:21:1::0;9860:2;9840:18;;;9833:30;9899:34;9879:18;;;9872:62;-1:-1:-1;;;9950:18:1;;;9943:51;10011:19;;59652:107:0::1;9793:243:1::0;59652:107:0::1;59793:7;;59780:10;:20;59772:114;;;::::0;-1:-1:-1;;;59772:114:0;;16451:2:1;59772:114:0::1;::::0;::::1;16433:21:1::0;16490:2;16470:18;;;16463:30;;;16529:34;16509:18;;;16502:62;16600:34;16580:18;;;16573:62;-1:-1:-1;;;16651:19:1;;;16644:35;16696:19;;59772:114:0::1;16423:298:1::0;59772:114:0::1;59925:15;59915:7;;:25;59907:127;;;::::0;-1:-1:-1;;;59907:127:0;;14001:2:1;59907:127:0::1;::::0;::::1;13983:21:1::0;14040:2;14020:18;;;14013:30;14079:34;14059:18;;;14052:62;14150:34;14130:18;;;14123:62;-1:-1:-1;;;14201:19:1;;;14194:43;14254:19;;59907:127:0::1;13973:306:1::0;59907:127:0::1;60074:7;::::0;60060:34:::1;::::0;;19053:25:1;;;19109:2;19094:18;;19087:34;;;60060::0::1;::::0;19026:18:1;60060:34:0::1;;;;;;;60105:7;:20:::0;59565:568::o;58863:440::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;59001:26:::1;58971:18;:57;;;;58963:126;;;::::0;-1:-1:-1;;;58963:126:0;;10243:2:1;58963:126:0::1;::::0;::::1;10225:21:1::0;10282:2;10262:18;;;10255:30;10321:34;10301:18;;;10294:62;-1:-1:-1;;;10372:18:1;;;10365:41;10423:19;;58963:126:0::1;10215:233:1::0;58963:126:0::1;59110:32;59160:18;59145:34;;;;;;;;-1:-1:-1::0;;;59145:34:0::1;;;;;;;;;59216:14;::::0;59195:55:::1;::::0;59110:69;;-1:-1:-1;59195:55:0::1;::::0;::::1;::::0;59216:14:::1;;::::0;59110:69;;59195:55:::1;:::i;:::-;;;;;;;;59261:14;:34:::0;;59278:17;;59261:14;-1:-1:-1;;59261:34:0::1;::::0;59278:17;59261:34:::1;::::0;::::1;;;;-1:-1:-1::0;;;59261:34:0::1;;;;;;;;;;;;;;42098:1;58863:440:::0;:::o;61703:130::-;61801:13;:20;61769:7;;61801:24;;61824:1;;61801:24;:::i;:::-;61794:31;;61703:130;:::o;64929:1979::-;11286:1;11884:7;;:19;;11876:63;;;;-1:-1:-1;;;11876:63:0;;16091:2:1;11876:63:0;;;16073:21:1;16130:2;16110:18;;;16103:30;16169:33;16149:18;;;16142:61;16220:18;;11876:63:0;16063:181:1;11876:63:0;11286:1;12017:7;:18;65035:10:::1;65013:19;65076:22:::0;;;:9:::1;:22;::::0;;;;;65135:13:::1;:24:::0;;65076:22;;65013:19;65076:22;;65135:24;::::1;;;-1:-1:-1::0;;;65135:24:0::1;;;;;;;;;;;;;;;;;;;:31;;65111:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;65111:55:0::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;::::1;::::0;::::1;;;;;;;;;;65203:1;65187:6;:13;:17;65179:101;;;;-1:-1:-1::0;;;65179:101:0::1;;;;;;;:::i;:::-;65377:11:::0;65373:219:::1;;65414:13;65428:9;65414:24;;;;;;-1:-1:-1::0;;;65414:24:0::1;;;;;;;;;;;;;;;;;;;:36;;;65405:45;;65482:1;65473:6;:10;65465:115;;;;-1:-1:-1::0;;;65465:115:0::1;;;;;;;:::i;:::-;65665:6:::0;65644:18:::1;::::0;65739:244:::1;65759:1;65746:10;:14;:39;;;;;65772:6;:13;65764:5;:21;65746:39;65739:244;;;65802:12;65817:42;65826:6;65833:5;65826:13;;;;;;-1:-1:-1::0;;;65826:13:0::1;;;;;;;;;;;;;;;:20;;;65848:10;65817:8;:42::i;:::-;65802:57;;65884:32;65893:9;65904:5;65911:4;65884:8;:32::i;:::-;65874:42;::::0;;::::1;:::i;:::-;::::0;-1:-1:-1;65931:18:0::1;65945:4:::0;65931:18;::::1;:::i;:::-;::::0;-1:-1:-1;65964:7:0;::::1;::::0;::::1;:::i;:::-;;;;65739:244;;;;66003:15:::0;;65995:116:::1;;;;-1:-1:-1::0;;;65995:116:0::1;;;;;;;:::i;:::-;66132:23;::::0;-1:-1:-1;;;66132:23:0;;-1:-1:-1;;;;;66148:6:0::1;4788:32:1::0;;66132:23:0::1;::::0;::::1;4770:51:1::0;66159:6:0;;66132:5:::1;:15:::0;;::::1;::::0;::::1;::::0;4743:18:1;;66132:23:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:33;;66124:107;;;;-1:-1:-1::0;;;66124:107:0::1;;;;;;;:::i;:::-;66252:38;::::0;-1:-1:-1;;;66252:38:0;;-1:-1:-1;;;;;66268:6:0::1;5062:15:1::0;;66252:38:0::1;::::0;::::1;5044:34:1::0;66284:4:0::1;5094:18:1::0;;;5087:43;66294:6:0;;66252:5:::1;:15:::0;;::::1;::::0;::::1;::::0;4979:18:1;;66252:38:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;66244:124;;;;-1:-1:-1::0;;;66244:124:0::1;;;;;;;:::i;:::-;66388:41;66411:17;;66388:22;:41::i;:::-;66381:49;;-1:-1:-1::0;;;66381:49:0::1;;;;;;;;;66501:17;66508:9;66501:6;:17::i;:::-;66583:39;-1:-1:-1::0;;;;;66583:5:0::1;:18;66602:11:::0;66615:6;66583:18:::1;:39::i;:::-;66678:51;-1:-1:-1::0;;;;;66678:5:0::1;:22;66701:6;66709:11:::0;66722:6;66678:22:::1;:51::i;:::-;66749:41;66772:17;;66749:22;:41::i;:::-;66742:49;;-1:-1:-1::0;;;66742:49:0::1;;;;;;;;;66863:37;::::0;;19053:25:1;;;19109:2;19094:18;;19087:34;;;-1:-1:-1;;;;;66863:37:0;::::1;::::0;::::1;::::0;19026:18:1;66863:37:0::1;;;;;;;-1:-1:-1::0;;11242:1:0;12196:22;;-1:-1:-1;;;;;64929:1979:0:o;42716:201::-;41853:7;41880:6;-1:-1:-1;;;;;41880:6:0;33570:10;42027:23;42019:68;;;;-1:-1:-1;;;42019:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;42805:22:0;::::1;42797:73;;;::::0;-1:-1:-1;;;42797:73:0;;9414:2:1;42797:73:0::1;::::0;::::1;9396:21:1::0;9453:2;9433:18;;;9426:30;9492:34;9472:18;;;9465:62;-1:-1:-1;;;9543:18:1;;;9536:36;9589:19;;42797:73:0::1;9386:228:1::0;42797:73:0::1;42881:28;42900:8;42881:18;:28::i;:::-;42716:201:::0;:::o;40618:120::-;39606:4;39630:7;-1:-1:-1;;;39630:7:0;;;;40154:41;;;;-1:-1:-1;;;40154:41:0;;7827:2:1;40154:41:0;;;7809:21:1;7866:2;7846:18;;;7839:30;-1:-1:-1;;;7885:18:1;;;7878:50;7945:18;;40154:41:0;7799:170:1;40154:41:0;40687:5:::1;40677:15:::0;;-1:-1:-1;;;;40677:15:0::1;::::0;;40708:22:::1;33570:10:::0;40717:12:::1;40708:22;::::0;-1:-1:-1;;;;;4788:32:1;;;4770:51;;4758:2;4743:18;40708:22:0::1;;;;;;;40618:120::o:0;55779:1837::-;55884:22;55921:28;55964:26;56005:27;56122:20;56145:15;56122:38;;56298:12;56288:7;;:22;56284:133;;;56342:63;56351:12;56375:29;:19;56397:7;56375:29;:::i;:::-;56365:7;;:39;;;;:::i;:::-;56342:8;:63::i;:::-;56327:78;;56284:133;56507:1;56490:18;;56629:12;56612:14;:29;56608:120;;;56709:7;56676:29;56691:14;56676:12;:29;:::i;:::-;56675:41;;;;:::i;:::-;56658:58;;56608:120;56871:19;56831:36;56871:19;56831:14;:36;:::i;:::-;56830:60;;;;:::i;:::-;56807:83;;57022:15;57007:12;:30;57003:100;;;57071:20;57054:37;;57003:100;57428:7;;57196:1;;-1:-1:-1;57196:1:0;;-1:-1:-1;57395:30:0;:20;57418:7;57395:30;:::i;:::-;57378:47;;:14;:47;:::i;:::-;:57;57374:235;;;57473:42;57496:19;57473:20;:42;:::i;:::-;57452:63;-1:-1:-1;57569:28:0;57452:63;57590:7;57569:28;:::i;:::-;57552:45;;:14;:45;:::i;:::-;57530:67;;57374:235;55779:1837;;;;;;:::o;57823:200::-;57922:7;58010:5;58005:2;57999:3;57974:22;;57965:6;57954:8;:17;;;;:::i;:::-;:42;;;;:::i;:::-;:48;;;;:::i;:::-;:53;;;;:::i;:::-;:61;;;;:::i;43077:191::-;43151:16;43170:6;;-1:-1:-1;;;;;43187:17:0;;;-1:-1:-1;;;;;;43187:17:0;;;;;;43220:40;;43170:6;;;;;;;43220:40;;43151:16;43220:40;43077:191;;:::o;51168:803::-;51267:7;51325:28;51359:87;51392:13;51406:9;51392:24;;;;;;-1:-1:-1;;;51392:24:0;;;;;;;;;;;;;;;;;;;:31;;51424:10;51392:43;;;;;;-1:-1:-1;;;51392:43:0;;;;;;;;;;;;;;;;;;;:53;;;51359:18;:87::i;:::-;51323:123;;;;;51496:14;51513:46;51530:20;51552:6;51513:16;:46::i;:::-;51496:63;;51698:6;51644:13;51658:9;51644:24;;;;;;-1:-1:-1;;;51644:24:0;;;;;;;;;;;;;;;;;;;:31;;51676:10;51644:43;;;;;;-1:-1:-1;;;51644:43:0;;;;;;;;;;;;;;;;;;;:50;;;:60;;;;;;;:::i;:::-;;;;;;;;51822:6;51782:13;51796:9;51782:24;;;;;;-1:-1:-1;;;51782:24:0;;;;;;;;;;;;;;;;;;;:36;;;:46;;;;;;;:::i;:::-;;;;;;;;51923:6;51902:17;;:27;;;;;;;:::i;:::-;;;;-1:-1:-1;51957:6:0;;51168:803;-1:-1:-1;;;;;;51168:803:0:o;53491:174::-;53608:30;;-1:-1:-1;;;53608:30:0;;53632:4;53608:30;;;4770:51:1;53579:4:0;;53642:15;;-1:-1:-1;;;;;53608:5:0;:15;;;;4743:18:1;;53608:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:49;;;53491:174;-1:-1:-1;;53491:174:0:o;52161:1322::-;52230:22;52255:13;52269:9;52255:24;;;;;;-1:-1:-1;;;52255:24:0;;;;;;;;;;;;;;;;;;;:31;;52230:56;;52299:9;52360;52456:670;52467:13;;52463:17;;:38;;;;-1:-1:-1;52488:13:0;;52484:17;;52463:38;52456:670;;;52595:6;52602:1;52595:9;;;;;;-1:-1:-1;;;52595:9:0;;;;;;;;;;;;;;;;;;;:16;;;52615:1;52595:21;52591:506;;;52693:6;52689:21;;52705:5;:1;52709;52705:5;:::i;:::-;52701:9;;52689:21;52740:13;;52736:17;;:42;;;;;52757:6;52764:1;52757:9;;;;;;-1:-1:-1;;;52757:9:0;;;;;;;;;;;;;;;;;;;:16;;;52777:1;52757:21;52736:42;52729:97;;;52803:3;;;;:::i;:::-;;;;52729:97;;;52942:13;;52938:17;;52934:126;;;52992:6;52999:1;52992:9;;;;;;-1:-1:-1;;;52992:9:0;;;;;;;;;;;;;;;;;;;52980:6;52987:1;52980:9;;;;;;-1:-1:-1;;;52980:9:0;;;;;;;;;;;;;;;;;:21;;:9;;;;;:21;;-1:-1:-1;;;;;;52980:21:0;-1:-1:-1;;;;;52980:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;53031:9;;:6;;53038:1;;53031:9;;;;-1:-1:-1;;;53031:9:0;;;;;;;;;;;;;;;;;;;;;53024:16;;-1:-1:-1;;;;;;53024:16:0;;;;;;;;;;;;52934:126;53078:3;;;;:::i;:::-;;;;52591:506;53111:3;;;;:::i;:::-;;;;52456:670;;;53223:1;53219;:5;53215:261;;;53323:9;53318:147;53342:5;53346:1;53342;:5;:::i;:::-;53338:1;:9;53318:147;;;53387:13;;53380:6;;53387:17;;53403:1;;53387:17;:::i;:::-;53380:25;;;;;;-1:-1:-1;;;53380:25:0;;;;;;;;;;;;;;;;;;;:32;;;53416:1;53380:37;53373:45;;-1:-1:-1;;;53373:45:0;;;;;;;;;53437:6;:12;;;;;-1:-1:-1;;;53437:12:0;;;;;;;;;;;;;;;;;-1:-1:-1;;53437:12:0;;;;;;;;;-1:-1:-1;;;;;;53437:12:0;;;;;;;;;;;;;;53349:3;;;;:::i;:::-;;;;53318:147;;;;53215:261;52161:1322;;;;:::o;28233:211::-;28377:58;;-1:-1:-1;;;;;5713:32:1;;28377:58:0;;;5695:51:1;5762:18;;;5755:34;;;28350:86:0;;28370:5;;-1:-1:-1;;;28400:23:0;5668:18:1;;28377:58:0;;;;-1:-1:-1;;28377:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;28377:58:0;-1:-1:-1;;;;;;28377:58:0;;;;;;;;;;28350:19;:86::i;:::-;28233:211;;;:::o;28452:248::-;28623:68;;-1:-1:-1;;;;;5399:15:1;;;28623:68:0;;;5381:34:1;5451:15;;5431:18;;;5424:43;5483:18;;;5476:34;;;28596:96:0;;28616:5;;-1:-1:-1;;;28646:27:0;5316:18:1;;28623:68:0;5298:218:1;40359:118:0;39606:4;39630:7;-1:-1:-1;;;39630:7:0;;;;39884:9;39876:38;;;;-1:-1:-1;;;39876:38:0;;11956:2:1;39876:38:0;;;11938:21:1;11995:2;11975:18;;;11968:30;-1:-1:-1;;;12014:18:1;;;12007:46;12070:18;;39876:38:0;11928:166:1;39876:38:0;40419:7:::1;:14:::0;;-1:-1:-1;;;;40419:14:0::1;-1:-1:-1::0;;;40419:14:0::1;::::0;;40449:20:::1;40456:12;33570:10:::0;;33490:98;48272:176;48394:6;-1:-1:-1;;;;;46725:15:0;;46717:82;;;;-1:-1:-1;;;46717:82:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46818:18:0;;46831:4;46818:18;;46810:78;;;;-1:-1:-1;;;46810:78:0;;;;;;;:::i;:::-;48418:22:::1;48425:6;48433;48418;:22::i;32019:106::-:0;32077:7;32108:1;32104;:5;:13;;32116:1;32104:13;;;-1:-1:-1;32112:1:0;;32019:106;-1:-1:-1;32019:106:0:o;30806:716::-;31230:23;31256:69;31284:4;31256:69;;;;;;;;;;;;;;;;;31264:5;-1:-1:-1;;;;;31256:27:0;;;:69;;;;;:::i;:::-;31340:17;;31230:95;;-1:-1:-1;31340:21:0;31336:179;;31437:10;31426:30;;;;;;;;;;;;:::i;:::-;31418:85;;;;-1:-1:-1;;;31418:85:0;;15680:2:1;31418:85:0;;;15662:21:1;15719:2;15699:18;;;15692:30;15758:34;15738:18;;;15731:62;-1:-1:-1;;;15809:18:1;;;15802:40;15859:19;;31418:85:0;15652:232:1;49299:1532:0;49383:11;-1:-1:-1;;;;;46725:15:0;;46717:82;;;;-1:-1:-1;;;46717:82:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46818:18:0;;46831:4;46818:18;;46810:78;;;;-1:-1:-1;;;46810:78:0;;;;;;;:::i;:::-;39606:4;39630:7;-1:-1:-1;;;39630:7:0;;;;39884:9:::1;39876:38;;;::::0;-1:-1:-1;;;39876:38:0;;11956:2:1;39876:38:0::1;::::0;::::1;11938:21:1::0;11995:2;11975:18;;;11968:30;-1:-1:-1;;;12014:18:1;;;12007:46;12070:18;;39876:38:0::1;11928:166:1::0;39876:38:0::1;49443:1:::2;49434:6;:10;49426:76;;;::::0;-1:-1:-1;;;49426:76:0;;14913:2:1;49426:76:0::2;::::0;::::2;14895:21:1::0;14952:2;14932:18;;;14925:30;14991:34;14971:18;;;14964:62;-1:-1:-1;;;15042:18:1;;;15035:38;15090:19;;49426:76:0::2;14885:230:1::0;49426:76:0::2;49533:15;49523:7;;:25;49515:89;;;::::0;-1:-1:-1;;;49515:89:0;;16928:2:1;49515:89:0::2;::::0;::::2;16910:21:1::0;16967:2;16947:18;;;16940:30;17006:34;16986:18;;;16979:62;-1:-1:-1;;;17057:18:1;;;17050:36;17103:19;;49515:89:0::2;16900:228:1::0;49515:89:0::2;49672:50;49715:6;49695:17;;:26;;;;:::i;:::-;49672:22;:50::i;:::-;49665:58;;-1:-1:-1::0;;;49665:58:0::2;;;;;;;;;-1:-1:-1::0;;;;;49842:22:0;::::2;49822:17;49842:22:::0;;;:9:::2;:22;::::0;;;;;49978:14;49974:345:::2;;50279:28;50295:11;50279:15;:28::i;:::-;50267:40;;49974:345;50377:13;50391:9;50377:24;;;;;;-1:-1:-1::0;;;50377:24:0::2;;;;;;;;;;;;;;;;;;;:31;;50428:54;;;;;;;;50434:11;-1:-1:-1::0;;;;;50428:54:0::2;;;;;50447:26;:24;:26::i;:::-;50428:54:::0;;::::2;::::0;;::::2;::::0;;;50377:116;;::::2;::::0;;::::2;::::0;;-1:-1:-1;50377:116:0;;;;;;;;;::::2;::::0;;::::2;;::::0;;-1:-1:-1;;;;;;50377:116:0::2;-1:-1:-1::0;;;;;50377:116:0;;::::2;::::0;;;::::2;::::0;;;;::::2;::::0;;;::::2;::::0;;;;::::2;;::::0;::::2;::::0;;::::2;::::0;50571:13:::2;:24:::0;;50428:54;;50571:13;50585:9;;50571:24;::::2;;;-1:-1:-1::0;;;50571:24:0::2;;;;;;;;;;;;;;;;;;;:36;;;:46;;;;;;;:::i;:::-;;;;;;;;50718:6;50697:17;;:27;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;50796:27:0::2;::::0;18550:25:1;;;-1:-1:-1;;;;;50796:27:0;::::2;::::0;::::2;::::0;18538:2:1;18523:18;50796:27:0::2;;;;;;;39925:1;49299:1532:::0;;;:::o;15859:229::-;15996:12;16028:52;16050:6;16058:4;16064:1;16067:12;16028:21;:52::i;:::-;16021:59;15859:229;-1:-1:-1;;;;15859:229:0:o;48590:543::-;48688:7;48667:11;-1:-1:-1;;;;;46725:15:0;;46717:82;;;;-1:-1:-1;;;46717:82:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46818:18:0;;46831:4;46818:18;;46810:78;;;;-1:-1:-1;;;46810:78:0;;;;;;;:::i;:::-;48781:13:::1;:20:::0;;::::1;::::0;;::::1;::::0;;;-1:-1:-1;48781:20:0;;;48894:24:::1;::::0;48781:20;48894:24:::1;:::i;:::-;48874:44;;49009:11;48977:13;48991:9;48977:24;;;;;;-1:-1:-1::0;;;48977:24:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;:43:::0;;-1:-1:-1;;;;;48977:43:0;;::::1;-1:-1:-1::0;;;;;;48977:43:0;;::::1;;::::0;;49064:22;;::::1;::::0;;:9:::1;:22:::0;;;;;;:34;;;49089:9;-1:-1:-1;48590:543:0;;;;:::o;53773:1571::-;53848:7;;53877:14;;;;:42;;;;;;-1:-1:-1;;;53877:42:0;;;;;;;;;;53873:97;;;-1:-1:-1;53943:15:0;;53773:1571::o;53873:97::-;54005:15;54053:32;54035:14;;;;:50;;;;;;-1:-1:-1;;;54035:50:0;;;;;;;;;;54031:1042;;;54191:24;54208:7;54191:14;:24;:::i;:::-;:34;;54218:7;54191:34;:::i;:::-;:44;;54228:7;54191:44;:::i;:::-;54174:61;;54031:1042;;;54275:31;54257:14;;;;:49;;;;;;-1:-1:-1;;;54257:49:0;;;;;;;;;;54253:820;;;54401:23;54418:6;54401:14;:23;:::i;:::-;:32;;54427:6;54401:32;:::i;:::-;:41;;54436:6;54401:41;:::i;54253:820::-;54482:26;54464:14;;;;:44;;;;;;-1:-1:-1;;;54464:44:0;;;;;;;;;;54460:613;;;54604:23;54621:6;54604:14;:23;:::i;:::-;:32;;54630:6;54604:32;:::i;54460:613::-;54686:27;54668:14;;;;:45;;;;;;-1:-1:-1;;;54668:45:0;;;;;;;;;;54664:409;;;54811:23;54828:6;54811:14;:23;:::i;:::-;:32;;54837:6;54811:32;:::i;:::-;:43;;54846:8;54811:43;:::i;54664:409::-;54894:26;54876:14;;;;:44;;;;;;-1:-1:-1;;;54876:44:0;;;;;;;;;;54872:201;;;55018:23;55035:6;55018:14;:23;:::i;:::-;:32;;55044:6;55018:32;:::i;:::-;:43;;55053:8;55018:43;:::i;:::-;55001:60;;54872:201;55181:15;55164:14;:32;55160:145;;;55213:24;55231:6;55213:24;;:::i;:::-;;;55277:15;55259:14;:33;;55252:41;;-1:-1:-1;;;55252:41:0;;;;;;;;;55322:14;53773:1571;-1:-1:-1;53773:1571:0:o;16979:510::-;17149:12;17207:5;17182:21;:30;;17174:81;;;;-1:-1:-1;;;17174:81:0;;11139:2:1;17174:81:0;;;11121:21:1;11178:2;11158:18;;;11151:30;11217:34;11197:18;;;11190:62;-1:-1:-1;;;11268:18:1;;;11261:36;11314:19;;17174:81:0;11111:228:1;17174:81:0;13376:20;;17266:60;;;;-1:-1:-1;;;17266:60:0;;15322:2:1;17266:60:0;;;15304:21:1;15361:2;15341:18;;;15334:30;15400:31;15380:18;;;15373:59;15449:18;;17266:60:0;15294:179:1;17266:60:0;17340:12;17354:23;17381:6;-1:-1:-1;;;;;17381:11:0;17400:5;17407:4;17381:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17339:73;;;;17430:51;17447:7;17456:10;17468:12;17430:16;:51::i;:::-;17423:58;16979:510;-1:-1:-1;;;;;;;16979:510:0:o;19665:712::-;19815:12;19844:7;19840:530;;;-1:-1:-1;19875:10:0;19868:17;;19840:530;19989:17;;:21;19985:374;;20187:10;20181:17;20248:15;20235:10;20231:2;20227:19;20220:44;20135:148;20330:12;20323:20;;-1:-1:-1;;;20323:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:738;234:5;287:3;280:4;272:6;268:17;264:27;254:2;;309:5;302;295:20;254:2;349:6;336:20;375:18;412:2;408;405:10;402:2;;;418:18;;:::i;:::-;493:2;487:9;461:2;547:13;;-1:-1:-1;;543:22:1;;;567:2;539:31;535:40;523:53;;;591:18;;;611:22;;;588:46;585:2;;;637:18;;:::i;:::-;677:10;673:2;666:22;712:2;704:6;697:18;758:3;751:4;746:2;738:6;734:15;730:26;727:35;724:2;;;779:5;772;765:20;724:2;847;840:4;832:6;828:17;821:4;813:6;809:17;796:54;870:15;;;887:4;866:26;859:41;;;;-1:-1:-1;874:6:1;244:686;-1:-1:-1;;;244:686:1:o;935:196::-;994:6;1047:2;1035:9;1026:7;1022:23;1018:32;1015:2;;;1068:6;1060;1053:22;1015:2;1096:29;1115:9;1096:29;:::i;1136:557::-;1231:6;1239;1247;1255;1308:3;1296:9;1287:7;1283:23;1279:33;1276:2;;;1330:6;1322;1315:22;1276:2;1358:29;1377:9;1358:29;:::i;:::-;1348:39;;1406:38;1440:2;1429:9;1425:18;1406:38;:::i;:::-;1396:48;;1491:2;1480:9;1476:18;1463:32;1453:42;;1546:2;1535:9;1531:18;1518:32;1573:18;1565:6;1562:30;1559:2;;;1610:6;1602;1595:22;1559:2;1638:49;1679:7;1670:6;1659:9;1655:22;1638:49;:::i;:::-;1628:59;;;1266:427;;;;;;;:::o;1698:482::-;1784:6;1792;1800;1853:2;1841:9;1832:7;1828:23;1824:32;1821:2;;;1874:6;1866;1859:22;1821:2;1902:29;1921:9;1902:29;:::i;:::-;1892:39;;1978:2;1967:9;1963:18;1950:32;1940:42;;2033:2;2022:9;2018:18;2005:32;2060:18;2052:6;2049:30;2046:2;;;2097:6;2089;2082:22;2046:2;2125:49;2166:7;2157:6;2146:9;2142:22;2125:49;:::i;:::-;2115:59;;;1811:369;;;;;:::o;2185:255::-;2252:6;2305:2;2293:9;2284:7;2280:23;2276:32;2273:2;;;2326:6;2318;2311:22;2273:2;2363:9;2357:16;2382:28;2404:5;2382:28;:::i;2445:306::-;2503:6;2556:2;2544:9;2535:7;2531:23;2527:32;2524:2;;;2577:6;2569;2562:22;2524:2;2608:23;;-1:-1:-1;;;;;;2660:32:1;;2650:43;;2640:2;;2712:6;2704;2697:22;2756:190;2815:6;2868:2;2856:9;2847:7;2843:23;2839:32;2836:2;;;2889:6;2881;2874:22;2836:2;-1:-1:-1;2917:23:1;;2826:120;-1:-1:-1;2826:120:1:o;2951:194::-;3021:6;3074:2;3062:9;3053:7;3049:23;3045:32;3042:2;;;3095:6;3087;3080:22;3042:2;-1:-1:-1;3123:16:1;;3032:113;-1:-1:-1;3032:113:1:o;3150:387::-;3224:6;3232;3240;3293:2;3281:9;3272:7;3268:23;3264:32;3261:2;;;3314:6;3306;3299:22;3261:2;3355:9;3342:23;3332:33;;3412:2;3401:9;3397:18;3384:32;3374:42;;3466:2;3455:9;3451:18;3438:32;3479:28;3501:5;3479:28;:::i;:::-;3526:5;3516:15;;;3251:286;;;;;:::o;3542:289::-;3599:6;3652:2;3640:9;3631:7;3627:23;3623:32;3620:2;;;3673:6;3665;3658:22;3620:2;3717:9;3704:23;3767:4;3760:5;3756:16;3749:5;3746:27;3736:2;;3792:6;3784;3777:22;3836:257;3877:3;3915:5;3909:12;3942:6;3937:3;3930:19;3958:63;4014:6;4007:4;4002:3;3998:14;3991:4;3984:5;3980:16;3958:63;:::i;:::-;4075:2;4054:15;-1:-1:-1;;4050:29:1;4041:39;;;;4082:4;4037:50;;3885:208;-1:-1:-1;;3885:208:1:o;4098:242::-;4184:1;4177:5;4174:12;4164:2;;4229:10;4224:3;4220:20;4217:1;4210:31;4264:4;4261:1;4254:15;4292:4;4289:1;4282:15;4164:2;4316:18;;4154:186::o;4345:274::-;4474:3;4512:6;4506:13;4528:53;4574:6;4569:3;4562:4;4554:6;4550:17;4528:53;:::i;:::-;4597:16;;;;;4482:137;-1:-1:-1;;4482:137:1:o;6423:218::-;6574:2;6559:18;;6586:49;6563:9;6617:6;6586:49;:::i;6646:330::-;6842:2;6827:18;;6854:49;6831:9;6885:6;6854:49;:::i;:::-;6912:58;6966:2;6955:9;6951:18;6943:6;6912:58;:::i;6981:219::-;7130:2;7119:9;7112:21;7093:4;7150:44;7190:2;7179:9;7175:18;7167:6;7150:44;:::i;7974:412::-;8176:2;8158:21;;;8215:2;8195:18;;;8188:30;8254:34;8249:2;8234:18;;8227:62;-1:-1:-1;;;8320:2:1;8305:18;;8298:46;8376:3;8361:19;;8148:238::o;8391:398::-;8593:2;8575:21;;;8632:2;8612:18;;;8605:30;8671:34;8666:2;8651:18;;8644:62;-1:-1:-1;;;8737:2:1;8722:18;;8715:32;8779:3;8764:19;;8565:224::o;10453:479::-;10655:2;10637:21;;;10694:2;10674:18;;;10667:30;10733:34;10728:2;10713:18;;10706:62;10804:34;10799:2;10784:18;;10777:62;-1:-1:-1;;;10870:3:1;10855:19;;10848:42;10922:3;10907:19;;10627:305::o;11344:405::-;11546:2;11528:21;;;11585:2;11565:18;;;11558:30;11624:34;11619:2;11604:18;;11597:62;-1:-1:-1;;;11690:2:1;11675:18;;11668:39;11739:3;11724:19;;11518:231::o;12099:415::-;12301:2;12283:21;;;12340:2;12320:18;;;12313:30;12379:34;12374:2;12359:18;;12352:62;-1:-1:-1;;;12445:2:1;12430:18;;12423:49;12504:3;12489:19;;12273:241::o;12519:495::-;12721:2;12703:21;;;12760:2;12740:18;;;12733:30;12799:34;12794:2;12779:18;;12772:62;12870:34;12865:2;12850:18;;12843:62;12942:29;12936:3;12921:19;;12914:58;13004:3;12989:19;;12693:321::o;13019:356::-;13221:2;13203:21;;;13240:18;;;13233:30;13299:34;13294:2;13279:18;;13272:62;13366:2;13351:18;;13193:182::o;13380:414::-;13582:2;13564:21;;;13621:2;13601:18;;;13594:30;13660:34;13655:2;13640:18;;13633:62;-1:-1:-1;;;13726:2:1;13711:18;;13704:48;13784:3;13769:19;;13554:240::o;14284:422::-;14486:2;14468:21;;;14525:2;14505:18;;;14498:30;14564:34;14559:2;14544:18;;14537:62;14635:28;14630:2;14615:18;;14608:56;14696:3;14681:19;;14458:248::o;17133:1266::-;17287:4;17316:2;17345;17334:9;17327:21;17367:3;17408:2;17397:9;17393:18;17453:6;17447:13;17442:2;17431:9;17427:18;17420:41;17498:2;17490:6;17486:15;17480:22;17521:2;17559;17554;17543:9;17539:18;17532:30;17609:2;17601:6;17597:15;17591:22;17571:42;;17632:4;17672:2;17667;17656:9;17652:18;17645:30;17695:6;17730:12;17724:19;17767:6;17759;17752:22;17793:3;17783:13;;17827:2;17816:9;17812:18;17805:25;;17871:2;17857:12;17853:21;17839:35;;17892:4;17905:468;17919:6;17916:1;17913:13;17905:468;;;17978:13;;18016:9;;18004:22;;18066:11;;;18060:18;18046:12;;;18039:40;18119:11;;;18113:18;18099:12;;;18092:40;18172:11;;;18166:18;18152:12;;;18145:40;18225:11;;;18219:18;18205:12;;;18198:40;18278:11;;18272:18;18258:12;;;18251:40;18348:15;;;;18320:4;18311:14;;;;17941:1;17934:9;17905:468;;;-1:-1:-1;18390:3:1;;17296:1103;-1:-1:-1;;;;;;;;;;17296:1103:1:o;18586:288::-;18761:6;18750:9;18743:25;18804:2;18799;18788:9;18784:18;18777:30;18724:4;18824:44;18864:2;18853:9;18849:18;18841:6;18824:44;:::i;19132:128::-;19172:3;19203:1;19199:6;19196:1;19193:13;19190:2;;;19209:18;;:::i;:::-;-1:-1:-1;19245:9:1;;19180:80::o;19265:217::-;19305:1;19331;19321:2;;-1:-1:-1;;;19356:31:1;;19410:4;19407:1;19400:15;19438:4;19363:1;19428:15;19321:2;-1:-1:-1;19467:9:1;;19311:171::o;19487:168::-;19527:7;19593:1;19589;19585:6;19581:14;19578:1;19575:21;19570:1;19563:9;19556:17;19552:45;19549:2;;;19600:18;;:::i;:::-;-1:-1:-1;19640:9:1;;19539:116::o;19660:125::-;19700:4;19728:1;19725;19722:8;19719:2;;;19733:18;;:::i;:::-;-1:-1:-1;19770:9:1;;19709:76::o;19790:258::-;19862:1;19872:113;19886:6;19883:1;19880:13;19872:113;;;19962:11;;;19956:18;19943:11;;;19936:39;19908:2;19901:10;19872:113;;;20003:6;20000:1;19997:13;19994:2;;;-1:-1:-1;;20038:1:1;20020:16;;20013:27;19843:205::o;20053:135::-;20092:3;-1:-1:-1;;20113:17:1;;20110:2;;;20133:18;;:::i;:::-;-1:-1:-1;20180:1:1;20169:13;;20100:88::o;20193:127::-;20254:10;20249:3;20245:20;20242:1;20235:31;20285:4;20282:1;20275:15;20309:4;20306:1;20299:15;20325:127;20386:10;20381:3;20377:20;20374:1;20367:31;20417:4;20414:1;20407:15;20441:4;20438:1;20431:15;20457:118;20543:5;20536:13;20529:21;20522:5;20519:32;20509:2;;20565:1;20562;20555:12

Swarm Source

ipfs://75166ec2a69d8856ae4b4a750e21de5a2b72763deb5401c94cac6bba658b614b
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.