Contract 0x0A978929f0660090b6b53AAD02DdAf5AE8bf4BA6

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd5bdbbf64eb4febd3595d7f5000f21ff100682b37dfc4546f181faa36f623adfHarvest427985952022-07-15 6:42:2983 days 10 hrs ago0x012430f934bc381d9f59a28ea34363bce170353d IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.000904933923
0xf1a348288ecc88636622480d54171257d5b87eea6909ea4220fd96c64314273bHarvest427110812022-07-14 2:22:5484 days 14 hrs ago0x40c5cf51be4b6e0ad376d598e1615c156d6fc8fc IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001526513323
0xf04b443d8a03f2e59ba4684ccdc0023c2a72dcdfe7b8f682b8dfbb2c53b56f59Harvest427014422022-07-13 23:13:3184 days 18 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.0013858032
0xff85b4c8656a9a3e975a2a2265769a90de0bcbe27c1e36e3c0dd8480c942c8c7Harvest427005812022-07-13 22:57:1284 days 18 hrs ago0x0290009c77908568f53223efdeee3506cf27c6c4 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001279162
0xcbc479c2ac90b5591f887078015b3734f9b87102bbb9a86eeb08b82d77481442Harvest426997392022-07-13 22:40:2584 days 18 hrs ago0x9029ed3f753125a0ac46b0a1ff78fef67213e57e IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001251879799
0xe382d954a66904ff7fb4768115a999892b5971e3917bbf4eb2740d47b7d033a3Harvest426988482022-07-13 22:23:4984 days 18 hrs ago0xe4a7d73bccbae0e7398f8d437ff16b4623a5ac3a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001216836769
0xa89b04b2b4190988e0c3c9f8cde3ca520279bdcdfe45d9e278c81fd7986d9e43Harvest426979782022-07-13 22:07:2284 days 19 hrs ago0x9029ed3f753125a0ac46b0a1ff78fef67213e57e IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001213786728
0x69419ba5ea05dcbfc42b2bc9963ab7adf18ce3f895f66562834d123d12991ed5Harvest426972362022-07-13 21:50:5584 days 19 hrs ago0x6868ac68dd1b4b2b400f388346d019a606aded7e IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001022218164
0x09120593e5ec5adc28a7e254ff6a2d10f9b821c790ec8833b54e7f2933474d29Harvest426963492022-07-13 21:35:1684 days 19 hrs ago0xd968665350a0bb7d487aadba94d920d8890ee06f IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001102752238
0x911e8c4555af6c3047efd2ef07ce9abc31622726dbb858b66d4fcffaa5dad7c0Harvest426955432022-07-13 21:19:2084 days 19 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.00095809792
0x847fcd8f50aac6ffe76e146c7d82b01fa0a3ec0d058c58e184fd894b0286ee78Harvest426941042022-07-13 20:53:1284 days 20 hrs ago0x657439ed989b0ec28a09b592fda8c61ebd434b6a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001209698374
0x879d96f319d388dc144db5512ec818d0b09c6e7018b1e668223e5839156a00d1Harvest426925232022-07-13 20:24:4384 days 20 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001294976
0xd6ef33e619baca0fb365a26db238e0a66b95f487f953ec181c15e6407f53b371Harvest426908402022-07-13 19:53:3684 days 21 hrs ago0x6868ac68dd1b4b2b400f388346d019a606aded7e IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001518206827
0xedc332a1148a92478b01666a6b5d12b28ac2bfae9c6c7ef13da790fec10fdb72Harvest426892312022-07-13 19:24:0484 days 21 hrs ago0xe4a7d73bccbae0e7398f8d437ff16b4623a5ac3a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001653668654
0x4b94a539fed0fa2d33454ebc4026217e10deda570bb05fe31fbf609df62ab0baHarvest426883002022-07-13 19:05:1984 days 22 hrs ago0x0290009c77908568f53223efdeee3506cf27c6c4 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.00156914901
0xace4befcf73be45d94968c2534aba28a65ab8d4dba4d220bcb5c6047021a9571Harvest426877512022-07-13 18:55:1984 days 22 hrs ago0x6868ac68dd1b4b2b400f388346d019a606aded7e IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001498738477
0x2c38090eadeaf448aa3bd283031f2c0e5fbfc1a0932a4fe2404ae803b66a3239Harvest426871952022-07-13 18:45:3584 days 22 hrs ago0x9d7593003c0d48014a38be07ca8c312e6d32f17d IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001711397754
0xbb9e30e943cc06d960fc4056497e9fd527f54b39ffb8bbfe972535af9043b829Harvest426866272022-07-13 18:35:0384 days 22 hrs ago0x657439ed989b0ec28a09b592fda8c61ebd434b6a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001877917041
0xa07acc97b650453eaa9d1e0116ecde8c91da75556f5e31857f70b9b86ff6094cHarvest426860032022-07-13 18:23:4984 days 22 hrs ago0xd968665350a0bb7d487aadba94d920d8890ee06f IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.001705209044
0x75ac4aad19256a47f6b5ff9090c4020bba72c3433341057edffb579fd3e080aaHarvest426853872022-07-13 18:12:3884 days 23 hrs ago0xe4a7d73bccbae0e7398f8d437ff16b4623a5ac3a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.002117118168
0x42bd16b1004645d5b34a32494c78abc972eacfb212ca0181b78d7755bb387911Harvest426846852022-07-13 18:00:1584 days 23 hrs ago0x0290009c77908568f53223efdeee3506cf27c6c4 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.00252315015
0x03a754e3da49b11df072c7c01f48937c541d091cb90e02b4e8e88cdf35f9322eHarvest426839072022-07-13 17:46:2484 days 23 hrs ago0x40c5cf51be4b6e0ad376d598e1615c156d6fc8fc IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.003393329625
0x5aadce62c4804b24807b4fd2d371ed8ee53bce76ff691e5abcbba8e2dc71cca9Harvest426829882022-07-13 17:29:0584 days 23 hrs ago0x657439ed989b0ec28a09b592fda8c61ebd434b6a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.003584990356
0x7d48aa54051e785147b57ab8246ab03701d085b93532b859bfc3ecdfa524499fHarvest426820052022-07-13 17:11:1385 days 3 mins ago0x657439ed989b0ec28a09b592fda8c61ebd434b6a IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.004322190583
0xa1566a1580ecc028bc7a1ae485305993ceedd61522323678253a3dfe9d883963Harvest426810622022-07-13 16:50:2385 days 24 mins ago0x0290009c77908568f53223efdeee3506cf27c6c4 IN  0x0a978929f0660090b6b53aad02ddaf5ae8bf4ba60 FTM0.002902478072
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x9c26c2807536f7e4408df1399ee5ecaed54a7566bbfbee569129488ee16b9a55365504682022-04-20 17:17:03168 days 23 hrs ago 0x4b6b6a3af8c882b53c2cc99f016c89b231ce441d  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpookyV2MatrixLpAutoCompound

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;

    function emergencyWithdraw(uint256 _pid, address _to) 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 virtual 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 : SpookyV2MatrixLpAutoCompound.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "../MatrixLpAutoCompound.sol";

/// @title MatrixLpAutoCompound adapted to SpookyV2 DEUS routing
contract SpookyV2MatrixLpAutoCompound is MatrixLpAutoCompound {
    using EnumerableSet for EnumerableSet.AddressSet;

    address internal constant SPOOKYSWAP_ROUTER =
        0xF491e7B69E4244ad4002BC14e878a34207E38c29;

    address internal constant WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    address internal constant DEUS = 0xDE5ed76E7c05eC5e4572CfC88d1ACEA165109E44;
    address internal constant DEI = 0xDE12c7959E1a72bbe8a5f7A1dc8f8EeF9Ab011B3;

    constructor(
        address _want,
        uint256 _poolId,
        address _masterchef,
        address _output,
        address _uniRouter,
        address _vault,
        address _treasury
    )
        MatrixLpAutoCompound(
            _want,
            _poolId,
            _masterchef,
            _output,
            _uniRouter,
            _vault,
            _treasury
        )
    {}

    function _setWhitelistedAddresses() internal override {
        super._setWhitelistedAddresses();
        whitelistedAddresses.add(SPOOKYSWAP_ROUTER);
        whitelistedAddresses.add(DEUS);
        whitelistedAddresses.add(DEI);
    }

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

        // DEUS -> USDC
        address[] memory _deusUsdc = new address[](3);
        _deusUsdc[0] = DEUS;
        _deusUsdc[1] = WFTM;
        _deusUsdc[2] = USDC;
        _setSwapPath(DEUS, USDC, SPOOKYSWAP_ROUTER, _deusUsdc);

        // DEUS -> DEI
        address[] memory _deusDei = new address[](4);
        _deusDei[0] = DEUS;
        _deusDei[1] = WFTM;
        _deusDei[2] = USDC;
        _deusDei[3] = DEI;
        _setSwapPath(DEUS, DEI, SPOOKYSWAP_ROUTER, _deusDei);
    }

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

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"}]

6101606040526103e86003556000600455612328600555600a6006556101c26007553480156200002e57600080fd5b5060405162005a0a38038062005a0a833981016040819052620000519162001575565b86868686868686828783836200006733620002e3565b6000805460ff60a01b191690556001600160a01b038216620000c05760405162461bcd60e51b815260206004820152600d60248201526c7661756c742d69732d7a65726f60981b60448201526064015b60405180910390fd5b6001600160a01b0381166200010b5760405162461bcd60e51b815260206004820152601060248201526f74726561737572792d69732d7a65726f60801b6044820152606401620000b7565b6001600160a01b038316620001525760405162461bcd60e51b815260206004820152600c60248201526b77616e742d69732d7a65726f60a01b6044820152606401620000b7565b6001600160a01b03918216608052600180549183166001600160a01b031992831617905591811660a081905260088054948316949093169390931790915586811660e05285166101005260408051630dfe168160e01b81529051630dfe168191600480820192602092909190829003018186803b158015620001d357600080fd5b505afa158015620001e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020e919062001601565b6001600160a01b0316610120816001600160a01b03168152505060a0516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200026457600080fd5b505afa15801562000279573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029f919062001601565b6001600160a01b03166101405260c0869052620002bb62000333565b620002c5620003d5565b620002cf620006a7565b505050505050505050505050505062001747565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000348620007b860201b6200162f1760201c565b6200037773f491e7b69e4244ad4002bc14e878a34207e38c296009620008b460201b620017331790919060201c565b50620003a2600080516020620059ea8339815191526009620008b460201b620017331790919060201c565b50620003d273de12c7959e1a72bbe8a5f7a1dc8f8eef9ab011b36009620008b460201b620017331790919060201c565b50565b620003ea620008d460201b6200174f1760201c565b6040805160038082526080820190925260009160208201606080368337019050509050600080516020620059ea833981519152816000815181106200043357620004336200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca833981519152816001815181106200047957620004796200161f565b60200260200101906001600160a01b031690816001600160a01b0316815250507304068da6c83afcfa0e13ba15a6696662335d5b7581600281518110620004c457620004c46200161f565b6001600160a01b039092166020928302919091019091015262000521600080516020620059ea8339815191527304068da6c83afcfa0e13ba15a6696662335d5b7573f491e7b69e4244ad4002bc14e878a34207e38c298462000daf565b60408051600480825260a0820190925260009160208201608080368337019050509050600080516020620059ea833981519152816000815181106200056a576200056a6200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca83398151915281600181518110620005b057620005b06200161f565b60200260200101906001600160a01b031690816001600160a01b0316815250507304068da6c83afcfa0e13ba15a6696662335d5b7581600281518110620005fb57620005fb6200161f565b60200260200101906001600160a01b031690816001600160a01b03168152505073de12c7959e1a72bbe8a5f7a1dc8f8eef9ab011b3816003815181106200064657620006466200161f565b6001600160a01b0390921660209283029190910190910152620006a3600080516020620059ea83398151915273de12c7959e1a72bbe8a5f7a1dc8f8eef9ab011b373f491e7b69e4244ad4002bc14e878a34207e38c298462000daf565b5050565b620006d260e05160001960a0516001600160a01b031662000f8060201b62001eb1179092919060201c565b6008546101005162000700916001600160a01b03918216911660001962000f80602090811b62001eb117901c565b600854610120516200072d916001600160a01b039182169116600062000f80602090811b62001eb117901c565b600854610120516200075b916001600160a01b03918216911660001962000f80602090811b62001eb117901c565b6008546101405162000788916001600160a01b039182169116600062000f80602090811b62001eb117901c565b60085461014051620007b6916001600160a01b03918216911660001962000f80602090811b62001eb117901c565b565b600854620007de906009906001600160a01b0316620008b4602090811b6200173317901c565b506200080e7304068da6c83afcfa0e13ba15a6696662335d5b756009620008b460201b620017331790919060201c565b506200082c60a0516009620008b460201b620017331790919060201c565b506200084b610100516009620008b460201b620017331790919060201c565b5062000876600080516020620059ca8339815191526009620008b460201b620017331790919060201c565b5062000895610120516009620008b460201b620017331790919060201c565b50620003d2610140516009620008b460201b620017331790919060201c565b6000620008cb836001600160a01b038416620010df565b90505b92915050565b610120516001600160a01b0316600080516020620059ca8339815191521415620009bb5760408051600280825260608201835260009260208301908036833701905050905061010051816000815181106200093357620009336200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca833981519152816001815181106200097957620009796200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050620009b4610100516101205160008462000daf60201b60201c565b5062000ad5565b610100516001600160a01b0316610120516001600160a01b03161462000ad5576040805160038082526080820190925260009160208201606080368337019050509050610100518160008151811062000a185762000a186200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca8339815191528160018151811062000a5e5762000a5e6200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050610120518160028151811062000a985762000a986200161f565b60200260200101906001600160a01b031690816001600160a01b03168152505062000ad3610100516101205160008462000daf60201b60201c565b505b610140516001600160a01b0316600080516020620059ca833981519152141562000bbc57604080516002808252606082018352600092602083019080368337019050509050610100518160008151811062000b345762000b346200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca8339815191528160018151811062000b7a5762000b7a6200161f565b60200260200101906001600160a01b031690816001600160a01b03168152505062000bb5610100516101405160008462000daf60201b60201c565b5062000cd6565b610100516001600160a01b0316610140516001600160a01b03161462000cd6576040805160038082526080820190925260009160208201606080368337019050509050610100518160008151811062000c195762000c196200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca8339815191528160018151811062000c5f5762000c5f6200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050610140518160028151811062000c995762000c996200161f565b60200260200101906001600160a01b031690816001600160a01b03168152505062000cd4610100516101405160008462000daf60201b60201c565b505b610100516001600160a01b0316600080516020620059ca83398151915214620007b657604080516002808252606082018352600092602083019080368337019050509050610100518160008151811062000d345762000d346200161f565b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020620059ca8339815191528160018151811062000d7a5762000d7a6200161f565b6001600160a01b039092166020928302919091019091015261010051620003d290600080516020620059ca8339815191526000845b836001600160a01b03168160008151811062000dcf5762000dcf6200161f565b60200260200101516001600160a01b03161462000e1e5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b6044820152606401620000b7565b826001600160a01b0316816001835162000e3991906200164b565b8151811062000e4c5762000e4c6200161f565b60200260200101516001600160a01b03161462000e9b5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b6044820152606401620000b7565b62000ea68162001131565b6040516001600160601b0319606086811b8216602084015285901b16603482015260009060480160408051601f198184030181529190528051602090910120905060006001600160a01b0384161562000f00578362000f0d565b6008546001600160a01b03165b905062000f1a81620011d8565b6040805180820182526001600160a01b03838116825260208083018781526000878152600b835294909420835181546001600160a01b0319169316929092178255925180519293919262000f759260018501920190620014d7565b505050505050505050565b8015806200100e5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801562000fd157600080fd5b505afa15801562000fe6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200100c919062001665565b155b620010825760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401620000b7565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620010da9185916200124116565b505050565b60008181526001830160205260408120546200112857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620008ce565b506000620008ce565b60005b8151811015620006a357620011758282815181106200115757620011576200161f565b602002602001015160096200131f60201b6200206e1790919060201c565b620011c35760405162461bcd60e51b815260206004820152601560248201527f746f6b656e2d6e6f742d77686974656c697374656400000000000000000000006044820152606401620000b7565b80620011cf816200167f565b91505062001134565b620011f38160096200131f60201b6200206e1790919060201c565b620003d25760405162461bcd60e51b815260206004820152601660248201527f726f757465722d6e6f742d77686974656c6973746564000000000000000000006044820152606401620000b7565b60006200129d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200134260201b62002090179092919060201c565b805190915015620010da5780806020019051810190620012be91906200169d565b620010da5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620000b7565b6001600160a01b03811660009081526001830160205260408120541515620008cb565b60606200135384846000856200135d565b90505b9392505050565b606082471015620013c05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620000b7565b6001600160a01b0385163b620014195760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620000b7565b600080866001600160a01b03168587604051620014379190620016f4565b60006040518083038185875af1925050503d806000811462001476576040519150601f19603f3d011682016040523d82523d6000602084013e6200147b565b606091505b5090925090506200148e82828662001499565b979650505050505050565b60608315620014aa57508162001356565b825115620014bb5782518084602001fd5b8160405162461bcd60e51b8152600401620000b7919062001712565b8280548282559060005260206000209081019282156200152f579160200282015b828111156200152f57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620014f8565b506200153d92915062001541565b5090565b5b808211156200153d576000815560010162001542565b80516001600160a01b03811681146200157057600080fd5b919050565b600080600080600080600060e0888a0312156200159157600080fd5b6200159c8862001558565b965060208801519550620015b36040890162001558565b9450620015c36060890162001558565b9350620015d36080890162001558565b9250620015e360a0890162001558565b9150620015f360c0890162001558565b905092959891949750929550565b6000602082840312156200161457600080fd5b620008cb8262001558565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101562001660576200166062001635565b500390565b6000602082840312156200167857600080fd5b5051919050565b600060001982141562001696576200169662001635565b5060010190565b600060208284031215620016b057600080fd5b815180151581146200135657600080fd5b60005b83811015620016de578181015183820152602001620016c4565b83811115620016ee576000848401525b50505050565b6000825162001708818460208701620016c1565b9190910192915050565b602081526000825180602084015262001733816040850160208701620016c1565b601f01601f19169190910160400192915050565b60805160a05160c05160e051610100516101205161014051613fce620019fc600039600081816104b40152818161171301528181611a6101528181611b8701528181611be001528181611cce01528181611d460152818161236d015281816123a8015281816127e501528181612c03015281816133a1015281816133d3015281816135070152818161364a015261371f015260008181610414015281816116e70152818161175101528181611877015281816118d0015281816119be01528181611a36015281816122f6015281816123310152818161279f01528181612bc80152818161332301528181613451015281816134a1015281816135a501526136f70152600081816105810152818161169b015281816117b701528181611856015281816118a60152818161192201528181611a1501528181611ac701528181611b6601528181611bb601528181611c3201528181611d2501528181611d7101528181611dd601528181611e75015281816122ba0152818161259f0152818161262c01528181612673015281816126df01528181612b8d0152818161334d01528181613380015281816133fd015281816134300152818161348001526134e50152600081816105e1015281816111e1015281816120fc01528181612282015281816124ac0152818161252c01528181612a6a0152612b5601526000818161036b015281816111a8015281816120cf0152818161247c015281816124f20152612a3e015260008181610304015281816106b0015281816107630152818161084a0152818161127d01528181611557015281816115e80152818161166f01528181612260015281816123eb01528181612b34015281816132a501526137e90152600081816106100152818161063d0152818161081701528181610b1b0152818161106b015281816114e1015261160a0152613fce6000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c80637f51bb1f11610186578063d0e30db0116100e3578063f2fde38b11610097578063fb1db27811610071578063fb1db278146105dc578063fb61778714610603578063fbfa77cf1461060b57600080fd5b8063f2fde38b146105a3578063f4392fb3146105b6578063f88fb689146105c957600080fd5b8063d4c3eea0116100c8578063d4c3eea01461056b578063d68e130214610573578063f20eaeb81461057c57600080fd5b8063d0e30db014610550578063d32b96041461055857600080fd5b806390321e1a1161013a578063be10862b1161011f578063be10862b14610514578063be9e09d614610527578063cc32d1761461054757600080fd5b806390321e1a14610502578063bc063e1a1461050b57600080fd5b8063877562b61161016b578063877562b6146104af57806389a30271146104d65780638da5cb5b146104f157600080fd5b80637f51bb1f146104945780638456cb59146104a757600080fd5b806350e70d481161023f57806360cc2c76116101f35780636d028027116101cd5780636d0280271461046f578063715018a614610484578063722713f71461048c57600080fd5b806360cc2c7614610436578063615911491461044957806361d027b31461045c57600080fd5b80635b99176c116102245780635b99176c146103f45780635c975abb146103fd5780635ee167c01461040f57600080fd5b806350e70d48146103d1578063573fef0a146103ec57600080fd5b80633f4ba83a116102965780634641257d1161027b5780634641257d146103b85780634700d305146103c05780634870dd9a146103c857600080fd5b80633f4ba83a1461038d578063401f46631461039557600080fd5b8063257ae0de116102c7578063257ae0de1461033e5780632e1a7d4d146103515780633e0dc34e1461036657600080fd5b80631df4ccfc146102e35780631f1fcd51146102ff575b600080fd5b6102ec60075481565b6040519081526020015b60405180910390f35b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102f6565b600854610326906001600160a01b031681565b61036461035f366004613a7f565b610632565b005b6102ec7f000000000000000000000000000000000000000000000000000000000000000081565b610364610876565b6103a86103a3366004613aaf565b6108d8565b60405190151581526020016102f6565b61036461099b565b610364610ab8565b6102ec61271081565b6103267321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b610364610b10565b6102ec60045481565b600054600160a01b900460ff166103a8565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103a8610444366004613a7f565b610b71565b6103a8610457366004613a7f565b610c7e565b600154610326906001600160a01b031681565b610477610d3d565b6040516102f69190613b0e565b610364610d4e565b6102ec610da0565b6103a86104a2366004613aaf565b610daa565b610364610e6c565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103267304068da6c83afcfa0e13ba15a6696662335d5b7581565b6000546001600160a01b0316610326565b6102ec60035481565b6102ec6101f481565b600254610326906001600160a01b031681565b61053a610535366004613b21565b610ec4565b6040516102f69190613b54565b6102ec60055481565b610364611013565b6103a8610566366004613a7f565b6110c1565b6102ec611180565b6102ec60065481565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103646105b1366004613aaf565b611307565b6103646105c4366004613c28565b6113d7565b6103a86105d7366004613a7f565b611431565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b6103646114d6565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106985760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156106fa57600080fd5b505afa15801561070e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107329190613cf7565b9050818110156107e85761074e6107498284613d26565b6120a7565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156107ad57600080fd5b505afa1580156107c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e59190613cf7565b90505b818111156107f35750805b6000612710600654836108069190613d3d565b6108109190613d5c565b90506108717f00000000000000000000000000000000000000000000000000000000000000006108408385613d26565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612164565b505050565b6000546001600160a01b031633146108be5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6108c66121ad565b6108ce612253565b6108d66123d3565b565b600080546001600160a01b031633146109215760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6001600160a01b0382166109775760405162461bcd60e51b815260206004820152600f60248201527f706172746e65722d69732d7a65726f0000000000000000000000000000000000604482015260640161068f565b50600280546001600160a01b0319166001600160a01b03831617905560015b919050565b600054600160a01b900460ff16156109e85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b333b15610a375760405162461bcd60e51b815260206004820152600960248201527f21636f6e74726163740000000000000000000000000000000000000000000000604482015260640161068f565b6000610a41611180565b9050600080610a4e6124e3565b91509150610a5b816128b3565b6000610a65611180565b9050610a6f6123d3565b604080518481526020810186905290810182905233907fe48bba143e2a0b557fa6f3234bd6ffc704518cc98c7de6a2385549fae27d1b759060600160405180910390a250505050565b6000546001600160a01b03163314610b005760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b610b0861298e565b6108d6612a16565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108d65760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b600080546001600160a01b03163314610bba5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6002546001600160a01b0316610c125760405162461bcd60e51b815260206004820152600f60248201527f706172746e65722d6e6f742d7365740000000000000000000000000000000000604482015260640161068f565b6004829055600354610c2683612710613d26565b610c309190613d26565b60058190556004546040517f71c11923856ca550fecf6bbe0185473dfb80d8513d8d5c6ad588f17daa176c2a92610c6e928252602082015260400190565b60405180910390a1506001919050565b600080546001600160a01b03163314610cc75760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6101f4821115610d085760405162461bcd60e51b815260206004820152600c60248201526b0cccaca5ae8dede5ad0d2ced60a31b604482015260640161068f565b60068290556040518281527f3790aeee57809af98fad1b89b9266c7934e03ed46702b541f2fef6f1e89d682790602001610c6e565b6060610d496009612aca565b905090565b6000546001600160a01b03163314610d965760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6108d66000612ad7565b6000610d49611180565b600080546001600160a01b03163314610df35760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6001600160a01b038216610e495760405162461bcd60e51b815260206004820152601060248201527f74726561737572792d69732d7a65726f00000000000000000000000000000000604482015260640161068f565b50600180546001600160a01b0383166001600160a01b0319909116178155919050565b6000546001600160a01b03163314610eb45760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b610ebc61298e565b6108d6612b27565b6040805180820190915260008152606060208201526040516bffffffffffffffffffffffff19606085811b8216602084015284901b16603482015260009060480160408051601f1981840301815291815281516020928301206000818152600b9093529120549091506001600160a01b0316610f825760405162461bcd60e51b815260206004820152600e60248201527f706174682d6e6f742d666f756e64000000000000000000000000000000000000604482015260640161068f565b6000818152600b60209081526040918290208251808401845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561100057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610fe2575b5050505050815250509150505b92915050565b600054600160a01b900460ff16156110605760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108ce5760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b600080546001600160a01b0316331461110a5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6101f482111561114b5760405162461bcd60e51b815260206004820152600c60248201526b0cccaca5ae8dede5ad0d2ced60a31b604482015260640161068f565b60078290556040518281527f2e59d502792bca3d730c472cd3acfbc16d0f9fe6ce0cddbdf0f80830251dfaca90602001610c6e565b6040517f93f1a40b0000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015230602482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906393f1a40b90604401604080518083038186803b15801561122257600080fd5b505afa158015611236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125a9190613d7e565b506040516370a0823160e01b815230600482015290915081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156112bf57600080fd5b505afa1580156112d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f79190613cf7565b6113019190613da2565b91505090565b6000546001600160a01b0316331461134f5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b6001600160a01b0381166113cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161068f565b6113d481612ad7565b50565b6000546001600160a01b0316331461141f5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b61142b84848484612c2d565b50505050565b600080546001600160a01b0316331461147a5760405162461bcd60e51b81526020600482018190526024820152600080516020613f79833981519152604482015260640161068f565b600382905560045461148e83612710613d26565b6114989190613d26565b60058190556003546040517f06a730aa61ec47f8cc95582be032daaf0ec4cb816c24b9c07b574ea41821048b92610c6e928252602082015260400190565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115375760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015260640161068f565b61153f610b08565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156115a157600080fd5b505afa1580156115b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d99190613cf7565b90506113d46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083612164565b600854611647906009906001600160a01b0316611733565b5061166760097304068da6c83afcfa0e13ba15a6696662335d5b75611733565b5061169360097f0000000000000000000000000000000000000000000000000000000000000000611733565b506116bf60097f0000000000000000000000000000000000000000000000000000000000000000611733565b506116df60097321be370d5312f44cb42ce377bc9b8a0cef1a4c83611733565b5061170b60097f0000000000000000000000000000000000000000000000000000000000000000611733565b506113d460097f00000000000000000000000000000000000000000000000000000000000000005b6000611748836001600160a01b038416612def565b9392505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c8314156118a4576040805160028082526060820183526000926020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106117e9576117e9613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c838160018151811061183157611831613dba565b60200260200101906001600160a01b031690816001600160a01b03168152505061189e7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c2d565b50611a5f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614611a5f5760408051600380825260808201909252600091602082016060803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061195457611954613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c838160018151811061199c5761199c613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816002815181106119f0576119f0613dba565b60200260200101906001600160a01b031690816001600160a01b031681525050611a5d7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c2d565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c831415611bb4576040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611af957611af9613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611b4157611b41613dba565b60200260200101906001600160a01b031690816001600160a01b031681525050611bae7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c2d565b50611d6f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614611d6f5760408051600380825260808201909252600091602082016060803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611c6457611c64613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611cac57611cac613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600281518110611d0057611d00613dba565b60200260200101906001600160a01b031690816001600160a01b031681525050611d6d7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000600084612c2d565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83146108d6576040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611e0857611e08613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110611e5057611e50613dba565b60200260200101906001600160a01b031690816001600160a01b0316815250506113d47f00000000000000000000000000000000000000000000000000000000000000007321be370d5312f44cb42ce377bc9b8a0cef1a4c83600084612c2d565b801580611f5357506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611f1957600080fd5b505afa158015611f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f519190613cf7565b155b611fc55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161068f565b6040516001600160a01b0383166024820152604481018290526108719084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612e3e565b6001600160a01b03811660009081526001830160205260408120541515611748565b606061209f8484600085612f23565b949350505050565b6040517f441a3e700000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063441a3e70906044015b600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b5050505050565b6040516001600160a01b0383166024820152604481018290526108719084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161200a565b600054600160a01b900460ff166122065760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161068f565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6122a96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600019611eb1565b6008546122e5906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b600854612320906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b60085461235c906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b600854612397906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b6008546108d6906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019611eb1565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561243557600080fd5b505afa158015612449573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246d9190613cf7565b604051631c57762b60e31b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e2bbb1589060440161212f565b604051631c57762b60e31b81527f000000000000000000000000000000000000000000000000000000000000000060048201526000602482018190529081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb15890604401600060405180830381600087803b15801561257057600080fd5b505af1158015612584573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a082319060240160206040518083038186803b1580156125ea57600080fd5b505afa1580156125fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126229190613cf7565b905080156128ae577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c8314612768576126c77f00000000000000000000000000000000000000000000000000000000000000007321be370d5312f44cb42ce377bc9b8a0cef1a4c83612710600754856126b89190613d3d565b6126c29190613d5c565b61306b565b6040516370a0823160e01b81523060048201529092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561272957600080fd5b505afa15801561273d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127619190613cf7565b9050612792565b612710600754826127799190613d3d565b6127839190613d5c565b915061278f8282613d26565b90505b61279b81613283565b92507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83148061282457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167321be370d5312f44cb42ce377bc9b8a0cef1a4c83145b156128ae576040516370a0823160e01b81523060048201527321be370d5312f44cb42ce377bc9b8a0cef1a4c83906370a082319060240160206040518083038186803b15801561287357600080fd5b505afa158015612887573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128ab9190613cf7565b91505b509091565b6000612710600354836128c69190613d3d565b6128d09190613d5c565b90506000612710600454846128e59190613d3d565b6128ef9190613d5c565b90506129107321be370d5312f44cb42ce377bc9b8a0cef1a4c833384612164565b600154612951906001600160a01b03168261292b8587613d26565b6129359190613d26565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c839190612164565b6002546001600160a01b03161561087157600254610871907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906001600160a01b031683612164565b600054600160a01b900460ff16156129db5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161068f565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122363390565b6040517f2f940c700000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632f940c7090604401600060405180830381600087803b158015612ab657600080fd5b505af115801561142b573d6000803e3d6000fd5b606060006117488361387e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612b7c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611eb1565b600854612bb7906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b600854612bf2906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b6008546108d6906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000611eb1565b836001600160a01b031681600081518110612c4a57612c4a613dba565b60200260200101516001600160a01b031614612c975760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b604482015260640161068f565b826001600160a01b03168160018351612cb09190613d26565b81518110612cc057612cc0613dba565b60200260200101516001600160a01b031614612d0d5760405162461bcd60e51b815260206004820152600c60248201526b0d2dcecc2d8d2c85ae0c2e8d60a31b604482015260640161068f565b612d16816138da565b6040516bffffffffffffffffffffffff19606086811b8216602084015285901b16603482015260009060480160408051601f198184030181529190528051602090910120905060006001600160a01b03841615612d735783612d80565b6008546001600160a01b03165b9050612d8b81613975565b6040805180820182526001600160a01b03838116825260208083018781526000878152600b835294909420835181546001600160a01b03191693169290921782559251805192939192612de49260018501920190613a05565b505050505050505050565b6000818152600183016020526040812054612e365750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561100d565b50600061100d565b6000612e93826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120909092919063ffffffff16565b8051909150156108715780806020019051810190612eb19190613dd0565b6108715760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161068f565b606082471015612f9b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161068f565b6001600160a01b0385163b612ff25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161068f565b600080866001600160a01b0316858760405161300e9190613e1e565b60006040518083038185875af1925050503d806000811461304b576040519150601f19603f3d011682016040523d82523d6000602084013e613050565b606091505b50915091506130608282866139cc565b979650505050505050565b6000826001600160a01b0316846001600160a01b0316141561308e575080611748565b600061309a8585610ec4565b80519091506130b5906001600160a01b038716906000611eb1565b80516130ce906001600160a01b03871690600019611eb1565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a082319060240160206040518083038186803b15801561311057600080fd5b505afa158015613124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131489190613cf7565b825160208401516040517f38ed17390000000000000000000000000000000000000000000000000000000081529293506001600160a01b03909116916338ed17399161319f91889160009130904290600401613e3a565b600060405180830381600087803b1580156131b957600080fd5b505af11580156131cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131f59190810190613e76565b506040516370a0823160e01b815230600482015281906001600160a01b038716906370a082319060240160206040518083038186803b15801561323757600080fd5b505afa15801561324b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061326f9190613cf7565b6132799190613d26565b9695505050505050565b6040516370a0823160e01b815230600482015260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156132e757600080fd5b505afa1580156132fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061331f9190613cf7565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614156133d1576133cb7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d5c565b5061358d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316141561347b576133cb7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d5c565b6134cb7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006126c2600287613d5c565b506040516370a0823160e01b815230600482015261358b907f0000000000000000000000000000000000000000000000000000000000000000907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b038316906370a082319060240160206040518083038186803b15801561355357600080fd5b505afa158015613567573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190613cf7565b505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156135ef57600080fd5b505afa158015613603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136279190613cf7565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561368c57600080fd5b505afa1580156136a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c49190613cf7565b6008546040517fe8e337000000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018690526064820184905260016084830181905260a48301523060c48301524260e483015292935091169063e8e337009061010401606060405180830381600087803b15801561379757600080fd5b505af11580156137ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137cf9190613efc565b50506040516370a0823160e01b81523060048201528491507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561383357600080fd5b505afa158015613847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386b9190613cf7565b6138759190613d26565b95945050505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156138ce57602002820191906000526020600020905b8154815260200190600101908083116138ba575b50505050509050919050565b60005b8151811015613971576139138282815181106138fb576138fb613dba565b6020026020010151600961206e90919063ffffffff16565b61395f5760405162461bcd60e51b815260206004820152601560248201527f746f6b656e2d6e6f742d77686974656c69737465640000000000000000000000604482015260640161068f565b8061396981613f2a565b9150506138dd565b5050565b61398060098261206e565b6113d45760405162461bcd60e51b815260206004820152601660248201527f726f757465722d6e6f742d77686974656c697374656400000000000000000000604482015260640161068f565b606083156139db575081611748565b8251156139eb5782518084602001fd5b8160405162461bcd60e51b815260040161068f9190613f45565b828054828255906000526020600020908101928215613a5a579160200282015b82811115613a5a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613a25565b50613a66929150613a6a565b5090565b5b80821115613a665760008155600101613a6b565b600060208284031215613a9157600080fd5b5035919050565b80356001600160a01b038116811461099657600080fd5b600060208284031215613ac157600080fd5b61174882613a98565b600081518084526020808501945080840160005b83811015613b035781516001600160a01b031687529582019590820190600101613ade565b509495945050505050565b6020815260006117486020830184613aca565b60008060408385031215613b3457600080fd5b613b3d83613a98565b9150613b4b60208401613a98565b90509250929050565b60006020808352606083016001600160a01b038086511683860152828601516040808701528281518085526080880191508583019450600092505b80831015613bb157845184168252938501936001929092019190850190613b8f565b50979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613bfc57613bfc613bbd565b604052919050565b600067ffffffffffffffff821115613c1e57613c1e613bbd565b5060051b60200190565b60008060008060808587031215613c3e57600080fd5b613c4785613a98565b93506020613c56818701613a98565b9350613c6460408701613a98565b9250606086013567ffffffffffffffff811115613c8057600080fd5b8601601f81018813613c9157600080fd5b8035613ca4613c9f82613c04565b613bd3565b81815260059190911b8201830190838101908a831115613cc357600080fd5b928401925b82841015613ce857613cd984613a98565b82529284019290840190613cc8565b979a9699509497505050505050565b600060208284031215613d0957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015613d3857613d38613d10565b500390565b6000816000190483118215151615613d5757613d57613d10565b500290565b600082613d7957634e487b7160e01b600052601260045260246000fd5b500490565b60008060408385031215613d9157600080fd5b505080516020909101519092909150565b60008219821115613db557613db5613d10565b500190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613de257600080fd5b8151801515811461174857600080fd5b60005b83811015613e0d578181015183820152602001613df5565b8381111561142b5750506000910152565b60008251613e30818460208701613df2565b9190910192915050565b85815284602082015260a060408201526000613e5960a0830186613aca565b6001600160a01b0394909416606083015250608001529392505050565b60006020808385031215613e8957600080fd5b825167ffffffffffffffff811115613ea057600080fd5b8301601f81018513613eb157600080fd5b8051613ebf613c9f82613c04565b81815260059190911b82018301908381019087831115613ede57600080fd5b928401925b8284101561306057835182529284019290840190613ee3565b600080600060608486031215613f1157600080fd5b8351925060208401519150604084015190509250925092565b6000600019821415613f3e57613f3e613d10565b5060010190565b6020815260008251806020840152613f64816040850160208701613df2565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205d6afb5120a914feb1cd5c8d70a0b53a106206e1d99a9d936812578e766e213164736f6c6343000809003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e44000000000000000000000000d343b8361ce32a9e570c1fc8d4244d32848df88b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000018b4f774fdc7bf685daeef66c2990b1ddd9ea6ad000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e44000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000e36c07fada4aa660be78e70f16684be9225779970000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

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

000000000000000000000000d343b8361ce32a9e570c1fc8d4244d32848df88b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000018b4f774fdc7bf685daeef66c2990b1ddd9ea6ad000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e44000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000e36c07fada4aa660be78e70f16684be9225779970000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

-----Decoded View---------------
Arg [0] : _want (address): 0xd343b8361ce32a9e570c1fc8d4244d32848df88b
Arg [1] : _poolId (uint256): 1
Arg [2] : _masterchef (address): 0x18b4f774fdc7bf685daeef66c2990b1ddd9ea6ad
Arg [3] : _output (address): 0xde5ed76e7c05ec5e4572cfc88d1acea165109e44
Arg [4] : _uniRouter (address): 0xf491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : _vault (address): 0xe36c07fada4aa660be78e70f16684be922577997
Arg [6] : _treasury (address): 0x8317b428082802c8aa84d670e495a0003d11368a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000d343b8361ce32a9e570c1fc8d4244d32848df88b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 00000000000000000000000018b4f774fdc7bf685daeef66c2990b1ddd9ea6ad
Arg [3] : 000000000000000000000000de5ed76e7c05ec5e4572cfc88d1acea165109e44
Arg [4] : 000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : 000000000000000000000000e36c07fada4aa660be78e70f16684be922577997
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.