Contract 0x86e8062c9F9e5f852bB0D8fc3f33fc110E9b2e47

 
 
Txn Hash
Method
Block
From
To
Value
0x2a7eb2af2d1922daefc87f1cacd399b4801f4c66bfe37cf385a29df4a0bd17edGet Reward156467812022-09-30 14:34:359 hrs 16 mins ago0x2988959e46bdb31a54835b4957b62ba8847d3e36 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00163731 21.50064438
0xd40e9a197f14108be573605c3805dc6cb1e5b440d781dc484c53622a3ee9cd15Notify Deposit156205292022-09-26 22:30:474 days 1 hr ago0x549b03e6f654626f2b0c37201e582d399b3d20c7 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00126068 11.58607648
0x65094cf7fb15c0dd83aec7a885b100a31c60ee91ac3451fa84bad97a57beb1dfGet Reward156118002022-09-25 17:11:595 days 6 hrs ago0x2988959e46bdb31a54835b4957b62ba8847d3e36 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00091541 12.02088806
0x27d877deaf1d558cb882bc7d1adf0320f547bb05498e65485485066f19e768eaGet Reward156056152022-09-24 20:30:356 days 3 hrs ago0x30a20b0281df39e6337c3cbe5865e6fdcdcce3f1 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.000394 5.1738984
0x54fd3560eecfd84cb213321a4f678445b49432c313f47da0828e61f73862abeaNotify Deposit155973872022-09-23 16:58:237 days 6 hrs ago0xc55e747bdde1b8f85662bd7a04d1cbdec43493b0 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00140533 11.28386531
0x74195abda289c64f962e2111b60cc4231267e3da319b3e00fe7966d5aeea65daGet Reward155973592022-09-23 16:52:357 days 6 hrs ago0xc55e747bdde1b8f85662bd7a04d1cbdec43493b0 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00080122 8.86421821
0xead2259d4cbf7253acd2a8b24766490636319a61996ec6da7f72be077f362ac0Deposit155921082022-09-22 23:16:478 days 33 mins ago0x78c225d469d15273f549f9c3b3897aa6dcff808f IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00111476 8
0xe4090fa4b154dd76607832b39a67e35a1fb9e0053b3f877585760ba390004a6fGet Reward155877882022-09-22 8:48:238 days 15 hrs ago0x9412e1c500c6ff7c211ead40abafa21db0d72305 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00060653 7.93981929
0x94f31615bcddce543e22b7a5ade4880fc9d955c0e2f550dc9e25446d2fbe5cd5Get Reward155821992022-09-21 13:58:479 days 9 hrs agoENS Name zilan.eth IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00076681 10.46287745
0x1b18fa3905d151f105856e0b2ca51ed616b444ecf3368741fa8f3342e8fabee4Get Reward155689012022-09-19 16:59:2311 days 6 hrs ago0x2988959e46bdb31a54835b4957b62ba8847d3e36 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00176193 23.13712795
0x877f8fadaf372826bd2f6f706b326b389aa977f96de79288021e2a90cf3f92caGet Reward155663692022-09-19 8:27:2311 days 15 hrs agoENS Name niaoshenming.eth IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00034863 4.5781229
0x699d20d4fe0b9391d04498e764a0a88212078748d8062698a7ea2676ef02ad01Exit155656782022-09-19 6:07:5911 days 17 hrs agoENS Name teewrx.eth IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00104302 6.81362562
0x772698a35713229188093e2c3b4c56ad7360a2d030a5972dedc8d1eae21482f4Notify Deposit155601992022-09-18 11:40:5912 days 12 hrs ago0x78c225d469d15273f549f9c3b3897aa6dcff808f IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00130572 12
0x8a7429e214337f5462862559c440bc1a01b162b1fc98c7e2c0119456b2a6e587Notify Deposit155536712022-09-17 13:42:5913 days 10 hrs ago0x589ffaeab4a99275660a9fa4274cb58f7329f4df IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00092618 6.53934749
0x2e6d50966776711ecaebcf1c96c97302da89f1714996debeab319c2ef22e7143Get Reward155536382022-09-17 13:36:2313 days 10 hrs ago0x589ffaeab4a99275660a9fa4274cb58f7329f4df IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00062079 8.15206542
0xadfa3e1babb00a5b04d33780270b72af73e4261be352802e5b8c78c156a2fda7Get Reward155499992022-09-17 1:21:1113 days 22 hrs ago0x5be876ed0a9655133226be302ca6f5503e3da569 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00040973 5.38051045
0x15eff0b36e8d0aa9af200413c84fe2bcfe1235b434794157a50db4e5fc989d3dGet Reward155483622022-09-16 19:50:1114 days 4 hrs ago0xea2d0cc7a94deb85ee68251d4f62f5cac9b58032 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.0008088 8.75434326
0xbbd280941e3983d1058d0a7cb065e7a8c33debe0f212d0e49eb3be79d8a1965cGet Reward155446512022-09-16 7:17:5914 days 16 hrs ago0x653aebf53914c6faec96fa2d5fdd39d21999e952 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00042165 5.5370049
0x85ae062fbbc0f5827de6ad404fe94984bbe7e41d603aa802e08c53c7e5ef0fc4Get Reward155434982022-09-16 3:23:4714 days 20 hrs ago0x30a20b0281df39e6337c3cbe5865e6fdcdcce3f1 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00080857 8.75190352
0xaae130876b26d6d8fa1cbf49531ab096f2a6551c47430558a2d08ad8a25db188Deposit155393922022-09-15 13:28:2315 days 10 hrs ago0x4ad6ac458787ea8fe0f422df78e1c2adb31cc09c IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00177602 11.35318878
0x9df6411ec586ff804cb14a63ff7d957c00d86ab655d6b7bf42aa6e18f738c17cGet Reward155336142022-09-14 15:10:5016 days 8 hrs ago0xefacb3fb194d5e80e569b3ac50669cf22e48f63b IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00154474 21.07749641
0x6197a42978f5b097dff1b522d281e1a1ceac1b60806f7ce90ac169edbd2dc466Get Reward155313772022-09-14 6:12:0316 days 17 hrs ago0x710f435db686b3527e455d3e60a8e939628a99e1 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.000761 9.99317218
0xbd20f68bba2ebf6c234f4215247301aa82a45aa68678417ba09e76399dfd623cGet Reward155284232022-09-13 18:22:2417 days 5 hrs ago0x2988959e46bdb31a54835b4957b62ba8847d3e36 IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.002025 21.91825185
0x6b687221b5c5209b5fd119b11558a2f5ae069947008d254d1deae3d2da12921bGet Reward155269872022-09-13 12:40:1417 days 11 hrs agoENS Name teewrx.eth IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00355373 46.66636353
0x520569ce5cef882f27631e26badb2149591fdb7f6c8b69b9c43dc24abc276408Exit155234472022-09-12 22:36:5618 days 1 hr agoENS Name thesquidadel.eth IN  0x86e8062c9f9e5f852bb0d8fc3f33fc110e9b2e470 Ether0.00526185 34.37344139
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
XNewO

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-06-15
*/

// 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/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// 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 (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;


// 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: contracts/veLPvault.sol


pragma solidity ^0.8.13;






// https://docs.synthetix.io/contracts/source/contracts/Owned
abstract contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

// https://docs.synthetix.io/contracts/source/contracts/Pausable
abstract contract Pausable is Owned {
    uint public lastPauseTime;
    bool public paused;

    constructor() {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");
        // Paused will be false, and lastPauseTime will be 0 upon initialisation
    }

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}


// https://docs.synthetix.io/contracts/source/contracts/RewardsDistributionRecipient
abstract contract RewardsDistributionRecipient is Owned {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) virtual external;

    modifier onlyRewardsDistribution() {
        require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
        _;
    }

    function setRewardsDistribution(address _rewardsDistribution) external onlyOwner {
        rewardsDistribution = _rewardsDistribution;
    }
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}


interface IERC4626 is IERC20 {
    // The address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
    function asset() external view returns(address assetTokenAddress);

    // Total amount of the underlying asset that is “managed” by Vault.
    function totalAssets() external view returns(uint256 totalManagedAssets);

    // The amount of shares that the Vault would exchange for the amount of assets provided, in an ideal scenario where all the conditions are met.
    function convertToShares(uint256 assets) external view returns(uint256 shares); 

    // The amount of assets that the Vault would exchange for the amount of shares provided, in an ideal scenario where all the conditions are met.
    function convertToAssets(uint256 shares) external view returns(uint256 assets);
 
    // Maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.
    function maxDeposit(address receiver) external view returns(uint256 maxAssets);

    // Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.
    function previewDeposit(uint256 assets) external view returns(uint256 shares);

    // Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
    function deposit(uint256 assets, address receiver) external returns(uint256 shares);

    // Maximum amount of shares that can be minted from the Vault for the receiver, through a mint call.
    function maxMint(address receiver) external view returns(uint256 maxShares); 

    // Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions.
    function previewMint(uint256 shares) external view returns(uint256 assets);

    // Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
    function mint(uint256 shares, address receiver) external returns(uint256 assets);

    // Maximum amount of the underlying asset that can be withdrawn from the owner balance in the Vault, through a withdraw call.
    function maxWithdraw(address owner) external view returns(uint256 maxAssets);

    // Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions.
    function previewWithdraw(uint256 assets) external view returns(uint256 shares);

    // Burns shares from owner and sends exactly assets of underlying tokens to receiver.
    function withdraw(uint256 assets, address receiver, address owner) external returns(uint256 shares);

    // Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
    function maxRedeem(address owner) external view returns(uint256 maxShares);

    // Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block, given current on-chain conditions.
    function previewRedeem(uint256 shares) external view returns(uint256 assets);

    // Burns exactly shares from owner and sends assets of underlying tokens to receiver.
    function redeem(uint256 shares, address receiver, address owner) external returns(uint256 assets);

    event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);
    event Withdraw(address indexed caller, address indexed receiver, address indexed owner, uint256 assets, uint256 shares);
}
interface IVeVault is IERC4626 {
    function asset() external view  returns (address assetTokenAddress);
    function totalAssets() external view  returns (uint256 totalManagedAssets);
    function totalSupply() external view  returns (uint256);
    function balanceOf(address account) external view  returns (uint256);
    function convertToShares(uint256 assets, uint256 lockTime) external view returns (uint256 shares);
    function convertToShares(uint256 assets)  external view returns (uint256 shares);
    function convertToAssets(uint256 shares, uint256 lockTime) external view returns (uint256 assets);
    function convertToAssets(uint256 shares)  external view returns (uint256 assets);
    function maxDeposit(address)  external pure returns (uint256 maxAssets);
    function previewDeposit(uint256 assets, uint256 lockTime) external view returns (uint256 shares);
    function previewDeposit(uint256 assets)  external view returns (uint256 shares);
    function maxMint(address)  external pure returns (uint256 maxShares);
    function previewMint(uint256 shares, uint256 lockTime) external view returns (uint256 assets);
    function previewMint(uint256 shares)  external view returns (uint256 assets);
    function maxWithdraw(address owner)  external view returns (uint256 maxAssets);
    function previewWithdraw(uint256 assets, uint256 lockTime) external view returns (uint256 shares);
    function previewWithdraw(uint256 assets)  external view returns (uint256 shares);
    function maxRedeem(address owner)  external view returns (uint256 maxShares);
    function previewRedeem(uint256 shares, uint256 lockTime) external view returns (uint256 assets);
    function previewRedeem(uint256 shares)  external view returns (uint256 assets);
    function allowance(address, address)  external view returns (uint256);
    function assetBalanceOf(address account) external view returns (uint256);
    function unlockDate(address account) external view returns (uint256);
    function gracePeriod() external view returns (uint256);
    function penaltyPercentage() external view returns (uint256);
    function minLockTime() external view returns (uint256);
    function maxLockTime() external view returns (uint256);
    function transfer(address, uint256) external  returns (bool);
    function approve(address, uint256) external  returns (bool);
    function transferFrom(address, address, uint256) external  returns (bool);
    function veMult(address owner) external view returns (uint256);
    function deposit(uint256 assets, address receiver, uint256 lockTime) external returns (uint256 shares);
    function deposit(uint256 assets, address receiver)  external returns (uint256 shares);
    function mint(uint256 shares, address receiver, uint256 lockTime) external returns (uint256 assets);
    function mint(uint256 shares, address receiver)  external returns (uint256 assets);
    function withdraw(uint256 assets, address receiver, address owner)  external returns (uint256 shares);
    function redeem(uint256 shares, address receiver, address owner)  external returns (uint256 assets);
    function exit() external returns (uint256 shares);
    function changeUnlockRule(bool flag) external;
    function changeGracePeriod(uint256 newGracePeriod) external;
    function changeEpoch(uint256 newEpoch) external;
    function changeMinPenalty(uint256 newMinPenalty) external;
    function changeMaxPenalty(uint256 newMaxPenalty) external;
    function changeWhitelistRecoverERC20(address tokenAddress, bool flag) external;
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external;
    function recoverERC721(address tokenAddress, uint256 tokenId) external;

    event PayPenalty(address indexed caller, address indexed owner, uint256 assets);
    event Burn(address indexed user, uint256 shares);
    event Mint(address indexed user, uint256 shares);
    event Recovered(address token, uint256 amount);
    event RecoveredNFT(address tokenAddress, uint256 tokenId);
    event ChangeWhitelistERC20(address indexed tokenAddress, bool whitelistState);
}


// Custom errors
error Unauthorized();
error UnauthorizedClaim();
error NotImplemented();
error RewardTooHigh(uint256 allowed, uint256 reward);
error NotWhitelisted();
error InsufficientBalance();

/** 
 * @title Implements a reward system which grants rewards based on LP
 * staked in this contract and grants boosts based on depositor veToken balance
 * @author gcontarini jocorrei
 * @dev This implementation tries to follow the ERC4626 standard
 * Implement a new constructor to deploy this contract 
 */
abstract contract LpRewards is ReentrancyGuard, Pausable, RewardsDistributionRecipient, IERC4626 {
    using SafeERC20 for IERC20;

    struct Account {
        uint256 rewards;
        uint256 assets;
        uint256 shares;
        uint256 sharesBoost;
        uint256 rewardPerTokenPaid;
    }

    struct Total {
        uint256 managedAssets;
        uint256 supply;
    }
    
    /* ========= STATE VARIABLES ========= */

    // veVault
    address public veVault;
    // Reward token
    address public rewardsToken;
    // Asset token (LP token)
    address public assetToken;

    // Contract totals
    Total public total;
    // User info
    mapping(address => Account) internal accounts;

    // Reward per token
    uint256 public rewardPerTokenStored;
    uint256 public rewardRate = 0;

    // Epochs
    uint256 public periodFinish = 0;
    uint256 public rewardsDuration = 7 days;
    uint256 public lastUpdateTime;

    // Math precision
    uint256 internal constant PRECISION = 1e18; 
    
    // ERC20 metadata (The share token)
    string public _name;
    string public _symbol;

    // Only allow recoverERC20 from this list
    mapping(address => bool) public whitelistRecoverERC20;

    /* ============ CONSTRUCTOR ============== */

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /* ============ VIEWS (IERC4626) =================== */
    
    /**
     * @notice Address of asset token
     */
    function asset() override external view returns (address assetTokenAddress) {
        return assetToken;
    }
    
    /**
     * @notice Total of LP tokens hold by the contract
     */
    function totalAssets() override external view returns (uint256 totalManagedAssets) {
        return total.managedAssets;
    }

    /**
     * @notice Total of shares minted by the contract
     * This value is important to calculate the percentage
     * of reward for each staker
     */
    function totalSupply() override external view returns (uint256) {
        return total.supply;
    }

    /**
     * @notice Amount of shares an address has
     */
    function balanceOf(address owner) override external view returns (uint256) {
        return accounts[owner].shares;
    }

    /**
     * @notice Amount of LP staked by an address
     */
    function assetBalanceOf(address owner) external view returns (uint256) {
        return accounts[owner].assets;
    }

    /** 
     * @notice Maximum amount of the underlying asset that can
     * be deposited into the Vault for the receiver, through a deposit call.
     * @dev Compliant to the ERC4626 interface.
     */
    function maxDeposit(address) override external pure returns (uint256 maxAssets) {
        return 2 ** 256 - 1;
    }

    /**
     * @notice Maximum amount of shares that can be minted from the
     * Vault for the receiver, through a mint call.
     * @dev Compliant to the ERC4626 interface.
     */
    function maxMint(address) override external pure returns (uint256 maxShares) {
        return 2 ** 256 - 1;
    }

    /**
     * @notice Maximum amount of the underlying asset that can be withdrawn from the
     * owner balance in the Vault, through a withdraw call.
     * @dev Compliant to the ERC4626 interface.
     */
    function maxWithdraw(address owner) override external view returns (uint256 maxAssets) {
        if (paused) {
            return 0;
        }
        return accounts[owner].assets;
    }

    /**
     * @notice Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
     * @dev Compliant to the ERC4626 interface.
     */
    function maxRedeem(address owner) override external view returns (uint256 maxShares) {
        if (paused) {
            return 0;
        }
        // Since assets and (shares - sharesBoost) have an 1:1 ratio
        return accounts[owner].assets;
    }

    /** 
     * @notice The amount of shares that the Vault would exchange 
     * for the amount of assets provided, in an ideal scenario where
     * all the conditions are met.
     * @dev Compliant to the ERC4626 interface.
     */
    function convertToShares(uint256 assets) override external view returns (uint256 shares) {
        return assets * getMultiplier(msg.sender) / PRECISION;
    }

    /**
     * @notice The amount of assets that the Vault would exchange
     * for the amount of shares provided, in an ideal scenario where
     * all the conditions are met.
     * @dev Compliant to the ERC4626 interface.
     */
    function convertToAssets(uint256 shares) override external view returns (uint256 assets) {
        return shares * PRECISION / getMultiplier(msg.sender);
    }

    /** 
     * @notice Allows an on-chain or off-chain user to simulate the
     * effects of their deposit at the current block, given current on-chain conditions.
     * @dev Compliant to the ERC4626 interface.
     */
    function previewDeposit(uint256 assets) override external view returns (uint256 shares) {
        return assets * getMultiplier(msg.sender) / PRECISION;
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate the
     * effects of their mint at the current block, given current on-chain conditions.
     * @dev Compliant to the ERC4626 interface.
     */
    function previewMint(uint256 shares) override external view returns (uint256 assets) {
         return shares * PRECISION / getMultiplier(msg.sender);
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate the effects of their
     * withdrawal at the current block, given current on-chain conditions.
     * @dev Compliant to the ERC4626 interface.
     */
    function previewWithdraw(uint256 assets) override external view returns (uint256 shares) {
        return assets * getMultiplier(msg.sender) / PRECISION;
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate the effects of their
     * redeemption at the current block, given current on-chain conditions.
     * @dev Compliant to the ERC4626 interface.
     */
    function previewRedeem(uint256 shares) override external view returns (uint256 assets) {
        return shares * PRECISION / getMultiplier(msg.sender);
    }

    /**
     * @notice xNEWO tokens are not transferable.
     * @dev Always returns zero.
     */
    function allowance(address, address) override external pure returns (uint256) {
        return 0;
    }

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

    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual returns (uint8) {
        return 18;
    }

     /* ========== ERC20 NOT ALLOWED FUNCTIONS ========== */

    /**
     * @notice ERC20 transfer are not allowed
     */
    function transfer(address, uint256) external pure override returns (bool) {
        revert Unauthorized();
    }

    /**
     * @notice ERC20 approve are not allowed
     */
    function approve(address, uint256) external pure override returns (bool) {
        revert Unauthorized();
    }

    /**
     * @notice ERC20 transferFrom are not allowed
     */
    function transferFrom(address, address, uint256) external pure override returns (bool) {
        revert Unauthorized();
    }

    /* ============== REWARD FUNCTIONS ====================== */

    /**
     * @notice Notify the reward contract about a deposit in the
     * veVault contract. This is important to assure the
     * contract will account user's rewards.
     * @return account with full information
     */
    function notifyDeposit() public updateReward(msg.sender) updateBoost(msg.sender) returns(Account memory) {
        emit NotifyDeposit(msg.sender, accounts[owner].assets, accounts[owner].shares);
        return accounts[owner];
    }

    /**
     * @notice Pick the correct date for applying the reward
     * Apply until the end of periodFinish or now
     * @return date which rewards are applicable
     */
    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    /**
     * @notice Calculate how much reward must be given for an user
     * per token staked. 
     * @return amount of reward per token updated
     */
    function rewardPerToken() public view returns (uint256) {
        if (total.supply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored
            + ((lastTimeRewardApplicable() - lastUpdateTime)
                * rewardRate
                * PRECISION 
                / total.supply
            );
    }
    
    /**
     * @notice Calculates how much rewards a staker earned 
     * until this moment.
     * @return amount of rewards earned so far
     */
    function earned(address owner) public view returns (uint256) {
        return accounts[owner].rewards
                + (accounts[owner].shares
                    * (rewardPerToken() - accounts[owner].rewardPerTokenPaid)
                    / PRECISION);
    }

    /**
     * @notice Total rewards that will be paid during the distribution
     */
    function getRewardForDuration() external view returns (uint256) {
        return rewardRate * rewardsDuration;
    }

    /**
     * @notice Claim rewards for user.
     * @dev In case of no rewards claimable
     * just update the user status and do nothing.
     */
    function getReward() public updateReward(msg.sender) returns (uint256 reward) {
        reward = accounts[msg.sender].rewards;
        if(reward <= 0)
            revert UnauthorizedClaim();
        accounts[msg.sender].rewards = 0;
        IERC20(rewardsToken).safeTransfer(msg.sender, reward);
        emit RewardPaid(msg.sender, reward);
        return reward;
    }

    /**
     * @notice Set the contract to start distribuiting rewards
     * for stakers.
     * @param reward: amount of tokens to be distributed
     */
    function notifyRewardAmount(uint256 reward)
            override
            external
            onlyRewardsDistribution
            updateReward(address(0)) {
        if (block.timestamp >= periodFinish)
            rewardRate = reward / rewardsDuration;
        else {
            uint256 remaining = periodFinish - block.timestamp;
            uint256 leftover = remaining * rewardRate;
            rewardRate = (reward + leftover) / rewardsDuration;
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = IERC20(rewardsToken).balanceOf(address(this));
        if(rewardRate > balance / rewardsDuration)
            revert RewardTooHigh({
                allowed: balance,
                reward: reward
            });
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + rewardsDuration;
        emit RewardAdded(reward);
    }

    /**
     * @notice Allow owner to change reward duration
     * Only allow the change if period finish has already ended
     */
    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        if (block.timestamp <= periodFinish)
            revert Unauthorized();
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    /* =================  GET EXTERNAL INFO  =================== */

    /**
     * @notice Get how much token (not veToken) owner has in the provided LP
     */
    function getNewoShare(address owner) public view returns (uint256) {
        uint112 reserve0; uint112 reserve1; uint32 timestamp;

        (reserve0, reserve1, timestamp) = IUniswapV2Pair(assetToken).getReserves();
        return accounts[owner].assets * reserve0
                / IUniswapV2Pair(assetToken).totalSupply();
    }

    /**
     * @notice Get the multiplier applied for the address in the veVault contract 
     */
    function getMultiplier(address owner) public view returns (uint256) {
        IVeVault veToken = IVeVault(veVault);
        uint256 assetBalance = veToken.assetBalanceOf(owner);
        
        // to make sure that there is no division by zero
        if (assetBalance == 0)
            return 1;
        return veToken.balanceOf(owner) * PRECISION / assetBalance;   
    }

    /**
     * @notice Get how much newo an address has locked in veVault
     */
    function getNewoLocked(address owner) public view returns (uint256) {
        return IVeVault(veVault).assetBalanceOf(owner);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */
    
    /**
     * @notice Mints shares to receiver by depositing exactly amount of underlying tokens.
     * @dev Compliant to the ERC4626 interface.
     * @param assets: amount of underlying tokens
     * @param receiver: address which the veTokens will be granted to
     * @return shares minted for receiver
     */
    function deposit(uint256 assets, address receiver)
            override
            external
            nonReentrant
            notPaused
            updateReward(receiver)
            updateBoost(receiver)
            returns (uint256 shares) {
        shares = assets;
        _deposit(assets, shares, receiver);
        return shares;
    }

    /**
     * @dev Not compliant to the ERC4626 interface.
     * Due to rounding issues, would be very hard and
     * gas expensive to make it properly works.
     * To avoid a bad user experience this function
     * will always revert.
     */
    function mint(uint256, address)
            override
            external
            pure
            returns (uint256) {
        revert NotImplemented();
    }

    /**
     * @notice Burns shares from owner and sends exactly
     * assets of underlying tokens to receiver.
     * Allows owner to send their assets to another
     * address.
     * @dev Compliant to the ERC4626 interface
     * @param assets: amount of underlying tokens
     * @param receiver: address which tokens will be transfered to
     * @param owner: address which controls the veTokens 
     * @return shares burned from owner
     */
    function withdraw(uint256 assets, address receiver, address owner)
            override
            external
            nonReentrant
            updateReward(owner)
            updateBoost(owner)
            returns(uint256 shares) {
        shares = assets;
        _withdraw(assets, shares, receiver, owner);
        return shares; 
    }

    /**
     * @dev Not compliant to the ERC4626 interface.
     * Due to rounding issues, would be very hard and
     * gas expensive to make it properly works.
     * To avoid a bad user experience this function
     * will always revert.
     */
    function redeem(uint256, address, address)
            override
            external 
            pure
            returns (uint256) {
        revert NotImplemented();
    }

    /**
     * @notice Perform a full withdraw
     * for caller and get all remaining rewards
     * @return reward claimed by the caller
     */
    function exit() external
            nonReentrant 
            updateReward(msg.sender)
            updateBoost(msg.sender)
            returns (uint256 reward) {
        _withdraw(accounts[msg.sender].assets, accounts[msg.sender].shares - accounts[msg.sender].sharesBoost, msg.sender, msg.sender);
        reward = getReward();
        return reward;
    }

    /* ========== RESTRICTED FUNCTIONS ========== */
    
    /**
     * @dev Handles internal withdraw logic
     * Burns the correct shares amount and
     * transfer assets to receiver.
     * Only allows receiver equal owner
     * @param assets: amount of tokens to withdraw
     * @param shares: amount of shares to burn
     * @param receiver: address which the tokens will transfered to
     * @param owner: address which controls the shares
     */
    function _withdraw(uint256 assets, uint256 shares, address receiver, address owner) internal {
        if(assets <= 0 || owner != msg.sender 
            || accounts[owner].assets < assets
            || (accounts[owner].shares - accounts[owner].sharesBoost) < shares)
            revert Unauthorized();
    
        // Remove LP Tokens (assets)
        total.managedAssets -= assets;
        accounts[owner].assets -= assets;
        
        // Remove shares
        total.supply -= shares;
        accounts[owner].shares -= shares;

        IERC20(assetToken).safeTransfer(receiver, assets);

        // ERC4626 compliance has to emit withdraw event
        emit Withdraw(msg.sender, receiver, owner, assets, shares);
    }
    
    /**
     * @dev Handles internal deposit logic
     * Mints the correct shares amount and
     * transfer assets from caller to vault.
     * @param assets: amount of tokens to deposit 
     * @param shares: amount of shares to mint
     * @param receiver: address which the shares will be minted to, must be the same as caller
     */
    function _deposit(uint256 assets, uint256 shares, address receiver) internal {
        if(assets <= 0 || receiver != msg.sender)
            revert Unauthorized();
        // Lp tokens
        total.managedAssets += assets;
        accounts[receiver].assets += assets;

        // Vault shares
        total.supply += shares;
        accounts[receiver].shares += shares;

        IERC20(assetToken).safeTransferFrom(msg.sender, address(this), assets);
        emit Deposit(msg.sender, address(this), assets, shares);
    }

    /**
     * @notice Owner can whitelist an ERC20 to recover it afterwards.
     * Emits and event to notify all users about it 
     * @dev It's possible to owner whitelist the underlying token
     * and do some kind of rugpull. To prevent that, it'recommended
     * that owner is a multisig address. Also, it emits an event
     * of changes in the ERC20 whitelist as a safety check.
     * @param flag: true to allow recover for the token
     */
    function changeWhitelistRecoverERC20(address tokenAddress, bool flag) external onlyOwner {
        whitelistRecoverERC20[tokenAddress] = flag;
        emit ChangeWhitelistERC20(tokenAddress, flag);
    }

    /**
     * @notice Added to support to recover ERC20 token within a whitelist 
     */
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        if (whitelistRecoverERC20[tokenAddress] == false) revert NotWhitelisted();
        
        uint balance = IERC20(tokenAddress).balanceOf(address(this));
        if (balance < tokenAmount) revert InsufficientBalance(); 

        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    /**
     * @notice Added to support to recover ERC721 
     */
    function recoverERC721(address tokenAddress, uint256 tokenId) external onlyOwner {
        IERC721(tokenAddress).safeTransferFrom(address(this), owner, tokenId);
        emit RecoveredNFT(tokenAddress, tokenId);
    }
    
    /* ========== MODIFIERS ========== */

    /**
     * @dev Always apply this to update the current state
     * of earned rewards for caller
     */
    modifier updateReward(address owner) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (owner != address(0)) {
            accounts[owner].rewards = earned(owner);
            accounts[owner].rewardPerTokenPaid = rewardPerTokenStored;
        }
        _;
    }

    /**
     * @dev Whenever the amount of assets is changed
     * this will check and update the boosts correctly
     * This action can burn or mint new shares if necessary
     */
    modifier updateBoost(address owner) {
        _;
        uint256 oldShares = accounts[owner].shares;
        uint256 newShares = oldShares;
        if (getNewoShare(owner) <= getNewoLocked(owner)){
            newShares = accounts[owner].assets * getMultiplier(owner) / PRECISION;
        }
        if (newShares > oldShares) {
            // Mint boost shares
            uint256 diff = newShares - oldShares;
            total.supply += diff;
            accounts[owner].sharesBoost = diff;
            accounts[owner].shares = newShares;
            emit BoostUpdated(owner, accounts[owner].shares, accounts[owner].sharesBoost);
        } else if (newShares < oldShares) {
            // Burn boost shares
            uint256 diff = oldShares - newShares;
            total.supply -= diff;
            accounts[owner].sharesBoost = diff;
            accounts[owner].shares = newShares;
            emit BoostUpdated(owner, accounts[owner].shares, accounts[owner].sharesBoost);
        }
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event RecoveredNFT(address tokenAddress, uint256 tokenId);
    event ChangeWhitelistERC20(address indexed tokenAddress, bool whitelistState);
    event NotifyDeposit(address indexed user, uint256 assetBalance, uint256 sharesBalance);
    event BoostUpdated(address indexed owner, uint256 totalShares, uint256 boostShares);
}


contract XNewO is LpRewards("staked NEWO LP", "stNEWOlp") {
    constructor(
        address _owner,
        address _lp,
        address _rewardsToken,
        address _veTokenVault,
        address _rewardsDistribution
    ) Owned (_owner) {
        assetToken = _lp;
        rewardsToken = _rewardsToken;
        veVault = _veTokenVault;
        rewardsDistribution = _rewardsDistribution;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_lp","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_veTokenVault","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"NotImplemented","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[{"internalType":"uint256","name":"allowed","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardTooHigh","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnauthorizedClaim","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalShares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boostShares","type":"uint256"}],"name":"BoostUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"bool","name":"whitelistState","type":"bool"}],"name":"ChangeWhitelistERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"assetBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesBalance","type":"uint256"}],"name":"NotifyDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RecoveredNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"_name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"assetTokenAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"assetBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"flag","type":"bool"}],"name":"changeWhitelistRecoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getNewoLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getNewoShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"maxAssets","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"maxShares","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"maxShares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"maxAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notifyDeposit","outputs":[{"components":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"sharesBoost","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"}],"internalType":"struct LpRewards.Account","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"managedAssets","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"totalManagedAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"veVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistRecoverERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040526000600c556000600d5562093a80600e553480156200002257600080fd5b5060405162002cb038038062002cb08339810160408190526200004591620002ea565b604080518082018252600e81526d07374616b6564204e45574f204c560941b60208083019190915282518084019093526008835267073744e45574f6c760c41b90830152600160005590866001600160a01b038116620000ec5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b038316908117909155604080516000815260208101929092527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1506001546001600160a01b0316620001945760405162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b6044820152606401620000e3565b8151620001a990601090602085019062000227565b508051620001bf90601190602084019062000227565b5050600780546001600160a01b039687166001600160a01b031991821617909155600680549587169582169590951790945550600580549285169290931691909117909155600480549190921661010002610100600160a81b03199091161790555062000396565b82805462000235906200035a565b90600052602060002090601f016020900481019282620002595760008555620002a4565b82601f106200027457805160ff1916838001178555620002a4565b82800160010185558215620002a4579182015b82811115620002a457825182559160200191906001019062000287565b50620002b2929150620002b6565b5090565b5b80821115620002b25760008155600101620002b7565b80516001600160a01b0381168114620002e557600080fd5b919050565b600080600080600060a086880312156200030357600080fd5b6200030e86620002cd565b94506200031e60208701620002cd565b93506200032e60408701620002cd565b92506200033e60608701620002cd565b91506200034e60808701620002cd565b90509295509295909350565b600181811c908216806200036f57607f821691505b6020821081036200039057634e487b7160e01b600052602260045260246000fd5b50919050565b61290a80620003a66000396000f3fe608060405234801561001057600080fd5b50600436106103b95760003560e01c806380faa57d116101f4578063c63d75b61161011a578063d85ab111116100ad578063df136d651161007c578063df136d65146107c0578063e9fad8ee146107c9578063ebe2b12b146107d1578063ef8b30f71461046357600080fd5b8063d85ab11114610784578063d905777e14610756578063dbb22f9414610797578063dd62ed3e146107aa57600080fd5b8063cd3daf9d116100e9578063cd3daf9d1461074e578063ce96cb7714610756578063d1af0c7d14610769578063d28d88521461077c57600080fd5b8063c63d75b61461058c578063c6e6f59214610463578063c8f33c9114610732578063cc1a378f1461073b57600080fd5b806395d89b4111610192578063b09f126611610161578063b09f126614610709578063b3d7f6b91461042d578063b460af9414610711578063ba0876521461072457600080fd5b806395d89b41146106db578063a9059cbb14610440578063a910ebab146106e3578063a9d637e1146106f657600080fd5b80638da5cb5b116101ce5780638da5cb5b146106895780638daf78af1461069c57806391b4ded9146106bf57806394bf804d146106c857600080fd5b806380faa57d1461065b578063819d4cc6146106635780638980f11f1461067657600080fd5b80632ddbd13a116102e45780634cdad506116102775780636e553f65116102465780636e553f651461060b57806370a082311461061e57806379ba50971461064a5780637b0a47ee1461065257600080fd5b80634cdad5061461042d57806353a47bb7146105a15780635c975abb146105b4578063691529d7146105c157600080fd5b80633c6b16ab116102b35780633c6b16ab146105595780633d18b9121461056c5780633fc6df6e14610574578063402d267d1461058c57600080fd5b80632ddbd13a1461050d578063313ce56714610530578063386a95251461053f57806338d52e0f1461054857600080fd5b80631083f7611161035c578063197621431161032b57806319762143146104d15780631a04505e146104e45780631c1f78eb146104f757806323b872dd146104ff57600080fd5b80631083f761146104765780631627540c146104a157806316c38b3c146104b657806318160ddd146104c957600080fd5b806306fdde031161039857806306fdde031461041857806307a2d13a1461042d578063095ea7b3146104405780630a28a4771461046357600080fd5b80628cc262146103be57806301e1d114146103e457806306b3efd6146103ec575b600080fd5b6103d16103cc366004612517565b6107da565b6040519081526020015b60405180910390f35b6008546103d1565b6103d16103fa366004612517565b6001600160a01b03166000908152600a602052604090206001015490565b61042061086b565b6040516103db919061255e565b6103d161043b366004612591565b6108fd565b61045361044e3660046125aa565b610924565b60405190151581526020016103db565b6103d1610471366004612591565b61093e565b600754610489906001600160a01b031681565b6040516001600160a01b0390911681526020016103db565b6104b46104af366004612517565b61095c565b005b6104b46104c43660046125e2565b6109b9565b6009546103d1565b6104b46104df366004612517565b610a2b565b600554610489906001600160a01b031681565b6103d1610a5b565b61045361044e3660046125ff565b60085460095461051b919082565b604080519283526020830191909152016103db565b604051601281526020016103db565b6103d1600e5481565b6007546001600160a01b0316610489565b6104b4610567366004612591565b610a72565b6103d1610c95565b6004546104899061010090046001600160a01b031681565b6103d161059a366004612517565b5060001990565b600254610489906001600160a01b031681565b6004546104539060ff1681565b6105c9610d7d565b6040516103db9190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b6103d161061936600461263b565b61102c565b6103d161062c366004612517565b6001600160a01b03166000908152600a602052604090206002015490565b6104b46112bc565b6103d1600c5481565b6103d16113a6565b6104b46106713660046125aa565b6113bd565b6104b46106843660046125aa565b611478565b600154610489906001600160a01b031681565b6104536106aa366004612517565b60126020526000908152604090205460ff1681565b6103d160035481565b6103d16106d636600461263b565b6115a4565b6104206115bf565b6103d16106f1366004612517565b6115ce565b6103d1610704366004612517565b611703565b61042061181c565b6103d161071f366004612667565b6118aa565b6103d16106d6366004612667565b6103d1600f5481565b6104b4610749366004612591565b611ac3565b6103d1611b21565b6103d1610764366004612517565b611b86565b600654610489906001600160a01b031681565b610420611bbb565b6104b46107923660046126a3565b611bc8565b6103d16107a5366004612517565b611c2f565b6103d16107b83660046126da565b600092915050565b6103d1600b5481565b6103d1611c9e565b6103d1600d5481565b6001600160a01b0381166000908152600a6020526040812060040154670de0b6b3a764000090610808611b21565b610812919061271a565b6001600160a01b0384166000908152600a60205260409020600201546108389190612731565b6108429190612750565b6001600160a01b0383166000908152600a60205260409020546108659190612772565b92915050565b60606010805461087a9061278a565b80601f01602080910402602001604051908101604052809291908181526020018280546108a69061278a565b80156108f35780601f106108c8576101008083540402835291602001916108f3565b820191906000526020600020905b8154815290600101906020018083116108d657829003601f168201915b5050505050905090565b600061090833611703565b61091a670de0b6b3a764000084612731565b6108659190612750565b60006040516282b42960e81b815260040160405180910390fd5b6000670de0b6b3a764000061095233611703565b61091a9084612731565b610964611ee1565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6109c1611ee1565b60045460ff16151581151514610a28576004805460ff191682151590811790915560ff16156109ef57426003555b60045460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016109ae565b50565b610a33611ee1565b600480546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000600e54600c54610a6d9190612731565b905090565b60045461010090046001600160a01b03163314610ae95760405162461bcd60e51b815260206004820152602a60248201527f43616c6c6572206973206e6f742052657761726473446973747269627574696f6044820152691b8818dbdb9d1c9858dd60b21b60648201526084015b60405180910390fd5b6000610af3611b21565b600b55610afe6113a6565b600f556001600160a01b03811615610b3e57610b19816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b600d544210610b5c57600e54610b549083612750565b600c55610b9e565b600042600d54610b6c919061271a565b90506000600c5482610b7e9190612731565b600e54909150610b8e8286612772565b610b989190612750565b600c5550505b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0b91906127c4565b9050600e5481610c1b9190612750565b600c541115610c47576040516360f431ff60e01b81526004810182905260248101849052604401610ae0565b42600f819055600e54610c5991612772565b600d556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d906020015b60405180910390a1505050565b600033610ca0611b21565b600b55610cab6113a6565b600f556001600160a01b03811615610ceb57610cc6816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b336000908152600a6020526040902054915081610d1b5760405163700925ab60e01b815260040160405180910390fd5b336000818152600a6020526040812055600654610d44916001600160a01b039091169084611f55565b60405182815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25090565b610daf6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b33610db8611b21565b600b55610dc36113a6565b600f556001600160a01b03811615610e0357610dde816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b600180546001600160a01b03166000908152600a602090815260409182902092830154600290930154825193845290830152339182917f289612937eedf6241fafcdf01e3dd2fca195f2eceb2fe82a9baeeee6408be551910160405180910390a2600180546001600160a01b039081166000908152600a60208181526040808420815160a0810183528154815296810154878401526002808201548884015260038201546060890152600490910154608088015294871684529190529020015490935080610ed083611c2f565b610ed9846115ce565b11610f2357670de0b6b3a7640000610ef084611703565b6001600160a01b0385166000908152600a6020526040902060010154610f169190612731565b610f209190612750565b90505b81811115610fa6576000610f37838361271a565b90508060086001016000828254610f4e9190612772565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a250611025565b81811015611025576000610fba828461271a565b90508060086001016000828254610fd1919061271a565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a2505b5050505090565b60006002600054036110505760405162461bcd60e51b8152600401610ae0906127dd565b600260005560045460ff16156110ce5760405162461bcd60e51b815260206004820152603c60248201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060448201527f7768696c652074686520636f6e747261637420697320706175736564000000006064820152608401610ae0565b816110d7611b21565b600b556110e26113a6565b600f556001600160a01b03811615611122576110fd816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b82849250611131858486611fbd565b6001600160a01b0381166000908152600a60205260409020600201548061115783611c2f565b611160846115ce565b116111aa57670de0b6b3a764000061117784611703565b6001600160a01b0385166000908152600a602052604090206001015461119d9190612731565b6111a79190612750565b90505b8181111561122d5760006111be838361271a565b905080600860010160008282546111d59190612772565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a2506112ac565b818110156112ac576000611241828461271a565b90508060086001016000828254611258919061271a565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a2505b5050600160005550909392505050565b6002546001600160a01b031633146113345760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610ae0565b600154600254604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b6000600d5442106113b85750600d5490565b504290565b6113c5611ee1565b600154604051632142170760e11b81523060048201526001600160a01b03918216602482015260448101839052908316906342842e0e90606401600060405180830381600087803b15801561141957600080fd5b505af115801561142d573d6000803e3d6000fd5b5050604080516001600160a01b0386168152602081018590527f04de91139be5e8b4eaa61555ab706f4b8ba6be2552d0e92549fd256d2b2ce528935001905060405180910390a15050565b611480611ee1565b6001600160a01b03821660009081526012602052604081205460ff16151590036114bd57604051630b094f2760e31b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015611504573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152891906127c4565b90508181101561154b57604051631e9acf1760e31b815260040160405180910390fd5b600154611565906001600160a01b03858116911684611f55565b604080516001600160a01b0385168152602081018490527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa289101610c88565b600060405163d623472560e01b815260040160405180910390fd5b60606011805461087a9061278a565b600080600080600760009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164b919061282b565b600754604080516318160ddd60e01b815290519497509295509093506001600160a01b0316916318160ddd916004808201926020929091908290030181865afa15801561169c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c091906127c4565b6001600160a01b0386166000908152600a60205260409020600101546116f0906001600160701b03861690612731565b6116fa9190612750565b95945050505050565b600554604051630359f7eb60e11b81526001600160a01b0383811660048301526000921690829082906306b3efd690602401602060405180830381865afa158015611752573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177691906127c4565b90508060000361178a575060019392505050565b6040516370a0823160e01b81526001600160a01b0385811660048301528291670de0b6b3a7640000918516906370a0823190602401602060405180830381865afa1580156117dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180091906127c4565b61180a9190612731565b6118149190612750565b949350505050565b601180546118299061278a565b80601f01602080910402602001604051908101604052809291908181526020018280546118559061278a565b80156118a25780601f10611877576101008083540402835291602001916118a2565b820191906000526020600020905b81548152906001019060200180831161188557829003601f168201915b505050505081565b60006002600054036118ce5760405162461bcd60e51b8152600401610ae0906127dd565b6002600055816118dc611b21565b600b556118e76113a6565b600f556001600160a01b0381161561192757611902816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b82859250611937868487876120de565b6001600160a01b0381166000908152600a60205260409020600201548061195d83611c2f565b611966846115ce565b116119b057670de0b6b3a764000061197d84611703565b6001600160a01b0385166000908152600a60205260409020600101546119a39190612731565b6119ad9190612750565b90505b81811115611a335760006119c4838361271a565b905080600860010160008282546119db9190612772565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a250611ab2565b81811015611ab2576000611a47828461271a565b90508060086001016000828254611a5e919061271a565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a2505b505060016000555090949350505050565b611acb611ee1565b600d544211611aec576040516282b42960e81b815260040160405180910390fd5b600e8190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3906020016109ae565b6009546000908103611b345750600b5490565b600860010154670de0b6b3a7640000600c54600f54611b516113a6565b611b5b919061271a565b611b659190612731565b611b6f9190612731565b611b799190612750565b600b54610a6d9190612772565b60045460009060ff1615611b9c57506000919050565b506001600160a01b03166000908152600a602052604090206001015490565b601080546118299061278a565b611bd0611ee1565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527f14ed3fddefc3adc7cbd4d30bda1670cbd32e04df245471b8b9f85d2c50d27bbc910160405180910390a25050565b600554604051630359f7eb60e11b81526001600160a01b03838116600483015260009216906306b3efd690602401602060405180830381865afa158015611c7a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086591906127c4565b6000600260005403611cc25760405162461bcd60e51b8152600401610ae0906127dd565b600260005533611cd0611b21565b600b55611cdb6113a6565b600f556001600160a01b03811615611d1b57611cf6816107da565b6001600160a01b0382166000908152600a60205260409020908155600b546004909101555b336000818152600a6020526040902060018101546003820154600290920154611d4e92611d479161271a565b33336120de565b611d56610c95565b92506001600160a01b0381166000908152600a602052604090206002015480611d7e83611c2f565b611d87846115ce565b11611dd157670de0b6b3a7640000611d9e84611703565b6001600160a01b0385166000908152600a6020526040902060010154611dc49190612731565b611dce9190612750565b90505b81811115611e54576000611de5838361271a565b90508060086001016000828254611dfc9190612772565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a250611ed3565b81811015611ed3576000611e68828461271a565b90508060086001016000828254611e7f919061271a565b90915550506001600160a01b0384166000818152600a60209081526040918290206003810185905560020185905581518581529081018490526000805160206128b5833981519152910160405180910390a2505b505060016000555090919050565b6001546001600160a01b03163314611f535760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610ae0565b565b6040516001600160a01b038316602482015260448101829052611fb890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612268565b505050565b821580611fd357506001600160a01b0381163314155b15611ff0576040516282b42960e81b815260040160405180910390fd5b82600860000160008282546120059190612772565b90915550506001600160a01b0381166000908152600a602052604081206001018054859290612035908490612772565b90915550506009805483919060009061204f908490612772565b90915550506001600160a01b0381166000908152600a60205260408120600201805484929061207f908490612772565b909155505060075461209c906001600160a01b031633308661233a565b6040805184815260208101849052309133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a3505050565b8315806120f457506001600160a01b0381163314155b8061211957506001600160a01b0381166000908152600a602052604090206001015484115b8061214f57506001600160a01b0381166000908152600a602052604090206003810154600290910154849161214d9161271a565b105b1561216c576040516282b42960e81b815260040160405180910390fd5b8360086000016000828254612181919061271a565b90915550506001600160a01b0381166000908152600a6020526040812060010180548692906121b190849061271a565b9091555050600980548491906000906121cb90849061271a565b90915550506001600160a01b0381166000908152600a6020526040812060020180548592906121fb90849061271a565b9091555050600754612217906001600160a01b03168386611f55565b60408051858152602081018590526001600160a01b03808416929085169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a450505050565b60006122bd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123789092919063ffffffff16565b805190915015611fb857808060200190518101906122db919061287b565b611fb85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ae0565b6040516001600160a01b03808516602483015283166044820152606481018290526123729085906323b872dd60e01b90608401611f81565b50505050565b60606123878484600085612391565b90505b9392505050565b6060824710156123f25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ae0565b6001600160a01b0385163b6124495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ae0565b600080866001600160a01b031685876040516124659190612898565b60006040518083038185875af1925050503d80600081146124a2576040519150601f19603f3d011682016040523d82523d6000602084013e6124a7565b606091505b50915091506124b78282866124c2565b979650505050505050565b606083156124d157508161238a565b8251156124e15782518084602001fd5b8160405162461bcd60e51b8152600401610ae0919061255e565b80356001600160a01b038116811461251257600080fd5b919050565b60006020828403121561252957600080fd5b61238a826124fb565b60005b8381101561254d578181015183820152602001612535565b838111156123725750506000910152565b602081526000825180602084015261257d816040850160208701612532565b601f01601f19169190910160400192915050565b6000602082840312156125a357600080fd5b5035919050565b600080604083850312156125bd57600080fd5b6125c6836124fb565b946020939093013593505050565b8015158114610a2857600080fd5b6000602082840312156125f457600080fd5b813561238a816125d4565b60008060006060848603121561261457600080fd5b61261d846124fb565b925061262b602085016124fb565b9150604084013590509250925092565b6000806040838503121561264e57600080fd5b8235915061265e602084016124fb565b90509250929050565b60008060006060848603121561267c57600080fd5b8335925061268c602085016124fb565b915061269a604085016124fb565b90509250925092565b600080604083850312156126b657600080fd5b6126bf836124fb565b915060208301356126cf816125d4565b809150509250929050565b600080604083850312156126ed57600080fd5b6126f6836124fb565b915061265e602084016124fb565b634e487b7160e01b600052601160045260246000fd5b60008282101561272c5761272c612704565b500390565b600081600019048311821515161561274b5761274b612704565b500290565b60008261276d57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561278557612785612704565b500190565b600181811c9082168061279e57607f821691505b6020821081036127be57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156127d657600080fd5b5051919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80516001600160701b038116811461251257600080fd5b60008060006060848603121561284057600080fd5b61284984612814565b925061285760208501612814565b9150604084015163ffffffff8116811461287057600080fd5b809150509250925092565b60006020828403121561288d57600080fd5b815161238a816125d4565b600082516128aa818460208701612532565b919091019291505056fe16b37f6aa1304bb2d5c8070cb2204c21ad7bafe00ae73d35edd6d13340f5298fa26469706673582212209f5169e133d8fc7c631448267ae8e4c63d8a2b8c4a6c4447d03a7b1200f7ae2064736f6c634300080d00330000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761000000000000000000000000c08ed9a9abeabcc53875787573dc32eee5e4351300000000000000000000000098585dfc8d9e7d48f0b1ae47ce33332cf4237d9600000000000000000000000044dd83e0598e7a3709cf0b2e59d3319418068a650000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761

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

0000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761000000000000000000000000c08ed9a9abeabcc53875787573dc32eee5e4351300000000000000000000000098585dfc8d9e7d48f0b1ae47ce33332cf4237d9600000000000000000000000044dd83e0598e7a3709cf0b2e59d3319418068a650000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761

-----Decoded View---------------
Arg [0] : _owner (address): 0x4a848F44146Ca6D1D6AA34bcdF3C41093deF1761
Arg [1] : _lp (address): 0xc08ED9a9ABEAbcC53875787573DC32Eee5E43513
Arg [2] : _rewardsToken (address): 0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96
Arg [3] : _veTokenVault (address): 0x44dd83E0598e7A3709cF0b2e59D3319418068a65
Arg [4] : _rewardsDistribution (address): 0x4a848F44146Ca6D1D6AA34bcdF3C41093deF1761

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761
Arg [1] : 000000000000000000000000c08ed9a9abeabcc53875787573dc32eee5e43513
Arg [2] : 00000000000000000000000098585dfc8d9e7d48f0b1ae47ce33332cf4237d96
Arg [3] : 00000000000000000000000044dd83e0598e7a3709cf0b2e59d3319418068a65
Arg [4] : 0000000000000000000000004a848f44146ca6d1d6aa34bcdf3c41093def1761


Deployed ByteCode Sourcemap

60038:413:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47083:266;;;;;;:::i;:::-;;:::i;:::-;;;529:25:1;;;517:2;502:18;47083:266:0;;;;;;;;39531:128;39632:5;:19;39531:128;;40209:119;;;;;;:::i;:::-;-1:-1:-1;;;;;40298:15:0;40271:7;40298:15;;;:8;:15;;;;;:22;;;;40209:119;44559:91;;;:::i;:::-;;;;;;;:::i;42512:161::-;;;;;;:::i;:::-;;:::i;45168:113::-;;;;;;:::i;:::-;;:::i;:::-;;;1825:14:1;;1818:22;1800:41;;1788:2;1773:18;45168:113:0;1660:187:1;43694:161:0;;;;;;:::i;:::-;;:::i;38350:25::-;;;;;-1:-1:-1;;;;;38350:25:0;;;;;;-1:-1:-1;;;;;2016:32:1;;;1998:51;;1986:2;1971:18;38350:25:0;1852:203:1;24498:141:0;;;;;;:::i;:::-;;:::i;:::-;;25790:500;;;;;;:::i;:::-;;:::i;39834:102::-;39916:12;;39834:102;;26902:142;;;;;;:::i;:::-;;:::i;38235:22::-;;;;;-1:-1:-1;;;;;38235:22:0;;;47447:118;;;:::i;45358:127::-;;;;;;:::i;38408:18::-;;;;;;;;;;;;;;2936:25:1;;;2992:2;2977:18;;2970:34;;;;2909:18;38408::0;2762:248:1;44761:84:0;;;44835:2;3157:36:1;;3145:2;3130:18;44761:84:0;3015:184:1;38663:39:0;;;;;;39333:112;39427:10;;-1:-1:-1;;;;;39427:10:0;39333:112;;48274:1212;;;;;;:::i;:::-;;:::i;47728:377::-;;;:::i;26628:34::-;;;;;;;;-1:-1:-1;;;;;26628:34:0;;;40546:118;;;;;;:::i;:::-;-1:-1:-1;;;40644:12:0;40546:118;24274:29;;;;;-1:-1:-1;;;;;24274:29:0;;;25385:18;;;;;;;;;45795:235;;;:::i;:::-;;;;;;3346:4:1;3388:3;3377:9;3373:19;3365:27;;3425:6;3419:13;3408:9;3401:32;3489:4;3481:6;3477:17;3471:24;3464:4;3453:9;3449:20;3442:54;3552:4;3544:6;3540:17;3534:24;3527:4;3516:9;3512:20;3505:54;3615:4;3607:6;3603:17;3597:24;3590:4;3579:9;3575:20;3568:54;3678:4;3670:6;3666:17;3660:24;3653:4;3642:9;3638:20;3631:54;3204:487;;;;;51513:356:0;;;;;;:::i;:::-;;:::i;40010:123::-;;;;;;:::i;:::-;-1:-1:-1;;;;;40103:15:0;40076:7;40103:15;;;:8;:15;;;;;:22;;;;40010:123;24647:271;;;:::i;38572:29::-;;;;;;46219:155;;;:::i;57505:220::-;;;;;;:::i;:::-;;:::i;56985:442::-;;;;;;:::i;:::-;;:::i;24247:20::-;;;;;-1:-1:-1;;;;;24247:20:0;;;38970:53;;;;;;:::i;:::-;;;;;;;;;;;;;;;;25353:25;;;;;;52133:167;;;;;;:::i;:::-;;:::i;44658:95::-;;;:::i;50069:336::-;;;;;;:::i;:::-;;:::i;50515:382::-;;;;;;:::i;:::-;;:::i;38893:21::-;;;:::i;52770:351::-;;;;;;:::i;:::-;;:::i;53385:179::-;;;;;;:::i;38709:29::-;;;;;;49631:263;;;;;;:::i;:::-;;:::i;46546:371::-;;;:::i;41198:192::-;;;;;;:::i;:::-;;:::i;38285:27::-;;;;;-1:-1:-1;;;;;38285:27:0;;;38867:19;;;:::i;56677:206::-;;;;;;:::i;:::-;;:::i;50990:133::-;;;;;;:::i;:::-;;:::i;44363:105::-;;;;;;:::i;:::-;44432:7;44363:105;;;;;38530:35;;;;;;53724:365;;;:::i;38625:31::-;;;;;;47083:266;-1:-1:-1;;;;;47272:15:0;;47135:7;47272:15;;;:8;:15;;;;;:34;;;38808:4;;47253:16;:14;:16::i;:::-;:53;;;;:::i;:::-;-1:-1:-1;;;;;47206:15:0;;;;;;:8;:15;;;;;:22;;;:101;;;;:::i;:::-;:134;;;;:::i;:::-;-1:-1:-1;;;;;47162:15:0;;;;;;:8;:15;;;;;:23;:179;;;;:::i;:::-;47155:186;47083:266;-1:-1:-1;;47083:266:0:o;44559:91::-;44604:13;44637:5;44630:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44559:91;:::o;42512:161::-;42585:14;42640:25;42654:10;42640:13;:25::i;:::-;42619:18;38808:4;42619:6;:18;:::i;:::-;:46;;;;:::i;45168:113::-;45235:4;45259:14;;-1:-1:-1;;;45259:14:0;;;;;;;;;;;43694:161;43767:14;38808:4;43810:25;43824:10;43810:13;:25::i;:::-;43801:34;;:6;:34;:::i;24498:141::-;24956:12;:10;:12::i;:::-;24570:14:::1;:23:::0;;-1:-1:-1;;;;;;24570:23:0::1;-1:-1:-1::0;;;;;24570:23:0;::::1;::::0;;::::1;::::0;;;24609:22:::1;::::0;1998:51:1;;;24609:22:0::1;::::0;1986:2:1;1971:18;24609:22:0::1;;;;;;;;24498:141:::0;:::o;25790:500::-;24956:12;:10;:12::i;:::-;25943:6:::1;::::0;::::1;;25932:17;;::::0;::::1;;25928:56:::0;25966:7:::1;25928:56;26030:6;:16:::0;;-1:-1:-1;;26030:16:0::1;::::0;::::1;;::::0;;::::1;::::0;;;::::1;26115:6:::0;26111:70:::1;;;26154:15;26138:13;:31:::0;26111:70:::1;26275:6;::::0;26262:20:::1;::::0;26275:6:::1;::::0;;::::1;1825:14:1::0;1818:22;1800:41;;26262:20:0::1;::::0;1788:2:1;1773:18;26262:20:0::1;1660:187:1::0;24979:1:0::1;25790:500:::0;:::o;26902:142::-;24956:12;:10;:12::i;:::-;26994:19:::1;:42:::0;;-1:-1:-1;;;;;26994:42:0;;::::1;;;-1:-1:-1::0;;;;;;26994:42:0;;::::1;::::0;;;::::1;::::0;;26902:142::o;47447:118::-;47502:7;47542:15;;47529:10;;:28;;;;:::i;:::-;47522:35;;47447:118;:::o;48274:1212::-;26808:19;;;;;-1:-1:-1;;;;;26808:19:0;26794:10;:33;26786:88;;;;-1:-1:-1;;;26786:88:0;;6250:2:1;26786:88:0;;;6232:21:1;6289:2;6269:18;;;6262:30;6328:34;6308:18;;;6301:62;-1:-1:-1;;;6379:18:1;;;6372:40;6429:19;;26786:88:0;;;;;;;;;48433:1:::1;57967:16;:14;:16::i;:::-;57944:20;:39:::0;58011:26:::1;:24;:26::i;:::-;57994:14;:43:::0;-1:-1:-1;;;;;58052:19:0;::::1;::::0;58048:163:::1;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1::0;;;;;58088:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;:39;;;58179:20:::1;::::0;58142:34:::1;::::0;;::::1;:57:::0;58048:163:::1;48471:12:::2;;48452:15;:31;48448:301;;48520:15;::::0;48511:24:::2;::::0;:6;:24:::2;:::i;:::-;48498:10;:37:::0;48448:301:::2;;;48566:17;48601:15;48586:12;;:30;;;;:::i;:::-;48566:50;;48631:16;48662:10;;48650:9;:22;;;;:::i;:::-;48722:15;::::0;48631:41;;-1:-1:-1;48701:17:0::2;48631:41:::0;48701:6;:17:::2;:::i;:::-;48700:37;;;;:::i;:::-;48687:10;:50:::0;-1:-1:-1;;48448:301:0::2;49131:12;::::0;49124:45:::2;::::0;-1:-1:-1;;;49124:45:0;;49163:4:::2;49124:45;::::0;::::2;1998:51:1::0;49109:12:0::2;::::0;-1:-1:-1;;;;;49131:12:0::2;::::0;49124:30:::2;::::0;1971:18:1;;49124:45:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49109:60;;49206:15;;49196:7;:25;;;;:::i;:::-;49183:10;;:38;49180:161;;;49243:98;::::0;-1:-1:-1;;;49243:98:0;;::::2;::::0;::::2;2936:25:1::0;;;2977:18;;;2970:34;;;2909:18;;49243:98:0::2;2762:248:1::0;49180:161:0::2;49369:15;49352:14;:32:::0;;;49428:15:::2;::::0;49410:33:::2;::::0;::::2;:::i;:::-;49395:12;:48:::0;49459:19:::2;::::0;529:25:1;;;49459:19:0::2;::::0;517:2:1;502:18;49459:19:0::2;;;;;;;;48437:1049;26885:1:::1;48274:1212:::0;:::o;47728:377::-;47790:14;47769:10;57967:16;:14;:16::i;:::-;57944:20;:39;58011:26;:24;:26::i;:::-;57994:14;:43;-1:-1:-1;;;;;58052:19:0;;;58048:163;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1;;;;;58088:15:0;;;;;;:8;:15;;;;;:39;;;58179:20;;58142:34;;;;:57;58048:163;47835:10:::1;47826:20;::::0;;;:8:::1;:20;::::0;;;;:28;;-1:-1:-1;47868:11:0;47865:55:::1;;47901:19;;-1:-1:-1::0;;;47901:19:0::1;;;;;;;;;;;47865:55;47940:10;47962:1;47931:20:::0;;;:8:::1;:20;::::0;;;;:32;47981:12:::1;::::0;47974:53:::1;::::0;-1:-1:-1;;;;;47981:12:0;;::::1;::::0;48020:6;47974:33:::1;:53::i;:::-;48043:30;::::0;529:25:1;;;48054:10:0::1;::::0;48043:30:::1;::::0;517:2:1;502:18;48043:30:0::1;;;;;;;47728:377:::0;;:::o;45795:235::-;45884:14;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45884:14:0;45840:10;57967:16;:14;:16::i;:::-;57944:20;:39;58011:26;:24;:26::i;:::-;57994:14;:43;-1:-1:-1;;;;;58052:19:0;;;58048:163;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1;;;;;58088:15:0;;;;;;:8;:15;;;;;:39;;;58179:20;;58142:34;;;;:57;58048:163;45951:5:::2;::::0;;-1:-1:-1;;;;;45951:5:0::2;45942:15;::::0;;;:8:::2;:15;::::0;;;;;;;;:22;;::::2;::::0;45966::::2;::::0;;::::2;::::0;45916:73;;2936:25:1;;;2977:18;;;2970:34;45864:10:0::1;::::0;;;45916:73:::2;::::0;2909:18:1;45916:73:0::2;;;;;;;46016:5;::::0;;-1:-1:-1;;;;;46016:5:0;;::::2;46007:15;::::0;;;:8:::2;:15;::::0;;;;;;;46000:22;;::::2;::::0;::::2;::::0;;;;;;;;::::2;::::0;;;::::2;::::0;::::2;::::0;;::::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;::::2;::::0;;::::2;::::0;;;;;58506:15;;::::1;::::0;;;;;;;:22:::1;::::0;46000;;-1:-1:-1;58506:22:0;58606:20:::1;58506:15:::0;58606:13:::1;:20::i;:::-;58583:19;58596:5;58583:12;:19::i;:::-;:43;58579:144;;38808:4;58679:20;58693:5;58679:13;:20::i;:::-;-1:-1:-1::0;;;;;58654:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;:22:::1;;::::0;:45:::1;::::0;;::::1;:::i;:::-;:57;;;;:::i;:::-;58642:69;;58579:144;58749:9;58737;:21;58733:704;;;58809:12;58824:21;58836:9:::0;58824;:21:::1;:::i;:::-;58809:36;;58876:4;58860:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;58895:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;;;;;:27:::1;::::0;::::1;:34:::0;;;58944:22:::1;;:34:::0;;;58998:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;58998:72:0;2909:18:1;58998:72:0::1;;;;;;;58760:322;58733:704;;;59104:9;59092;:21;59088:349;;;59164:12;59179:21;59191:9:::0;59179;:21:::1;:::i;:::-;59164:36;;59231:4;59215:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;59250:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;;;;;:27:::1;::::0;::::1;:34:::0;;;59299:22:::1;;:34:::0;;;59353:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;59353:72:0;2909:18:1;59353:72:0::1;;;;;;;59115:322;59088:349;58463:981;;58221:1;45795:235:::0;;:::o;51513:356::-;51750:14;7606:1;8204:7;;:19;8196:63;;;;-1:-1:-1;;;8196:63:0;;;;;;;:::i;:::-;7606:1;8337:7;:18;26379:6:::1;::::0;::::1;;26378:7;26370:80;;;::::0;-1:-1:-1;;;26370:80:0;;7210:2:1;26370:80:0::1;::::0;::::1;7192:21:1::0;7249:2;7229:18;;;7222:30;7288:34;7268:18;;;7261:62;7359:30;7339:18;;;7332:58;7407:19;;26370:80:0::1;7008:424:1::0;26370:80:0::1;51683:8:::2;57967:16;:14;:16::i;:::-;57944:20;:39:::0;58011:26:::2;:24;:26::i;:::-;57994:14;:43:::0;-1:-1:-1;;;;;58052:19:0;::::2;::::0;58048:163:::2;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1::0;;;;;58088:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;:39;;;58179:20:::2;::::0;58142:34:::2;::::0;;::::2;:57:::0;58048:163:::2;51718:8:::3;51786:6:::4;51777:15;;51803:34;51812:6;51820;51828:8;51803;:34::i;:::-;-1:-1:-1::0;;;;;58506:15:0;::::3;58486:17;58506:15:::0;;;:8:::3;:15;::::0;;;;:22:::3;;::::0;;58606:20:::3;58515:5:::0;58606:13:::3;:20::i;:::-;58583:19;58596:5;58583:12;:19::i;:::-;:43;58579:144;;38808:4;58679:20;58693:5;58679:13;:20::i;:::-;-1:-1:-1::0;;;;;58654:15:0;::::3;;::::0;;;:8:::3;:15;::::0;;;;:22:::3;;::::0;:45:::3;::::0;;::::3;:::i;:::-;:57;;;;:::i;:::-;58642:69;;58579:144;58749:9;58737;:21;58733:704;;;58809:12;58824:21;58836:9:::0;58824;:21:::3;:::i;:::-;58809:36;;58876:4;58860:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;58895:15:0;::::3;;::::0;;;:8:::3;:15;::::0;;;;;;;;:27:::3;::::0;::::3;:34:::0;;;58944:22:::3;;:34:::0;;;58998:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;58998:72:0;2909:18:1;58998:72:0::3;;;;;;;58760:322;58733:704;;;59104:9;59092;:21;59088:349;;;59164:12;59179:21;59191:9:::0;59179;:21:::3;:::i;:::-;59164:36;;59231:4;59215:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;59250:15:0;::::3;;::::0;;;:8:::3;:15;::::0;;;;;;;;:27:::3;::::0;::::3;:34:::0;;;59299:22:::3;;:34:::0;;;59353:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;59353:72:0;2909:18:1;59353:72:0::3;;;;;;;59115:322;59088:349;-1:-1:-1::0;;7562:1:0;8516:7;:22;-1:-1:-1;51513:356:0;;;-1:-1:-1;;;51513:356:0:o;24647:271::-;24716:14;;-1:-1:-1;;;;;24716:14:0;24702:10;:28;24694:94;;;;-1:-1:-1;;;24694:94:0;;7639:2:1;24694:94:0;;;7621:21:1;7678:2;7658:18;;;7651:30;7717:34;7697:18;;;7690:62;-1:-1:-1;;;7768:18:1;;;7761:51;7829:19;;24694:94:0;7437:417:1;24694:94:0;24817:5;;24824:14;;24804:35;;;-1:-1:-1;;;;;24817:5:0;;;8071:34:1;;24824:14:0;;;;8136:2:1;8121:18;;8114:43;24804:35:0;;8006:18:1;24804:35:0;;;;;;;24858:14;;;;24850:22;;-1:-1:-1;;;;;;24850:22:0;;;-1:-1:-1;;;;;24858:14:0;;24850:22;;;;24883:27;;;24647:271::o;46219:155::-;46276:7;46321:12;;46303:15;:30;:63;;-1:-1:-1;46354:12:0;;;47447:118::o;46303:63::-;-1:-1:-1;46336:15:0;;46219:155::o;57505:220::-;24956:12;:10;:12::i;:::-;57651:5:::1;::::0;57597:69:::1;::::0;-1:-1:-1;;;57597:69:0;;57644:4:::1;57597:69;::::0;::::1;8408:34:1::0;-1:-1:-1;;;;;57651:5:0;;::::1;8458:18:1::0;;;8451:43;8510:18;;;8503:34;;;57597:38:0;;::::1;::::0;::::1;::::0;8343:18:1;;57597:69:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;57682:35:0::1;::::0;;-1:-1:-1;;;;;8740:32:1;;8722:51;;8804:2;8789:18;;8782:34;;;57682:35:0::1;::::0;-1:-1:-1;8695:18:1;;-1:-1:-1;57682:35:0::1;;;;;;;57505:220:::0;;:::o;56985:442::-;24956:12;:10;:12::i;:::-;-1:-1:-1;;;;;57084:35:0;::::1;;::::0;;;:21:::1;:35;::::0;;;;;::::1;;:44;;::::0;;57080:73:::1;;57137:16;;-1:-1:-1::0;;;57137:16:0::1;;;;;;;;;;;57080:73;57189:45;::::0;-1:-1:-1;;;57189:45:0;;57228:4:::1;57189:45;::::0;::::1;1998:51:1::0;57174:12:0::1;::::0;-1:-1:-1;;;;;57189:30:0;::::1;::::0;::::1;::::0;1971:18:1;;57189:45:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57174:60;;57259:11;57249:7;:21;57245:55;;;57279:21;;-1:-1:-1::0;;;57279:21:0::1;;;;;;;;;;;57245:55;57348:5;::::0;57314:53:::1;::::0;-1:-1:-1;;;;;57314:33:0;;::::1;::::0;57348:5:::1;57355:11:::0;57314:33:::1;:53::i;:::-;57383:36;::::0;;-1:-1:-1;;;;;8740:32:1;;8722:51;;8804:2;8789:18;;8782:34;;;57383:36:0::1;::::0;8695:18:1;57383:36:0::1;8548:274:1::0;52133:167:0;52249:7;52276:16;;-1:-1:-1;;;52276:16:0;;;;;;;;;;;44658:95;44705:13;44738:7;44731:14;;;;;:::i;50069:336::-;50127:7;50147:16;50165;50183;50261:10;;;;;;;;;-1:-1:-1;;;;;50261:10:0;-1:-1:-1;;;;;50246:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50372:10;;50357:40;;;-1:-1:-1;;;50357:40:0;;;;50212:74;;-1:-1:-1;50212:74:0;;-1:-1:-1;50212:74:0;;-1:-1:-1;;;;;;50372:10:0;;50357:38;;:40;;;;;;;;;;;;;;;50372:10;50357:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;50304:15:0;;;;;;:8;:15;;;;;:22;;;:33;;-1:-1:-1;;;;;50304:33:0;;;;:::i;:::-;:93;;;;:::i;:::-;50297:100;50069:336;-1:-1:-1;;;;;50069:336:0:o;50515:382::-;50622:7;;50664:29;;-1:-1:-1;;;50664:29:0;;-1:-1:-1;;;;;2016:32:1;;;50664:29:0;;;1998:51:1;50574:7:0;;50622;;50574;;50622;;50664:22;;1971:18:1;;50664:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50641:52;;50777:12;50793:1;50777:17;50773:44;;-1:-1:-1;50816:1:0;;50515:382;-1:-1:-1;;;50515:382:0:o;50773:44::-;50835:24;;-1:-1:-1;;;50835:24:0;;-1:-1:-1;;;;;2016:32:1;;;50835:24:0;;;1998:51:1;50874:12:0;;38808:4;;50835:17;;;;;1971:18:1;;50835:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:36;;;;:::i;:::-;:51;;;;:::i;:::-;50828:58;50515:382;-1:-1:-1;;;;50515:382:0:o;38893:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52770:351::-;52993:14;7606:1;8204:7;;:19;8196:63;;;;-1:-1:-1;;;8196:63:0;;;;;;;:::i;:::-;7606:1;8337:7;:18;52933:5;57967:16:::1;:14;:16::i;:::-;57944:20;:39:::0;58011:26:::1;:24;:26::i;:::-;57994:14;:43:::0;-1:-1:-1;;;;;58052:19:0;::::1;::::0;58048:163:::1;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1::0;;;;;58088:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;:39;;;58179:20:::1;::::0;58142:34:::1;::::0;;::::1;:57:::0;58048:163:::1;52965:5:::2;53029:6:::3;53020:15;;53046:42;53056:6;53064;53072:8;53082:5;53046:9;:42::i;:::-;-1:-1:-1::0;;;;;58506:15:0;::::2;58486:17;58506:15:::0;;;:8:::2;:15;::::0;;;;:22:::2;;::::0;;58606:20:::2;58515:5:::0;58606:13:::2;:20::i;:::-;58583:19;58596:5;58583:12;:19::i;:::-;:43;58579:144;;38808:4;58679:20;58693:5;58679:13;:20::i;:::-;-1:-1:-1::0;;;;;58654:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;:22:::2;;::::0;:45:::2;::::0;;::::2;:::i;:::-;:57;;;;:::i;:::-;58642:69;;58579:144;58749:9;58737;:21;58733:704;;;58809:12;58824:21;58836:9:::0;58824;:21:::2;:::i;:::-;58809:36;;58876:4;58860:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;58895:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;;;;;:27:::2;::::0;::::2;:34:::0;;;58944:22:::2;;:34:::0;;;58998:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;58998:72:0;2909:18:1;58998:72:0::2;;;;;;;58760:322;58733:704;;;59104:9;59092;:21;59088:349;;;59164:12;59179:21;59191:9:::0;59179;:21:::2;:::i;:::-;59164:36;;59231:4;59215:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;59250:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;;;;;:27:::2;::::0;::::2;:34:::0;;;59299:22:::2;;:34:::0;;;59353:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;59353:72:0;2909:18:1;59353:72:0::2;;;;;;;59115:322;59088:349;-1:-1:-1::0;;7562:1:0;8516:7;:22;-1:-1:-1;52770:351:0;;;-1:-1:-1;;;;52770:351:0:o;49631:263::-;24956:12;:10;:12::i;:::-;49738::::1;;49719:15;:31;49715:71;;49772:14;;-1:-1:-1::0;;;49772:14:0::1;;;;;;;;;;;49715:71;49797:15;:34:::0;;;49847:39:::1;::::0;529:25:1;;;49847:39:0::1;::::0;517:2:1;502:18;49847:39:0::1;383:177:1::0;46546:371:0;46617:12;;46593:7;;46617:17;;46613:77;;-1:-1:-1;46658:20:0;;;46546:371::o;46613:77::-;46882:5;:12;;;38808:4;46822:10;;46787:14;;46758:26;:24;:26::i;:::-;:43;;;;:::i;:::-;46757:75;;;;:::i;:::-;:104;;;;:::i;:::-;:137;;;;:::i;:::-;46720:20;;:189;;;;:::i;41198:192::-;41300:6;;41266:17;;41300:6;;41296:47;;;-1:-1:-1;41330:1:0;;41198:192;-1:-1:-1;41198:192:0:o;41296:47::-;-1:-1:-1;;;;;;41360:15:0;;;;;:8;:15;;;;;:22;;;;41198:192::o;38867:19::-;;;;;;;:::i;56677:206::-;24956:12;:10;:12::i;:::-;-1:-1:-1;;;;;56777:35:0;::::1;;::::0;;;:21:::1;:35;::::0;;;;;;;;:42;;-1:-1:-1;;56777:42:0::1;::::0;::::1;;::::0;;::::1;::::0;;;56835:40;;1800:41:1;;;56835:40:0::1;::::0;1773:18:1;56835:40:0::1;;;;;;;56677:206:::0;;:::o;50990:133::-;51085:7;;51076:39;;-1:-1:-1;;;51076:39:0;;-1:-1:-1;;;;;2016:32:1;;;51076:39:0;;;1998:51:1;51049:7:0;;51085;;51076:32;;1971:18:1;;51076:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;53724:365::-;53873:14;7606:1;8204:7;;:19;8196:63;;;;-1:-1:-1;;;8196:63:0;;;;;;;:::i;:::-;7606:1;8337:7;:18;53802:10:::1;57967:16;:14;:16::i;:::-;57944:20;:39:::0;58011:26:::1;:24;:26::i;:::-;57994:14;:43:::0;-1:-1:-1;;;;;58052:19:0;::::1;::::0;58048:163:::1;;58114:13;58121:5;58114:6;:13::i;:::-;-1:-1:-1::0;;;;;58088:15:0;::::1;;::::0;;;:8:::1;:15;::::0;;;;:39;;;58179:20:::1;::::0;58142:34:::1;::::0;;::::1;:57:::0;58048:163:::1;53839:10:::2;53910:20:::3;::::0;;;:8:::3;:20;::::0;;;;:27:::3;::::0;::::3;::::0;53969:32:::3;::::0;::::3;::::0;53939:27:::3;::::0;;::::3;::::0;53900:126:::3;::::0;53939:62:::3;::::0;::::3;:::i;:::-;54003:10;54015;53900:9;:126::i;:::-;54046:11;:9;:11::i;:::-;54037:20;;-1:-1:-1::0;;;;;58506:15:0;::::2;58486:17;58506:15:::0;;;:8:::2;:15;::::0;;;;:22:::2;;::::0;;58606:20:::2;58515:5:::0;58606:13:::2;:20::i;:::-;58583:19;58596:5;58583:12;:19::i;:::-;:43;58579:144;;38808:4;58679:20;58693:5;58679:13;:20::i;:::-;-1:-1:-1::0;;;;;58654:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;:22:::2;;::::0;:45:::2;::::0;;::::2;:::i;:::-;:57;;;;:::i;:::-;58642:69;;58579:144;58749:9;58737;:21;58733:704;;;58809:12;58824:21;58836:9:::0;58824;:21:::2;:::i;:::-;58809:36;;58876:4;58860:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;58895:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;;;;;:27:::2;::::0;::::2;:34:::0;;;58944:22:::2;;:34:::0;;;58998:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;58998:72:0;2909:18:1;58998:72:0::2;;;;;;;58760:322;58733:704;;;59104:9;59092;:21;59088:349;;;59164:12;59179:21;59191:9:::0;59179;:21:::2;:::i;:::-;59164:36;;59231:4;59215:5;:12;;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;59250:15:0;::::2;;::::0;;;:8:::2;:15;::::0;;;;;;;;:27:::2;::::0;::::2;:34:::0;;;59299:22:::2;;:34:::0;;;59353:72;;2936:25:1;;;2977:18;;;2970:34;;;-1:-1:-1;;;;;;;;;;;59353:72:0;2909:18:1;59353:72:0::2;;;;;;;59115:322;59088:349;-1:-1:-1::0;;7562:1:0;8516:7;:22;-1:-1:-1;53724:365:0;;;-1:-1:-1;53724:365:0:o;24996:133::-;25064:5;;-1:-1:-1;;;;;25064:5:0;25050:10;:19;25042:79;;;;-1:-1:-1;;;25042:79:0;;9677:2:1;25042:79:0;;;9659:21:1;9716:2;9696:18;;;9689:30;9755:34;9735:18;;;9728:62;-1:-1:-1;;;9806:18:1;;;9799:45;9861:19;;25042:79:0;9475:411:1;25042:79:0;24996:133::o;20781:211::-;20925:58;;-1:-1:-1;;;;;8740:32:1;;20925:58:0;;;8722:51:1;8789:18;;;8782:34;;;20898:86:0;;20918:5;;-1:-1:-1;;;20948:23:0;8695:18:1;;20925:58:0;;;;-1:-1:-1;;20925:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;20925:58:0;-1:-1:-1;;;;;;20925:58:0;;;;;;;;;;20898:19;:86::i;:::-;20781:211;;;:::o;55671:535::-;55762:11;;;:37;;-1:-1:-1;;;;;;55777:22:0;;55789:10;55777:22;;55762:37;55759:76;;;55821:14;;-1:-1:-1;;;55821:14:0;;;;;;;;;;;55759:76;55891:6;55868:5;:19;;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;55908:18:0;;;;;;:8;:18;;;;;:25;;:35;;55937:6;;55908:18;:35;;55937:6;;55908:35;:::i;:::-;;;;-1:-1:-1;;55981:12:0;:22;;55997:6;;55981:12;;;:22;;55997:6;;55981:22;:::i;:::-;;;;-1:-1:-1;;;;;;;56014:18:0;;;;;;:8;:18;;;;;:25;;:35;;56043:6;;56014:18;:35;;56043:6;;56014:35;:::i;:::-;;;;-1:-1:-1;;56069:10:0;;56062:70;;-1:-1:-1;;;;;56069:10:0;56098;56118:4;56125:6;56062:35;:70::i;:::-;56148:50;;;2936:25:1;;;2992:2;2977:18;;2970:34;;;56176:4:0;;56156:10;;56148:50;;2909:18:1;56148:50:0;;;;;;;55671:535;;;:::o;54567:744::-;54674:11;;;:34;;-1:-1:-1;;;;;;54689:19:0;;54698:10;54689:19;;54674:34;:83;;;-1:-1:-1;;;;;;54726:15:0;;;;;;:8;:15;;;;;:22;;;:31;-1:-1:-1;54674:83:0;:163;;;-1:-1:-1;;;;;;54800:15:0;;;;;;:8;:15;;;;;:27;;;;54775:22;;;;;54831:6;;54775:52;;;:::i;:::-;54774:63;54674:163;54671:202;;;54859:14;;-1:-1:-1;;;54859:14:0;;;;;;;;;;;54671:202;54951:6;54928:5;:19;;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;54968:15:0;;;;;;:8;:15;;;;;:22;;:32;;54994:6;;54968:15;:32;;54994:6;;54968:32;:::i;:::-;;;;-1:-1:-1;;55047:12:0;:22;;55063:6;;55047:12;;;:22;;55063:6;;55047:22;:::i;:::-;;;;-1:-1:-1;;;;;;;55080:15:0;;;;;;:8;:15;;;;;:22;;:32;;55106:6;;55080:15;:32;;55106:6;;55080:32;:::i;:::-;;;;-1:-1:-1;;55132:10:0;;55125:49;;-1:-1:-1;;;;;55132:10:0;55157:8;55167:6;55125:31;:49::i;:::-;55250:53;;;2936:25:1;;;2992:2;2977:18;;2970:34;;;-1:-1:-1;;;;;55250:53:0;;;;;;;;55259:10;;55250:53;;2909:18:1;55250:53:0;;;;;;;54567:744;;;;:::o;23354:716::-;23778:23;23804:69;23832:4;23804:69;;;;;;;;;;;;;;;;;23812:5;-1:-1:-1;;;;;23804:27:0;;;:69;;;;;:::i;:::-;23888:17;;23778:95;;-1:-1:-1;23888:21:0;23884:179;;23985:10;23974:30;;;;;;;;;;;;:::i;:::-;23966:85;;;;-1:-1:-1;;;23966:85:0;;10343:2:1;23966:85:0;;;10325:21:1;10382:2;10362:18;;;10355:30;10421:34;10401:18;;;10394:62;-1:-1:-1;;;10472:18:1;;;10465:40;10522:19;;23966:85:0;10141:406:1;21000:248:0;21171:68;;-1:-1:-1;;;;;8426:15:1;;;21171:68:0;;;8408:34:1;8478:15;;8458:18;;;8451:43;8510:18;;;8503:34;;;21144:96:0;;21164:5;;-1:-1:-1;;;21194:27:0;8343:18:1;;21171:68:0;8168:375:1;21144:96:0;21000:248;;;;:::o;12531:229::-;12668:12;12700:52;12722:6;12730:4;12736:1;12739:12;12700:21;:52::i;:::-;12693:59;;12531:229;;;;;;:::o;13651:510::-;13821:12;13879:5;13854:21;:30;;13846:81;;;;-1:-1:-1;;;13846:81:0;;10754:2:1;13846:81:0;;;10736:21:1;10793:2;10773:18;;;10766:30;10832:34;10812:18;;;10805:62;-1:-1:-1;;;10883:18:1;;;10876:36;10929:19;;13846:81:0;10552:402:1;13846:81:0;-1:-1:-1;;;;;10081:19:0;;;13938:60;;;;-1:-1:-1;;;13938:60:0;;11161:2:1;13938:60:0;;;11143:21:1;11200:2;11180:18;;;11173:30;11239:31;11219:18;;;11212:59;11288:18;;13938:60:0;10959:353:1;13938:60:0;14012:12;14026:23;14053:6;-1:-1:-1;;;;;14053:11:0;14072:5;14079:4;14053:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14011:73;;;;14102:51;14119:7;14128:10;14140:12;14102:16;:51::i;:::-;14095:58;13651:510;-1:-1:-1;;;;;;;13651:510:0:o;16337:712::-;16487:12;16516:7;16512:530;;;-1:-1:-1;16547:10:0;16540:17;;16512:530;16661:17;;:21;16657:374;;16859:10;16853:17;16920:15;16907:10;16903:2;16899:19;16892:44;16657:374;17002:12;16995:20;;-1:-1:-1;;;16995:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:258::-;637:1;647:113;661:6;658:1;655:13;647:113;;;737:11;;;731:18;718:11;;;711:39;683:2;676:10;647:113;;;778:6;775:1;772:13;769:48;;;-1:-1:-1;;813:1:1;795:16;;788:27;565:258::o;828:383::-;977:2;966:9;959:21;940:4;1009:6;1003:13;1052:6;1047:2;1036:9;1032:18;1025:34;1068:66;1127:6;1122:2;1111:9;1107:18;1102:2;1094:6;1090:15;1068:66;:::i;:::-;1195:2;1174:15;-1:-1:-1;;1170:29:1;1155:45;;;;1202:2;1151:54;;828:383;-1:-1:-1;;828:383:1:o;1216:180::-;1275:6;1328:2;1316:9;1307:7;1303:23;1299:32;1296:52;;;1344:1;1341;1334:12;1296:52;-1:-1:-1;1367:23:1;;1216:180;-1:-1:-1;1216:180:1:o;1401:254::-;1469:6;1477;1530:2;1518:9;1509:7;1505:23;1501:32;1498:52;;;1546:1;1543;1536:12;1498:52;1569:29;1588:9;1569:29;:::i;:::-;1559:39;1645:2;1630:18;;;;1617:32;;-1:-1:-1;;;1401:254:1:o;2060:118::-;2146:5;2139:13;2132:21;2125:5;2122:32;2112:60;;2168:1;2165;2158:12;2183:241;2239:6;2292:2;2280:9;2271:7;2267:23;2263:32;2260:52;;;2308:1;2305;2298:12;2260:52;2347:9;2334:23;2366:28;2388:5;2366:28;:::i;2429:328::-;2506:6;2514;2522;2575:2;2563:9;2554:7;2550:23;2546:32;2543:52;;;2591:1;2588;2581:12;2543:52;2614:29;2633:9;2614:29;:::i;:::-;2604:39;;2662:38;2696:2;2685:9;2681:18;2662:38;:::i;:::-;2652:48;;2747:2;2736:9;2732:18;2719:32;2709:42;;2429:328;;;;;:::o;3696:254::-;3764:6;3772;3825:2;3813:9;3804:7;3800:23;3796:32;3793:52;;;3841:1;3838;3831:12;3793:52;3877:9;3864:23;3854:33;;3906:38;3940:2;3929:9;3925:18;3906:38;:::i;:::-;3896:48;;3696:254;;;;;:::o;3955:328::-;4032:6;4040;4048;4101:2;4089:9;4080:7;4076:23;4072:32;4069:52;;;4117:1;4114;4107:12;4069:52;4153:9;4140:23;4130:33;;4182:38;4216:2;4205:9;4201:18;4182:38;:::i;:::-;4172:48;;4239:38;4273:2;4262:9;4258:18;4239:38;:::i;:::-;4229:48;;3955:328;;;;;:::o;4288:315::-;4353:6;4361;4414:2;4402:9;4393:7;4389:23;4385:32;4382:52;;;4430:1;4427;4420:12;4382:52;4453:29;4472:9;4453:29;:::i;:::-;4443:39;;4532:2;4521:9;4517:18;4504:32;4545:28;4567:5;4545:28;:::i;:::-;4592:5;4582:15;;;4288:315;;;;;:::o;4608:260::-;4676:6;4684;4737:2;4725:9;4716:7;4712:23;4708:32;4705:52;;;4753:1;4750;4743:12;4705:52;4776:29;4795:9;4776:29;:::i;:::-;4766:39;;4824:38;4858:2;4847:9;4843:18;4824:38;:::i;4873:127::-;4934:10;4929:3;4925:20;4922:1;4915:31;4965:4;4962:1;4955:15;4989:4;4986:1;4979:15;5005:125;5045:4;5073:1;5070;5067:8;5064:34;;;5078:18;;:::i;:::-;-1:-1:-1;5115:9:1;;5005:125::o;5135:168::-;5175:7;5241:1;5237;5233:6;5229:14;5226:1;5223:21;5218:1;5211:9;5204:17;5200:45;5197:71;;;5248:18;;:::i;:::-;-1:-1:-1;5288:9:1;;5135:168::o;5308:217::-;5348:1;5374;5364:132;;5418:10;5413:3;5409:20;5406:1;5399:31;5453:4;5450:1;5443:15;5481:4;5478:1;5471:15;5364:132;-1:-1:-1;5510:9:1;;5308:217::o;5530:128::-;5570:3;5601:1;5597:6;5594:1;5591:13;5588:39;;;5607:18;;:::i;:::-;-1:-1:-1;5643:9:1;;5530:128::o;5663:380::-;5742:1;5738:12;;;;5785;;;5806:61;;5860:4;5852:6;5848:17;5838:27;;5806:61;5913:2;5905:6;5902:14;5882:18;5879:38;5876:161;;5959:10;5954:3;5950:20;5947:1;5940:31;5994:4;5991:1;5984:15;6022:4;6019:1;6012:15;5876:161;;5663:380;;;:::o;6459:184::-;6529:6;6582:2;6570:9;6561:7;6557:23;6553:32;6550:52;;;6598:1;6595;6588:12;6550:52;-1:-1:-1;6621:16:1;;6459:184;-1:-1:-1;6459:184:1:o;6648:355::-;6850:2;6832:21;;;6889:2;6869:18;;;6862:30;6928:33;6923:2;6908:18;;6901:61;6994:2;6979:18;;6648:355::o;8827:188::-;8906:13;;-1:-1:-1;;;;;8948:42:1;;8938:53;;8928:81;;9005:1;9002;8995:12;9020:450;9107:6;9115;9123;9176:2;9164:9;9155:7;9151:23;9147:32;9144:52;;;9192:1;9189;9182:12;9144:52;9215:40;9245:9;9215:40;:::i;:::-;9205:50;;9274:49;9319:2;9308:9;9304:18;9274:49;:::i;:::-;9264:59;;9366:2;9355:9;9351:18;9345:25;9410:10;9403:5;9399:22;9392:5;9389:33;9379:61;;9436:1;9433;9426:12;9379:61;9459:5;9449:15;;;9020:450;;;;;:::o;9891:245::-;9958:6;10011:2;9999:9;9990:7;9986:23;9982:32;9979:52;;;10027:1;10024;10017:12;9979:52;10059:9;10053:16;10078:28;10100:5;10078:28;:::i;11317:274::-;11446:3;11484:6;11478:13;11500:53;11546:6;11541:3;11534:4;11526:6;11522:17;11500:53;:::i;:::-;11569:16;;;;;11317:274;-1:-1:-1;;11317:274:1:o

Swarm Source

ipfs://9f5169e133d8fc7c631448267ae8e4c63d8a2b8c4a6c4447d03a7b1200f7ae20
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.