Contract 0x21D4569ea40c779Df0D19592195857e9A790Da18

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb2c2a8eafe816abd63260835b4921630d8277d49aaa6045216869f8c377bb2eeTransfer Ownersh...195109952021-09-25 21:01:1225 days 13 hrs ago0xbc96cb7a856159a066a1f70f7dd32a07f1749c47 IN  0x21d4569ea40c779df0d19592195857e9a790da180 MATIC0.000143225
0xad17174ccb3cbc4f567552e8aad859df4c998cee922c0ece9d17b97b01f7f519Initialize195109902021-09-25 21:01:0225 days 13 hrs ago0xbc96cb7a856159a066a1f70f7dd32a07f1749c47 IN  0x21d4569ea40c779df0d19592195857e9a790da180 MATIC0.00098342
0xe3fa8d749127165ca0e9dad2f6143e5e8be33fa5e20156b32597b636b9612b210x60806040195109852021-09-25 21:00:5225 days 13 hrs ago0xbc96cb7a856159a066a1f70f7dd32a07f1749c47 IN  Contract Creation0 MATIC0.014902825
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ACMasterChef

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : ACMasterChef.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

import './AutoCompoundStrategy.sol';

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

    function withdraw(uint256 _pid, uint256 _amount) external;

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

    function emergencyWithdraw(uint256 _pid) external;
}

/**
 * @title AutoCompound MasterChef
 * @notice strategy for auto-compounding on pools using a standard MasterChef contract
 * @author YieldWolf
 */
contract ACMasterChef is AutoCompoundStrategy {
    using SafeERC20 for IERC20;

    function _farmDeposit(uint256 amount) internal override {
        IERC20(stakeToken).safeIncreaseAllowance(masterChef, amount);
        IFarm(masterChef).deposit(pid, amount);
    }

    function _farmWithdraw(uint256 amount) internal override {
        IFarm(masterChef).withdraw(pid, amount);
    }

    function _farmEmergencyWithdraw() internal override {
        IFarm(masterChef).emergencyWithdraw(pid);
    }

    function _totalStaked() internal view override returns (uint256 amount) {
        (amount, ) = IFarm(masterChef).userInfo(pid, address(this));
    }
}

File 2 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 15 : AutoCompoundStrategy.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';

import '../interfaces/IWETH.sol';
import '../interfaces/IYieldWolf.sol';

/**
 * @title Auto Compound Strategy
 * @notice handles deposits and withdraws on the underlying farm and auto-compound rewards
 * @author YieldWolf
 */
abstract contract AutoCompoundStrategy is Ownable, ReentrancyGuard, Pausable {
    using SafeERC20 for IERC20;

    IYieldWolf public yieldWolf; // address of the YieldWolf staking contract
    address public masterChef; // address of the farm staking contract
    uint256 public pid; // pid of pool in the farm staking contract
    IERC20 public stakeToken; // token staked on the underlying farm
    IERC20 public token0; // first token of the lp (or 0 if it's a single token)
    IERC20 public token1; // second token of the lp (or 0 if it's a single token)
    IERC20 public earnToken; // reward token paid by the underlying farm
    address[] public extraEarnTokens; // some underlying farms can give rewards in multiple tokens
    IUniswapV2Router02 public swapRouter; // router used for swapping tokens
    IUniswapV2Router02 public liquidityRouter; // router used for adding liquidity to the LP token
    address public WNATIVE; // address of the network's native currency (e.g. ETH)
    bool public swapRouterEnabled = true; // if true it will use swap router for token swaps, otherwise liquidity router

    mapping(address => mapping(address => address[])) public swapPath; // paths for swapping 2 given tokens

    uint256 public sharesTotal = 0;
    bool public initialized;
    bool public emergencyWithdrawn;

    event Initialize();
    event Farm();
    event Pause();
    event Unpause();
    event EmergencyWithdraw();
    event TokenToEarn(address token);
    event WrapNative();

    modifier onlyOperator() {
        require(IYieldWolf(yieldWolf).operators(msg.sender), 'onlyOperator: NOT_ALLOWED');
        _;
    }

    function _farmDeposit(uint256 depositAmount) internal virtual;

    function _farmWithdraw(uint256 withdrawAmount) internal virtual;

    function _farmEmergencyWithdraw() internal virtual;

    function _totalStaked() internal view virtual returns (uint256);

    receive() external payable {}

    /**
     * @notice initializes the strategy
     * @dev similar to constructor but makes it easier for inheritance and for creating strategies from contracts
     * @param _pid the id of the pool in the farm's staking contract
     * @param _isLpToken whether the given stake token is a lp or a single token
     * @param _addresses list of addresses
     * @param _earnToToken0Path swap path from earn token to token0
     * @param _earnToToken1Path swap path from earn token to token1
     * @param _token0ToEarnPath swap path from token0 to earn token
     * @param _token1ToEarnPath swap path from token1 to earn token
     */
    function initialize(
        uint256 _pid,
        bool _isLpToken,
        address[7] calldata _addresses,
        address[] calldata _earnToToken0Path,
        address[] calldata _earnToToken1Path,
        address[] calldata _token0ToEarnPath,
        address[] calldata _token1ToEarnPath
    ) external onlyOwner {
        require(!initialized, 'initialize: ALREADY_INITIALIZED');
        initialized = true;
        yieldWolf = IYieldWolf(_addresses[0]);
        stakeToken = IERC20(_addresses[1]);
        earnToken = IERC20(_addresses[2]);
        masterChef = _addresses[3];
        swapRouter = IUniswapV2Router02(_addresses[4]);
        liquidityRouter = IUniswapV2Router02(_addresses[5]);
        WNATIVE = _addresses[6];
        if (_isLpToken) {
            token0 = IERC20(IUniswapV2Pair(_addresses[1]).token0());
            token1 = IERC20(IUniswapV2Pair(_addresses[1]).token1());
            swapPath[address(earnToken)][address(token0)] = _earnToToken0Path;
            swapPath[address(earnToken)][address(token1)] = _earnToToken1Path;
            swapPath[address(token0)][address(earnToken)] = _token0ToEarnPath;
            swapPath[address(token1)][address(earnToken)] = _token1ToEarnPath;
        } else {
            swapPath[address(earnToken)][address(stakeToken)] = _earnToToken0Path;
            swapPath[address(stakeToken)][address(earnToken)] = _token0ToEarnPath;
        }
        pid = _pid;
        emit Initialize();
    }

    /**
     * @notice deposits stake tokens in the underlying farm
     * @dev can only be called by YieldWolf contract which performs the required validations and logging
     * @param _depositAmount amount deposited by the user
     */
    function deposit(uint256 _depositAmount) external virtual onlyOwner nonReentrant whenNotPaused returns (uint256) {
        uint256 depositFee = (_depositAmount * yieldWolf.depositFee()) / 10000;
        _depositAmount = _depositAmount - depositFee;
        if (depositFee > 0) {
            stakeToken.safeTransfer(yieldWolf.feeAddress(), depositFee);
        }

        uint256 totalStakedBefore = totalStakeTokens() - _depositAmount;
        _farm();
        uint256 totalStakedAfter = totalStakeTokens();

        // adjust for deposit fees on the underlying farm and token transfer fees
        _depositAmount = totalStakedAfter - totalStakedBefore;

        uint256 sharesAdded = _depositAmount;
        if (totalStakedBefore > 0 && sharesTotal > 0) {
            sharesAdded = (_depositAmount * sharesTotal) / totalStakedBefore;
        }
        sharesTotal = sharesTotal + sharesAdded;

        return sharesAdded;
    }

    /**
     * @notice unstake tokens from the underlying farm and transfers them to the given address
     * @dev can only be called by YieldWolf contract which performs the required validations and logging
     * @param _withdrawAmount maximum amount to withdraw
     * @param _withdrawTo address that will receive the stake tokens
     * @param _bountyHunter address of the bounty hunter who execute the rule or the zero address if it's not a rule execution
     * @param _ruleFeeAmount how much to pay in concept of rule execution fees
     */
    function withdraw(
        uint256 _withdrawAmount,
        address _withdrawTo,
        address _bountyHunter,
        uint256 _ruleFeeAmount
    ) external virtual onlyOwner nonReentrant returns (uint256) {
        uint256 totalStakedOnFarm = _totalStaked();
        uint256 totalStake = totalStakeTokens();

        // number of shares that the withdraw amount represents (rounded up)
        uint256 sharesRemoved = (_withdrawAmount * sharesTotal - 1) / totalStake + 1;

        if (sharesRemoved > sharesTotal) {
            sharesRemoved = sharesTotal;
        }
        sharesTotal = sharesTotal - sharesRemoved;

        if (totalStakedOnFarm > 0) {
            _farmWithdraw(_withdrawAmount);
        }

        uint256 stakeBalance = stakeToken.balanceOf(address(this));
        if (_withdrawAmount > stakeBalance) {
            _withdrawAmount = stakeBalance;
        }

        if (totalStake < _withdrawAmount) {
            _withdrawAmount = totalStake;
        }

        // apply rule execution fees
        if (_bountyHunter != address(0)) {
            uint256 bountyRuleFee = (_ruleFeeAmount * yieldWolf.ruleFeeBountyPct()) / 10000;
            uint256 platformRuleFee = _ruleFeeAmount - bountyRuleFee;
            if (bountyRuleFee > 0) {
                stakeToken.safeTransfer(_bountyHunter, bountyRuleFee);
            }
            if (platformRuleFee > 0) {
                stakeToken.safeTransfer(yieldWolf.feeAddress(), platformRuleFee);
            }
            _withdrawAmount -= _ruleFeeAmount;
        }

        // apply withdraw fees
        uint256 withdrawFee = (_withdrawAmount * yieldWolf.withdrawFee()) / 10000;
        if (withdrawFee > 0) {
            _withdrawAmount -= withdrawFee;
            stakeToken.safeTransfer(yieldWolf.feeAddress(), withdrawFee);
        }

        stakeToken.safeTransfer(_withdrawTo, _withdrawAmount);

        return sharesRemoved;
    }

    /**
     * @notice deposits the contract's balance of stake tokens in the underlying farm
     */
    function farm() external virtual nonReentrant whenNotPaused {
        _farm();
        emit Farm();
    }

    /**
     * @notice harvests earn tokens and deposits stake tokens in the underlying farm
     * @dev can only be called by YieldWolf contract which performs the required validations and logging
     *      if the contract is paused, this function becomes a no-op
     * @param _bountyHunter address that will get paid the bounty reward
     */
    function earn(address _bountyHunter) external virtual onlyOwner returns (uint256 bountyReward) {
        if (paused()) {
            return 0;
        }

        // harvest earn tokens
        uint256 earnAmountBefore = earnToken.balanceOf(address(this));
        _farmHarvest();

        if (address(earnToken) == WNATIVE) {
            wrapNative();
        }

        for (uint256 i; i < extraEarnTokens.length; i++) {
            tokenToEarn(extraEarnTokens[i]);
        }

        uint256 harvestAmount = earnToken.balanceOf(address(this)) - earnAmountBefore;

        if (harvestAmount > 0) {
            bountyReward = _distributeFees(harvestAmount, _bountyHunter);
        }
        uint256 earnAmount = earnToken.balanceOf(address(this));

        // if no token0, then stake token is a single token: Swap earn token for stake token
        if (address(token0) == address(0)) {
            if (stakeToken != earnToken) {
                _safeSwap(earnAmount, swapPath[address(earnToken)][address(stakeToken)], address(this), false);
            }
            _farm();
            return bountyReward;
        }

        // stake token is a LP token: Swap earn token for token0 and token1 and add liquidity
        if (earnToken != token0) {
            _safeSwap(earnAmount / 2, swapPath[address(earnToken)][address(token0)], address(this), false);
        }
        if (earnToken != token1) {
            _safeSwap(earnAmount / 2, swapPath[address(earnToken)][address(token1)], address(this), false);
        }
        uint256 token0Amt = token0.balanceOf(address(this));
        uint256 token1Amt = token1.balanceOf(address(this));
        if (token0Amt > 0 && token1Amt > 0) {
            token0.safeIncreaseAllowance(address(liquidityRouter), token0Amt);
            token1.safeIncreaseAllowance(address(liquidityRouter), token1Amt);
            liquidityRouter.addLiquidity(
                address(token0),
                address(token1),
                token0Amt,
                token1Amt,
                0,
                0,
                address(this),
                block.timestamp
            );
        }

        _farm();
        return bountyReward;
    }

    /**
     * @notice pauses the strategy in case of emergency
     * @dev can only be called by the operator. Only in case of emergency.
     */
    function pause() external virtual onlyOperator {
        _pause();
        emit Pause();
    }

    /**
     * @notice unpauses the strategy
     * @dev can only be called by the operator
     */
    function unpause() external virtual onlyOperator {
        require(!emergencyWithdrawn, 'unpause: CANNOT_UNPAUSE_AFTER_EMERGENCY_WITHDRAW');
        _unpause();
        emit Unpause();
    }

    /**
     * @notice enables or disables the swap router used for swapping earn tokens to stake tokens
     * @dev can only be called by YieldWolf contract which already performs the required validations and logging
     */
    function setSwapRouterEnabled(bool _enabled) external virtual onlyOwner {
        swapRouterEnabled = _enabled;
    }

    /**
     * @notice updates the swap path for a given pair
     * @dev can only be called by YieldWolf contract which already performs the required validations and logging
     */
    function setSwapPath(
        address _token0,
        address _token1,
        address[] calldata _path
    ) external virtual onlyOwner {
        swapPath[_token0][_token1] = _path;
    }

    /**
     * @notice updates the list of extra earn tokens
     * @dev can only be called by YieldWolf contract which already performs the required validations and logging
     */
    function setExtraEarnTokens(address[] calldata _extraEarnTokens) external virtual onlyOwner {
        extraEarnTokens = _extraEarnTokens;
    }

    /**
     * @notice converts any token in the contract into earn tokens
     * @dev it uses the predefined path if it exists or defaults to use WNATIVE
     */
    function tokenToEarn(address _token) public virtual nonReentrant whenNotPaused {
        uint256 amount = IERC20(_token).balanceOf(address(this));
        if (amount > 0 && _token != address(earnToken) && _token != address(stakeToken)) {
            address[] memory path = swapPath[_token][address(earnToken)];
            if (path.length == 0) {
                if (_token == WNATIVE) {
                    path = new address[](2);
                    path[0] = _token;
                    path[1] = address(earnToken);
                } else {
                    path = new address[](3);
                    path[0] = _token;
                    path[1] = WNATIVE;
                    path[2] = address(earnToken);
                }
            }
            if (path[0] != address(earnToken) && path[0] != address(stakeToken)) {
                _safeSwap(amount, path, address(this), true);
            }
            emit TokenToEarn(_token);
        }
    }

    /**
     * @notice converts NATIVE into WNATIVE (e.g. ETH -> WETH)
     */
    function wrapNative() public virtual {
        uint256 balance = address(this).balance;
        if (balance > 0) {
            IWETH(WNATIVE).deposit{value: balance}();
        }
        emit WrapNative();
    }

    function totalStakeTokens() public view virtual returns (uint256) {
        return _totalStaked() + stakeToken.balanceOf(address(this));
    }

    /**
     * @notice invokes the emergency withdraw function in the underlying farm
     * @dev can only be called by the operator. Only in case of emergency.
     */
    function emergencyWithdraw() external virtual onlyOperator {
        if (!paused()) {
            _pause();
        }
        emergencyWithdrawn = true;
        _farmEmergencyWithdraw();
        emit EmergencyWithdraw();
    }

    function _farm() internal virtual {
        uint256 depositAmount = stakeToken.balanceOf(address(this));
        _farmDeposit(depositAmount);
    }

    function _farmHarvest() internal virtual {
        _farmDeposit(0);
    }

    function _distributeFees(uint256 _amount, address _bountyHunter) internal virtual returns (uint256) {
        uint256 bountyReward = 0;
        uint256 bountyRewardPct = _bountyHunter == address(0) ? 0 : yieldWolf.performanceFeeBountyPct();
        uint256 performanceFee = (_amount * yieldWolf.performanceFee()) / 10000;
        bountyReward = (performanceFee * bountyRewardPct) / 10000;
        uint256 platformPerformanceFee = performanceFee - bountyReward;
        if (platformPerformanceFee > 0) {
            earnToken.safeTransfer(yieldWolf.feeAddress(), platformPerformanceFee);
        }
        if (bountyReward > 0) {
            earnToken.safeTransfer(_bountyHunter, bountyReward);
        }
        return bountyReward;
    }

    function _safeSwap(
        uint256 _amountIn,
        address[] memory _path,
        address _to,
        bool _ignoreErrors
    ) internal virtual {
        IUniswapV2Router02 router = swapRouterEnabled ? swapRouter : liquidityRouter;
        IERC20(_path[0]).safeIncreaseAllowance(address(router), _amountIn);
        if (_ignoreErrors) {
            try
                router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_amountIn, 0, _path, _to, block.timestamp)
            {} catch {}
        } else {
            router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_amountIn, 0, _path, _to, block.timestamp);
        }
    }
}

File 5 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

import './IUniswapV2Router01.sol';

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

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

File 10 of 15 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 11 of 15 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 12 of 15 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

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

interface IWETH is IERC20 {
    function deposit() external payable;

    function withdraw(uint256 wad) external;
}

File 13 of 15 : IYieldWolf.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

interface IYieldWolf {
    function operators(address addr) external returns (bool);

    function depositFee() external returns (uint256);

    function withdrawFee() external returns (uint256);

    function performanceFee() external returns (uint256);

    function performanceFeeBountyPct() external returns (uint256);

    function ruleFee() external returns (uint256);

    function ruleFeeBountyPct() external returns (uint256);

    function feeAddress() external returns (address);

    function stakedTokens(uint256 pid, address user) external view returns (uint256);
}

File 14 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[],"name":"Farm","type":"event"},{"anonymous":false,"inputs":[],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","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":"token","type":"address"}],"name":"TokenToEarn","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[],"name":"WrapNative","type":"event"},{"inputs":[],"name":"WNATIVE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositAmount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bountyHunter","type":"address"}],"name":"earn","outputs":[{"internalType":"uint256","name":"bountyReward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earnToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"extraEarnTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"bool","name":"_isLpToken","type":"bool"},{"internalType":"address[7]","name":"_addresses","type":"address[7]"},{"internalType":"address[]","name":"_earnToToken0Path","type":"address[]"},{"internalType":"address[]","name":"_earnToToken1Path","type":"address[]"},{"internalType":"address[]","name":"_token0ToEarnPath","type":"address[]"},{"internalType":"address[]","name":"_token1ToEarnPath","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityRouter","outputs":[{"internalType":"contract IUniswapV2Router02","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_extraEarnTokens","type":"address[]"}],"name":"setExtraEarnTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token0","type":"address"},{"internalType":"address","name":"_token1","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"setSwapPath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapRouterEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharesTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"swapPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouterEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"tokenToEarn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawAmount","type":"uint256"},{"internalType":"address","name":"_withdrawTo","type":"address"},{"internalType":"address","name":"_bountyHunter","type":"address"},{"internalType":"uint256","name":"_ruleFeeAmount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldWolf","outputs":[{"internalType":"contract IYieldWolf","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600c805460ff60a01b1916600160a01b1790556000600e553480156200002957600080fd5b50620000353362000049565b600180556002805460ff1916905562000099565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61339d80620000a96000396000f3fe6080604052600436106101fd5760003560e01c80638456cb591161010d578063c460f0e2116100a0578063edfb9b6e1161006f578063edfb9b6e14610584578063f1068454146105a4578063f1f98e12146105ba578063f2fde38b146105da578063fdb5fefc146105fa57600080fd5b8063c460f0e214610510578063d21220a714610530578063db2e21bc14610550578063e28701ee1461056557600080fd5b8063b381cf40116100dc578063b381cf4014610490578063b58303af146104b0578063b6b55f25146104d0578063c31c9c07146104f057600080fd5b80638456cb591461041d5780638da5cb5b14610432578063a318c1a414610450578063ada1a9a91461047057600080fd5b80633f4ba83a11610190578063559ae48a1161015f578063559ae48a1461039b578063575a86b2146103bb5780635c975abb146103db5780636ad481f3146103f3578063715018a61461040857600080fd5b80633f4ba83a1461032d57806340a658231461034257806344a3955e1461036557806351ed6a301461037b57600080fd5b8063158ef93e116101cc578063158ef93e146102be5780631a051746146102d857806324702944146102f857806336e9332d1461031857600080fd5b8063090e0e30146102095780630c8fb80e1461023f5780630ddb88ae1461027c5780630dfe16811461029e57600080fd5b3661020457005b600080fd5b34801561021557600080fd5b50600c5461022a90600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b34801561024b57600080fd5b506002546102649061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610236565b34801561028857600080fd5b5061029c610297366004612e10565b61061a565b005b3480156102aa57600080fd5b50600654610264906001600160a01b031681565b3480156102ca57600080fd5b50600f5461022a9060ff1681565b3480156102e457600080fd5b506102646102f3366004612e73565b610684565b34801561030457600080fd5b50600b54610264906001600160a01b031681565b34801561032457600080fd5b5061029c6106c9565b34801561033957600080fd5b5061029c610751565b34801561034e57600080fd5b50610357610892565b604051908152602001610236565b34801561037157600080fd5b50610357600e5481565b34801561038757600080fd5b50600554610264906001600160a01b031681565b3480156103a757600080fd5b5061029c6103b6366004612eb3565b610925565b3480156103c757600080fd5b50600354610264906001600160a01b031681565b3480156103e757600080fd5b5060025460ff1661022a565b3480156103ff57600080fd5b5061029c610960565b34801561041457600080fd5b5061029c6109fd565b34801561042957600080fd5b5061029c610a33565b34801561043e57600080fd5b506000546001600160a01b0316610264565b34801561045c57600080fd5b5061035761046b366004612f5b565b610b03565b34801561047c57600080fd5b5061029c61048b366004612dd8565b610f27565b34801561049c57600080fd5b50600c54610264906001600160a01b031681565b3480156104bc57600080fd5b5061029c6104cb366004612ef3565b61133f565b3480156104dc57600080fd5b506103576104eb366004612f2b565b611387565b3480156104fc57600080fd5b50600a54610264906001600160a01b031681565b34801561051c57600080fd5b5061029c61052b366004612fa2565b611593565b34801561053c57600080fd5b50600754610264906001600160a01b031681565b34801561055c57600080fd5b5061029c611a35565b34801561057157600080fd5b50600f5461022a90610100900460ff1681565b34801561059057600080fd5b5061026461059f366004612f2b565b611b26565b3480156105b057600080fd5b5061035760045481565b3480156105c657600080fd5b50600854610264906001600160a01b031681565b3480156105e657600080fd5b5061029c6105f5366004612dd8565b611b50565b34801561060657600080fd5b50610357610615366004612dd8565b611beb565b6000546001600160a01b0316331461064d5760405162461bcd60e51b81526004016106449061319d565b60405180910390fd5b6001600160a01b038085166000908152600d6020908152604080832093871683529290522061067d908383612cfa565b5050505050565b600d60205282600052604060002060205281600052604060002081815481106106ac57600080fd5b6000918252602090912001546001600160a01b0316925083915050565b600260015414156106ec5760405162461bcd60e51b8152600401610644906131d2565b60026001556106fd60025460ff1690565b1561071a5760405162461bcd60e51b815260040161064490613173565b610722612282565b6040517fc14affbacf095aeb5f706cd9e32fae5ae213b9d1118f26bff45ef8efb26ef4be90600090a160018055565b60025460405163027cf93b60e31b81523360048201526101009091046001600160a01b0316906313e7c9d890602401602060405180830381600087803b15801561079a57600080fd5b505af11580156107ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d29190612f0f565b6107ee5760405162461bcd60e51b81526004016106449061313c565b600f54610100900460ff161561085f5760405162461bcd60e51b815260206004820152603060248201527f756e70617573653a2043414e4e4f545f554e50415553455f41465445525f454d60448201526f455247454e43595f574954484452415760801b6064820152608401610644565b610867612309565b6040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156108d657600080fd5b505afa1580156108ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090e9190612f43565b61091661239c565b6109209190613279565b905090565b6000546001600160a01b0316331461094f5760405162461bcd60e51b81526004016106449061319d565b61095b60098383612cfa565b505050565b4780156109d157600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156109b757600080fd5b505af11580156109cb573d6000803e3d6000fd5b50505050505b6040517fc41bad047fb7e343ff0242ad2895fd09379af34386f2c70cbc07952a3e2bacdf90600090a150565b6000546001600160a01b03163314610a275760405162461bcd60e51b81526004016106449061319d565b610a316000612425565b565b60025460405163027cf93b60e31b81523360048201526101009091046001600160a01b0316906313e7c9d890602401602060405180830381600087803b158015610a7c57600080fd5b505af1158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab49190612f0f565b610ad05760405162461bcd60e51b81526004016106449061313c565b610ad8612475565b6040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600080546001600160a01b03163314610b2e5760405162461bcd60e51b81526004016106449061319d565b60026001541415610b515760405162461bcd60e51b8152600401610644906131d2565b60026001556000610b6061239c565b90506000610b6c610892565b90506000816001600e548a610b8191906132b1565b610b8b91906132d0565b610b959190613291565b610ba0906001613279565b9050600e54811115610bb15750600e545b80600e54610bbf91906132d0565b600e558215610bd157610bd1886124cd565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610c1557600080fd5b505afa158015610c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4d9190612f43565b905080891115610c5b578098505b88831015610c67578298505b6001600160a01b03871615610df7576000612710600260019054906101000a90046001600160a01b03166001600160a01b0316633fc4e5a46040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190612f43565b610d0d90896132b1565b610d179190613291565b90506000610d2582896132d0565b90508115610d4457600554610d44906001600160a01b03168a84612530565b8015610de857610de8600260019054906101000a90046001600160a01b03166001600160a01b031663412753586040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610d9d57600080fd5b505af1158015610db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd59190612df4565b6005546001600160a01b03169083612530565b610df2888c6132d0565b9a5050505b6000612710600260019054906101000a90046001600160a01b03166001600160a01b031663e941fa786040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e4c57600080fd5b505af1158015610e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e849190612f43565b610e8e908c6132b1565b610e989190613291565b90508015610eff57610eaa818b6132d0565b9950610eff600260019054906101000a90046001600160a01b03166001600160a01b031663412753586040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610d9d57600080fd5b600554610f16906001600160a01b03168a8c612530565b505060018055979650505050505050565b60026001541415610f4a5760405162461bcd60e51b8152600401610644906131d2565b6002600155610f5b60025460ff1690565b15610f785760405162461bcd60e51b815260040161064490613173565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610fba57600080fd5b505afa158015610fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff29190612f43565b905060008111801561101257506008546001600160a01b03838116911614155b801561102c57506005546001600160a01b03838116911614155b15611337576001600160a01b038083166000908152600d602090815260408083206008549094168352928152828220805484518184028101840190955280855292939290918301828280156110aa57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161108c575b5050505050905080516000141561125957600c546001600160a01b0384811691161415611177576040805160028082526060820183529091602083019080368337019050509050828160008151811061111357634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260085482519116908290600190811061115257634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050611259565b60408051600380825260808201909252906020820160608036833701905050905082816000815181106111ba57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600c548251911690829060019081106111f957634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260085482519116908290600290811061123857634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b60085481516001600160a01b0390911690829060009061128957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141580156112e7575060055481516001600160a01b039091169082906000906112d357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b156112f9576112f98282306001612593565b6040516001600160a01b03841681527fe5bc9466ffc0962b4f5d02c904fde9d62a936d1046497e9b764169c526dc07599060200160405180910390a1505b505060018055565b6000546001600160a01b031633146113695760405162461bcd60e51b81526004016106449061319d565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b600080546001600160a01b031633146113b25760405162461bcd60e51b81526004016106449061319d565b600260015414156113d55760405162461bcd60e51b8152600401610644906131d2565b60026001556113e660025460ff1690565b156114035760405162461bcd60e51b815260040161064490613173565b6000612710600260019054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561145857600080fd5b505af115801561146c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114909190612f43565b61149a90856132b1565b6114a49190613291565b90506114b081846132d0565b9250801561150b5761150b600260019054906101000a90046001600160a01b03166001600160a01b031663412753586040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610d9d57600080fd5b600083611516610892565b61152091906132d0565b905061152a612282565b6000611534610892565b905061154082826132d0565b945084821580159061155457506000600e54115b156115755782600e548761156891906132b1565b6115729190613291565b90505b80600e546115839190613279565b600e556001805595945050505050565b6000546001600160a01b031633146115bd5760405162461bcd60e51b81526004016106449061319d565b600f5460ff16156116105760405162461bcd60e51b815260206004820152601f60248201527f696e697469616c697a653a20414c52454144595f494e495449414c495a4544006044820152606401610644565b600f805460ff1916600117905561162a60208a018a612dd8565b600280546001600160a01b039290921661010002610100600160a81b031990921691909117905561166160408a0160208b01612dd8565b600580546001600160a01b0319166001600160a01b039290921691909117905561169160608a0160408b01612dd8565b600880546001600160a01b0319166001600160a01b03929092169190911790556116c160808a0160608b01612dd8565b600380546001600160a01b0319166001600160a01b03929092169190911790556116f160a08a0160808b01612dd8565b600a80546001600160a01b0319166001600160a01b039290921691909117905561172160c08a0160a08b01612dd8565b600b80546001600160a01b0319166001600160a01b039290921691909117905561175160e08a0160c08b01612dd8565b600c80546001600160a01b0319166001600160a01b0392909216919091179055891561198b5761178760408a0160208b01612dd8565b6001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156117bf57600080fd5b505afa1580156117d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f79190612df4565b600680546001600160a01b0319166001600160a01b039290921691909117905561182760408a0160208b01612dd8565b6001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561185f57600080fd5b505afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118979190612df4565b600780546001600160a01b0319166001600160a01b0392831617905560085481166000908152600d602090815260408083206006549094168352929052206118e0908989612cfa565b506008546001600160a01b039081166000908152600d60209081526040808320600754909416835292905220611917908787612cfa565b506006546001600160a01b039081166000908152600d6020908152604080832060085490941683529290522061194e908585612cfa565b506007546001600160a01b039081166000908152600d60209081526040808320600854909416835292905220611985908383612cfa565b506119fa565b6008546001600160a01b039081166000908152600d602090815260408083206005549094168352929052206119c1908989612cfa565b506005546001600160a01b039081166000908152600d602090815260408083206008549094168352929052206119f8908585612cfa565b505b60048b90556040517f80f860092ed8101278311dd6b10dda4920a40ea5dfcbacfe724e2accfaf63efc90600090a15050505050505050505050565b60025460405163027cf93b60e31b81523360048201526101009091046001600160a01b0316906313e7c9d890602401602060405180830381600087803b158015611a7e57600080fd5b505af1158015611a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab69190612f0f565b611ad25760405162461bcd60e51b81526004016106449061313c565b60025460ff16611ae457611ae4612475565b600f805461ff001916610100179055611afb6126ef565b6040517fcc6a1a065ab514031862e10458cbf117148ff1f8a168cfacab350e6644c174f090600090a1565b60098181548110611b3657600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314611b7a5760405162461bcd60e51b81526004016106449061319d565b6001600160a01b038116611bdf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610644565b611be881612425565b50565b600080546001600160a01b03163314611c165760405162461bcd60e51b81526004016106449061319d565b60025460ff1615611c2957506000919050565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611c6d57600080fd5b505afa158015611c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca59190612f43565b9050611caf612750565b600c546008546001600160a01b0390811691161415611cd057611cd0610960565b60005b600954811015611d2d57611d1b60098281548110611d0157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316610f27565b80611d2581613313565b915050611cd3565b506008546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a082319060240160206040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dae9190612f43565b611db891906132d0565b90508015611dcd57611dca818561275a565b92505b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611e1157600080fd5b505afa158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e499190612f43565b6006549091506001600160a01b0316611f13576008546005546001600160a01b03908116911614611f03576008546001600160a01b039081166000908152600d602090815260408083206005549094168352928152908290208054835181840281018401909452808452611f0393859390929190830182828015611ef657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ed8575b5050505050306000612593565b611f0b612282565b505050919050565b6006546008546001600160a01b03908116911614611fbe57611fbe611f39600283613291565b6008546001600160a01b039081166000908152600d6020908152604080832060065490941683529281529082902080548351818402810184019094528084529091830182828015611ef6576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311611ed8575050505050306000612593565b6007546008546001600160a01b0390811691161461206957612069611fe4600283613291565b6008546001600160a01b039081166000908152600d6020908152604080832060075490941683529281529082902080548351818402810184019094528084529091830182828015611ef6576020028201919060005260206000209081546001600160a01b03168152600190910190602001808311611ed8575050505050306000612593565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156120ad57600080fd5b505afa1580156120c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120e59190612f43565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561212e57600080fd5b505afa158015612142573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121669190612f43565b90506000821180156121785750600081115b1561226f57600b5460065461219a916001600160a01b03918216911684612997565b600b546007546121b7916001600160a01b03918216911683612997565b600b5460065460075460405162e8e33760e81b81526001600160a01b0392831660048201529082166024820152604481018590526064810184905260006084820181905260a48201523060c48201524260e482015291169063e8e337009061010401606060405180830381600087803b15801561223357600080fd5b505af1158015612247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061226b91906130c0565b5050505b612277612282565b50505050505b919050565b6005546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156122c657600080fd5b505afa1580156122da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122fe9190612f43565b9050611be881612a58565b60025460ff166123525760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610644565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600354600480546040516393f1a40b60e01b8152918201523060248201526000916001600160a01b0316906393f1a40b90604401604080518083038186803b1580156123e757600080fd5b505afa1580156123fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241f919061309d565b50919050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156124985760405162461bcd60e51b815260040161064490613173565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861237f3390565b60035460048054604051630441a3e760e41b815291820152602481018390526001600160a01b039091169063441a3e70906044015b600060405180830381600087803b15801561251c57600080fd5b505af115801561067d573d6000803e3d6000fd5b6040516001600160a01b03831660248201526044810182905261095b90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612aae565b600c54600090600160a01b900460ff166125b857600b546001600160a01b03166125c5565b600a546001600160a01b03165b905061260d8186866000815181106125ed57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166129979092919063ffffffff16565b811561268157604051635c11d79560e01b81526001600160a01b03821690635c11d79590612648908890600090899089904290600401613209565b600060405180830381600087803b15801561266257600080fd5b505af1925050508015612673575060015b61267c5761067d565b61067d565b604051635c11d79560e01b81526001600160a01b03821690635c11d795906126b6908890600090899089904290600401613209565b600060405180830381600087803b1580156126d057600080fd5b505af11580156126e4573d6000803e3d6000fd5b505050505050505050565b60035460048054604051632989754760e11b8152918201526001600160a01b0390911690635312ea8e90602401600060405180830381600087803b15801561273657600080fd5b505af115801561274a573d6000803e3d6000fd5b50505050565b610a316000612a58565b600080806001600160a01b038416156127fa57600260019054906101000a90046001600160a01b03166001600160a01b0316632757066c6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156127bd57600080fd5b505af11580156127d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127f59190612f43565b6127fd565b60005b90506000612710600260019054906101000a90046001600160a01b03166001600160a01b031663877887826040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561285457600080fd5b505af1158015612868573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061288c9190612f43565b61289690886132b1565b6128a09190613291565b90506127106128af83836132b1565b6128b99190613291565b925060006128c784836132d0565b9050801561296d5761296d600260019054906101000a90046001600160a01b03166001600160a01b031663412753586040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561292257600080fd5b505af1158015612936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295a9190612df4565b6008546001600160a01b03169083612530565b831561298a5760085461298a906001600160a01b03168786612530565b5091925050505b92915050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b1580156129e357600080fd5b505afa1580156129f7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1b9190612f43565b612a259190613279565b6040516001600160a01b03851660248201526044810182905290915061274a90859063095ea7b360e01b9060640161255c565b600354600554612a75916001600160a01b03918216911683612997565b60035460048054604051631c57762b60e31b815291820152602481018390526001600160a01b039091169063e2bbb15890604401612502565b6000612b03826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612b809092919063ffffffff16565b80519091501561095b5780806020019051810190612b219190612f0f565b61095b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610644565b6060612b8f8484600085612b99565b90505b9392505050565b606082471015612bfa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610644565b843b612c485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610644565b600080866001600160a01b03168587604051612c6491906130ed565b60006040518083038185875af1925050503d8060008114612ca1576040519150601f19603f3d011682016040523d82523d6000602084013e612ca6565b606091505b5091509150612cb6828286612cc1565b979650505050505050565b60608315612cd0575081612b92565b825115612ce05782518084602001fd5b8160405162461bcd60e51b81526004016106449190613109565b828054828255906000526020600020908101928215612d4d579160200282015b82811115612d4d5781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612d1a565b50612d59929150612d5d565b5090565b5b80821115612d595760008155600101612d5e565b8060e0810183101561299157600080fd5b60008083601f840112612d94578182fd5b50813567ffffffffffffffff811115612dab578182fd5b6020830191508360208260051b8501011115612dc657600080fd5b9250929050565b803561227d81613359565b600060208284031215612de9578081fd5b8135612b9281613344565b600060208284031215612e05578081fd5b8151612b9281613344565b60008060008060608587031215612e25578283fd5b8435612e3081613344565b93506020850135612e4081613344565b9250604085013567ffffffffffffffff811115612e5b578283fd5b612e6787828801612d83565b95989497509550505050565b600080600060608486031215612e87578283fd5b8335612e9281613344565b92506020840135612ea281613344565b929592945050506040919091013590565b60008060208385031215612ec5578182fd5b823567ffffffffffffffff811115612edb578283fd5b612ee785828601612d83565b90969095509350505050565b600060208284031215612f04578081fd5b8135612b9281613359565b600060208284031215612f20578081fd5b8151612b9281613359565b600060208284031215612f3c578081fd5b5035919050565b600060208284031215612f54578081fd5b5051919050565b60008060008060808587031215612f70578384fd5b843593506020850135612f8281613344565b92506040850135612f9281613344565b9396929550929360600135925050565b60008060008060008060008060008060006101a08c8e031215612fc3578687fd5b8b359a50612fd360208d01612dcd565b9950612fe28d60408e01612d72565b985067ffffffffffffffff806101208e01351115612ffe578788fd5b61300f8e6101208f01358f01612d83565b90995097506101408d0135811015613025578687fd5b6130368e6101408f01358f01612d83565b90975095506101608d013581101561304c578485fd5b61305d8e6101608f01358f01612d83565b90955093506101808d0135811015613073578283fd5b506130858d6101808e01358e01612d83565b81935080925050509295989b509295989b9093969950565b600080604083850312156130af578182fd5b505080516020909101519092909150565b6000806000606084860312156130d4578283fd5b8351925060208401519150604084015190509250925092565b600082516130ff8184602087016132e7565b9190910192915050565b60208152600082518060208401526131288160408501602087016132e7565b601f01601f19169190910160400192915050565b60208082526019908201527f6f6e6c794f70657261746f723a204e4f545f414c4c4f57454400000000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156132585784516001600160a01b031683529383019391830191600101613233565b50506001600160a01b03969096166060850152505050608001529392505050565b6000821982111561328c5761328c61332e565b500190565b6000826132ac57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156132cb576132cb61332e565b500290565b6000828210156132e2576132e261332e565b500390565b60005b838110156133025781810151838201526020016132ea565b8381111561274a5750506000910152565b60006000198214156133275761332761332e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114611be857600080fd5b8015158114611be857600080fdfea264697066735822122041c76865a05adc2a9eb12cb8307025347722efc1ef95753842ed4fe6b921f97764736f6c63430008040033

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.