Contract 0x2f3feD818bE1F3501cb55C947F1fEa24E05e3377

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x83cfd097657d1a23f8e775aef1f21338b3b17dec6625c6a482a2b831e332744eHarvest485499422022-10-06 11:56:496 hrs 13 mins ago0x68d1cfd127c9cf0de5375fdfb92713e0de72ee05 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0004027464
0x6b1dfe0b73a243b0f821cba1eff24d49df08618646ac6bcc8deadd1e910e1535Harvest485093582022-10-05 23:29:0618 hrs 40 mins ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039197595
0x70d27309bd8e9b99f9401ac104ea5ac8570148ebb266632a549d05a5bfe4dea6Harvest484706842022-10-05 11:39:001 day 6 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039197595
0x30791d21872697467f8415ef7b180be27a3e3c6ce7fea6986645d200fa1bfeb7Harvest484334222022-10-05 0:05:481 day 18 hrs ago0x68d1cfd127c9cf0de5375fdfb92713e0de72ee05 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00041809021
0x467fa7acd1e2b0936689b6f5c241177fe8bbdb0dae72ba48faea0b5e2b7fc00eHarvest483924962022-10-04 11:23:082 days 6 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039197595
0x1ab78eb620fb4194667b7e7b7561b11d54a9851c934b4818b3ba390fa823ece8Harvest483554272022-10-03 23:49:082 days 18 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0003958569
0xf4311795f02e244f0816a3f5a3513af37b37262e443914be95abd44d06dfb6c5Harvest483176032022-10-03 12:01:033 days 6 hrs ago0xa3c6c62cba6a4fd7b16062e7426c9a78a5790c7d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00038740469
0x0897b240c126b23b49712d54f84cf2cf184840f0f5ee3678241984a70499d41bHarvest482782252022-10-02 23:51:293 days 18 hrs ago0x815e3af4e537658d40881516a276cb606ee975d8 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00041810002
0xb03023b549bfdfa4c97c37857b241b101f66b083cd9401706b7f8ebf5e48b2feHarvest482374362022-10-02 10:57:254 days 7 hrs ago0xa3c6c62cba6a4fd7b16062e7426c9a78a5790c7d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00041426424
0x284b63da0272352ba84ed01f72b2002aa8e726233c41d8b08fe9cc2efee9bb0aHarvest481974152022-10-01 22:11:244 days 19 hrs ago0x815e3af4e537658d40881516a276cb606ee975d8 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039507607
0x799c3959a89c63bd12c157caae885f62cb02f50f838955db62d13f515e2d61edHarvest481581832022-10-01 10:01:225 days 8 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.000388800556
0x12c1705af4db81a2c8a181094761cdeeaecf608f18142a57efe02e9552cb3b2fHarvest481203302022-09-30 22:29:125 days 19 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0004191426
0x864eba214a87b607b21ae3325c288d636a941e6aff6e44e0ff93873036a7e6cdHarvest480820292022-09-30 10:05:426 days 8 hrs ago0x724c28471608c946345165e9eb7b80e8736ad9af IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00038740469
0x80bb04a9db1bf49309e686dff1a28c659243586052f98fbec5273d22a0b6c499Harvest480429322022-09-29 22:16:346 days 19 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039974712
0xc54b39af362e7000d514a13aa165803d9e673cff534de4c555d5d8fb02bd5b51Harvest480066282022-09-29 10:18:447 days 7 hrs ago0x68d1cfd127c9cf0de5375fdfb92713e0de72ee05 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.000439005021
0x93872a54ac272a85afab2f5aa912bbc6fa4e1caebdb3fded5f3d2d72b9fe2b59Harvest479652742022-09-28 21:19:427 days 20 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0003958569
0x783101eb5c1ce4c59a80af0a713f63764d35bec72f6fc15159a1b3d958d5b277Harvest479305162022-09-28 9:52:018 days 8 hrs ago0x797b7418dd299d2356d01d251b6805588f519a4d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00038917216
0x92df89c5639504a038129da9aa9b27cc2adba4be24cdc0e8033336066fda9dddHarvest478928722022-09-27 21:56:038 days 20 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0004036188
0xada28856f0bab4d23999eed6b41fb178d83022783295e3e33740901d949d1faeHarvest478574822022-09-27 10:11:319 days 7 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.000405801542
0x816b2a7cb7bcc7bd936428ad2305abe52e3ae7b60a31fa90985c19cce7c87a4dHarvest478210302022-09-26 22:36:579 days 19 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00040362816
0x433790377bbdf7e896f20202eb4e70158a13b2bd786d60a4d238a80c87bcc37dHarvest477855232022-09-26 11:03:3610 days 7 hrs ago0x724c28471608c946345165e9eb7b80e8736ad9af IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00040274745
0xf07a87e630148c753a50ff4e477e51e35fb4f4c19baf147351177f9d0d3963fcHarvest477473632022-09-25 23:13:3410 days 18 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.0004036188
0xcf0869f1dd9f4e3b0468c656388909f9adcb1ed0c0e4fd01ae5109d50d6be362Harvest477106282022-09-25 11:51:3211 days 6 hrs ago0x797b7418dd299d2356d01d251b6805588f519a4d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039124038
0x9aa0ec90acf6e84a282a14332439d242bcfb134dde21548a3eca97b07696affeHarvest476740652022-09-25 0:25:3611 days 17 hrs ago0xa3c6c62cba6a4fd7b16062e7426c9a78a5790c7d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00039507607
0x2042e3539ab99067c650f19767f3d764d55796f97b88c31575469537957d68e3Harvest476368602022-09-24 12:58:2312 days 5 hrs ago0x797b7418dd299d2356d01d251b6805588f519a4d IN  0x2f3fed818be1f3501cb55c947f1fea24e05e33770 FTM0.00041041883
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x54ef07c66cb4d5bd276d4fdc2d1e1fd2aa579fd65bc7b2ec6e4e0ac8994d3ca5365438472022-04-20 15:22:50169 days 2 hrs ago 0x4b6b6a3af8c882b53c2cc99f016c89b231ce441d  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DanteMatrixLpAutoCompound

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

File 2 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

File 3 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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

File 4 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @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 5 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// 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 6 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 7 of 16 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 16 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 9 of 16 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 10 of 16 : IMasterChef.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

interface IMasterChef {
    function pendingShare(uint256 _pid, address _user)
        external
        view
        returns (uint256);

    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

    function userInfo(uint256 _pid, address _user)
        external
        view
        returns (uint256, uint256);

    function emergencyWithdraw(uint256 _pid) external;
}

File 11 of 16 : IMatrixStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IMatrixStrategy {
    function vault() external view returns (address);

    function want() external view returns (IERC20);

    function beforeDeposit() external;

    function deposit() external;

    function withdraw(uint256) external;

    function balanceOf() external view returns (uint256);

    function harvest() external;

    function retireStrat() external;

    function panic() external;

    function pause() external;

    function unpause() external;

    function paused() external view returns (bool);
}

File 12 of 16 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

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;
}

File 13 of 16 : MatrixLpAutoCompound.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./MatrixStrategyBase.sol";
import "./MatrixSwapHelper.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "../interfaces/IUniswapV2Pair.sol";
import "../interfaces/IMasterChef.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

/// @title Base Lp+MasterChef AutoCompound Strategy Framework,
/// all LP strategies will inherit this contract
contract MatrixLpAutoCompound is MatrixStrategyBase, MatrixSwapHelper {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    uint256 public immutable poolId;
    address public immutable masterchef;
    address public immutable output;
    address public immutable lpToken0;
    address public immutable lpToken1;
    address public constant USDC = 0x04068DA6C83AFCFA0e13ba15A6696662335D5B75;

    constructor(
        address _want,
        uint256 _poolId,
        address _masterchef,
        address _output,
        address _uniRouter,
        address _vault,
        address _treasury
    )
        MatrixStrategyBase(_want, _vault, _treasury)
        MatrixSwapHelper(_uniRouter)
    {
        masterchef = _masterchef;
        output = _output;
        lpToken0 = IUniswapV2Pair(want).token0();
        lpToken1 = IUniswapV2Pair(want).token1();
        poolId = _poolId;

        _setWhitelistedAddresses();
        _setDefaultSwapPaths();
        _giveAllowances();
    }

    /// @notice Allows strategy governor to setup custom path and dexes for token swaps
    function setSwapPath(
        address _fromToken,
        address _toToken,
        address _unirouter,
        address[] memory _path
    ) external onlyOwner {
        _setSwapPath(_fromToken, _toToken, _unirouter, _path);
    }

    /// @notice Override this to enable other routers or token swap paths
    function _setWhitelistedAddresses() internal virtual {
        whitelistedAddresses.add(unirouter);
        whitelistedAddresses.add(USDC);
        whitelistedAddresses.add(want);
        whitelistedAddresses.add(output);
        whitelistedAddresses.add(wrapped);
        whitelistedAddresses.add(lpToken0);
        whitelistedAddresses.add(lpToken1);
    }

    function _setDefaultSwapPaths() internal virtual {
        // Default output to lp0 paths
        if (lpToken0 == wrapped) {
            address[] memory _path = new address[](2);
            _path[0] = output;
            _path[1] = wrapped;
            _setSwapPath(output, lpToken0, address(0), _path);
        } else if (lpToken0 != output) {
            address[] memory _path = new address[](3);
            _path[0] = output;
            _path[1] = wrapped;
            _path[2] = lpToken0;
            _setSwapPath(output, lpToken0, address(0), _path);
        }

        // Default output to lp1 paths
        if (lpToken1 == wrapped) {
            address[] memory _path = new address[](2);
            _path[0] = output;
            _path[1] = wrapped;
            _setSwapPath(output, lpToken1, address(0), _path);
        } else if (lpToken1 != output) {
            address[] memory _path = new address[](3);
            _path[0] = output;
            _path[1] = wrapped;
            _path[2] = lpToken1;
            _setSwapPath(output, lpToken1, address(0), _path);
        }

        if (output != wrapped) {
            address[] memory _path = new address[](2);
            _path[0] = output;
            _path[1] = wrapped;
            _setSwapPath(output, wrapped, address(0), _path);
        }
    }

    function _giveAllowances() internal override {
        IERC20(want).safeApprove(masterchef, type(uint256).max);
        IERC20(output).safeApprove(unirouter, type(uint256).max);

        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, type(uint256).max);

        IERC20(lpToken1).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, type(uint256).max);
    }

    function _removeAllowances() internal override {
        IERC20(want).safeApprove(masterchef, 0);
        IERC20(output).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, 0);
    }

    /// @dev total value managed by strategy is want + want staked in MasterChef
    function totalValue() public view override returns (uint256) {
        (uint256 _totalStaked, ) = IMasterChef(masterchef).userInfo(
            poolId,
            address(this)
        );
        return IERC20(want).balanceOf(address(this)) + _totalStaked;
    }

    function _deposit() internal override {
        uint256 _wantBalance = IERC20(want).balanceOf(address(this));
        IMasterChef(masterchef).deposit(poolId, _wantBalance);
    }

    function _beforeWithdraw(uint256 _amout) internal override {
        IMasterChef(masterchef).withdraw(poolId, _amout);
    }

    function _harvest()
        internal
        override
        returns (uint256 _wantHarvested, uint256 _wrappedFeesAccrued)
    {
        IMasterChef(masterchef).deposit(poolId, 0);
        uint256 _outputBalance = IERC20(output).balanceOf(address(this));
        if (_outputBalance > 0) {
            if (output != wrapped) {
                _wrappedFeesAccrued = _swap(
                    output,
                    wrapped,
                    (_outputBalance * totalFee) / PERCENT_DIVISOR
                );
                _outputBalance = IERC20(output).balanceOf(address(this));
            } else {
                _wrappedFeesAccrued =
                    (_outputBalance * totalFee) /
                    PERCENT_DIVISOR;
                _outputBalance -= _wrappedFeesAccrued;
            }
            _wantHarvested = _addLiquidity(_outputBalance);

            if (lpToken0 == wrapped || lpToken1 == wrapped) {
                // Anything left here in wrapped after adding liquidity
                // Are fees accrued
                _wrappedFeesAccrued = IERC20(wrapped).balanceOf(address(this));
            }
            
        }
    }

    function _addLiquidity(uint256 _outputAmount)
        internal
        virtual
        returns (uint256 _wantHarvested)
    {
        uint256 _wantBalanceBefore = IERC20(want).balanceOf(address(this));

        if (output == lpToken0) {
            _swap(output, lpToken1, _outputAmount / 2);
        } else if (output == lpToken1) {
            _swap(output, lpToken0, _outputAmount / 2);
        } else {
            _swap(output, lpToken0, _outputAmount / 2);
            _swap(output, lpToken1, IERC20(output).balanceOf(address(this)));
        }

        uint256 _lp0Balance = IERC20(lpToken0).balanceOf(address(this));
        uint256 _lp1Balance = IERC20(lpToken1).balanceOf(address(this));
        IUniswapV2Router02(unirouter).addLiquidity(
            lpToken0,
            lpToken1,
            _lp0Balance,
            _lp1Balance,
            1,
            1,
            address(this),
            block.timestamp
        );
        return IERC20(want).balanceOf(address(this)) - _wantBalanceBefore;
    }

    function _beforePanic() internal override {
        IMasterChef(masterchef).emergencyWithdraw(poolId);
    }

    /// @dev _beforeRetireStrat behaves exactly like _beforePanic hook
    function _beforeRetireStrat() internal override {
        _beforePanic();
    }
}

File 14 of 16 : MatrixStrategyBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "../interfaces/IMatrixStrategy.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";

/// @title Base Strategy Framework, all strategies will inherit this
abstract contract MatrixStrategyBase is Ownable, Pausable {
    using SafeERC20 for IERC20;

    // Matrix contracts
    address public immutable vault;
    address public treasury;
    address public partner;

    // Tokens used
    address public constant wrapped =
        address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);
    address public immutable want;

    uint256 public callFee = 1000;
    uint256 public partnerFee = 0;
    uint256 public treasuryFee = 9000;
    uint256 public securityFee = 10;
    uint256 public totalFee = 450;

    /***
     * {MAX_FEE} - Maximum fee allowed by the strategy. Hard-capped at 5%.
     * {PERCENT_DIVISOR} - Constant used to safely calculate the correct percentages.
     */

    uint256 public constant MAX_FEE = 500;
    uint256 public constant PERCENT_DIVISOR = 10000;

    /**
     * {Harvested} Event that is fired each time someone harvests the strat.
     * {TotalFeeUpdated} Event that is fired each time the total fee is updated.
     * {CallFeeUpdated} Event that is fired each time the call fee is updated.
     * {TreasuryUpdated} Event that is fired each time treasury address is updated.
     */
    event Harvested(
        address indexed harvester,
        uint256 _wantHarvested,
        uint256 _totalValueBefore,
        uint256 _totalValueAfter
    );
    event TotalFeeUpdated(uint256 newFee);
    event CallFeeUpdated(uint256 newCallFee, uint256 newTreasuryFee);
    event SecurityFeeUpdated(uint256 newSecurityFee);
    event PartnerFeeUpdated(uint256 newPartnerFee, uint256 newTreasuryFee);

    event TreasuryUpdated(
        address indexed _oldTreasury,
        address indexed _newTreasury
    );

    modifier onlyVault() {
        require(msg.sender == vault, "!vault");
        _;
    }

    constructor(
        address _want,
        address _vault,
        address _treasury
    ) {
        require(_vault != address(0), "vault-is-zero");
        require(_treasury != address(0), "treasury-is-zero");
        require(_want != address(0), "want-is-zero");

        vault = _vault;
        treasury = _treasury;
        want = _want;
    }

    /**
     * @dev updates the total fee, capped at 5%
     */
    function updateTotalFee(uint256 _totalFee)
        external
        onlyOwner
        returns (bool)
    {
        require(_totalFee <= MAX_FEE, "fee-too-high");
        totalFee = _totalFee;
        emit TotalFeeUpdated(totalFee);
        return true;
    }

    /**
     * @dev updates security fee, capped at 5%
     */
    function updateSecurityFee(uint256 _securityFee)
        external
        onlyOwner
        returns (bool)
    {
        require(_securityFee <= MAX_FEE, "fee-too-high");
        securityFee = _securityFee;
        emit SecurityFeeUpdated(securityFee);
        return true;
    }

    /**
     * @dev updates the call fee and adjusts the treasury fee to cover the difference
     */
    function updateCallFee(uint256 _callFee) external onlyOwner returns (bool) {
        callFee = _callFee;
        treasuryFee = PERCENT_DIVISOR - callFee - partnerFee;
        emit CallFeeUpdated(callFee, treasuryFee);
        return true;
    }

    /**
     * @dev updates the partner fee and adjusts the treasury fee to cover the difference
     */
    function updatePartnerFee(uint256 _partnerFee) external onlyOwner returns (bool) {
        require(partner != address(0), "partner-not-set");

        partnerFee = _partnerFee;
        treasuryFee = PERCENT_DIVISOR - partnerFee - callFee;
        emit PartnerFeeUpdated(partnerFee, treasuryFee);
        return true;
    }

    function updateTreasury(address _newTreasury)
        external
        onlyOwner
        returns (bool)
    {
        require(_newTreasury != address(0), "treasury-is-zero");
        treasury = _newTreasury;
        return true;
    }

    function updatePartner(address _newPartner)
        external
        onlyOwner
        returns (bool)
    {
        require(_newPartner != address(0), "partner-is-zero");
        partner = _newPartner;
        return true;
    }

    /**
     * @dev Puts funds in strategy at work
     * @notice Only vault can call this when not paused
     */
    function deposit() external virtual whenNotPaused onlyVault {
        _deposit();
    }

    function withdraw(uint256 _amount) external virtual onlyVault {
        uint256 _balanceHere = IERC20(want).balanceOf(address(this));

        if (_balanceHere < _amount) {
            _beforeWithdraw(_amount - _balanceHere);
            _balanceHere = IERC20(want).balanceOf(address(this));
        }

        if (_balanceHere > _amount) {
            _balanceHere = _amount;
        }
        uint256 _withdrawFee = (_balanceHere * securityFee) / PERCENT_DIVISOR;
        IERC20(want).safeTransfer(vault, _balanceHere - _withdrawFee);
    }

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

    function unpause() external virtual onlyOwner {
        _unpause();
        _giveAllowances();
        _deposit();
    }

    function beforeDeposit() external virtual onlyVault {}

    function retireStrat() external onlyVault {
        _beforeRetireStrat();
        uint256 _wantBalance = IERC20(want).balanceOf(address(this));
        IERC20(want).safeTransfer(vault, _wantBalance);
    }

    /// @notice pauses deposits and withdraws all funds from third party systems.
    function panic() external onlyOwner {
        _pause();
        _beforePanic();
    }

    /// @notice compounds earnings and charges performance fee
    function harvest() external whenNotPaused {
        require(!Address.isContract(msg.sender), "!contract");

        uint256 _totalValueBefore = totalValue();
        (uint256 _wantHarvested, uint256 _wrappedFeesAccrued) = _harvest();

        _chargeFees(_wrappedFeesAccrued);

        uint256 _totalValueAfter = totalValue();
        _deposit();

        emit Harvested(
            msg.sender,
            _wantHarvested,
            _totalValueBefore,
            _totalValueAfter
        );
    }

    /// @notice "want" Funds held in strategy + funds deployed elsewhere
    function totalValue() public virtual view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    /// @notice For vault interface retro-compatibility
    function balanceOf() public virtual view returns (uint256) {
        return totalValue();
    }
 
    function _chargeFees(uint256 _wrappedFeesAccrued) internal virtual {
        uint256 _callFeeToUser = (_wrappedFeesAccrued * callFee) /
            PERCENT_DIVISOR;

        uint256 _feeToPartner = (_wrappedFeesAccrued * partnerFee) /
            PERCENT_DIVISOR;

        IERC20(wrapped).safeTransfer(msg.sender, _callFeeToUser);
        IERC20(wrapped).safeTransfer(
            treasury,
            _wrappedFeesAccrued - _callFeeToUser - _feeToPartner
        );

        if(partner != address(0)) {
            IERC20(wrapped).safeTransfer(
                partner, 
                _feeToPartner
            );
        }
    }

    /// @notice Hooks to customize strategies behavior
    function _deposit() internal virtual {}

    function _beforeWithdraw(uint256 _amount) internal virtual {}

    function _harvest()
        internal
        virtual
        returns (uint256 _wantHarvested, uint256 _wrappedFeesAccrued)
    {}

    function _giveAllowances() internal virtual {}
    function _removeAllowances() internal virtual {}
    function _beforeRetireStrat() internal virtual {}
    function _beforePanic() internal virtual {}
}

File 15 of 16 : MatrixSwapHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../interfaces/IUniswapV2Pair.sol";

/// @title Swap Helper to perform swaps and setting routes in matrix strategies
contract MatrixSwapHelper {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    address public unirouter;

    /// @dev Enumerable set of external tokens and routers
    /// strategy can interact with
    EnumerableSet.AddressSet internal whitelistedAddresses;

    struct SwapPath {
        address unirouter;
        address[] path;
    }

    mapping(bytes32 => SwapPath) internal swapPaths;

    constructor(address _uniRouter) {
        unirouter = _uniRouter;
    }

    function getWhitelistedAddresses()
        public
        virtual
        returns (address[] memory)
    {
        return whitelistedAddresses.values();
    }

    function getSwapPath(address _fromToken, address _toToken)
        public
        view
        virtual
        returns (SwapPath memory _swapPath)
    {
        bytes32 _swapKey = keccak256(abi.encodePacked(_fromToken, _toToken));
        require(swapPaths[_swapKey].unirouter != address(0), "path-not-found");
        return swapPaths[_swapKey];
    }

    function _setSwapPath(
        address _fromToken,
        address _toToken,
        address _unirouter,
        address[] memory _path
    ) internal virtual {
        require(_path[0] == _fromToken, "invalid-path");
        require(_path[_path.length - 1] == _toToken, "invalid-path");
        _checkPath(_path);

        bytes32 _swapKey = keccak256(abi.encodePacked(_fromToken, _toToken));
        address _router = _unirouter == address(0) ? unirouter : _unirouter;

        _checkRouter(_router);

        swapPaths[_swapKey] = SwapPath(_router, _path);
    }

    /// @dev Checks that tokens in path are whitelisted
    /// @notice Override this to skip checks
    function _checkPath(address[] memory _path) internal virtual {
        for (uint256 i; i < _path.length; i++)
            require(
                whitelistedAddresses.contains(_path[i]),
                "token-not-whitelisted"
            );
    }

    /// @dev Checks that router for swap is whitelisted
    /// @notice Override this to skip checks
    function _checkRouter(address _router) internal virtual {
        require(
            whitelistedAddresses.contains(_router),
            "router-not-whitelisted"
        );
    }

    function _swap(
        address _fromToken,
        address _toToken,
        uint256 _amount
    ) internal returns (uint256 _toTokenAmount) {
        if (_fromToken == _toToken) return _amount;
        SwapPath memory _swapPath = getSwapPath(_fromToken, _toToken);

        IERC20(_fromToken).safeApprove(_swapPath.unirouter, 0);
        IERC20(_fromToken).safeApprove(_swapPath.unirouter, type(uint256).max);
        
        uint256 _toTokenBefore = IERC20(_toToken).balanceOf(address(this));
        IUniswapV2Router02(_swapPath.unirouter).swapExactTokensForTokens(
            _amount,
            0,
            _swapPath.path,
            address(this),
            block.timestamp
        );
        _toTokenAmount =
            IERC20(_toToken).balanceOf(address(this)) -
            _toTokenBefore;
    }
}

File 16 of 16 : DanteMatrixLpAutoCompound.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "../MatrixLpAutoCompound.sol";

/// @title MatrixLpAutoCompound adapted to dante routing
contract DanteMatrixLpAutoCompound is MatrixLpAutoCompound {
    using EnumerableSet for EnumerableSet.AddressSet;

    address internal constant SPOOKYSWAP_ROUTER = 0xF491e7B69E4244ad4002BC14e878a34207E38c29;

    address internal constant WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    address internal constant TOMB = 0x6c021Ae822BEa943b2E66552bDe1D2696a53fbB7;
    address internal constant GRAIL = 0x255861B569D44Df3E113b6cA090a1122046E6F89;
    address internal constant DANTE = 0xDA763530614fb51DFf9673232C8B3b3e0A67bcf2;


    constructor(
        address _want,
        uint256 _poolId,
        address _masterchef,
        address _output,
        address _uniRouter,
        address _vault,
        address _treasury
    )
        MatrixLpAutoCompound(
            _want,
            _poolId,
            _masterchef,
            _output,
            _uniRouter,
            _vault,
            _treasury
        )
    {
        partner = 0x698d286d660B298511E49dA24799d16C74b5640D;
        partnerFee = 1000;
        treasuryFee = 8000;
    }

    function _setWhitelistedAddresses() internal override {
        super._setWhitelistedAddresses();
        whitelistedAddresses.add(SPOOKYSWAP_ROUTER);
        whitelistedAddresses.add(GRAIL);
        whitelistedAddresses.add(TOMB);
        whitelistedAddresses.add(DANTE);
    }

    function _setDefaultSwapPaths() internal override {
        super._setDefaultSwapPaths();

        // GRAIL -> DANTE
        address[] memory _grailDante = new address[](4);
        _grailDante[0] = GRAIL;
        _grailDante[1] = WFTM;
        _grailDante[2] = TOMB;
        _grailDante[3] = DANTE;
        _setSwapPath(GRAIL, DANTE, SPOOKYSWAP_ROUTER, _grailDante);

        // GRAIL -> TOMB
        address[] memory _grailTomb = new address[](3);
        _grailTomb[0] = GRAIL;
        _grailTomb[1] = WFTM;
        _grailTomb[2] = TOMB;
        _setSwapPath(GRAIL, TOMB, SPOOKYSWAP_ROUTER, _grailTomb);
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_masterchef","type":"address"},{"internalType":"address","name":"_output","type":"address"},{"internalType":"address","name":"_uniRouter","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCallFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTreasuryFee","type":"uint256"}],"name":"CallFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"},{"indexed":false,"internalType":"uint256","name":"_wantHarvested","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalValueBefore","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalValueAfter","type":"uint256"}],"name":"Harvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPartnerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTreasuryFee","type":"uint256"}],"name":"PartnerFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newSecurityFee","type":"uint256"}],"name":"SecurityFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"TotalFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldTreasury","type":"address"},{"indexed":true,"internalType":"address","name":"_newTreasury","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"}],"name":"getSwapPath","outputs":[{"components":[{"internalType":"address","name":"unirouter","type":"address"},{"internalType":"address[]","name":"path","type":"address[]"}],"internalType":"struct MatrixSwapHelper.SwapPath","name":"_swapPath","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpToken0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"output","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"partner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"securityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"setSwapPath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"updateCallFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPartner","type":"address"}],"name":"updatePartner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_partnerFee","type":"uint256"}],"name":"updatePartnerFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_securityFee","type":"uint256"}],"name":"updateSecurityFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalFee","type":"uint256"}],"name":"updateTotalFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"updateTreasury","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapped","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101606040526103e86003556000600455612328600555600a6006556101c26007553480156200002e57600080fd5b5060405162005a6738038062005a678339810160408190526200005191620015d8565b8686868686868682878383620000673362000316565b6000805460ff60a01b191690556001600160a01b038216620000c05760405162461bcd60e51b815260206004820152600d60248201526c7661756c742d69732d7a65726f60981b60448201526064015b60405180910390fd5b6001600160a01b0381166200010b5760405162461bcd60e51b815260206004820152601060248201526f74726561737572792d69732d7a65726f60801b6044820152606401620000b7565b6001600160a01b038316620001525760405162461bcd60e51b815260206004820152600c60248201526b77616e742d69732d7a65726f60a01b6044820152606401620000b7565b6001600160a01b03918216608052600180549183166001600160a01b031992831617905591811660a081905260088054948316949093169390931790915586811660e05285166101005260408051630dfe168160e01b81529051630dfe168191600480820192602092909190829003018186803b158015620001d357600080fd5b505afa158015620001e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020e919062001664565b6001600160a01b0316610120816001600160a01b03168152505060a0516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200026457600080fd5b505afa15801562000279573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029f919062001664565b6001600160a01b03166101405260c0869052620002bb62000366565b620002c562000438565b620002cf6200070a565b5050600280546001600160a01b03191673698d286d660b298511e49da24799d16c74b5640d17905550506103e86004555050611f4060055550620017aa9650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200037b6200081b60201b6200162f1760201c565b620003aa73f491e7b69e4244ad4002bc14e878a34207e38c2960096200091760201b620017331790919060201c565b50620003d560008051602062005a4783398151915260096200091760201b620017331790919060201c565b5062000405736c021ae822bea943b2e66552bde1d2696a53fbb760096200091760201b620017331790919060201c565b506200043573da763530614fb51dff9673232c8b3b3e0a67bcf260096200091760201b620017331790919060201c565b50565b6200044d6200093760201b6200174f1760201c565b60408051600480825260a082019092526000916020820160808036833701905050905060008051602062005a478339815191528160008151811062000496576200049662001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a2783398151915281600181518110620004dc57620004dc62001682565b60200260200101906001600160a01b031690816001600160a01b031681525050736c021ae822bea943b2e66552bde1d2696a53fbb78160028151811062000527576200052762001682565b60200260200101906001600160a01b031690816001600160a01b03168152505073da763530614fb51dff9673232c8b3b3e0a67bcf28160038151811062000572576200057262001682565b6001600160a01b0390921660209283029190910190910152620005cf60008051602062005a4783398151915273da763530614fb51dff9673232c8b3b3e0a67bcf273f491e7b69e4244ad4002bc14e878a34207e38c298462000e12565b604080516003808252608082019092526000916020820160608036833701905050905060008051602062005a478339815191528160008151811062000618576200061862001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a27833981519152816001815181106200065e576200065e62001682565b60200260200101906001600160a01b031690816001600160a01b031681525050736c021ae822bea943b2e66552bde1d2696a53fbb781600281518110620006a957620006a962001682565b6001600160a01b03909216602092830291909101909101526200070660008051602062005a47833981519152736c021ae822bea943b2e66552bde1d2696a53fbb773f491e7b69e4244ad4002bc14e878a34207e38c298462000e12565b5050565b6200073560e05160001960a0516001600160a01b031662000fe360201b62001eb1179092919060201c565b6008546101005162000763916001600160a01b03918216911660001962000fe3602090811b62001eb117901c565b6008546101205162000790916001600160a01b039182169116600062000fe3602090811b62001eb117901c565b60085461012051620007be916001600160a01b03918216911660001962000fe3602090811b62001eb117901c565b60085461014051620007eb916001600160a01b039182169116600062000fe3602090811b62001eb117901c565b6008546101405162000819916001600160a01b03918216911660001962000fe3602090811b62001eb117901c565b565b60085462000841906009906001600160a01b031662000917602090811b6200173317901c565b50620008717304068da6c83afcfa0e13ba15a6696662335d5b7560096200091760201b620017331790919060201c565b506200088f60a05160096200091760201b620017331790919060201c565b50620008ae6101005160096200091760201b620017331790919060201c565b50620008d960008051602062005a2783398151915260096200091760201b620017331790919060201c565b50620008f86101205160096200091760201b620017331790919060201c565b50620004356101405160096200091760201b620017331790919060201c565b60006200092e836001600160a01b03841662001142565b90505b92915050565b610120516001600160a01b031660008051602062005a27833981519152141562000a1e57604080516002808252606082018352600092602083019080368337019050509050610100518160008151811062000996576200099662001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a2783398151915281600181518110620009dc57620009dc62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505062000a17610100516101205160008462000e1260201b60201c565b5062000b38565b610100516001600160a01b0316610120516001600160a01b03161462000b38576040805160038082526080820190925260009160208201606080368337019050509050610100518160008151811062000a7b5762000a7b62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a278339815191528160018151811062000ac15762000ac162001682565b60200260200101906001600160a01b031690816001600160a01b031681525050610120518160028151811062000afb5762000afb62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505062000b36610100516101205160008462000e1260201b60201c565b505b610140516001600160a01b031660008051602062005a27833981519152141562000c1f57604080516002808252606082018352600092602083019080368337019050509050610100518160008151811062000b975762000b9762001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a278339815191528160018151811062000bdd5762000bdd62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505062000c18610100516101405160008462000e1260201b60201c565b5062000d39565b610100516001600160a01b0316610140516001600160a01b03161462000d39576040805160038082526080820190925260009160208201606080368337019050509050610100518160008151811062000c7c5762000c7c62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a278339815191528160018151811062000cc25762000cc262001682565b60200260200101906001600160a01b031690816001600160a01b031681525050610140518160028151811062000cfc5762000cfc62001682565b60200260200101906001600160a01b031690816001600160a01b03168152505062000d37610100516101405160008462000e1260201b60201c565b505b610100516001600160a01b031660008051602062005a27833981519152146200081957604080516002808252606082018352600092602083019080368337019050509050610100518160008151811062000d975762000d9762001682565b60200260200101906001600160a01b031690816001600160a01b03168152505060008051602062005a278339815191528160018151811062000ddd5762000ddd62001682565b6001600160a01b039092166020928302919091019091015261010051620004359060008051602062005a278339815191526000845b836001600160a01b03168160008151811062000e325762000e3262001682565b60200260200101516001600160a01b03161462000e815760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b6044820152606401620000b7565b826001600160a01b0316816001835162000e9c9190620016ae565b8151811062000eaf5762000eaf62001682565b60200260200101516001600160a01b03161462000efe5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b6044820152606401620000b7565b62000f098162001194565b6040516001600160601b0319606086811b8216602084015285901b16603482015260009060480160408051601f198184030181529190528051602090910120905060006001600160a01b0384161562000f63578362000f70565b6008546001600160a01b03165b905062000f7d816200123b565b6040805180820182526001600160a01b03838116825260208083018781526000878152600b835294909420835181546001600160a01b0319169316929092178255925180519293919262000fd892600185019201906200153a565b505050505050505050565b801580620010715750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200103457600080fd5b505afa15801562001049573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200106f9190620016c8565b155b620010e55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401620000b7565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200113d918591620012a416565b505050565b60008181526001830160205260408120546200118b5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000931565b50600062000931565b60005b81518110156200070657620011d8828281518110620011ba57620011ba62001682565b602002602001015160096200138260201b6200206e1790919060201c565b620012265760405162461bcd60e51b815260206004820152601560248201527f746f6b656e2d6e6f742d77686974656c697374656400000000000000000000006044820152606401620000b7565b806200123281620016e2565b91505062001197565b620012568160096200138260201b6200206e1790919060201c565b620004355760405162461bcd60e51b815260206004820152601660248201527f726f757465722d6e6f742d77686974656c6973746564000000000000000000006044820152606401620000b7565b600062001300826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620013a560201b62002090179092919060201c565b8051909150156200113d578080602001905181019062001321919062001700565b6200113d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620000b7565b6001600160a01b038116600090815260018301602052604081205415156200092e565b6060620013b68484600085620013c0565b90505b9392505050565b606082471015620014235760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620000b7565b6001600160a01b0385163b6200147c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620000b7565b600080866001600160a01b031685876040516200149a919062001757565b60006040518083038185875af1925050503d8060008114620014d9576040519150601f19603f3d011682016040523d82523d6000602084013e620014de565b606091505b509092509050620014f1828286620014fc565b979650505050505050565b606083156200150d575081620013b9565b8251156200151e5782518084602001fd5b8160405162461bcd60e51b8152600401620000b7919062001775565b82805482825590600052602060002090810192821562001592579160200282015b828111156200159257825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200155b565b50620015a0929150620015a4565b5090565b5b80821115620015a05760008155600101620015a5565b80516001600160a01b0381168114620015d357600080fd5b919050565b600080600080600080600060e0888a031215620015f457600080fd5b620015ff88620015bb565b9650602088015195506200161660408901620015bb565b94506200162660608901620015bb565b93506200163660808901620015bb565b92506200164660a08901620015bb565b91506200165660c08901620015bb565b905092959891949750929550565b6000602082840312156200167757600080fd5b6200092e82620015bb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015620016c357620016c362001698565b500390565b600060208284031215620016db57600080fd5b5051919050565b6000600019821415620016f957620016f962001698565b5060010190565b6000602082840312156200171357600080fd5b81518015158114620013b957600080fd5b60005b838110156200174157818101518382015260200162001727565b8381111562001751576000848401525b50505050565b600082516200176b81846020870162001724565b9190910192915050565b60208152600082518060208401526200179681604085016020870162001724565b601f01601f19169190910160400192915050565b60805160a05160c05160e051610100516101205161014051613fc862001a5f600039600081816104b40152818161171301528181611a6101528181611b8701528181611be001528181611cce01528181611d460152818161236d015281816123a8015281816127e501528181612bfd0152818161339b015281816133cd01528181613501015281816136440152613719015260008181610414015281816116e70152818161175101528181611877015281816118d0015281816119be01528181611a36015281816122f6015281816123310152818161279f01528181612bc20152818161331d0152818161344b0152818161349b0152818161359f01526136f10152600081816105810152818161169b015281816117b701528181611856015281816118a60152818161192201528181611a1501528181611ac701528181611b6601528181611bb601528181611c3201528181611d2501528181611d7101528181611dd601528181611e75015281816122ba0152818161259f0152818161262c01528181612673015281816126df01528181612b87015281816133470152818161337a015281816133f70152818161342a0152818161347a01526134df0152600081816105e1015281816111e1015281816120fc01528181612282015281816124ac0152818161252c01528181612a640152612b5001526000818161036b015281816111a8015281816120cf0152818161247c015281816124f20152612a3e015260008181610304015281816106b0015281816107630152818161084a0152818161127d01528181611557015281816115e80152818161166f01528181612260015281816123eb01528181612b2e0152818161329f01526137e30152600081816106100152818161063d0152818161081701528181610b1b0152818161106b015281816114e1015261160a0152613fc86000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c80637f51bb1f11610186578063d0e30db0116100e3578063f2fde38b11610097578063fb1db27811610071578063fb1db278146105dc578063fb61778714610603578063fbfa77cf1461060b57600080fd5b8063f2fde38b146105a3578063f4392fb3146105b6578063f88fb689146105c957600080fd5b8063d4c3eea0116100c8578063d4c3eea01461056b578063d68e130214610573578063f20eaeb81461057c57600080fd5b8063d0e30db014610550578063d32b96041461055857600080fd5b806390321e1a1161013a578063be10862b1161011f578063be10862b14610514578063be9e09d614610527578063cc32d1761461054757600080fd5b806390321e1a14610502578063bc063e1a1461050b57600080fd5b8063877562b61161016b578063877562b6146104af57806389a30271146104d65780638da5cb5b146104f157600080fd5b80637f51bb1f146104945780638456cb59146104a757600080fd5b806350e70d481161023f57806360cc2c76116101f35780636d028027116101cd5780636d0280271461046f578063715018a614610484578063722713f71461048c57600080fd5b806360cc2c7614610436578063615911491461044957806361d027b31461045c57600080fd5b80635b99176c116102245780635b99176c146103f45780635c975abb146103fd5780635ee167c01461040f57600080fd5b806350e70d48146103d1578063573fef0a146103ec57600080fd5b80633f4ba83a116102965780634641257d1161027b5780634641257d146103b85780634700d305146103c05780634870dd9a146103c857600080fd5b80633f4ba83a1461038d578063401f46631461039557600080fd5b8063257ae0de116102c7578063257ae0de1461033e5780632e1a7d4d146103515780633e0dc34e1461036657600080fd5b80631df4ccfc146102e35780631f1fcd51146102ff575b600080fd5b6102ec60075481565b6040519081526020015b60405180910390f35b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102f6565b600854610326906001600160a01b031681565b61036461035f366004613a79565b610632565b005b6102ec7f000000000000000000000000000000000000000000000000000000000000000081565b610364610876565b6103a86103a3366004613aa9565b6108d8565b60405190151581526020016102f6565b61036461099b565b610364610ab8565b6102ec61271081565b6103267321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b610364610b10565b6102ec60045481565b600054600160a01b900460ff166103a8565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103a8610444366004613a79565b610b71565b6103a8610457366004613a79565b610c7e565b600154610326906001600160a01b031681565b610477610d3d565b6040516102f69190613b08565b610364610d4e565b6102ec610da0565b6103a86104a2366004613aa9565b610daa565b610364610e6c565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103267304068da6c83afcfa0e13ba15a6696662335d5b7581565b6000546001600160a01b0316610326565b6102ec60035481565b6102ec6101f481565b600254610326906001600160a01b031681565b61053a610535366004613b1b565b610ec4565b6040516102f69190613b4e565b6102ec60055481565b610364611013565b6103a8610566366004613a79565b6110c1565b6102ec611180565b6102ec60065481565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103646105b1366004613aa9565b611307565b6103646105c4366004613c22565b6113d7565b6103a86105d7366004613a79565b611431565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103646114d6565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106985760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156106fa57600080fd5b505afa15801561070e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107329190613cf1565b9050818110156107e85761074e6107498284613d20565b6120a7565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156107ad57600080fd5b505afa1580156107c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e59190613cf1565b90505b818111156107f35750805b6000612710600654836108069190613d37565b6108109190613d56565b90506108717f00000000000000000000000000000000000000000000000000000000000000006108408385613d20565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612164565b505050565b6000546001600160a01b031633146108be5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6108c66121ad565b6108ce612253565b6108d66123d3565b565b600080546001600160a01b031633146109215760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6001600160a01b0382166109775760405162461bcd60e51b815260206004820152600f60248201527f706172746e65722d69732d7a65726f0000000000000000000000000000000000604482015260640161068f565b50600280546001600160a01b0319166001600160a01b03831617905560015b919050565b600054600160a01b900460ff16156109e85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b333b15610a375760405162461bcd60e51b815260206004820152600960248201527f21636f6e74726163740000000000000000000000000000000000000000000000604482015260640161068f565b6000610a41611180565b9050600080610a4e6124e3565b91509150610a5b816128b3565b6000610a65611180565b9050610a6f6123d3565b604080518481526020810186905290810182905233907fe48bba143e2a0b557fa6f3234bd6ffc704518cc98c7de6a2385549fae27d1b759060600160405180910390a250505050565b6000546001600160a01b03163314610b005760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b610b0861298e565b6108d6612a16565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108d65760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b600080546001600160a01b03163314610bba5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6002546001600160a01b0316610c125760405162461bcd60e51b815260206004820152600f60248201527f706172746e65722d6e6f742d7365740000000000000000000000000000000000604482015260640161068f565b6004829055600354610c2683612710613d20565b610c309190613d20565b60058190556004546040517f71c11923856ca550fecf6bbe0185473dfb80d8513d8d5c6ad588f17daa176c2a92610c6e928252602082015260400190565b60405180910390a1506001919050565b600080546001600160a01b03163314610cc75760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6101f4821115610d085760405162461bcd60e51b815260206004820152600c60248201526b0cccaca5ae8dede5ad0d2ced60a31b604482015260640161068f565b60068290556040518281527f3790aeee57809af98fad1b89b9266c7934e03ed46702b541f2fef6f1e89d682790602001610c6e565b6060610d496009612ac4565b905090565b6000546001600160a01b03163314610d965760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6108d66000612ad1565b6000610d49611180565b600080546001600160a01b03163314610df35760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6001600160a01b038216610e495760405162461bcd60e51b815260206004820152601060248201527f74726561737572792d69732d7a65726f00000000000000000000000000000000604482015260640161068f565b50600180546001600160a01b0383166001600160a01b0319909116178155919050565b6000546001600160a01b03163314610eb45760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b610ebc61298e565b6108d6612b21565b6040805180820190915260008152606060208201526040516bffffffffffffffffffffffff19606085811b8216602084015284901b16603482015260009060480160408051601f1981840301815291815281516020928301206000818152600b9093529120549091506001600160a01b0316610f825760405162461bcd60e51b815260206004820152600e60248201527f706174682d6e6f742d666f756e64000000000000000000000000000000000000604482015260640161068f565b6000818152600b60209081526040918290208251808401845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561100057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fe2575b5050505050815250509150505b92915050565b600054600160a01b900460ff16156110605760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108ce5760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b600080546001600160a01b0316331461110a5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6101f482111561114b5760405162461bcd60e51b815260206004820152600c60248201526b0cccaca5ae8dede5ad0d2ced60a31b604482015260640161068f565b60078290556040518281527f2e59d502792bca3d730c472cd3acfbc16d0f9fe6ce0cddbdf0f80830251dfaca90602001610c6e565b6040517f93f1a40b0000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015230602482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906393f1a40b90604401604080518083038186803b15801561122257600080fd5b505afa158015611236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125a9190613d78565b506040516370a0823160e01b815230600482015290915081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156112bf57600080fd5b505afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190613cf1565b6113019190613d9c565b91505090565b6000546001600160a01b0316331461134f5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b6001600160a01b0381166113cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161068f565b6113d481612ad1565b50565b6000546001600160a01b0316331461141f5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b61142b84848484612c27565b50505050565b600080546001600160a01b0316331461147a5760405162461bcd60e51b81526020600482018190526024820152600080516020613f73833981519152604482015260640161068f565b600382905560045461148e83612710613d20565b6114989190613d20565b60058190556003546040517f06a730aa61ec47f8cc95582be032daaf0ec4cb816c24b9c07b574ea41821048b92610c6e928252602082015260400190565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115375760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b61153f610b08565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156115a157600080fd5b505afa1580156115b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d99190613cf1565b90506113d46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612164565b600854611647906009906001600160a01b0316611733565b5061166760097304068da6c83afcfa0e13ba15a6696662335d5b75611733565b5061169360097f0000000000000000000000000000000000000000000000000000000000000000611733565b506116bf60097f0000000000000000000000000000000000000000000000000000000000000000611733565b506116df60097321be370d5312f44cb42ce377bc9b8a0cef1a4c83611733565b5061170b60097f0000000000000000000000000000000000000000000000000000000000000000611733565b506113d460097f00000000000000000000000000000000000000000000000000000000000000005b6000611748836001600160a01b038416612de9565b9392505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c8314156118a4576040805160028082526060820183526000926020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106117e9576117e9613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c838160018151811061183157611831613db4565b60200260200101906001600160a01b031690816001600160a01b03168152505061189e7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c27565b50611a5f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614611a5f5760408051600380825260808201909252600091602082016060803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061195457611954613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c838160018151811061199c5761199c613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816002815181106119f0576119f0613db4565b60200260200101906001600160a01b031690816001600160a01b031681525050611a5d7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c27565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c831415611bb4576040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611af957611af9613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611b4157611b41613db4565b60200260200101906001600160a01b031690816001600160a01b031681525050611bae7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c27565b50611d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614611d6f5760408051600380825260808201909252600091602082016060803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611c6457611c64613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611cac57611cac613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600281518110611d0057611d00613db4565b60200260200101906001600160a01b031690816001600160a01b031681525050611d6d7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c27565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83146108d6576040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611e0857611e08613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611e5057611e50613db4565b60200260200101906001600160a01b031690816001600160a01b0316815250506113d47f00000000000000000000000000000000000000000000000000000000000000007321be370d5312f44cb42ce377bc9b8a0cef1a4c83600084612c27565b801580611f5357506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611f1957600080fd5b505afa158015611f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f519190613cf1565b155b611fc55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161068f565b6040516001600160a01b0383166024820152604481018290526108719084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612e38565b6001600160a01b03811660009081526001830160205260408120541515611748565b606061209f8484600085612f1d565b949350505050565b6040517f441a3e700000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063441a3e70906044015b600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b5050505050565b6040516001600160a01b0383166024820152604481018290526108719084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161200a565b600054600160a01b900460ff166122065760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161068f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6122a96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600019611eb1565b6008546122e5906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b600854612320906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b60085461235c906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b600854612397906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b6008546108d6906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561243557600080fd5b505afa158015612449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246d9190613cf1565b604051631c57762b60e31b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e2bbb1589060440161212f565b604051631c57762b60e31b81527f000000000000000000000000000000000000000000000000000000000000000060048201526000602482018190529081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb15890604401600060405180830381600087803b15801561257057600080fd5b505af1158015612584573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a082319060240160206040518083038186803b1580156125ea57600080fd5b505afa1580156125fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126229190613cf1565b905080156128ae577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c8314612768576126c77f00000000000000000000000000000000000000000000000000000000000000007321be370d5312f44cb42ce377bc9b8a0cef1a4c83612710600754856126b89190613d37565b6126c29190613d56565b613065565b6040516370a0823160e01b81523060048201529092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561272957600080fd5b505afa15801561273d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127619190613cf1565b9050612792565b612710600754826127799190613d37565b6127839190613d56565b915061278f8282613d20565b90505b61279b8161327d565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83148061282457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83145b156128ae576040516370a0823160e01b81523060048201527321be370d5312f44cb42ce377bc9b8a0cef1a4c83906370a082319060240160206040518083038186803b15801561287357600080fd5b505afa158015612887573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ab9190613cf1565b91505b509091565b6000612710600354836128c69190613d37565b6128d09190613d56565b90506000612710600454846128e59190613d37565b6128ef9190613d56565b90506129107321be370d5312f44cb42ce377bc9b8a0cef1a4c833384612164565b600154612951906001600160a01b03168261292b8587613d20565b6129359190613d20565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c839190612164565b6002546001600160a01b03161561087157600254610871907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906001600160a01b031683612164565b600054600160a01b900460ff16156129db5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122363390565b6040517f5312ea8e0000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635312ea8e90602401600060405180830381600087803b158015612ab057600080fd5b505af115801561142b573d6000803e3d6000fd5b6060600061174883613878565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612b766001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611eb1565b600854612bb1906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b600854612bec906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b6008546108d6906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b836001600160a01b031681600081518110612c4457612c44613db4565b60200260200101516001600160a01b031614612c915760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b604482015260640161068f565b826001600160a01b03168160018351612caa9190613d20565b81518110612cba57612cba613db4565b60200260200101516001600160a01b031614612d075760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b604482015260640161068f565b612d10816138d4565b6040516bffffffffffffffffffffffff19606086811b8216602084015285901b16603482015260009060480160408051601f198184030181529190528051602090910120905060006001600160a01b03841615612d6d5783612d7a565b6008546001600160a01b03165b9050612d858161396f565b6040805180820182526001600160a01b03838116825260208083018781526000878152600b835294909420835181546001600160a01b03191693169290921782559251805192939192612dde92600185019201906139ff565b505050505050505050565b6000818152600183016020526040812054612e305750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561100d565b50600061100d565b6000612e8d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120909092919063ffffffff16565b8051909150156108715780806020019051810190612eab9190613dca565b6108715760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161068f565b606082471015612f955760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161068f565b6001600160a01b0385163b612fec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161068f565b600080866001600160a01b031685876040516130089190613e18565b60006040518083038185875af1925050503d8060008114613045576040519150601f19603f3d011682016040523d82523d6000602084013e61304a565b606091505b509150915061305a8282866139c6565b979650505050505050565b6000826001600160a01b0316846001600160a01b03161415613088575080611748565b60006130948585610ec4565b80519091506130af906001600160a01b038716906000611eb1565b80516130c8906001600160a01b03871690600019611eb1565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b15801561310a57600080fd5b505afa15801561311e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131429190613cf1565b825160208401516040517f38ed17390000000000000000000000000000000000000000000000000000000081529293506001600160a01b03909116916338ed17399161319991889160009130904290600401613e34565b600060405180830381600087803b1580156131b357600080fd5b505af11580156131c7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131ef9190810190613e70565b506040516370a0823160e01b815230600482015281906001600160a01b038716906370a082319060240160206040518083038186803b15801561323157600080fd5b505afa158015613245573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132699190613cf1565b6132739190613d20565b9695505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156132e157600080fd5b505afa1580156132f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133199190613cf1565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614156133cb576133c57f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d56565b50613587565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161415613475576133c57f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d56565b6134c57f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d56565b506040516370a0823160e01b8152306004820152613585907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038316906370a082319060240160206040518083038186803b15801561354d57600080fd5b505afa158015613561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190613cf1565b505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156135e957600080fd5b505afa1580156135fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136219190613cf1565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561368657600080fd5b505afa15801561369a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136be9190613cf1565b6008546040517fe8e337000000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018690526064820184905260016084830181905260a48301523060c48301524260e483015292935091169063e8e337009061010401606060405180830381600087803b15801561379157600080fd5b505af11580156137a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137c99190613ef6565b50506040516370a0823160e01b81523060048201528491507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561382d57600080fd5b505afa158015613841573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138659190613cf1565b61386f9190613d20565b95945050505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156138c857602002820191906000526020600020905b8154815260200190600101908083116138b4575b50505050509050919050565b60005b815181101561396b5761390d8282815181106138f5576138f5613db4565b6020026020010151600961206e90919063ffffffff16565b6139595760405162461bcd60e51b815260206004820152601560248201527f746f6b656e2d6e6f742d77686974656c69737465640000000000000000000000604482015260640161068f565b8061396381613f24565b9150506138d7565b5050565b61397a60098261206e565b6113d45760405162461bcd60e51b815260206004820152601660248201527f726f757465722d6e6f742d77686974656c697374656400000000000000000000604482015260640161068f565b606083156139d5575081611748565b8251156139e55782518084602001fd5b8160405162461bcd60e51b815260040161068f9190613f3f565b828054828255906000526020600020908101928215613a54579160200282015b82811115613a5457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613a1f565b50613a60929150613a64565b5090565b5b80821115613a605760008155600101613a65565b600060208284031215613a8b57600080fd5b5035919050565b80356001600160a01b038116811461099657600080fd5b600060208284031215613abb57600080fd5b61174882613a92565b600081518084526020808501945080840160005b83811015613afd5781516001600160a01b031687529582019590820190600101613ad8565b509495945050505050565b6020815260006117486020830184613ac4565b60008060408385031215613b2e57600080fd5b613b3783613a92565b9150613b4560208401613a92565b90509250929050565b60006020808352606083016001600160a01b038086511683860152828601516040808701528281518085526080880191508583019450600092505b80831015613bab57845184168252938501936001929092019190850190613b89565b50979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613bf657613bf6613bb7565b604052919050565b600067ffffffffffffffff821115613c1857613c18613bb7565b5060051b60200190565b60008060008060808587031215613c3857600080fd5b613c4185613a92565b93506020613c50818701613a92565b9350613c5e60408701613a92565b9250606086013567ffffffffffffffff811115613c7a57600080fd5b8601601f81018813613c8b57600080fd5b8035613c9e613c9982613bfe565b613bcd565b81815260059190911b8201830190838101908a831115613cbd57600080fd5b928401925b82841015613ce257613cd384613a92565b82529284019290840190613cc2565b979a9699509497505050505050565b600060208284031215613d0357600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015613d3257613d32613d0a565b500390565b6000816000190483118215151615613d5157613d51613d0a565b500290565b600082613d7357634e487b7160e01b600052601260045260246000fd5b500490565b60008060408385031215613d8b57600080fd5b505080516020909101519092909150565b60008219821115613daf57613daf613d0a565b500190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613ddc57600080fd5b8151801515811461174857600080fd5b60005b83811015613e07578181015183820152602001613def565b8381111561142b5750506000910152565b60008251613e2a818460208701613dec565b9190910192915050565b85815284602082015260a060408201526000613e5360a0830186613ac4565b6001600160a01b0394909416606083015250608001529392505050565b60006020808385031215613e8357600080fd5b825167ffffffffffffffff811115613e9a57600080fd5b8301601f81018513613eab57600080fd5b8051613eb9613c9982613bfe565b81815260059190911b82018301908381019087831115613ed857600080fd5b928401925b8284101561305a57835182529284019290840190613edd565b600080600060608486031215613f0b57600080fd5b8351925060208401519150604084015190509250925092565b6000600019821415613f3857613f38613d0a565b5060010190565b6020815260008251806020840152613f5e816040850160208701613dec565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212206ee1ca90670f3b4725789c8feb40f69ec7f4b865f7d49ad17897eda65e82686964736f6c6343000809003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000255861b569d44df3e113b6ca090a1122046e6f89000000000000000000000000f06ea523a86df3bda303967dce59007fd7e85be20000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b2922e886ab9dff160479431f831a43c983a9ef3000000000000000000000000255861b569d44df3e113b6ca090a1122046e6f89000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000072dac46cad7abacd22c008659780aa23c28f8e90000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

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

000000000000000000000000f06ea523a86df3bda303967dce59007fd7e85be20000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b2922e886ab9dff160479431f831a43c983a9ef3000000000000000000000000255861b569d44df3e113b6ca090a1122046e6f89000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000072dac46cad7abacd22c008659780aa23c28f8e90000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

-----Decoded View---------------
Arg [0] : _want (address): 0xf06ea523a86df3bda303967dce59007fd7e85be2
Arg [1] : _poolId (uint256): 1
Arg [2] : _masterchef (address): 0xb2922e886ab9dff160479431f831a43c983a9ef3
Arg [3] : _output (address): 0x255861b569d44df3e113b6ca090a1122046e6f89
Arg [4] : _uniRouter (address): 0xf491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : _vault (address): 0x072dac46cad7abacd22c008659780aa23c28f8e9
Arg [6] : _treasury (address): 0x8317b428082802c8aa84d670e495a0003d11368a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000f06ea523a86df3bda303967dce59007fd7e85be2
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 000000000000000000000000b2922e886ab9dff160479431f831a43c983a9ef3
Arg [3] : 000000000000000000000000255861b569d44df3e113b6ca090a1122046e6f89
Arg [4] : 000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : 000000000000000000000000072dac46cad7abacd22c008659780aa23c28f8e9
Arg [6] : 0000000000000000000000008317b428082802c8aa84d670e495a0003d11368a


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.