Contract 0x87b7972453d03e344d4fdf8dd5bef6ca692352f1 1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7c844e6f4afc57683ceec712aef5df81fe678bcf071cec69ca649280a784b411Harvest191822632021-09-16 21:10:076 hrs 24 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0000810552
0x09f394dde701d645b82e3e81e0fe88fe70932c18b31ddb7a950f37c6d6cfbe02Harvest191822632021-09-16 21:10:076 hrs 24 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0000810552
0x3606793aed530e05f001e281a043b55ce563977ec50d9da97f4e57ac24982021Harvest191822632021-09-16 21:10:076 hrs 24 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000570596044
0xc51fcd1f01c07e9c80216ffdf11f26f73724fb65044854a558400fe66ecbaad8Harvest191821802021-09-16 21:07:176 hrs 27 mins ago0x96760540086178d9d147d081cf81b84797b85f04 IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.00068482392
0x236b0281e2153faa0118e8a9a51c0cf3823acadbc45619518cefb4d8b78a23b0Harvest191701472021-09-16 11:51:4915 hrs 42 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0000810552
0x44736932682ad947d746ebb14754c97373e421d556bd38c9e99955b1218910f9Harvest191701472021-09-16 11:51:4915 hrs 42 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000573767685
0xeecc6bfab3a0b67433ed8c74df3a851071d445d318de5b5595a0850c910038e2Harvest191701442021-09-16 11:51:4315 hrs 42 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.00057375668
0xa8d51a454a9771503659b2642f3b3f80ffc6921929336c181c3621420fb351afHarvest191701422021-09-16 11:51:3915 hrs 42 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000625644
0xd8231f73838c88a0bd1f60b1c970293d7046d4f9fb41b015c8f60a5fca7841aeHarvest191671002021-09-16 9:42:0517 hrs 52 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.00052162068
0x5dd5051e6359c93fb4d7da7abb94a0eafe9ed189b07b04de465771b6af237c9aHarvest191668932021-09-16 9:34:5917 hrs 59 mins ago0x96760540086178d9d147d081cf81b84797b85f04 IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000510798
0xeb451a0550c37a3db787904ae3f15b2331f9b9282bd4a5734dffae8ea14a3115Harvest191666312021-09-16 9:25:5918 hrs 8 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0006129456
0x5969001a2ad119da12e2ce4fe1a2a655769db562b206ee4c2603a51aa5616d62Harvest191662562021-09-16 9:08:4918 hrs 25 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0000810552
0x27fcd36fbbbbace8a3cd477080a2e317f7ddd200974d3f809bde2af5bd99534bHarvest191662562021-09-16 9:08:4918 hrs 25 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0000810552
0xba699005fce6cf1e2340a088d24ba64c683c0fd9301030f499a014453915304fHarvest191662562021-09-16 9:08:4918 hrs 25 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000067579779
0xf2773994f899b1971ccdb9a00f5b9a956c3e79c58abb305cb078ead221dc968aHarvest191662562021-09-16 9:08:4918 hrs 25 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000518747244
0xc0ca9e6bf43336666d50472d4ee749b050704552b7a93ec1148d9474117b4655Harvest191646402021-09-16 8:07:0119 hrs 27 mins ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000562418188
0xa71a064610f053f97654c3ecfd9d1d0f97fdc8a199d3952493bf3288437fcf91Harvest191499222021-09-15 22:12:571 day 5 hrs ago0x36da519a5bec67beb6477acc5386e74a04022b36 IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.001495764
0x388d3412ad82aeb27de93765e9d29f329fd6b589f04402f8b5d07f2c43969b31Harvest191387262021-09-15 14:42:241 day 12 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000511043445
0x0401ebbccd7de1abfc294e35a5b51a6030cd5d1b0c63b553034cf7b0227668cfHarvest191383852021-09-15 14:30:421 day 13 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000562122194
0xdfff83b47f20bb6d89d3a321fa2b0a565519595407f565c3452f26762fad2fc6Harvest191383422021-09-15 14:29:121 day 13 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.00056723013
0x2ee59b22207405cb991fbf75efc507d3745b58beaa78824394068e061f8f5aa9Harvest191371582021-09-15 13:43:311 day 13 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000511043395
0x9bc255042c9e531f2ee0017065c06a60f184538d54bb886dfbf2ef03b580f3d2Harvest191368602021-09-15 13:33:151 day 14 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0006129456
0x465f8bcb7acd98b69a7d39c754f6b21c65ffb8cd7a9840449ae6d59b9b109a43Harvest191364172021-09-15 13:13:421 day 14 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000511043394
0x177a34d3b09e14967df1c9f3da51c2801b18b537bba442b981d5cc552e8f84caHarvest191360882021-09-15 13:02:241 day 14 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.0006129456
0x24b500a2d51c974710e4f726c5b07c7ab723b46c485b43c4a4d032c5de5f8a21Harvest191356592021-09-15 12:44:461 day 14 hrs ago0xe793676f29ea748ecb9fa8c0050f6e256844176d IN  0x87b7972453d03e344d4fdf8dd5bef6ca692352f10 MATIC0.000625644
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x6399bbf2e094fc4e3bdf3ba52d6856508bd92c92

Contract Name:
StrategyWingsLP

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-20
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

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

pragma solidity ^0.6.2;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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"
        );
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) =
            target.call{value: weiValue}(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.6.0;

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(
            amount,
            "ERC20: transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(
            amount,
            "ERC20: burn amount exceeds balance"
        );
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

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

pragma solidity ^0.6.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

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

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

pragma solidity ^0.6.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
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() internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view 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: contracts/JETFUEL/interfaces/common/IWBNB.sol

pragma solidity ^0.6.0;

interface IWBNB {
    function deposit() external payable;

    function withdraw(uint256 wad) external;
}

// File: contracts/JETFUEL/interfaces/jetswap/IJetswapRouter.sol

pragma solidity ^0.6.0;

interface IJetswapRouter {
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);
}

// File: contracts/JETFUEL/interfaces/jetswap/IJetswapPair.sol

pragma solidity ^0.6.0;

interface IJetswapPair {
    function token0() external view returns (address);

    function token1() external view returns (address);
}

// File: contracts/JETFUEL/interfaces/jetswap/IMasterChef.sol

pragma solidity ^0.6.0;

interface IMasterChef {
    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

    function enterStaking(uint256 _amount) external;

    function leaveStaking(uint256 _amount) external;

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

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

    function emergencyWithdraw(uint256 _pid) external;
}

// File: contracts/JETFUEL/strategies/StrategyCakeLP.sol

pragma solidity ^0.6.0;

/**
 * @dev Implementation of a strategy to get yields from farming LP Pools in JetSwap.
 * JetSwap is an automated market maker (“AMM”) that allows two tokens to be exchanged on the Binance Smart Chain.
 * It is fast, cheap, and allows anyone to participate. JetSwap is aiming to be the #1 liquidity provider on BSC.
 *
 * This strategy simply deposits whatever funds it receives from the vault into the selected MasterChef pool.
 * WINGS rewards from providing liquidity are farmed every few minutes, sold and split 50/50.
 * The corresponding pair of assets are bought and more liquidity is added to the MasterChef pool.
 *
 * This strat is currently compatible with all LP pools.
 */
contract StrategyWingsLP is Ownable, Pausable {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    /**
     * @dev Tokens Used:
     * {wbnb} - Required for liquidity routing when doing swaps.
     * {wings} - Token generated by staking our funds. In this case it's the WINGS token.
     * {lpPair} - Token that the strategy maximizes. The same token that users deposit in the vault.
     * {lpToken0, lpToken1} - Tokens that the strategy maximizes. IJetswapPair tokens
     */
    address public constant wbnb =
        address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270);
    address public constant wings =
        address(0x845E76A8691423fbc4ECb8Dd77556Cb61c09eE25);

    address public lpPair;
    address public lpToken0;
    address public lpToken1;

    /**
     * @dev Third Party Contracts:
     * {unirouter} - JetSwap unirouter
     * {masterchef} - MasterChef contract
     * {poolId} - MasterChef pool id
     */
    address public constant unirouter =
        address(0x5C6EC38fb0e2609672BDf628B1fD605A523E5923);
    address public constant masterchef =
        address(0x4e22399070aD5aD7f7BEb7d3A7b543e8EcBf1d85);
    uint256 public poolId;

    /**
     * @dev Jetfuel Contracts:
     * {rewards} - Reward pool where the strategy fee earnings will go.
     * {treasury} - Address of the Jetfuel Finance treasury
     * {vault} - Address of the vault that controls the strategy's funds.
     */
    address public constant rewards =
        address(0xdF68A114Da2949ADDC4246941af9f535b40c16CE);
    address public constant treasury =
        address(0x305b0eCf72634825f7231058444c65D885E1f327);
    address public vault;

    /**
     * @dev Distribution of fees earned. This allocations relative to the % implemented on doSplit().
     * Current implementation separates 6% for fees.
     *
     * {REWARDS_FEE} - 4% goes to pWINGS reward pool.
     * {CALL_FEE} - 0.5% goes to whoever executes the harvest function as gas subsidy.
     * {TREASURY_FEE} - 1.5% goes to the treasury.
     * {MAX_FEE} - Aux const used to safely calc the correct amounts.
     *
     * {WITHDRAWAL_FEE} - Fee taxed when a user withdraws funds. 50 === 0.5% fee.
     * {WITHDRAWAL_MAX} - Aux const used to safely calc the correct amounts..
     */
    uint256 public constant REWARDS_FEE = 667;
    uint256 public constant CALL_FEE = 83;
    uint256 public constant TREASURY_FEE = 250;
    uint256 public constant MAX_FEE = 1000;

    uint256 public constant WITHDRAWAL_FEE = 50;
    uint256 public constant WITHDRAWAL_MAX = 10000;

    /**
     * @dev Routes we take to swap tokens using JetSwap.
     * {wingsToWbnbRoute} - Route we take to get from {wings} into {wbnb}.
     * {wingsToLp0Route} - Route we take to get from {wings} into {lpToken0}.
     * {wingsToLp1Route} - Route we take to get from {wings} into {lpToken1}.
     */
    address[] public wingsToWbnbRoute = [wings, wbnb];
    address[] public wingsToLp0Route;
    address[] public wingsToLp1Route;

    /**
     * @dev Initializes the strategy with the token to maximize.
     */
    constructor(
        address _lpPair,
        uint256 _poolId,
        address _vault
    ) public {
        lpPair = _lpPair;
        lpToken0 = IJetswapPair(lpPair).token1();
        lpToken1 = IJetswapPair(lpPair).token0();
        poolId = _poolId;
        vault = _vault;

        if (lpToken0 == wbnb) {
            wingsToLp0Route = [wings, wbnb];
        } else if (lpToken0 != wings) {
            wingsToLp0Route = [wings, wbnb, lpToken0];
        }

        if (lpToken1 == wbnb) {
            wingsToLp1Route = [wings, wbnb];
        } else {
            wingsToLp1Route = [wings, wbnb, lpToken1];
        }

        IERC20(wings).safeApprove(unirouter, uint256(-1));
        IERC20(wbnb).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken1).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, uint256(-1));
    }

    /**
     * @dev Function that puts the funds to work.
     * It gets called whenever someone deposits in the strategy's vault contract.
     * It deposits {lpPair} in the MasterChef to farm {wings}
     */
    function deposit() public whenNotPaused {
        uint256 pairBal = IERC20(lpPair).balanceOf(address(this));

        if (pairBal > 0) {
            IERC20(lpPair).safeApprove(masterchef, 0);
            IERC20(lpPair).safeApprove(masterchef, pairBal);
            IMasterChef(masterchef).deposit(poolId, pairBal);
        }
    }

    /**
     * @dev Withdraws funds and sents them back to the vault.
     * It withdraws {lpPair} from the MasterChef.
     * The available {lpPair} minus fees is returned to the vault.
     */
    function withdraw(uint256 _amount) external {
        require(msg.sender == vault, "!vault");

        uint256 pairBal = IERC20(lpPair).balanceOf(address(this));

        if (pairBal < _amount) {
            IMasterChef(masterchef).withdraw(poolId, _amount.sub(pairBal));
            pairBal = IERC20(lpPair).balanceOf(address(this));
        }

        if (pairBal > _amount) {
            pairBal = _amount;
        }

        uint256 withdrawalFee = pairBal.mul(WITHDRAWAL_FEE).div(WITHDRAWAL_MAX);
        IERC20(lpPair).safeTransfer(treasury, withdrawalFee);
        IERC20(lpPair).safeTransfer(vault, pairBal.sub(withdrawalFee));
    }

    /**
     * @dev Core function of the strat, in charge of collecting and re-investing rewards.
     * 1. It claims rewards from the MasterChef.
     * 2. It charges the system fees to simplify the split.
     * 3. It swaps the {wings} token for {lpToken0} & {lpToken1}
     * 4. Adds more liquidity to the pool.
     * 5. It deposits the new LP tokens.
     */
    function harvest() external whenNotPaused {
        require(!Address.isContract(msg.sender), "!contract");
        require(tx.origin == msg.sender, "!contract");
        
        IMasterChef(masterchef).deposit(poolId, 0);
        chargeFees();
        addLiquidity();
        deposit();
    }

    /**
     * @dev Takes out 6% as system fees from the rewards.
     * 0.5% -> Call Fee
     * 1.5% -> Treasury fee
     * 4% -> pWINGS Holders
     */
    function chargeFees() internal {
        uint256 toWbnb = IERC20(wings).balanceOf(address(this)).mul(6).div(100);
        IJetswapRouter(unirouter).swapExactTokensForTokens(
            toWbnb,
            0,
            wingsToWbnbRoute,
            address(this),
            now.add(600)
        );

        uint256 wbnbBal = IERC20(wbnb).balanceOf(address(this));

        uint256 callFee = wbnbBal.mul(CALL_FEE).div(MAX_FEE);
        IERC20(wbnb).safeTransfer(msg.sender, callFee);

        uint256 treasuryFee = wbnbBal.mul(TREASURY_FEE).div(MAX_FEE);
        IERC20(wbnb).safeTransfer(treasury, treasuryFee);

        uint256 rewardsFee = wbnbBal.mul(REWARDS_FEE).div(MAX_FEE);
        IERC20(wbnb).safeTransfer(rewards, rewardsFee);
    }

    /**
     * @dev Swaps {wings} for {lpToken0}, {lpToken1} & {wbnb} using JetSwap.
     */
    function addLiquidity() internal {
        uint256 toLpToken1 = IERC20(wings).balanceOf(address(this)).div(2);
        IJetswapRouter(unirouter).swapExactTokensForTokens(
            toLpToken1,
            0,
            wingsToLp1Route,
            address(this),
            now.add(600)
        );

        if (lpToken0 != wings) {
            uint256 toLpToken0 = IERC20(wings).balanceOf(address(this));
            IJetswapRouter(unirouter).swapExactTokensForTokens(
                toLpToken0,
                0,
                wingsToLp0Route,
                address(this),
                now.add(600)
            );
        }

        uint256 lp0Bal = IERC20(lpToken0).balanceOf(address(this));
        uint256 lp1Bal = IERC20(lpToken1).balanceOf(address(this));
        IJetswapRouter(unirouter).addLiquidity(
            lpToken0,
            lpToken1,
            lp0Bal,
            lp1Bal,
            1,
            1,
            address(this),
            now.add(600)
        );
    }

    /**
     * @dev Function to calculate the total underlaying {lpPair} held by the strat.
     * It takes into account both the funds in hand, as the funds allocated in the MasterChef.
     */
    function balanceOf() public view returns (uint256) {
        return balanceOfLpPair().add(balanceOfPool());
    }

    /**
     * @dev It calculates how much {lpPair} the contract holds.
     */
    function balanceOfLpPair() public view returns (uint256) {
        return IERC20(lpPair).balanceOf(address(this));
    }

    /**
     * @dev It calculates how much {lpPair} the strategy has allocated in the MasterChef
     */
    function balanceOfPool() public view returns (uint256) {
        (uint256 _amount, ) =
            IMasterChef(masterchef).userInfo(poolId, address(this));
        return _amount;
    }

    /**
     * @dev Pauses deposits. Withdraws all funds from the MasterChef, leaving rewards behind
     */
    function panic() external onlyOwner {
        _pause();
        IMasterChef(masterchef).emergencyWithdraw(poolId);
    }

    /**
     * @dev Pauses the strat.
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     * @dev Unpauses the strat.
     */
    function unpause() external onlyOwner {
        _unpause();
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_lpPair","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARDS_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfLpPair","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","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":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wbnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wings","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wingsToLp0Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wingsToLp1Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wingsToWbnbRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052604051806040016040528073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506006906002620000ab929190620010ba565b50348015620000b957600080fd5b50604051620046e1380380620046e183398181016040526060811015620000df57600080fd5b8101908080519060200190929190805190602001909291908051906020019092919050505060006200011662000b9960201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060008060146101000a81548160ff02191690831515021790555082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200027857600080fd5b505afa1580156200028d573d6000803e3d6000fd5b505050506040513d6020811015620002a457600080fd5b8101908080519060200190929190505050600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200035e57600080fd5b505afa15801562000373573d6000803e3d6000fd5b505050506040513d60208110156200038a57600080fd5b8101908080519060200190929190505050600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160048190555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156200053c57604051806040016040528073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250600790600262000535929190620010ba565b50620006a4565b73845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620006a357604051806060016040528073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506007906003620006a192919062001149565b505b5b730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415620007bd57604051806040016040528073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506008906002620007b6929190620010ba565b50620008ba565b604051806060016040528073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506008906003620008b892919062001149565b505b62000934735c6ec38fb0e2609672bdf628b1fd605a523e59237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff73845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b620009ae735c6ec38fb0e2609672bdf628b1fd605a523e59237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b62000a17735c6ec38fb0e2609672bdf628b1fd605a523e59236000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b62000a9f735c6ec38fb0e2609672bdf628b1fd605a523e59237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b62000b08735c6ec38fb0e2609672bdf628b1fd605a523e59236000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b62000b90735c6ec38fb0e2609672bdf628b1fd605a523e59237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662000ba160201b62001acd179092919060201c565b50505062001215565b600033905090565b600081148062000c73575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801562000c3457600080fd5b505afa15801562000c49573d6000803e3d6000fd5b505050506040513d602081101562000c6057600080fd5b8101908080519060200190929190505050145b62000cca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180620046ab6036913960400191505060405180910390fd5b62000d6f8363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505062000d7460201b60201c565b505050565b606062000ddd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1662000e6e60201b62001c92179092919060201c565b905060008151111562000e695780806020019051602081101562000e0057600080fd5b810190808051906020019092919050505062000e68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018062004681602a913960400191505060405180910390fd5b5b505050565b606062000e85848460008562000e8e60201b60201c565b90509392505050565b606062000ea185620010a760201b60201c565b62000f14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831062000f66578051825260208201915060208101905060208303925062000f41565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000fca576040519150601f19603f3d011682016040523d82523d6000602084013e62000fcf565b606091505b5091509150811562000fe65780925050506200109f565b60008151111562000ffa5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200106357808201518184015260208101905062001046565b50505050905090810190601f168015620010915780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b905060008111915050919050565b82805482825590600052602060002090810192821562001136579160200282015b82811115620011355782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620010db565b5b509050620011459190620011d8565b5090565b828054828255906000526020600020908101928215620011c5579160200282015b82811115620011c45782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906200116a565b5b509050620011d49190620011d8565b5090565b5b808211156200121157600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600101620011d9565b5090565b61345c80620012256000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806372321d5e1161011a578063a5d33ed5116100ad578063d68220c71161007c578063d68220c714610606578063f2fde38b1461063a578063f49f5d301461067e578063fb1db278146106d6578063fbfa77cf1461070a576101fb565b8063a5d33ed5146105a2578063bc063e1a146105c0578063c2351cdd146105de578063d0e30db0146105fc576101fb565b80638d72647e116100e95780638d72647e146104e85780638da5cb5b1461051c578063951d6d20146105505780639ec5a8941461056e576101fb565b806372321d5e146104345780638456cb591461048c578063877562b6146104965780638ce1a483146104ca576101fb565b80634641257d116101925780635ee167c0116101615780635ee167c0146103a457806361d027b3146103d8578063715018a61461040c578063722713f714610416576101fb565b80634641257d146103525780634700d3051461035c57806354518b1a146103665780635c975abb14610384576101fb565b80633bf39de5116101ce5780633bf39de5146102d85780633e0dc34e146102f65780633f4ba83a14610314578063452ed4f11461031e576101fb565b8063115880861461020057806315e636d51461021e578063257ae0de146102765780632e1a7d4d146102aa575b600080fd5b61020861073e565b6040518082815260200191505060405180910390f35b61024a6004803603602081101561023457600080fd5b8101908080359060200190929190505050610814565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61027e610850565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102d6600480360360208110156102c057600080fd5b8101908080359060200190929190505050610868565b005b6102e0610c7c565b6040518082815260200191505060405180910390f35b6102fe610c82565b6040518082815260200191505060405180910390f35b61031c610c88565b005b610326610d5a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61035a610d80565b005b610364610fc4565b005b61036e611117565b6040518082815260200191505060405180910390f35b61038c61111d565b60405180821515815260200191505060405180910390f35b6103ac611133565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103e0611159565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610414611171565b005b61041e6112f7565b6040518082815260200191505060405180910390f35b6104606004803603602081101561044a57600080fd5b810190808035906020019092919050505061131f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61049461135b565b005b61049e61142d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104d2611453565b6040518082815260200191505060405180910390f35b6104f0611458565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610524611470565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610558611499565b6040518082815260200191505060405180910390f35b61057661149e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105aa6114b6565b6040518082815260200191505060405180910390f35b6105c86114bb565b6040518082815260200191505060405180910390f35b6105e66114c1565b6040518082815260200191505060405180910390f35b61060461158c565b005b61060e611830565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61067c6004803603602081101561065057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611848565b005b6106aa6004803603602081101561069457600080fd5b8101908080359060200190929190505050611a53565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106de611a8f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610712611aa7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8573ffffffffffffffffffffffffffffffffffffffff166393f1a40b600454306040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050604080518083038186803b1580156107c557600080fd5b505afa1580156107d9573d6000803e3d6000fd5b505050506040513d60408110156107ef57600080fd5b8101908080519060200190929190805190602001909291905050505090508091505090565b6008818154811061082157fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b735c6ec38fb0e2609672bdf628b1fd605a523e592381565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461092b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f217661756c74000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156109b657600080fd5b505afa1580156109ca573d6000803e3d6000fd5b505050506040513d60208110156109e057600080fd5b8101908080519060200190929190505050905081811015610b5d57734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8573ffffffffffffffffffffffffffffffffffffffff1663441a3e70600454610a418486611caa90919063ffffffff16565b6040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015610a7e57600080fd5b505af1158015610a92573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b1f57600080fd5b505afa158015610b33573d6000803e3d6000fd5b505050506040513d6020811015610b4957600080fd5b810190808051906020019092919050505090505b81811115610b69578190505b6000610b93612710610b85603285611cf490919063ffffffff16565b611d7a90919063ffffffff16565b9050610bf673305b0ecf72634825f7231058444c65d885e1f32782600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611dc49092919063ffffffff16565b610c77600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610c2f8385611caa90919063ffffffff16565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611dc49092919063ffffffff16565b505050565b61029b81565b60045481565b610c90611e66565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d50576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610d58611e6e565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060149054906101000a900460ff1615610e03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610e0c33611f60565b15610e7f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f21636f6e7472616374000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f21636f6e7472616374000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8573ffffffffffffffffffffffffffffffffffffffff1663e2bbb15860045460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015610f9257600080fd5b505af1158015610fa6573d6000803e3d6000fd5b50505050610fb2611f73565b610fba61247b565b610fc261158c565b565b610fcc611e66565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461108c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611094612d88565b734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8573ffffffffffffffffffffffffffffffffffffffff16635312ea8e6004546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156110fd57600080fd5b505af1158015611111573d6000803e3d6000fd5b50505050565b61271081565b60008060149054906101000a900460ff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73305b0ecf72634825f7231058444c65d885e1f32781565b611179611e66565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611239576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600061131a61130461073e565b61130c6114c1565b612e7c90919063ffffffff16565b905090565b6006818154811061132c57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611363611e66565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611423576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61142b612d88565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60fa81565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b605381565b73df68a114da2949addc4246941af9f535b40c16ce81565b603281565b6103e881565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561154c57600080fd5b505afa158015611560573d6000803e3d6000fd5b505050506040513d602081101561157657600080fd5b8101908080519060200190929190505050905090565b600060149054906101000a900460ff161561160f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561169a57600080fd5b505afa1580156116ae573d6000803e3d6000fd5b505050506040513d60208110156116c457600080fd5b81019080805190602001909291905050509050600081111561182d57611742734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d856000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611acd9092919063ffffffff16565b6117a3734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8582600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611acd9092919063ffffffff16565b734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8573ffffffffffffffffffffffffffffffffffffffff1663e2bbb158600454836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561181457600080fd5b505af1158015611828573d6000803e3d6000fd5b505050505b50565b73845e76a8691423fbc4ecb8dd77556cb61c09ee2581565b611850611e66565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611996576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806133806026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60078181548110611a6057fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b734e22399070ad5ad7f7beb7d3a7b543e8ecbf1d8581565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000811480611b9b575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015611b5e57600080fd5b505afa158015611b72573d6000803e3d6000fd5b505050506040513d6020811015611b8857600080fd5b8101908080519060200190929190505050145b611bf0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806133f16036913960400191505060405180910390fd5b611c8d8363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612f04565b505050565b6060611ca18484600085612ff3565b90509392505050565b6000611cec83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131f9565b905092915050565b600080831415611d075760009050611d74565b6000828402905082848281611d1857fe5b0414611d6f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806133a66021913960400191505060405180910390fd5b809150505b92915050565b6000611dbc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506132b9565b905092915050565b611e618363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612f04565b505050565b600033905090565b600060149054906101000a900460ff16611ef0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611f33611e66565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b600080823b905060008111915050919050565b60006120516064612043600673845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611ffa57600080fd5b505afa15801561200e573d6000803e3d6000fd5b505050506040513d602081101561202457600080fd5b8101908080519060200190929190505050611cf490919063ffffffff16565b611d7a90919063ffffffff16565b9050735c6ec38fb0e2609672bdf628b1fd605a523e592373ffffffffffffffffffffffffffffffffffffffff166338ed173982600060063061209e61025842612e7c90919063ffffffff16565b6040518663ffffffff1660e01b815260040180868152602001858152602001806020018473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818154815260200191508054801561215657602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161210c575b50509650505050505050600060405180830381600087803b15801561217a57600080fd5b505af115801561218e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060208110156121b857600080fd5b81019080805160405193929190846401000000008211156121d857600080fd5b838201915060208201858111156121ee57600080fd5b825186602082028301116401000000008211171561220b57600080fd5b8083526020830192505050908051906020019060200280838360005b83811015612242578082015181840152602081019050612227565b50505050905001604052505050506000730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156122cd57600080fd5b505afa1580156122e1573d6000803e3d6000fd5b505050506040513d60208110156122f757600080fd5b8101908080519060200190929190505050905060006123346103e8612326605385611cf490919063ffffffff16565b611d7a90919063ffffffff16565b90506123753382730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff16611dc49092919063ffffffff16565b600061239f6103e861239160fa86611cf490919063ffffffff16565b611d7a90919063ffffffff16565b90506123f473305b0ecf72634825f7231058444c65d885e1f32782730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff16611dc49092919063ffffffff16565b600061241f6103e861241161029b87611cf490919063ffffffff16565b611d7a90919063ffffffff16565b905061247473df68a114da2949addc4246941af9f535b40c16ce82730d500b1d8e8ef31e21c99d1db9a6444d3adf127073ffffffffffffffffffffffffffffffffffffffff16611dc49092919063ffffffff16565b5050505050565b6000612546600273845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156124fd57600080fd5b505afa158015612511573d6000803e3d6000fd5b505050506040513d602081101561252757600080fd5b8101908080519060200190929190505050611d7a90919063ffffffff16565b9050735c6ec38fb0e2609672bdf628b1fd605a523e592373ffffffffffffffffffffffffffffffffffffffff166338ed173982600060083061259361025842612e7c90919063ffffffff16565b6040518663ffffffff1660e01b815260040180868152602001858152602001806020018473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818154815260200191508054801561264b57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612601575b50509650505050505050600060405180830381600087803b15801561266f57600080fd5b505af1158015612683573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060208110156126ad57600080fd5b81019080805160405193929190846401000000008211156126cd57600080fd5b838201915060208201858111156126e357600080fd5b825186602082028301116401000000008211171561270057600080fd5b8083526020830192505050908051906020019060200280838360005b8381101561273757808201518184015260208101905061271c565b505050509050016040525050505073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612a6757600073845e76a8691423fbc4ecb8dd77556cb61c09ee2573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561282b57600080fd5b505afa15801561283f573d6000803e3d6000fd5b505050506040513d602081101561285557600080fd5b81019080805190602001909291905050509050735c6ec38fb0e2609672bdf628b1fd605a523e592373ffffffffffffffffffffffffffffffffffffffff166338ed17398260006007306128b361025842612e7c90919063ffffffff16565b6040518663ffffffff1660e01b815260040180868152602001858152602001806020018473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818154815260200191508054801561296b57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612921575b50509650505050505050600060405180830381600087803b15801561298f57600080fd5b505af11580156129a3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060208110156129cd57600080fd5b81019080805160405193929190846401000000008211156129ed57600080fd5b83820191506020820185811115612a0357600080fd5b8251866020820283011164010000000082111715612a2057600080fd5b8083526020830192505050908051906020019060200280838360005b83811015612a57578082015181840152602081019050612a3c565b5050505090500160405250505050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612af257600080fd5b505afa158015612b06573d6000803e3d6000fd5b505050506040513d6020811015612b1c57600080fd5b810190808051906020019092919050505090506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612bba57600080fd5b505afa158015612bce573d6000803e3d6000fd5b505050506040513d6020811015612be457600080fd5b81019080805190602001909291905050509050735c6ec38fb0e2609672bdf628b1fd605a523e592373ffffffffffffffffffffffffffffffffffffffff1663e8e33700600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16858560018030612c8861025842612e7c90919063ffffffff16565b6040518963ffffffff1660e01b8152600401808973ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200198505050505050505050606060405180830381600087803b158015612d3157600080fd5b505af1158015612d45573d6000803e3d6000fd5b505050506040513d6060811015612d5b57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050505050505050565b600060149054906101000a900460ff1615612e0b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612e4f611e66565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b600080828401905083811015612efa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6060612f66826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c929092919063ffffffff16565b9050600081511115612fee57808060200190516020811015612f8757600080fd5b8101908080519060200190929190505050612fed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806133c7602a913960400191505060405180910390fd5b5b505050565b6060612ffe85611f60565b613070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106130c0578051825260208201915060208101905060208303925061309d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613122576040519150601f19603f3d011682016040523d82523d6000602084013e613127565b606091505b5091509150811561313c5780925050506131f1565b60008151111561314f5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156131b657808201518184015260208101905061319b565b50505050905090810190601f1680156131e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b60008383111582906132a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561326b578082015181840152602081019050613250565b50505050905090810190601f1680156132985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290613365576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561332a57808201518184015260208101905061330f565b50505050905090810190601f1680156133575780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161337157fe5b04905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a264697066735822122093514e25f6de6aec20fe3da316d9cd16382cac440f4209c5696c21bd6c358ddc64736f6c634300060c00335361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000a0a6e9a5185d5737cf6f7920cb417ea2f07f03b300000000000000000000000000000000000000000000000000000000000000020000000000000000000000005725356da7f05322148f19fd10f89e846048d1f3

Deployed ByteCode Sourcemap

40526:9697:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49542:189;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43578:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;41533:96;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;45476:658;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42880:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41740:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50153:67;;;:::i;:::-;;41268:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;46514:301;;;:::i;:::-;;49851:123;;;:::i;:::-;;43118:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;35348:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;41296:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;42130:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2765:148;;;:::i;:::-;;49098:115;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43483:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;50031:63;;;:::i;:::-;;41326:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;42972:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41069:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2123:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;42928:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;42029:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;43068:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43021:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;49304:122;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44930:338;;;:::i;:::-;;41167:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3068:281;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;43539:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;41636:97;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;42232:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;49542:189;49588:7;49609:15;41690:42;49643:32;;;49676:6;;49692:4;49643:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49608:90;;;49716:7;49709:14;;;49542:189;:::o;43578:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41533:96::-;41586:42;41533:96;:::o;45476:658::-;45553:5;;;;;;;;;;;45539:19;;:10;:19;;;45531:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45582:15;45607:6;;;;;;;;;;;45600:24;;;45633:4;45600:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45582:57;;45666:7;45656;:17;45652:176;;;41690:42;45690:32;;;45723:6;;45731:20;45743:7;45731;:11;;:20;;;;:::i;:::-;45690:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45784:6;;;;;;;;;;;45777:24;;;45810:4;45777:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45767:49;;45652:176;45854:7;45844;:17;45840:67;;;45888:7;45878:17;;45840:67;45919:21;45943:47;43159:5;45943:27;43109:2;45943:7;:11;;:27;;;;:::i;:::-;:31;;:47;;;;:::i;:::-;45919:71;;46001:52;42182:42;46039:13;46008:6;;;;;;;;;;;46001:27;;;;:52;;;;;:::i;:::-;46064:62;46092:5;;;;;;;;;;;46099:26;46111:13;46099:7;:11;;:26;;;;:::i;:::-;46071:6;;;;;;;;;;;46064:27;;;;:62;;;;;:::i;:::-;45476:658;;;:::o;42880:41::-;42918:3;42880:41;:::o;41740:21::-;;;;:::o;50153:67::-;2345:12;:10;:12::i;:::-;2335:22;;:6;;;;;;;;;;:22;;;2327:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50202:10:::1;:8;:10::i;:::-;50153:67::o:0;41268:21::-;;;;;;;;;;;;;:::o;46514:301::-;35666:7;;;;;;;;;;;35665:8;35657:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46576:30:::1;46595:10;46576:18;:30::i;:::-;46575:31;46567:53;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;46652:10;46639:23;;:9;:23;;;46631:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;41690:42;46697:31;;;46729:6;;46737:1;46697:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46750:12;:10;:12::i;:::-;46773:14;:12;:14::i;:::-;46798:9;:7;:9::i;:::-;46514:301::o:0;49851:123::-;2345:12;:10;:12::i;:::-;2335:22;;:6;;;;;;;;;;:22;;;2327:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49898:8:::1;:6;:8::i;:::-;41690:42;49917:41;;;49959:6;;49917:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;49851:123::o:0;43118:46::-;43159:5;43118:46;:::o;35348:78::-;35387:4;35411:7;;;;;;;;;;;35404:14;;35348:78;:::o;41296:23::-;;;;;;;;;;;;;:::o;42130:95::-;42182:42;42130:95;:::o;2765:148::-;2345:12;:10;:12::i;:::-;2335:22;;:6;;;;;;;;;;:22;;;2327:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2872:1:::1;2835:40;;2856:6;::::0;::::1;;;;;;;;2835:40;;;;;;;;;;;;2903:1;2886:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;2765:148::o:0;49098:115::-;49140:7;49167:38;49189:15;:13;:15::i;:::-;49167:17;:15;:17::i;:::-;:21;;:38;;;;:::i;:::-;49160:45;;49098:115;:::o;43483:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;50031:63::-;2345:12;:10;:12::i;:::-;2335:22;;:6;;;;;;;;;;:22;;;2327:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50078:8:::1;:6;:8::i;:::-;50031:63::o:0;41326:23::-;;;;;;;;;;;;;:::o;42972:42::-;43011:3;42972:42;:::o;41069:91::-;41117:42;41069:91;:::o;2123:79::-;2161:7;2188:6;;;;;;;;;;;2181:13;;2123:79;:::o;42928:37::-;42963:2;42928:37;:::o;42029:94::-;42080:42;42029:94;:::o;43068:43::-;43109:2;43068:43;:::o;43021:38::-;43055:4;43021:38;:::o;49304:122::-;49352:7;49386:6;;;;;;;;;;;49379:24;;;49412:4;49379:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49372:46;;49304:122;:::o;44930:338::-;35666:7;;;;;;;;;;;35665:8;35657:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44981:15:::1;45006:6;;;;;;;;;;;44999:24;;;45032:4;44999:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;44981:57;;45065:1;45055:7;:11;45051:210;;;45083:41;41690:42;45122:1;45090:6;;;;;;;;;;;45083:26;;;;:41;;;;;:::i;:::-;45139:47;41690:42;45178:7;45146:6;;;;;;;;;;;45139:26;;;;:47;;;;;:::i;:::-;41690:42;45201:31;;;45233:6;;45241:7;45201:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;45051:210;35705:1;44930:338::o:0;41167:92::-;41216:42;41167:92;:::o;3068:281::-;2345:12;:10;:12::i;:::-;2335:22;;:6;;;;;;;;;;:22;;;2327:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3191:1:::1;3171:22;;:8;:22;;;;3149:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3304:8;3275:38;;3296:6;::::0;::::1;;;;;;;;3275:38;;;;;;;;;;;;3333:8;3324:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;3068:281:::0;:::o;43539:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41636:97::-;41690:42;41636:97;:::o;42232:20::-;;;;;;;;;;;;;:::o;31311:707::-;31738:1;31729:5;:10;31728:62;;;;31788:1;31745:5;:15;;;31769:4;31776:7;31745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:44;31728:62;31706:166;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31883:127;31917:5;31960:22;;;31984:7;31993:5;31937:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31883:19;:127::i;:::-;31311:707;;;:::o;15550:230::-;15687:12;15719:53;15742:6;15750:4;15756:1;15759:12;15719:22;:53::i;:::-;15712:60;;15550:230;;;;;:::o;7653:136::-;7711:7;7738:43;7742:1;7745;7738:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;7731:50;;7653:136;;;;:::o;8577:471::-;8635:7;8885:1;8880;:6;8876:47;;;8910:1;8903:8;;;;8876:47;8935:9;8951:1;8947;:5;8935:17;;8980:1;8975;8971;:5;;;;;;:10;8963:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9039:1;9032:8;;;8577:471;;;;;:::o;9524:132::-;9582:7;9609:39;9613:1;9616;9609:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;9602:46;;9524:132;;;;:::o;30501:248::-;30618:123;30652:5;30695:23;;;30720:2;30724:5;30672:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30618:19;:123::i;:::-;30501:248;;;:::o;655:106::-;708:15;743:10;736:17;;655:106;:::o;36397:120::-;35942:7;;;;;;;;;;;35934:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36466:5:::1;36456:7:::0;::::1;:15;;;;;;;;;;;;;;;;;;36487:22;36496:12;:10;:12::i;:::-;36487:22;;;;;;;;;;;;;;;;;;;;36397:120::o:0;12513:444::-;12573:4;12781:12;12905:7;12893:20;12885:28;;12948:1;12941:4;:8;12934:15;;;12513:444;;;:::o;46983:766::-;47025:14;47042:54;47092:3;47042:45;47085:1;41216:42;47042:23;;;47074:4;47042:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:42;;:45;;;;:::i;:::-;:49;;:54;;;;:::i;:::-;47025:71;;41586:42;47107:50;;;47172:6;47193:1;47209:16;47248:4;47268:12;47276:3;47268;:7;;:12;;;;:::i;:::-;47107:184;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47304:15;41117:42;47322:22;;;47353:4;47322:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47304:55;;47372:15;47390:34;43055:4;47390:21;42963:2;47390:7;:11;;:21;;;;:::i;:::-;:25;;:34;;;;:::i;:::-;47372:52;;47435:46;47461:10;47473:7;41117:42;47435:25;;;;:46;;;;;:::i;:::-;47494:19;47516:38;43055:4;47516:25;43011:3;47516:7;:11;;:25;;;;:::i;:::-;:29;;:38;;;;:::i;:::-;47494:60;;47565:48;42182:42;47601:11;41117:42;47565:25;;;;:48;;;;;:::i;:::-;47626:18;47647:37;43055:4;47647:24;42918:3;47647:7;:11;;:24;;;;:::i;:::-;:28;;:37;;;;:::i;:::-;47626:58;;47695:46;42080:42;47730:10;41117:42;47695:25;;;;:46;;;;;:::i;:::-;46983:766;;;;;:::o;47853:1038::-;47897:18;47918:45;47961:1;41216:42;47918:23;;;47950:4;47918:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:42;;:45;;;;:::i;:::-;47897:66;;41586:42;47974:50;;;48039:10;48064:1;48080:15;48118:4;48138:12;48146:3;48138;:7;;:12;;;;:::i;:::-;47974:187;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41216:42;48178:17;;:8;;;;;;;;;;;:17;;;48174:335;;48212:18;41216:42;48233:23;;;48265:4;48233:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48212:59;;41586:42;48286:50;;;48355:10;48384:1;48404:15;48446:4;48470:12;48478:3;48470;:7;;:12;;;;:::i;:::-;48286:211;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48174:335;;48521:14;48545:8;;;;;;;;;;;48538:26;;;48573:4;48538:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48521:58;;48590:14;48614:8;;;;;;;;;;;48607:26;;;48642:4;48607:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48590:58;;41586:42;48659:38;;;48712:8;;;;;;;;;;;48735;;;;;;;;;;;48758:6;48779;48800:1;48816;48840:4;48860:12;48868:3;48860;:7;;:12;;;;:::i;:::-;48659:224;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47853:1038;;;:::o;36138:118::-;35666:7;;;;;;;;;;;35665:8;35657:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36208:4:::1;36198:7;;:14;;;;;;;;;;;;;;;;;;36228:20;36235:12;:10;:12::i;:::-;36228:20;;;;;;;;;;;;;;;;;;;;36138:118::o:0;7189:181::-;7247:7;7267:9;7283:1;7279;:5;7267:17;;7308:1;7303;:6;;7295:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7361:1;7354:8;;;7189:181;;;;:::o;33391:885::-;33815:23;33854:118;33900:4;33854:118;;;;;;;;;;;;;;;;;33862:5;33854:27;;;;:118;;;;;:::i;:::-;33815:157;;34007:1;33987:10;:17;:21;33983:286;;;34160:10;34149:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34123:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33983:286;33391:885;;;:::o;17171:1033::-;17344:12;17377:18;17388:6;17377:10;:18::i;:::-;17369:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17503:12;17517:23;17557:6;:11;;17576:8;17586:4;17557:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17502:89;;;;17606:7;17602:595;;;17637:10;17630:17;;;;;;17602:595;17771:1;17751:10;:17;:21;17747:439;;;18014:10;18008:17;18075:15;18062:10;18058:2;18054:19;18047:44;17962:148;18157:12;18150:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17171:1033;;;;;;;:::o;8092:226::-;8212:7;8245:1;8240;:6;;8248:12;8232:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8272:9;8288:1;8284;:5;8272:17;;8309:1;8302:8;;;8092:226;;;;;:::o;10152:312::-;10272:7;10304:1;10300;:5;10307:12;10292:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10331:9;10347:1;10343;:5;;;;;;10331:17;;10455:1;10448:8;;;10152:312;;;;;:::o

Swarm Source

ipfs://93514e25f6de6aec20fe3da316d9cd16382cac440f4209c5696c21bd6c358ddc
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.