Contract 0x9fd64182d07f742af1e16cb2bd98e7f1ad939641

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x326ee1cadcaad0023b2be1f620402246785f5b23e8c34a8ac1a6c4e66a54364cReinvest228030162022-11-25 0:25:131 day 18 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044666492866 25.00001
0xb18b21c2a59a0ba45de4c97562843e07540afa3870080593b063e058f4428f6dReinvest226996982022-11-22 13:26:554 days 5 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044669217867 25.00001
0xb3e6ebecdae553eb2fb99e8ae3df558f1537e12ff6ac97fa9a18b6548ddea2e5Reinvest226105682022-11-20 10:32:446 days 7 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044238992695 25.00001
0xbc0b319799d801a6639cea9799401769d8566fc37f54033f46932d3da81e5da3Withdraw225043542022-11-17 20:26:408 days 22 hrs ago0x55b5d473e68dc083de5e253a1d473212bc91f936 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.03749038007 26.8236
0x5434506a9b38bce14f6adde70d404e6a1c08d65d7045ce63bfe2df99ea8438ddReinvest224813612022-11-17 7:05:519 days 11 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.042173516869 25.00001
0xc41b67532a01f6eb6ca624b1204c2c57ce4ac2d48ad6adabf011bedd3c08e01bReinvest224134882022-11-15 15:38:1511 days 2 hrs ago0x089505b06d6ba62df7053f95f4615ed8b5f1d577 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.05124233329
0xbc4aa594da4c995b7da8a1aaa7d06c51f39b9e040aa0b30777860008e4680538Reinvest224134862022-11-15 15:38:1211 days 2 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.0519981207 29.1
0x1bf0eeeaea666dcdaa636f6523b255f07ffef2e46f8c027101344b0c0275b492Reinvest223227272022-11-13 11:39:1913 days 6 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044671942868 25.00001
0xae8a46060643a0480c09f1b131366a91a05b3673202cc311c46e78aa400c979eReinvest222598672022-11-11 23:32:1314 days 19 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044244442697 25.00001
0xc0adb4f87ddcdc4eb5feff3ba7d184926df05f3dafa18e39f8d8d31962e2d192Deposit With Per...221996962022-11-10 13:30:4616 days 5 hrs ago0xfdfb4e41dab6b74205d4c15eb77c7b3148e935d6 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.16272816192 105.908889809
0xd44966054deace0031e7df9a2cd6b2228cfc8e9bd4efeb5878d50f768a025256Reinvest221848722022-11-10 5:15:4616 days 13 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044241717696 25.00001
0x28a862f5d23d3830f8dff1c2558a8c1e8edf237be264fdb6915235d39b01b71aWithdraw221710142022-11-09 21:37:0816 days 20 hrs ago0xba6fe5d4cf1f7f285940bb9a569a930fe4027421 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.133425977868 95.456113309
0x37dd33b66e4b586599778d3267c21cad2d2288a841d0d49f3315c384a5801e72Reinvest221131392022-11-08 13:33:3918 days 4 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044674667869 25.00001
0x68f480e15a6083fa6d57406e8b4adf97ffbccbf36d93717729e90081b5454514Reinvest220421902022-11-06 21:19:5919 days 21 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044674667869 25.00001
0x301db3e287d524a24c4a5a78b20a45f351163eb77635e4535f41af43666d7067Reinvest219728622022-11-05 5:32:2621 days 13 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044244442697 25.00001
0xd993dbdf99704df9bcb30820391e9c6ce53402f4cc6ee030f1c8c3a1605f6d13Withdraw219566912022-11-04 20:18:5121 days 22 hrs ago0xba6fe5d4cf1f7f285940bb9a569a930fe4027421 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.037497023 26.5
0xea1b256ef9396e583c0fc0aeff081df94ccc3b4bb31210426552e13ad835625cReinvest219151782022-11-03 20:41:4122 days 21 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044671942868 25.00001
0xa6b7edfcfae2d97e03d09caefa524f0e594ee85c0fc20ed3e2a12b8c861e8f79Reinvest218668942022-11-02 17:19:2624 days 1 hr ago0x089505b06d6ba62df7053f95f4615ed8b5f1d577 IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.04824567927
0x8ff07b680e48eb4bf5589394c111e670cbcc6801653d20a142c2ad732d0f7635Reinvest218262792022-11-01 18:10:1525 days 22 mins ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044241717696 25.00001
0x1f7c1dc538094c131863df15675944954d4056ac350bc62a4e16c0b90044f080Reinvest217724992022-10-31 11:48:2126 days 6 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.043517992407 25.00001
0xd36416034c26664f4f0068d4d020797b5fdd0446fb5099ea3057d48c4e7fd953Reinvest217232802022-10-30 8:00:0227 days 10 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044671942868 25.00001
0x2c907ce15360796e00107252525e842a43e91966d53427d33174ae535ec4aac4Reinvest216594022022-10-28 19:36:5728 days 22 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044671942868 25.00001
0x1d5ade7a548f69de8ec306120eee95b2513072facdc47e948dea648032d5a715Reinvest216070242022-10-27 14:02:3130 days 4 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044674667869 25.00001
0x56b5b78dcb0cc8e37d267a3a31face5d9946a68dfd82aee3b119275244d7518dReinvest215499312022-10-26 5:52:5831 days 12 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044671942868 25.00001
0x3d688da217ec8d5e29a2502c415925d26dd62893acf938f2488381a2dcdf1410Reinvest214965212022-10-24 23:49:1032 days 18 hrs ago0xdaa99a4826b3d0e9998cb55c8c648c53a5be677e IN  0x9fd64182d07f742af1e16cb2bd98e7f1ad9396410 AVAX0.044674667869 25.00001
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BoostedJoeStrategyForLP

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : BoostedJoeStrategyForLP.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "../../MasterChefStrategyForLP.sol";
import "../../../lib/SafeERC20.sol";

import "./interfaces/IJoeChef.sol";
import "./interfaces/IJoeVoterProxy.sol";

contract BoostedJoeStrategyForLP is MasterChefStrategyForLP {
    using SafeERC20 for IERC20;

    address public stakingContract;
    IJoeVoterProxy public proxy;
    address public swapPairRewardToken;

    constructor(
        string memory _name,
        address _nativeRewardToken,
        SwapPairs memory _swapPairs,
        address _stakingContract,
        uint256 _pid,
        address _voterProxy,
        address _timelock,
        StrategySettings memory _strategySettings
    ) MasterChefStrategyForLP(_name, _nativeRewardToken, _swapPairs, _timelock, _pid, _strategySettings) {
        stakingContract = _stakingContract;
        proxy = IJoeVoterProxy(_voterProxy);
    }

    function _depositMasterchef(uint256 _pid, uint256 _amount) internal override {
        depositToken.safeTransfer(address(proxy), _amount);
        proxy.deposit(_pid, stakingContract, address(depositToken), _amount);
        proxy.distributeReward(_pid, stakingContract, address(extraToken));
    }

    function _withdrawMasterchef(uint256 _pid, uint256 _amount) internal override {
        proxy.withdraw(_pid, stakingContract, address(depositToken), _amount);
        proxy.distributeReward(_pid, stakingContract, address(extraToken));
    }

    function _emergencyWithdraw(uint256 _pid) internal override {
        depositToken.approve(address(proxy), 0);
        proxy.emergencyWithdraw(_pid, stakingContract, address(depositToken));
    }

    /**
     * @notice Returns pending rewards
     * @dev `rewarder` distributions are not considered
     */
    function _pendingRewards(
        uint256 _pid,
        address /*_user*/
    )
        internal
        view
        override
        returns (
            uint256,
            uint256,
            address
        )
    {
        (uint256 pendingJoe, address bonusTokenAddress, uint256 pendingBonusToken) = proxy.pendingRewards(
            stakingContract,
            _pid
        );
        return (pendingJoe, pendingBonusToken, bonusTokenAddress);
    }

    function _getRewards(uint256 _pid) internal override {
        proxy.claimReward(_pid, stakingContract, address(extraToken));
    }

    function _getDepositBalance(
        uint256 _pid,
        address /*_user*/
    ) internal view override returns (uint256 amount) {
        return proxy.poolBalance(stakingContract, _pid);
    }

    function _getDepositFeeBips(uint256) internal pure override returns (uint256) {
        return 0;
    }

    function _getWithdrawFeeBips(uint256) internal pure override returns (uint256) {
        return 0;
    }

    function _bip() internal pure override returns (uint256) {
        return 10000;
    }
}

File 2 of 17 : MasterChefStrategyForLP.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "../interfaces/IPair.sol";
import "../lib/DexLibrary.sol";
import "./MasterChefStrategy.sol";

/**
 * @notice Adapter strategy for MasterChef with LP deposit.
 */
abstract contract MasterChefStrategyForLP is MasterChefStrategy {
    using SafeMath for uint256;

    struct SwapPairs {
        address poolReward;
        address extraReward;
        address token0;
        address token1;
    }

    address private swapPairToken0;
    address private swapPairToken1;

    constructor(
        string memory _name,
        address _poolRewardToken,
        SwapPairs memory _swapPairs,
        address _timelock,
        uint256 _pid,
        StrategySettings memory _strategySettings
    )
        MasterChefStrategy(
            _name,
            _poolRewardToken,
            _swapPairs.poolReward,
            _swapPairs.extraReward,
            _timelock,
            _pid,
            _strategySettings
        )
    {
        assignSwapPairSafely(_swapPairs, _strategySettings.rewardToken, _poolRewardToken);
    }

    /**
     * @notice Initialization helper for Pair deposit tokens
     * @dev Checks that selected Pairs are valid for trading reward tokens
     * @dev Assigns values to IPair(swapPairToken0) and IPair(swapPairToken1)
     */
    function assignSwapPairSafely(
        SwapPairs memory _swapPairs,
        address _ecosystemToken,
        address _poolRewardToken
    ) private {
        if (
            _ecosystemToken != IPair(address(depositToken)).token0() &&
            _ecosystemToken != IPair(address(depositToken)).token1()
        ) {
            // deployment checks for non-pool2
            require(_swapPairs.token0 > address(0), "Swap pair 0 is necessary but not supplied");
            require(_swapPairs.token1 > address(0), "Swap pair 1 is necessary but not supplied");
            swapPairToken0 = _swapPairs.token0;
            swapPairToken1 = _swapPairs.token1;
            require(
                IPair(swapPairToken0).token0() == _ecosystemToken || IPair(swapPairToken0).token1() == _ecosystemToken,
                "Swap pair supplied does not have the reward token as one of it's pair"
            );
            require(
                IPair(swapPairToken0).token0() == IPair(address(depositToken)).token0() ||
                    IPair(swapPairToken0).token1() == IPair(address(depositToken)).token0(),
                "Swap pair 0 supplied does not match the pair in question"
            );
            require(
                IPair(swapPairToken1).token0() == IPair(address(depositToken)).token1() ||
                    IPair(swapPairToken1).token1() == IPair(address(depositToken)).token1(),
                "Swap pair 1 supplied does not match the pair in question"
            );
        } else if (_ecosystemToken == IPair(address(depositToken)).token0()) {
            swapPairToken1 = address(depositToken);
        } else if (_ecosystemToken == IPair(address(depositToken)).token1()) {
            swapPairToken0 = address(depositToken);
        }
        if (_poolRewardToken == IPair(_swapPairs.poolReward).token0()) {
            require(
                IPair(_swapPairs.poolReward).token1() == _ecosystemToken,
                "Swap pair swapPairPoolReward does not contain reward token"
            );
        }
    }

    /* VIRTUAL */
    function _convertRewardTokenToDepositToken(uint256 fromAmount) internal override returns (uint256 toAmount) {
        toAmount = DexLibrary.convertRewardTokensToDepositTokens(
            fromAmount,
            address(rewardToken),
            address(depositToken),
            IPair(swapPairToken0),
            IPair(swapPairToken1)
        );
    }
}

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

pragma solidity 0.8.13;

import "../interfaces/IERC20.sol";
import "./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 17 : IJoeChef.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

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

    function withdraw(uint256 _pid, uint256 _amount) external;

    function emergencyWithdraw(uint256 _pid) external;

    function pendingTokens(uint256 _pid, address _user)
        external
        view
        returns (
            uint256 pendingJoe,
            address bonusTokenAddress,
            string memory bonusTokenSymbol,
            uint256 pendingBonusToken
        );

    function userInfo(uint256 pid, address user) external view returns (uint256 amount, uint256 rewardDebt);

    function poolInfo(uint256 pid)
        external
        view
        returns (
            address lpToken,
            uint256 accJoePerShare,
            uint256 lastRewardTimestamp,
            uint256 allocPoint,
            address rewarder
        );
}

File 5 of 17 : IJoeVoterProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IJoeVoterProxy {
    function withdraw(
        uint256 _pid,
        address _stakingContract,
        address _token,
        uint256 _amount
    ) external;

    function emergencyWithdraw(
        uint256 _pid,
        address _stakingContract,
        address _token
    ) external;

    function deposit(
        uint256 _pid,
        address _stakingContract,
        address _token,
        uint256 _amount
    ) external;

    function pendingRewards(address _stakingContract, uint256 _pid)
        external
        view
        returns (
            uint256,
            address,
            uint256
        );

    function poolBalance(address _stakingContract, uint256 _pid) external view returns (uint256);

    function claimReward(
        uint256 _pid,
        address _stakingContract,
        address _extraToken
    ) external;

    function distributeReward(
        uint256 _pid,
        address _stakingContract,
        address _extraToken
    ) external;

    function approveStrategy(address _stakingContract, address _strategy) external;

    function reinvestFeeBips() external view returns (uint256);

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

File 6 of 17 : IPair.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./IERC20.sol";

interface IPair is IERC20 {
    function token0() external pure returns (address);

    function token1() external pure returns (address);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function mint(address to) external returns (uint256 liquidity);

    function sync() external;
}

File 7 of 17 : DexLibrary.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./SafeERC20.sol";
import "../interfaces/IPair.sol";

library DexLibrary {
    using SafeERC20 for IERC20;

    bytes private constant zeroBytes = new bytes(0);
    uint256 public constant DEFAULT_SWAP_FEE = 3;

    /**
     * @notice Swap directly through a Pair
     * @param amountIn input amount
     * @param fromToken address
     * @param toToken address
     * @param pair Pair used for swap
     * @return output amount
     */
    function swap(
        uint256 amountIn,
        address fromToken,
        address toToken,
        IPair pair
    ) internal returns (uint256) {
        return DexLibrary.swap(amountIn, fromToken, toToken, pair, DEFAULT_SWAP_FEE);
    }

    /**
     * @notice Swap directly through a Pair
     * @param amountIn input amount
     * @param fromToken address
     * @param toToken address
     * @param pair Pair used for swap
     * @return output amount
     */
    function swap(
        uint256 amountIn,
        address fromToken,
        address toToken,
        IPair pair,
        uint256 swapFee
    ) internal returns (uint256) {
        (address token0, ) = sortTokens(fromToken, toToken);
        (uint112 reserve0, uint112 reserve1, ) = pair.getReserves();
        if (token0 != fromToken) (reserve0, reserve1) = (reserve1, reserve0);
        uint256 amountOut1 = 0;
        uint256 amountOut2 = getAmountOut(amountIn, reserve0, reserve1, swapFee);
        if (token0 != fromToken) (amountOut1, amountOut2) = (amountOut2, amountOut1);
        IERC20(fromToken).safeTransfer(address(pair), amountIn);
        pair.swap(amountOut1, amountOut2, address(this), zeroBytes);
        return amountOut2 > amountOut1 ? amountOut2 : amountOut1;
    }

    function checkSwapPairCompatibility(
        IPair pair,
        address tokenA,
        address tokenB
    ) internal pure returns (bool) {
        return
            (tokenA == pair.token0() || tokenA == pair.token1()) &&
            (tokenB == pair.token0() || tokenB == pair.token1()) &&
            tokenA != tokenB;
    }

    function estimateConversionThroughPair(
        uint256 amountIn,
        address fromToken,
        address toToken,
        IPair swapPair
    ) internal view returns (uint256) {
        return DexLibrary.estimateConversionThroughPair(amountIn, fromToken, toToken, swapPair, DEFAULT_SWAP_FEE);
    }

    function estimateConversionThroughPair(
        uint256 amountIn,
        address fromToken,
        address toToken,
        IPair swapPair,
        uint256 swapFee
    ) internal view returns (uint256) {
        (address token0, ) = sortTokens(fromToken, toToken);
        (uint112 reserve0, uint112 reserve1, ) = swapPair.getReserves();
        if (token0 != fromToken) (reserve0, reserve1) = (reserve1, reserve0);
        return getAmountOut(amountIn, reserve0, reserve1, swapFee);
    }

    /**
     * @notice Converts reward tokens to deposit tokens
     * @dev No price checks enforced
     * @param amount reward tokens
     * @return deposit tokens
     */
    function convertRewardTokensToDepositTokens(
        uint256 amount,
        address rewardToken,
        address depositToken,
        IPair swapPairToken0,
        IPair swapPairToken1
    ) internal returns (uint256) {
        return
            DexLibrary.convertRewardTokensToDepositTokens(
                amount,
                rewardToken,
                depositToken,
                swapPairToken0,
                DEFAULT_SWAP_FEE,
                swapPairToken1,
                DEFAULT_SWAP_FEE
            );
    }

    /**
     * @notice Converts reward tokens to deposit tokens
     * @dev No price checks enforced
     * @param amount reward tokens
     * @return deposit tokens
     */
    function convertRewardTokensToDepositTokens(
        uint256 amount,
        address rewardToken,
        address depositToken,
        IPair swapPairToken0,
        uint256 swapFeeToken0,
        IPair swapPairToken1,
        uint256 swapFeeToken1
    ) internal returns (uint256) {
        uint256 amountIn = amount / 2;
        require(amountIn > 0, "DexLibrary::_convertRewardTokensToDepositTokens");

        address token0 = IPair(depositToken).token0();
        uint256 amountOutToken0 = amountIn;
        if (rewardToken != token0) {
            amountOutToken0 = DexLibrary.swap(amountIn, rewardToken, token0, swapPairToken0, swapFeeToken0);
        }

        address token1 = IPair(depositToken).token1();
        uint256 amountOutToken1 = amountIn;
        if (rewardToken != token1) {
            amountOutToken1 = DexLibrary.swap(amountIn, rewardToken, token1, swapPairToken1, swapFeeToken1);
        }

        return DexLibrary.addLiquidity(depositToken, amountOutToken0, amountOutToken1);
    }

    /**
     * @notice Add liquidity directly through a Pair
     * @dev Checks adding the max of each token amount
     * @param depositToken address
     * @param maxAmountIn0 amount token0
     * @param maxAmountIn1 amount token1
     * @return liquidity tokens
     */
    function addLiquidity(
        address depositToken,
        uint256 maxAmountIn0,
        uint256 maxAmountIn1
    ) internal returns (uint256) {
        (uint112 reserve0, uint112 reserve1, ) = IPair(address(depositToken)).getReserves();
        uint256 amountIn1 = _quoteLiquidityAmountOut(maxAmountIn0, reserve0, reserve1);
        if (amountIn1 > maxAmountIn1) {
            amountIn1 = maxAmountIn1;
            maxAmountIn0 = _quoteLiquidityAmountOut(maxAmountIn1, reserve1, reserve0);
        }

        IERC20(IPair(depositToken).token0()).safeTransfer(depositToken, maxAmountIn0);
        IERC20(IPair(depositToken).token1()).safeTransfer(depositToken, amountIn1);
        return IPair(depositToken).mint(address(this));
    }

    /**
     * @notice Quote liquidity amount out
     * @param amountIn input tokens
     * @param reserve0 size of input asset reserve
     * @param reserve1 size of output asset reserve
     * @return liquidity tokens
     */
    function _quoteLiquidityAmountOut(
        uint256 amountIn,
        uint256 reserve0,
        uint256 reserve1
    ) private pure returns (uint256) {
        return (amountIn * reserve1) / reserve0;
    }

    /**
     * @notice Given two tokens, it'll return the tokens in the right order for the tokens pair
     * @dev TokenA must be different from TokenB, and both shouldn't be address(0), no validations
     * @param tokenA address
     * @param tokenB address
     * @return sorted tokens
     */
    function sortTokens(address tokenA, address tokenB) internal pure returns (address, address) {
        return tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
    }

    /**
     * @notice Given an input amount of an asset and pair reserves, returns maximum output amount of the other asset
     * @param amountIn input asset
     * @param reserveIn size of input asset reserve
     * @param reserveOut size of output asset reserve
     * @return maximum output amount
     */
    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut,
        uint256 swapFee
    ) internal pure returns (uint256) {
        uint256 amountInWithFee = amountIn * (1000 - swapFee);
        uint256 numerator = amountInWithFee * reserveOut;
        uint256 denominator = reserveIn * 1000 + amountInWithFee;
        return numerator / denominator;
    }
}

File 8 of 17 : MasterChefStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "../YakStrategyV2.sol";
import "../interfaces/IPair.sol";
import "./../interfaces/IWAVAX.sol";
import "./../lib/SafeMath.sol";
import "../lib/DexLibrary.sol";

/**
 * @notice Adapter strategy for MasterChef.
 */
abstract contract MasterChefStrategy is YakStrategyV2 {
    using SafeMath for uint256;

    IWAVAX private constant WAVAX = IWAVAX(0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7);

    uint256 public immutable PID;
    address private poolRewardToken;
    IPair private swapPairPoolReward;
    address public swapPairExtraReward;
    address public extraToken;

    constructor(
        string memory _name,
        address _poolRewardToken,
        address _swapPairPoolReward,
        address _swapPairExtraReward,
        address _timelock,
        uint256 _pid,
        StrategySettings memory _strategySettings
    ) YakStrategyV2(_strategySettings) {
        name = _name;
        PID = _pid;
        devAddr = 0x2D580F9CF2fB2D09BC411532988F2aFdA4E7BefF;

        assignSwapPairSafely(_strategySettings.rewardToken, _poolRewardToken, _swapPairPoolReward);
        _setExtraRewardSwapPair(_swapPairExtraReward);
        updateDepositsEnabled(true);
        transferOwnership(_timelock);
        emit Reinvest(0, 0);
    }

    /**
     * @notice Initialization helper for Pair deposit tokens
     * @dev Checks that selected Pairs are valid for trading reward tokens
     * @dev Assigns values to IPair(swapPairToken0) and IPair(swapPairToken1)
     */
    function assignSwapPairSafely(
        address _ecosystemToken,
        address _poolRewardToken,
        address _swapPairPoolReward
    ) private {
        if (_poolRewardToken != _ecosystemToken) {
            if (_poolRewardToken == IPair(_swapPairPoolReward).token0()) {
                require(
                    IPair(_swapPairPoolReward).token1() == _ecosystemToken,
                    "Swap pair 'swapPairPoolReward' does not contain ecosystem token"
                );
            } else if (_poolRewardToken == IPair(_swapPairPoolReward).token1()) {
                require(
                    IPair(_swapPairPoolReward).token0() == _ecosystemToken,
                    "Swap pair 'swapPairPoolReward' does not contain ecosystem token"
                );
            } else {
                revert("Swap pair 'swapPairPoolReward' does not contain pool reward token");
            }
        }
        poolRewardToken = _poolRewardToken;
        swapPairPoolReward = IPair(_swapPairPoolReward);
    }

    function setExtraRewardSwapPair(address _extraTokenSwapPair) external onlyDev {
        _setExtraRewardSwapPair(_extraTokenSwapPair);
    }

    function _setExtraRewardSwapPair(address _extraTokenSwapPair) internal {
        if (_extraTokenSwapPair > address(0)) {
            if (IPair(_extraTokenSwapPair).token0() == address(rewardToken)) {
                extraToken = IPair(_extraTokenSwapPair).token1();
            } else {
                extraToken = IPair(_extraTokenSwapPair).token0();
            }
            swapPairExtraReward = _extraTokenSwapPair;
        } else {
            swapPairExtraReward = address(0);
            extraToken = address(0);
        }
    }

    /**
     * @notice Deposit tokens to receive receipt tokens
     * @param amount Amount of tokens to deposit
     */
    function deposit(uint256 amount) external override {
        _deposit(msg.sender, amount);
    }

    /**
     * @notice Deposit using Permit
     * @param amount Amount of tokens to deposit
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function depositWithPermit(
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        depositToken.permit(msg.sender, address(this), amount, deadline, v, r, s);
        _deposit(msg.sender, amount);
    }

    function depositFor(address account, uint256 amount) external override {
        _deposit(account, amount);
    }

    function _deposit(address account, uint256 amount) internal {
        require(DEPOSITS_ENABLED == true, "MasterChefStrategyV1::_deposit");
        if (MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST > 0) {
            (
                uint256 poolTokenAmount,
                uint256 extraTokenAmount,
                uint256 rewardTokenBalance,
                uint256 estimatedTotalReward
            ) = _checkReward();
            if (estimatedTotalReward > MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST) {
                _reinvest(rewardTokenBalance, poolTokenAmount, extraTokenAmount);
            }
        }
        require(depositToken.transferFrom(msg.sender, address(this), amount), "MasterChefStrategyV1::transfer failed");
        uint256 depositFeeBips = _getDepositFeeBips(PID);
        uint256 depositFee = amount.mul(depositFeeBips).div(_bip());
        _mint(account, getSharesForDepositTokens(amount.sub(depositFee)));
        _stakeDepositTokens(amount);
        emit Deposit(account, amount);
    }

    function withdraw(uint256 amount) external override {
        uint256 depositTokenAmount = getDepositTokensForShares(amount);
        require(depositTokenAmount > 0, "MasterChefStrategyV1::withdraw");
        _withdrawDepositTokens(depositTokenAmount);
        uint256 withdrawFeeBips = _getWithdrawFeeBips(PID);
        uint256 withdrawFee = depositTokenAmount.mul(withdrawFeeBips).div(_bip());
        _safeTransfer(address(depositToken), msg.sender, depositTokenAmount.sub(withdrawFee));
        _burn(msg.sender, amount);
        emit Withdraw(msg.sender, depositTokenAmount);
    }

    function _withdrawDepositTokens(uint256 amount) private {
        _withdrawMasterchef(PID, amount);
    }

    function reinvest() external override onlyEOA {
        (
            uint256 poolTokenAmount,
            uint256 extraTokenAmount,
            uint256 rewardTokenBalance,
            uint256 estimatedTotalReward
        ) = _checkReward();
        require(estimatedTotalReward >= MIN_TOKENS_TO_REINVEST, "MasterChefStrategyV1::reinvest");
        _reinvest(rewardTokenBalance, poolTokenAmount, extraTokenAmount);
    }

    function _convertPoolTokensIntoReward(uint256 poolTokenAmount) private returns (uint256) {
        if (address(rewardToken) == poolRewardToken) {
            return poolTokenAmount;
        }
        return DexLibrary.swap(poolTokenAmount, address(poolRewardToken), address(rewardToken), swapPairPoolReward);
    }

    function _convertExtraTokensIntoReward(uint256 rewardTokenBalance, uint256 extraTokenAmount)
        internal
        returns (uint256)
    {
        if (extraTokenAmount > 0) {
            if (swapPairExtraReward > address(0)) {
                return DexLibrary.swap(extraTokenAmount, extraToken, address(rewardToken), IPair(swapPairExtraReward));
            }

            uint256 avaxBalance = address(this).balance;
            if (avaxBalance > 0) {
                WAVAX.deposit{value: avaxBalance}();
            }
            return WAVAX.balanceOf(address(this)).sub(rewardTokenBalance);
        }
        return 0;
    }

    /**
     * @notice Reinvest rewards from staking contract to deposit tokens
     * @dev Reverts if the expected amount of tokens are not returned from `MasterChef`
     */
    function _reinvest(
        uint256 rewardTokenBalance,
        uint256 poolTokenAmount,
        uint256 extraTokenAmount
    ) private {
        _getRewards(PID);
        uint256 amount = rewardTokenBalance.add(_convertPoolTokensIntoReward(poolTokenAmount));
        amount.add(_convertExtraTokensIntoReward(rewardTokenBalance, extraTokenAmount));

        uint256 devFee = amount.mul(DEV_FEE_BIPS).div(BIPS_DIVISOR);
        if (devFee > 0) {
            _safeTransfer(address(rewardToken), devAddr, devFee);
        }

        uint256 reinvestFee = amount.mul(REINVEST_REWARD_BIPS).div(BIPS_DIVISOR);
        if (reinvestFee > 0) {
            _safeTransfer(address(rewardToken), msg.sender, reinvestFee);
        }

        uint256 depositTokenAmount = _convertRewardTokenToDepositToken(amount.sub(devFee).sub(reinvestFee));

        _stakeDepositTokens(depositTokenAmount);
        emit Reinvest(totalDeposits(), totalSupply);
    }

    function _stakeDepositTokens(uint256 amount) private {
        require(amount > 0, "MasterChefStrategyV1::_stakeDepositTokens");
        _depositMasterchef(PID, amount);
    }

    /**
     * @notice Safely transfer using an anonymous ERC20 token
     * @dev Requires token to return true on transfer
     * @param token address
     * @param to recipient address
     * @param value amount
     */
    function _safeTransfer(
        address token,
        address to,
        uint256 value
    ) private {
        require(IERC20(token).transfer(to, value), "MasterChefStrategyV1::TRANSFER_FROM_FAILED");
    }

    function _checkReward()
        internal
        view
        returns (
            uint256 _poolTokenAmount,
            uint256 _extraTokenAmount,
            uint256 _rewardTokenBalance,
            uint256 _estimatedTotalReward
        )
    {
        uint256 poolTokenBalance = IERC20(poolRewardToken).balanceOf(address(this));
        (uint256 pendingPoolTokenAmount, uint256 pendingExtraTokenAmount, address extraTokenAddress) = _pendingRewards(
            PID,
            address(this)
        );
        uint256 poolTokenAmount = poolTokenBalance.add(pendingPoolTokenAmount);

        uint256 pendingRewardTokenAmount = poolRewardToken != address(rewardToken)
            ? DexLibrary.estimateConversionThroughPair(
                poolTokenAmount,
                poolRewardToken,
                address(rewardToken),
                swapPairPoolReward
            )
            : pendingPoolTokenAmount;
        uint256 pendingExtraTokenRewardAmount = 0;
        if (extraTokenAddress > address(0)) {
            if (extraTokenAddress == address(WAVAX)) {
                pendingExtraTokenRewardAmount = pendingExtraTokenAmount;
            } else if (swapPairExtraReward > address(0)) {
                pendingExtraTokenAmount = pendingExtraTokenAmount.add(IERC20(extraToken).balanceOf(address(this)));
                pendingExtraTokenRewardAmount = DexLibrary.estimateConversionThroughPair(
                    pendingExtraTokenAmount,
                    extraTokenAddress,
                    address(rewardToken),
                    IPair(swapPairExtraReward)
                );
            }
        }
        uint256 rewardTokenBalance = rewardToken.balanceOf(address(this)).add(pendingExtraTokenRewardAmount);
        uint256 estimatedTotalReward = rewardTokenBalance.add(pendingRewardTokenAmount);
        return (poolTokenAmount, pendingExtraTokenAmount, rewardTokenBalance, estimatedTotalReward);
    }

    function checkReward() public view override returns (uint256) {
        (, , , uint256 estimatedTotalReward) = _checkReward();
        return estimatedTotalReward;
    }

    /**
     * @notice Estimate recoverable balance after withdraw fee
     * @return deposit tokens after withdraw fee
     */
    function estimateDeployedBalance() external view override returns (uint256) {
        uint256 depositBalance = totalDeposits();
        uint256 withdrawFeeBips = _getWithdrawFeeBips(PID);
        uint256 withdrawFee = depositBalance.mul(withdrawFeeBips).div(_bip());
        return depositBalance.sub(withdrawFee);
    }

    function totalDeposits() public view override returns (uint256) {
        uint256 depositBalance = _getDepositBalance(PID, address(this));
        return depositBalance;
    }

    function rescueDeployedFunds(uint256 minReturnAmountAccepted, bool disableDeposits) external override onlyOwner {
        uint256 balanceBefore = depositToken.balanceOf(address(this));
        _emergencyWithdraw(PID);
        uint256 balanceAfter = depositToken.balanceOf(address(this));
        require(
            balanceAfter.sub(balanceBefore) >= minReturnAmountAccepted,
            "MasterChefStrategyV1::rescueDeployedFunds"
        );
        emit Reinvest(totalDeposits(), totalSupply);
        if (DEPOSITS_ENABLED == true && disableDeposits == true) {
            updateDepositsEnabled(false);
        }
    }

    /* VIRTUAL */
    function _convertRewardTokenToDepositToken(uint256 fromAmount) internal virtual returns (uint256 toAmount);

    function _depositMasterchef(uint256 pid, uint256 amount) internal virtual;

    function _withdrawMasterchef(uint256 pid, uint256 amount) internal virtual;

    function _emergencyWithdraw(uint256 pid) internal virtual;

    function _getRewards(uint256 pid) internal virtual;

    function _pendingRewards(uint256 pid, address user)
        internal
        view
        virtual
        returns (
            uint256 poolTokenAmount,
            uint256 extraTokenAmount,
            address extraTokenAddress
        );

    function _getDepositBalance(uint256 pid, address user) internal view virtual returns (uint256 amount);

    function _getDepositFeeBips(uint256 pid) internal view virtual returns (uint256);

    function _getWithdrawFeeBips(uint256 pid) internal view virtual returns (uint256);

    function _bip() internal view virtual returns (uint256);
}

File 9 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IERC20 {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 10 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity 0.8.13;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 11 of 17 : YakStrategyV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./lib/Ownable.sol";
import "./lib/Permissioned.sol";
import "./interfaces/IERC20.sol";
import "./YakERC20.sol";

/**
 * @notice YakStrategy should be inherited by new strategies
 */
abstract contract YakStrategyV2 is YakERC20, Ownable, Permissioned {
    struct StrategySettings {
        address depositToken;
        address rewardToken;
        uint256 minTokensToReinvest;
        uint256 devFeeBips;
        uint256 reinvestRewardBips;
    }

    IERC20 public immutable depositToken;
    IERC20 public immutable rewardToken;
    address public devAddr;

    uint256 public MIN_TOKENS_TO_REINVEST;
    uint256 public MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST;
    bool public DEPOSITS_ENABLED;

    uint256 public ADMIN_FEE_BIPS;
    uint256 public REINVEST_REWARD_BIPS;
    uint256 public DEV_FEE_BIPS;

    uint256 internal constant BIPS_DIVISOR = 10000;
    uint256 internal constant MAX_UINT = type(uint256).max;

    event Deposit(address indexed account, uint256 amount);
    event Withdraw(address indexed account, uint256 amount);
    event Reinvest(uint256 newTotalDeposits, uint256 newTotalSupply);
    event Recovered(address token, uint256 amount);
    event UpdateAdminFee(uint256 oldValue, uint256 newValue);
    event UpdateDevFee(uint256 oldValue, uint256 newValue);
    event UpdateReinvestReward(uint256 oldValue, uint256 newValue);
    event UpdateMinTokensToReinvest(uint256 oldValue, uint256 newValue);
    event UpdateMaxTokensToDepositWithoutReinvest(uint256 oldValue, uint256 newValue);
    event UpdateDevAddr(address oldValue, address newValue);
    event DepositsEnabled(bool newValue);

    /**
     * @notice Throws if called by smart contract
     */
    modifier onlyEOA() {
        require(tx.origin == msg.sender, "YakStrategy::onlyEOA");
        _;
    }

    /**
     * @notice Only called by dev
     */
    modifier onlyDev() {
        require(msg.sender == devAddr, "YakStrategy::onlyDev");
        _;
    }

    constructor(StrategySettings memory _strategySettings) {
        depositToken = IERC20(_strategySettings.depositToken);
        rewardToken = IERC20(_strategySettings.rewardToken);
        updateMinTokensToReinvest(_strategySettings.minTokensToReinvest);
        updateDevFee(_strategySettings.devFeeBips);
        updateReinvestReward(_strategySettings.reinvestRewardBips);
    }

    /**
     * @notice Revoke token allowance
     * @param token address
     * @param spender address
     */
    function revokeAllowance(address token, address spender) external onlyOwner {
        require(IERC20(token).approve(spender, 0));
    }

    /**
     * @notice Deposit and deploy deposits tokens to the strategy
     * @dev Must mint receipt tokens to `msg.sender`
     * @param amount deposit tokens
     */
    function deposit(uint256 amount) external virtual;

    /**
     * @notice Deposit using Permit
     * @dev Should revert for tokens without Permit
     * @param amount Amount of tokens to deposit
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function depositWithPermit(
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual;

    /**
     * @notice Deposit on behalf of another account
     * @dev Must mint receipt tokens to `account`
     * @param account address to receive receipt tokens
     * @param amount deposit tokens
     */
    function depositFor(address account, uint256 amount) external virtual;

    /**
     * @notice Redeem receipt tokens for deposit tokens
     * @param amount receipt tokens
     */
    function withdraw(uint256 amount) external virtual;

    /**
     * @notice Reinvest reward tokens into deposit tokens
     */
    function reinvest() external virtual;

    /**
     * @notice Estimate reinvest reward
     * @return reward tokens
     */
    function estimateReinvestReward() external view returns (uint256) {
        uint256 unclaimedRewards = checkReward();
        if (unclaimedRewards >= MIN_TOKENS_TO_REINVEST) {
            return (unclaimedRewards * REINVEST_REWARD_BIPS) / BIPS_DIVISOR;
        }
        return 0;
    }

    /**
     * @notice Reward tokens available to strategy, including balance
     * @return reward tokens
     */
    function checkReward() public view virtual returns (uint256);

    /**
     * @notice Estimated deposit token balance deployed by strategy, excluding balance
     * @return deposit tokens
     */
    function estimateDeployedBalance() external view virtual returns (uint256);

    /**
     * @notice Rescue all available deployed deposit tokens back to Strategy
     * @param minReturnAmountAccepted min deposit tokens to receive
     * @param disableDeposits bool
     */
    function rescueDeployedFunds(uint256 minReturnAmountAccepted, bool disableDeposits) external virtual;

    /**
     * @notice This function returns a snapshot of last available quotes
     * @return total deposits available on the contract
     */
    function totalDeposits() public view virtual returns (uint256);

    /**
     * @notice Calculate receipt tokens for a given amount of deposit tokens
     * @dev If contract is empty, use 1:1 ratio
     * @dev Could return zero shares for very low amounts of deposit tokens
     * @param amount deposit tokens
     * @return receipt tokens
     */
    function getSharesForDepositTokens(uint256 amount) public view returns (uint256) {
        if (totalSupply * totalDeposits() == 0) {
            return amount;
        }
        return (amount * totalSupply) / totalDeposits();
    }

    /**
     * @notice Calculate deposit tokens for a given amount of receipt tokens
     * @param amount receipt tokens
     * @return deposit tokens
     */
    function getDepositTokensForShares(uint256 amount) public view returns (uint256) {
        if (totalSupply * totalDeposits() == 0) {
            return 0;
        }
        return (amount * totalDeposits()) / totalSupply;
    }

    /**
     * @notice Update reinvest min threshold
     * @param newValue threshold
     */
    function updateMinTokensToReinvest(uint256 newValue) public onlyOwner {
        emit UpdateMinTokensToReinvest(MIN_TOKENS_TO_REINVEST, newValue);
        MIN_TOKENS_TO_REINVEST = newValue;
    }

    /**
     * @notice Update reinvest max threshold before a deposit
     * @param newValue threshold
     */
    function updateMaxTokensToDepositWithoutReinvest(uint256 newValue) public onlyOwner {
        emit UpdateMaxTokensToDepositWithoutReinvest(MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST, newValue);
        MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST = newValue;
    }

    /**
     * @notice Update admin fee
     * @dev Deprecated; Kept for compatibility
     * @param newValue fee in BIPS; required to be 0
     */
    function updateAdminFee(uint256 newValue) public onlyOwner {
        require(newValue == 0);
        emit UpdateAdminFee(ADMIN_FEE_BIPS, newValue);
        ADMIN_FEE_BIPS = newValue;
    }

    /**
     * @notice Update developer fee
     * @param newValue fee in BIPS
     */
    function updateDevFee(uint256 newValue) public onlyOwner {
        require(newValue + REINVEST_REWARD_BIPS <= BIPS_DIVISOR);
        emit UpdateDevFee(DEV_FEE_BIPS, newValue);
        DEV_FEE_BIPS = newValue;
    }

    /**
     * @notice Update reinvest reward
     * @param newValue fee in BIPS
     */
    function updateReinvestReward(uint256 newValue) public onlyOwner {
        require(newValue + DEV_FEE_BIPS <= BIPS_DIVISOR);
        emit UpdateReinvestReward(REINVEST_REWARD_BIPS, newValue);
        REINVEST_REWARD_BIPS = newValue;
    }

    /**
     * @notice Enable/disable deposits
     * @param newValue bool
     */
    function updateDepositsEnabled(bool newValue) public onlyOwner {
        require(DEPOSITS_ENABLED != newValue);
        DEPOSITS_ENABLED = newValue;
        emit DepositsEnabled(newValue);
    }

    /**
     * @notice Update devAddr
     * @param newValue address
     */
    function updateDevAddr(address newValue) public onlyDev {
        emit UpdateDevAddr(devAddr, newValue);
        devAddr = newValue;
    }

    /**
     * @notice Recover ERC20 from contract
     * @param tokenAddress token address
     * @param tokenAmount amount to recover
     */
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAmount > 0);
        require(IERC20(tokenAddress).transfer(msg.sender, tokenAmount));
        emit Recovered(tokenAddress, tokenAmount);
    }

    /**
     * @notice Recover AVAX from contract
     * @param amount amount
     */
    function recoverAVAX(uint256 amount) external onlyOwner {
        require(amount > 0);
        payable(msg.sender).transfer(amount);
        emit Recovered(address(0), amount);
    }
}

File 12 of 17 : IWAVAX.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

interface IWAVAX {
    function deposit() external payable;

    function transfer(address to, uint256 value) external returns (bool);

    function balanceOf(address owner) external view returns (uint256);

    function withdraw(uint256) external;

    function approve(address to, uint256 value) external returns (bool);
}

File 13 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity 0.8.13;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

    /**
     * @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 a - b;
    }

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 14 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        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 15 of 17 : Permissioned.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./Ownable.sol";

abstract contract Permissioned is Ownable {
    uint256 public numberOfAllowedDepositors;
    mapping(address => bool) public allowedDepositors;

    event AllowDepositor(address indexed account);
    event RemoveDepositor(address indexed account);

    modifier onlyAllowedDeposits() {
        if (numberOfAllowedDepositors > 0) {
            require(allowedDepositors[msg.sender] == true, "Permissioned::onlyAllowedDeposits, not allowed");
        }
        _;
    }

    /**
     * @notice Add an allowed depositor
     * @param depositor address
     */
    function allowDepositor(address depositor) external onlyOwner {
        require(allowedDepositors[depositor] == false, "Permissioned::allowDepositor");
        allowedDepositors[depositor] = true;
        numberOfAllowedDepositors = numberOfAllowedDepositors + 1;
        emit AllowDepositor(depositor);
    }

    /**
     * @notice Remove an allowed depositor
     * @param depositor address
     */
    function removeDepositor(address depositor) external onlyOwner {
        require(numberOfAllowedDepositors > 0, "Permissioned::removeDepositor, no allowed depositors");
        require(allowedDepositors[depositor] == true, "Permissioned::removeDepositor, not allowed");
        allowedDepositors[depositor] = false;
        numberOfAllowedDepositors = numberOfAllowedDepositors - 1;
        emit RemoveDepositor(depositor);
    }
}

File 16 of 17 : YakERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./interfaces/IERC20.sol";

abstract contract YakERC20 {
    string public name = "Yield Yak";
    string public symbol = "YRT";
    uint8 public constant decimals = 18;
    uint256 public totalSupply;

    mapping(address => mapping(address => uint256)) internal allowances;
    mapping(address => uint256) internal balances;

    /// @dev keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
    bytes32 public constant DOMAIN_TYPEHASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;

    /// @dev keccak256("1");
    bytes32 public constant VERSION_HASH = 0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6;

    /// @dev keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    mapping(address => uint256) public nonces;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor() {}

    /**
     * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
     * @param account The address of the account holding the funds
     * @param spender The address of the account spending the funds
     * @return The number of tokens approved
     */
    function allowance(address account, address spender) external view returns (uint256) {
        return allowances[account][spender];
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * It is recommended to use increaseAllowance and decreaseAllowance instead
     * @param spender The address of the account which may transfer tokens
     * @param amount The number of tokens that are approved (2^256-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint256 amount) external returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    /**
     * @notice Get the number of tokens held by the `account`
     * @param account The address of the account to get the balance of
     * @return The number of tokens held
     */
    function balanceOf(address account) external view returns (uint256) {
        return balances[account];
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint256 amount) external returns (bool) {
        _transferTokens(msg.sender, dst, amount);
        return true;
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(
        address src,
        address dst,
        uint256 amount
    ) external returns (bool) {
        address spender = msg.sender;
        uint256 spenderAllowance = allowances[src][spender];

        if (spender != src && spenderAllowance != type(uint256).max) {
            uint256 newAllowance = spenderAllowance - amount;
            allowances[src][spender] = newAllowance;

            emit Approval(src, spender, newAllowance);
        }

        _transferTokens(src, dst, amount);
        return true;
    }

    /**
     * @notice Approval implementation
     * @param owner The address of the account which owns tokens
     * @param spender The address of the account which may transfer tokens
     * @param amount The number of tokens that are approved (2^256-1 means infinite)
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), "_approve::owner zero address");
        require(spender != address(0), "_approve::spender zero address");
        allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @notice Transfer implementation
     * @param from The address of the account which owns tokens
     * @param to The address of the account which is receiving tokens
     * @param value The number of tokens that are being transferred
     */
    function _transferTokens(
        address from,
        address to,
        uint256 value
    ) internal {
        require(to != address(0), "_transferTokens: cannot transfer to the zero address");

        balances[from] = balances[from] - value;
        balances[to] = balances[to] + value;
        emit Transfer(from, to, value);
    }

    function _mint(address to, uint256 value) internal {
        totalSupply = totalSupply + value;
        balances[to] = balances[to] + value;
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint256 value) internal {
        balances[from] = balances[from] - value;
        totalSupply = totalSupply - value;
        emit Transfer(from, address(0), value);
    }

    /**
     * @notice Triggers an approval from owner to spender
     * @param owner The address to approve from
     * @param spender The address to be approved
     * @param value The number of tokens that are approved (2^256-1 means infinite)
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external {
        require(deadline >= block.timestamp, "permit::expired");

        bytes32 encodeData = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline));
        _validateSignedData(owner, encodeData, v, r, s);

        _approve(owner, spender, value);
    }

    /**
     * @notice Recovers address from signed data and validates the signature
     * @param signer Address that signed the data
     * @param encodeData Data signed by the address
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function _validateSignedData(
        address signer,
        bytes32 encodeData,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal view {
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", getDomainSeparator(), encodeData));
        address recoveredAddress = ecrecover(digest, v, r, s);
        // Explicitly disallow authorizations for address(0) as ecrecover returns address(0) on malformed messages
        require(recoveredAddress != address(0) && recoveredAddress == signer, "Arch::validateSig: invalid signature");
    }

    /**
     * @notice EIP-712 Domain separator
     * @return Separator
     */
    function getDomainSeparator() public view returns (bytes32) {
        return
            keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), VERSION_HASH, _getChainId(), address(this)));
    }

    /**
     * @notice Current id of the chain where this contract is deployed
     * @return Chain id
     */
    function _getChainId() internal view returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}

File 17 of 17 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

/*
 * @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 payable(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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_nativeRewardToken","type":"address"},{"components":[{"internalType":"address","name":"poolReward","type":"address"},{"internalType":"address","name":"extraReward","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"internalType":"struct MasterChefStrategyForLP.SwapPairs","name":"_swapPairs","type":"tuple"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_voterProxy","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"components":[{"internalType":"address","name":"depositToken","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"minTokensToReinvest","type":"uint256"},{"internalType":"uint256","name":"devFeeBips","type":"uint256"},{"internalType":"uint256","name":"reinvestRewardBips","type":"uint256"}],"internalType":"struct YakStrategyV2.StrategySettings","name":"_strategySettings","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AllowDepositor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"DepositsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTotalDeposits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"Reinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RemoveDepositor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateAdminFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValue","type":"address"},{"indexed":false,"internalType":"address","name":"newValue","type":"address"}],"name":"UpdateDevAddr","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateDevFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMaxTokensToDepositWithoutReinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMinTokensToReinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateReinvestReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITS_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TOKENS_TO_REINVEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REINVEST_REWARD_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"depositor","type":"address"}],"name":"allowDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedDepositors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimateDeployedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimateReinvestReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDepositTokensForShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getSharesForDepositTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfAllowedDepositors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxy","outputs":[{"internalType":"contract IJoeVoterProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverAVAX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"depositor","type":"address"}],"name":"removeDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minReturnAmountAccepted","type":"uint256"},{"internalType":"bool","name":"disableDeposits","type":"bool"}],"name":"rescueDeployedFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"revokeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_extraTokenSwapPair","type":"address"}],"name":"setExtraRewardSwapPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapPairExtraReward","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapPairRewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateAdminFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newValue","type":"bool"}],"name":"updateDepositsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newValue","type":"address"}],"name":"updateDevAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateMaxTokensToDepositWithoutReinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateMinTokensToReinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateReinvestReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610120604052600960e0819052685969656c642059616b60b81b6101009081526200002e9160009190620015b6565b506040805180820190915260038082526216549560ea1b60209092019182526200005b91600191620015b6565b503480156200006957600080fd5b5060405162005e5138038062005e518339810160408190526200008c91620017d0565b878787848785858585600001518660200151868686806000620000b46200024a60201b60201c565b600680546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062005e31833981519152908290a35080516001600160a01b0390811660805260208201511660a05260408101516200011a906200024e565b60608101516200012a90620002de565b60808101516200013a9062000389565b508651620001509060009060208a0190620015b6565b5060c0829052600980546001600160a01b031916732d580f9cf2fb2d09bc411532988f2afda4e7beff17905560208101516200018e90878762000434565b62000199846200070c565b620001a56001620008ec565b620001b08362000996565b60408051600080825260208201527fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef234910160405180910390a150505050505050620002078482602001518762000a9360201b60201c565b5050601680546001600160a01b039a8b166001600160a01b0319918216179091556017805498909a16971696909617909755506200199698505050505050505050565b3390565b6006546001600160a01b031633146200029d5760405162461bcd60e51b8152602060048201819052602482015260008051602062005e1183398151915260448201526064015b60405180910390fd5b600a5460408051918252602082018390527f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef849901100910160405180910390a1600a55565b6006546001600160a01b03163314620003295760405162461bcd60e51b8152602060048201819052602482015260008051602062005e11833981519152604482015260640162000294565b612710600e54826200033c91906200190e565b11156200034857600080fd5b600f5460408051918252602082018390527f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d651726131910160405180910390a1600f55565b6006546001600160a01b03163314620003d45760405162461bcd60e51b8152602060048201819052602482015260008051602062005e11833981519152604482015260640162000294565b612710600f5482620003e791906200190e565b1115620003f357600080fd5b600e5460408051918252602082018390527fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f2910160405180910390a1600e55565b826001600160a01b0316826001600160a01b031614620006dd57806001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200048d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004b3919062001935565b6001600160a01b0316826001600160a01b031603620005ae57826001600160a01b0316816001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200053b919062001935565b6001600160a01b031614620005a85760405162461bcd60e51b815260206004820152603f602482015260008051602062005df183398151915260448201527f6f6573206e6f7420636f6e7461696e2065636f73797374656d20746f6b656e00606482015260840162000294565b620006dd565b806001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015620005ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000613919062001935565b6001600160a01b0316826001600160a01b0316036200067557826001600160a01b0316816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000515573d6000803e3d6000fd5b60405162461bcd60e51b8152602060048201526041602482015260008051602062005df183398151915260448201527f6f6573206e6f7420636f6e7461696e20706f6f6c2072657761726420746f6b656064820152603760f91b608482015260a40162000294565b601080546001600160a01b039384166001600160a01b0319918216179091556011805492909316911617905550565b6001600160a01b03811615620008cd5760a0516001600160a01b0316816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000767573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200078d919062001935565b6001600160a01b0316036200082757806001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015620007db573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000801919062001935565b601380546001600160a01b0319166001600160a01b0392909216919091179055620008ad565b806001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000866573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200088c919062001935565b601380546001600160a01b0319166001600160a01b03929092169190911790555b601280546001600160a01b0383166001600160a01b031990911617905550565b601280546001600160a01b031990811690915560138054909116905550565b6006546001600160a01b03163314620009375760405162461bcd60e51b8152602060048201819052602482015260008051602062005e11833981519152604482015260640162000294565b600c5481151560ff9091161515036200094f57600080fd5b600c805460ff19168215159081179091556040519081527f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e859060200160405180910390a150565b6006546001600160a01b03163314620009e15760405162461bcd60e51b8152602060048201819052602482015260008051602062005e11833981519152604482015260640162000294565b6001600160a01b03811662000a485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000294565b6006546040516001600160a01b0380841692169060008051602062005e3183398151915290600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6080516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000ad4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000afa919062001935565b6001600160a01b0316826001600160a01b03161415801562000b9457506080516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000b58573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000b7e919062001935565b6001600160a01b0316826001600160a01b031614155b15620012f35760408301516001600160a01b031662000c085760405162461bcd60e51b815260206004820152602960248201527f5377617020706169722030206973206e656365737361727920627574206e6f74604482015268081cdd5c1c1b1a595960ba1b606482015260840162000294565b60608301516001600160a01b031662000c765760405162461bcd60e51b815260206004820152602960248201527f5377617020706169722031206973206e656365737361727920627574206e6f74604482015268081cdd5c1c1b1a595960ba1b606482015260840162000294565b604080840151601480546001600160a01b039283166001600160a01b03199182168117909255606087015160158054918516919092161790558251630dfe168160e01b81529251918516929091630dfe1681916004808201926020929091908290030181865afa15801562000cef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d15919062001935565b6001600160a01b0316148062000da357506014546040805163d21220a760e01b815290516001600160a01b0380861693169163d21220a79160048083019260209291908290030181865afa15801562000d72573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d98919062001935565b6001600160a01b0316145b62000e255760405162461bcd60e51b815260206004820152604560248201527f53776170207061697220737570706c69656420646f6573206e6f74206861766560448201527f207468652072657761726420746f6b656e206173206f6e65206f662069742773606482015264103830b4b960d91b608482015260a40162000294565b6080516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000e66573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000e8c919062001935565b6001600160a01b0316601460009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000ee9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f0f919062001935565b6001600160a01b031614806200101557506080516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000f61573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f87919062001935565b6001600160a01b0316601460009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200100a919062001935565b6001600160a01b0316145b620010895760405162461bcd60e51b815260206004820152603860248201527f537761702070616972203020737570706c69656420646f6573206e6f74206d6160448201527f74636820746865207061697220696e207175657374696f6e0000000000000000606482015260840162000294565b6080516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015620010ca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620010f0919062001935565b6001600160a01b0316601560009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200114d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001173919062001935565b6001600160a01b031614806200127957506080516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015620011c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620011eb919062001935565b6001600160a01b0316601560009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001248573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200126e919062001935565b6001600160a01b0316145b620012ed5760405162461bcd60e51b815260206004820152603860248201527f537761702070616972203120737570706c69656420646f6573206e6f74206d6160448201527f74636820746865207061697220696e207175657374696f6e0000000000000000606482015260840162000294565b6200143e565b6080516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200135a919062001935565b6001600160a01b0316826001600160a01b0316036200139b57608051601580546001600160a01b0319166001600160a01b039092169190911790556200143e565b6080516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015620013dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001402919062001935565b6001600160a01b0316826001600160a01b0316036200143e57608051601480546001600160a01b0319166001600160a01b039092169190911790555b82600001516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562001481573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620014a7919062001935565b6001600160a01b0316816001600160a01b031603620015b157816001600160a01b031683600001516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200150d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001533919062001935565b6001600160a01b031614620015b15760405162461bcd60e51b815260206004820152603a60248201527f537761702070616972207377617050616972506f6f6c52657761726420646f6560448201527f73206e6f7420636f6e7461696e2072657761726420746f6b656e000000000000606482015260840162000294565b505050565b828054620015c4906200195a565b90600052602060002090601f016020900481019282620015e8576000855562001633565b82601f106200160357805160ff191683800117855562001633565b8280016001018555821562001633579182015b828111156200163357825182559160200191906001019062001616565b506200164192915062001645565b5090565b5b8082111562001641576000815560010162001646565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200169d576200169d6200165c565b604052919050565b80516001600160a01b0381168114620016bd57600080fd5b919050565b600060808284031215620016d557600080fd5b604051608081016001600160401b0381118282101715620016fa57620016fa6200165c565b6040529050806200170b83620016a5565b81526200171b60208401620016a5565b60208201526200172e60408401620016a5565b60408201526200174160608401620016a5565b60608201525092915050565b600060a082840312156200176057600080fd5b60405160a081016001600160401b03811182821017156200178557620017856200165c565b6040529050806200179683620016a5565b8152620017a660208401620016a5565b60208201526040830151604082015260608301516060820152608083015160808201525092915050565b6000806000806000806000806101e0898b031215620017ee57600080fd5b88516001600160401b03808211156200180657600080fd5b818b0191508b601f8301126200181b57600080fd5b8151818111156200183057620018306200165c565b6020915062001848601f8201601f1916830162001672565b8181528d838386010111156200185d57600080fd5b60005b828110156200187d57848101840151828201850152830162001860565b828111156200188f5760008484840101525b509a50620018a190508b8201620016a5565b98505050620018b48a60408b01620016c2565b9550620018c460c08a01620016a5565b945060e08901519350620018dc6101008a01620016a5565b9250620018ed6101208a01620016a5565b9150620018ff8a6101408b016200174d565b90509295985092959890939650565b600082198211156200193057634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200194857600080fd5b6200195382620016a5565b9392505050565b600181811c908216806200196f57607f821691505b6020821081036200199057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05161436762001a8a6000396000818161056601528181610fe8015281816116ce015281816120560152818161285b01528181612c450152612ffa015260008181610868015281816124ba015281816128a6015281816128ee015281816129f401528181612a4b01528181612cc301528181612d1c0152818161315a0152818161319f015281816131f8015261333001526000818161075501528181610abb01528181610b97015281816116540152818161170a015281816122c3015281816126c40152818161277901528181612dfd0152818161335201528181613395015261340301526143676000f3fe608060405234801561001057600080fd5b50600436106103a45760003560e01c80638b73e606116101e9578063c4b24a461161010f578063e21ac825116100ad578063ee99205c1161007c578063ee99205c1461083d578063f2fde38b14610850578063f7c618c114610863578063fdb5a03e1461088a57600080fd5b8063e21ac825146107fc578063eab89a5a1461080f578063ec55688914610822578063ed24911d1461083557600080fd5b8063d505accf116100e9578063d505accf1461078a578063da09c72c1461079d578063dd62ed3e146107b0578063dd8ce4d6146107e957600080fd5b8063c4b24a4614610748578063c89039c514610750578063cff1b6ef1461077757600080fd5b8063a1a4ddeb11610187578063b52a321f11610156578063b52a321f14610717578063b6b55f2514610724578063b9e57b8014610737578063bd079f551461073f57600080fd5b8063a1a4ddeb146106cb578063a8ae2b7c146106de578063a9059cbb146106f1578063ac0d31ff1461070457600080fd5b80639291d563116101c35780639291d5631461067657806395d89b411461068957806399729ec1146106915780639e4e7318146106a457600080fd5b80638b73e6061461063f5780638da5cb5b14610652578063909ac8f41461066357600080fd5b80634e77ace5116102ce578063789139bc1161026c578063818372301161023b57806381837230146105fd5780638432e894146106105780638980f11f146106235780638aff733d1461063657600080fd5b8063789139bc146105b95780637ae26773146105c25780637d882097146105d55780637ecebe00146105dd57600080fd5b80635ea682ea116102a85780635ea682ea146105585780635eaec0e41461056157806370a0823114610588578063715018a6146105b157600080fd5b80634e77ace5146105075780634ebb79161461051a5780635e5eee1b1461052d57600080fd5b80632e1a7d4d116103465780633bdc6e72116103155780633bdc6e72146104b5578063483c2ef0146104be5780634a970be7146104e15780634bebd1e7146104f457600080fd5b80632e1a7d4d1461044c5780632f4f21e21461046157806330adf81f14610474578063313ce5671461049b57600080fd5b80630f23475d116103825780630f23475d1461040157806318160ddd1461040957806320606b701461041257806323b872dd1461043957600080fd5b806306fdde03146103a957806307677111146103c7578063095ea7b3146103de575b600080fd5b6103b1610892565b6040516103be9190613e41565b60405180910390f35b6103d0600d5481565b6040519081526020016103be565b6103f16103ec366004613e69565b610920565b60405190151581526020016103be565b6103d0610937565b6103d060025481565b6103d07f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6103f1610447366004613e95565b610972565b61045f61045a366004613ed6565b610a3b565b005b61045f61046f366004613e69565b610b30565b6103d07f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6104a3601281565b60405160ff90911681526020016103be565b6103d060075481565b6103f16104cc366004613eef565b60086020526000908152604090205460ff1681565b61045f6104ef366004613f22565b610b3e565b61045f610502366004613eef565b610c0c565b61045f610515366004613f77565b610d29565b61045f610528366004613ed6565b610dd0565b601854610540906001600160a01b031681565b6040516001600160a01b0390911681526020016103be565b6103d0600f5481565b6103d07f000000000000000000000000000000000000000000000000000000000000000081565b6103d0610596366004613eef565b6001600160a01b031660009081526004602052604090205490565b61045f610e8a565b6103d0600b5481565b61045f6105d0366004613f94565b610f1c565b6103d0610fe0565b6103d06105eb366004613eef565b60056020526000908152604090205481565b61045f61060b366004613ed6565b61100d565b61045f61061e366004613eef565b611096565b61045f610631366004613e69565b6110fc565b6103d0600e5481565b61045f61064d366004613eef565b611211565b6006546001600160a01b0316610540565b601254610540906001600160a01b031681565b61045f610684366004613eef565b6113cd565b6103b1611490565b61045f61069f366004613ed6565b61149d565b6103d07fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc681565b601354610540906001600160a01b031681565b61045f6106ec366004613ed6565b611542565b6103f16106ff366004613e69565b6115e7565b61045f610712366004613fcd565b6115f4565b600c546103f19060ff1681565b61045f610732366004613ed6565b611870565b6103d061187a565b6103d0600a5481565b6103d06118b9565b6105407f000000000000000000000000000000000000000000000000000000000000000081565b61045f610785366004613ed6565b6118cd565b61045f610798366004613ff2565b611961565b600954610540906001600160a01b031681565b6103d06107be366004613f94565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6103d06107f7366004613ed6565b611a74565b61045f61080a366004613ed6565b611ab5565b6103d061081d366004613ed6565b611b3e565b601754610540906001600160a01b031681565b6103d0611b79565b601654610540906001600160a01b031681565b61045f61085e366004613eef565b611c19565b6105407f000000000000000000000000000000000000000000000000000000000000000081565b61045f611d39565b6000805461089f90614060565b80601f01602080910402602001604051908101604052809291908181526020018280546108cb90614060565b80156109185780601f106108ed57610100808354040283529160200191610918565b820191906000526020600020905b8154815290600101906020018083116108fb57829003601f168201915b505050505081565b600061092d338484611dfb565b5060015b92915050565b600080610942610fe0565b905060008061095e6127105b6109588585611f09565b90611f15565b905061096a8382611f21565b935050505090565b6001600160a01b0383166000818152600360209081526040808320338085529252822054919290919082148015906109ac57506000198114155b15610a225760006109bd85836140b0565b6001600160a01b038881166000818152600360209081526040808320948916808452948252918290208590559051848152939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b610a2d868686611f2d565b6001925050505b9392505050565b6000610a4682611b3e565b905060008111610a9d5760405162461bcd60e51b815260206004820152601e60248201527f4d617374657243686566537472617465677956313a3a7769746864726177000060448201526064015b60405180910390fd5b610aa681612051565b600080610ab461271061094e565b9050610aea7f000000000000000000000000000000000000000000000000000000000000000033610ae58685611f21565b61207b565b610af43385612165565b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a250505050565b610b3a82826121f9565b5050565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d505accf9060e401600060405180830381600087803b158015610be357600080fd5b505af1158015610bf7573d6000803e3d6000fd5b50505050610c0533866121f9565b5050505050565b6006546001600160a01b03163314610c545760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6001600160a01b03811660009081526008602052604090205460ff1615610cbd5760405162461bcd60e51b815260206004820152601c60248201527f5065726d697373696f6e65643a3a616c6c6f774465706f7369746f72000000006044820152606401610a94565b6001600160a01b0381166000908152600860205260409020805460ff19166001908117909155600754610cef916140c7565b6007556040516001600160a01b038216907fc0a1035c16faf8d1304056d92c00edf028f87e62b8235a938f00af9e3c0312c590600090a250565b6006546001600160a01b03163314610d715760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b600c5481151560ff909116151503610d8857600080fd5b600c805460ff19168215159081179091556040519081527f7b014ed3854e7f5cb0218d58b3c6ae7d53a68bb0af2f67bfb029ea42c38a7e85906020015b60405180910390a150565b6006546001600160a01b03163314610e185760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b60008111610e2557600080fd5b604051339082156108fc029083906000818181858888f19350505050158015610e52573d6000803e3d6000fd5b506040805160008152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa289101610dc5565b6006546001600160a01b03163314610ed25760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6006546001600160a01b03163314610f645760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b60405163095ea7b360e01b81526001600160a01b0382811660048301526000602483015283169063095ea7b3906044016020604051808303816000875af1158015610fb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd791906140df565b610b3a57600080fd5b6000806109317f000000000000000000000000000000000000000000000000000000000000000030612414565b6006546001600160a01b031633146110555760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b600a5460408051918252602082018390527f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef849901100910160405180910390a1600a55565b6009546001600160a01b031633146110f05760405162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c794465760000000000000000000000006044820152606401610a94565b6110f9816124a9565b50565b6006546001600160a01b031633146111445760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6000811161115157600080fd5b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af115801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c291906140df565b6111cb57600080fd5b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b6006546001600160a01b031633146112595760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6000600754116112d15760405162461bcd60e51b815260206004820152603460248201527f5065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e60448201527f6f20616c6c6f776564206465706f7369746f72730000000000000000000000006064820152608401610a94565b6001600160a01b03811660009081526008602052604090205460ff1615156001146113645760405162461bcd60e51b815260206004820152602a60248201527f5065726d697373696f6e65643a3a72656d6f76654465706f7369746f722c206e60448201527f6f7420616c6c6f776564000000000000000000000000000000000000000000006064820152608401610a94565b6001600160a01b0381166000908152600860205260409020805460ff19169055600754611393906001906140b0565b6007556040516001600160a01b038216907f0e86f6608b536e5339a25b65ff531f5ea91e1313d056ecd4752b35cbd16137d490600090a250565b6009546001600160a01b031633146114275760405162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c794465760000000000000000000000006044820152606401610a94565b600954604080516001600160a01b03928316815291831660208301527fa8e91499ed37682f43cffb045fcc7d379a91e8c9a14e6321877ee34dee564c00910160405180910390a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001805461089f90614060565b6006546001600160a01b031633146114e55760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b612710600e54826114f691906140c7565b111561150157600080fd5b600f5460408051918252602082018390527f2a42303d002f0ba6cfe8259c91d4684443fb0b3de286ba74991175d651726131910160405180910390a1600f55565b6006546001600160a01b0316331461158a5760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b612710600f548261159b91906140c7565b11156115a657600080fd5b600e5460408051918252602082018390527fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f2910160405180910390a1600e55565b600061092d338484611f2d565b6006546001600160a01b0316331461163c5760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156116a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c791906140fc565b90506116f27f000000000000000000000000000000000000000000000000000000000000000061269b565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611759573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177d91906140fc565b90508361178a8284611f21565b10156117fe5760405162461bcd60e51b815260206004820152602960248201527f4d617374657243686566537472617465677956313a3a7265736375654465706c60448201527f6f79656446756e647300000000000000000000000000000000000000000000006064820152608401610a94565b7fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef234611827610fe0565b6002546040805192835260208301919091520160405180910390a1600c5460ff161515600114801561185b57506001831515145b1561186a5761186a6000610d29565b50505050565b6110f933826121f9565b6000806118856118b9565b9050600a5481106118b157612710600e54826118a19190614115565b6118ab9190614134565b91505090565b600091505090565b6000806118c46127da565b95945050505050565b6006546001600160a01b031633146119155760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b801561192057600080fd5b600d5460408051918252602082018390527f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a910160405180910390a1600d55565b428410156119b15760405162461bcd60e51b815260206004820152600f60248201527f7065726d69743a3a6578706972656400000000000000000000000000000000006044820152606401610a94565b6001600160a01b038716600090815260056020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918a918a918a9190866119fe83614156565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050611a5f8882868686612ae0565b611a6a888888611dfb565b5050505050505050565b6000611a7e610fe0565b600254611a8b9190614115565b600003611a96575090565b611a9e610fe0565b600254611aab9084614115565b6109319190614134565b6006546001600160a01b03163314611afd5760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b600b5460408051918252602082018390527fa5dae50539d56dfe1fb5273d883b0c39bc76750a25d036fc5fbd09ad8fd5f57f910160405180910390a1600b55565b6000611b48610fe0565b600254611b559190614115565b600003611b6457506000919050565b600254611b6f610fe0565b611aab9084614115565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60001b6000604051611bae919061416f565b6040519081900390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646604080516020810195909552840192909252606083015260808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6006546001600160a01b03163314611c615760405162461bcd60e51b815260206004820181905260248201526000805160206143128339815191526044820152606401610a94565b6001600160a01b038116611cdd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a94565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b323314611d885760405162461bcd60e51b815260206004820152601460248201527f59616b53747261746567793a3a6f6e6c79454f410000000000000000000000006044820152606401610a94565b600080600080611d966127da565b9350935093509350600a54811015611df05760405162461bcd60e51b815260206004820152601e60248201527f4d617374657243686566537472617465677956313a3a7265696e7665737400006044820152606401610a94565b61186a828585612c40565b6001600160a01b038316611e515760405162461bcd60e51b815260206004820152601c60248201527f5f617070726f76653a3a6f776e6572207a65726f2061646472657373000000006044820152606401610a94565b6001600160a01b038216611ea75760405162461bcd60e51b815260206004820152601e60248201527f5f617070726f76653a3a7370656e646572207a65726f206164647265737300006044820152606401610a94565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610a348284614115565b6000610a348284614134565b6000610a3482846140b0565b6001600160a01b038216611fa95760405162461bcd60e51b815260206004820152603460248201527f5f7472616e73666572546f6b656e733a2063616e6e6f74207472616e7366657260448201527f20746f20746865207a65726f20616464726573730000000000000000000000006064820152608401610a94565b6001600160a01b038316600090815260046020526040902054611fcd9082906140b0565b6001600160a01b038085166000908152600460205260408082209390935590841681522054611ffd9082906140c7565b6001600160a01b0380841660008181526004602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611efc9085815260200190565b6110f97f000000000000000000000000000000000000000000000000000000000000000082612db8565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156120ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ee91906140df565b6121605760405162461bcd60e51b815260206004820152602a60248201527f4d617374657243686566537472617465677956313a3a5452414e534645525f4660448201527f524f4d5f4641494c4544000000000000000000000000000000000000000000006064820152608401610a94565b505050565b6001600160a01b0382166000908152600460205260409020546121899082906140b0565b6001600160a01b0383166000908152600460205260409020556002546121b09082906140b0565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b600c5460ff1615156001146122505760405162461bcd60e51b815260206004820152601e60248201527f4d617374657243686566537472617465677956313a3a5f6465706f73697400006044820152606401610a94565b600b5415612288576000806000806122666127da565b9350935093509350600b5481111561228357612283828585612c40565b505050505b6040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015612314573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233891906140df565b6123aa5760405162461bcd60e51b815260206004820152602560248201527f4d617374657243686566537472617465677956313a3a7472616e73666572206660448201527f61696c65640000000000000000000000000000000000000000000000000000006064820152608401610a94565b6000806123b861271061094e565b90506123d0846123cb6107f78685611f21565b612ef9565b6123d983612f7f565b836001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c84604051610b2291815260200190565b6017546016546040517f01e1c48d0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810185905260009291909116906301e1c48d90604401602060405180830381865afa158015612485573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3491906140fc565b6001600160a01b0381161561267c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612520573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612544919061420a565b6001600160a01b0316036125d957806001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b4919061420a565b601380546001600160a01b0319166001600160a01b039290921691909117905561265c565b806001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612617573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263b919061420a565b601380546001600160a01b0319166001600160a01b03929092169190911790555b601280546001600160a01b0383166001600160a01b031990911617905550565b601280546001600160a01b031990811690915560138054909116905550565b60175460405163095ea7b360e01b81526001600160a01b039182166004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b3906044016020604051808303816000875af115801561270f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061273391906140df565b506017546016546040517fd2cee46f000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0391821660248201527f00000000000000000000000000000000000000000000000000000000000000008216604482015291169063d2cee46f906064015b600060405180830381600087803b1580156127c657600080fd5b505af1158015610c05573d6000803e3d6000fd5b6010546040516370a0823160e01b815230600482015260009182918291829182916001600160a01b0316906370a0823190602401602060405180830381865afa15801561282b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284f91906140fc565b905060008060006128807f00000000000000000000000000000000000000000000000000000000000000003061301f565b91945092509050600061289385856130cc565b6010549091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116036128d45784612914565b6010546011546129149184916001600160a01b03918216917f000000000000000000000000000000000000000000000000000000000000000091166130d8565b905060006001600160a01b03841615612a25577fffffffffffffffffffffffff4ce09955c3e187ac9c0f78a5e48b1d847a0299396001600160a01b0385160161295e575083612a25565b6012546001600160a01b031615612a25576013546040516370a0823160e01b81523060048201526129e4916001600160a01b0316906370a0823190602401602060405180830381865afa1580156129b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129dd91906140fc565b86906130cc565b601254909550612a2290869086907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b03166130d8565b90505b6040516370a0823160e01b8152306004820152600090612abc9083906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015612a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab691906140fc565b906130cc565b90506000612aca82856130cc565b949d969c50909a50929850939650505050505050565b6000612aea611b79565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810186905260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015612b90573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590612bc65750866001600160a01b0316816001600160a01b0316145b612c375760405162461bcd60e51b8152602060048201526024808201527f417263683a3a76616c69646174655369673a20696e76616c6964207369676e6160448201527f74757265000000000000000000000000000000000000000000000000000000006064820152608401610a94565b50505050505050565b612c697f00000000000000000000000000000000000000000000000000000000000000006130e8565b6000612c7e612c7784613147565b85906130cc565b9050612c94612c8d85846131c5565b82906130cc565b506000612cb2612710610958600f5485611f0990919063ffffffff16565b90508015612cf257600954612cf2907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b03168361207b565b6000612d0f612710610958600e5486611f0990919063ffffffff16565b90508015612d4257612d427f0000000000000000000000000000000000000000000000000000000000000000338361207b565b6000612d60612d5b83612d558787611f21565b90611f21565b61331f565b9050612d6b81612f7f565b7fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef234612d94610fe0565b6002546040805192835260208301919091520160405180910390a150505050505050565b6017546016546040517fa318c1a4000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0391821660248201527f0000000000000000000000000000000000000000000000000000000000000000821660448201526064810184905291169063a318c1a4906084015b600060405180830381600087803b158015612e5157600080fd5b505af1158015612e65573d6000803e3d6000fd5b50506017546016546013546040517fbb51e89f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b03928316602482015290821660448201529116925063bb51e89f9150606401600060405180830381600087803b158015612edd57600080fd5b505af1158015612ef1573d6000803e3d6000fd5b505050505050565b80600254612f0791906140c7565b6002556001600160a01b038216600090815260046020526040902054612f2e9082906140c7565b6001600160a01b0383166000818152600460205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906121ed9085815260200190565b60008111612ff55760405162461bcd60e51b815260206004820152602960248201527f4d617374657243686566537472617465677956313a3a5f7374616b654465706f60448201527f736974546f6b656e7300000000000000000000000000000000000000000000006064820152608401610a94565b6110f97f000000000000000000000000000000000000000000000000000000000000000082613384565b6017546016546040517f6099ecb20000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810185905260009283928392839283928392911690636099ecb290604401606060405180830381865afa158015613098573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130bc9190614227565b919a919950975095505050505050565b6000610a3482846140c7565b60006118c4858585856003613441565b6017546016546013546040517f6f7b2a62000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0392831660248201529082166044820152911690636f7b2a62906064016127ac565b6010546000906001600160a01b039081167f000000000000000000000000000000000000000000000000000000000000000090911603613185575090565b6010546011546109319184916001600160a01b03918216917f00000000000000000000000000000000000000000000000000000000000000009116613501565b60008115613316576012546001600160a01b0316156132255760135460125461321e9184916001600160a01b03918216917f00000000000000000000000000000000000000000000000000000000000000009116613501565b9050610931565b4780156132955773b31f66aa3c1e785363f0875a1b74e27b85fd66c76001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561327b57600080fd5b505af115801561328f573d6000803e3d6000fd5b50505050505b6040516370a0823160e01b815230600482015261330e90859073b31f66aa3c1e785363f0875a1b74e27b85fd66c7906370a0823190602401602060405180830381865afa1580156132ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5591906140fc565b915050610931565b50600092915050565b6014546015546000916109319184917f0000000000000000000000000000000000000000000000000000000000000000917f0000000000000000000000000000000000000000000000000000000000000000916001600160a01b039081169116613511565b6017546133be906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691168361352e565b6017546016546040517fe4cca4b0000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0391821660248201527f0000000000000000000000000000000000000000000000000000000000000000821660448201526064810184905291169063e4cca4b090608401612e37565b60008061344e8686613595565b509050600080856001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015613492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134b69190614277565b5091509150876001600160a01b0316836001600160a01b0316146134d657905b6134f489836001600160701b0316836001600160701b0316886135c6565b9998505050505050505050565b60006118c4858585856003613620565b60006135248686868660038760036137af565b9695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b179052612160908490613965565b600080826001600160a01b0316846001600160a01b0316106135b85782846135bb565b83835b915091509250929050565b6000806135d5836103e86140b0565b6135df9087614115565b905060006135ed8583614115565b90506000826135fe886103e8614115565b61360891906140c7565b90506136148183614134565b98975050505050505050565b60008061362d8686613595565b509050600080856001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015613671573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136959190614277565b5091509150876001600160a01b0316836001600160a01b0316146136b557905b6000806136d68b856001600160701b0316856001600160701b03168a6135c6565b9050896001600160a01b0316856001600160a01b0316146136f357905b6137076001600160a01b038b16898d61352e565b604080516000815260208101918290527f022c0d9f000000000000000000000000000000000000000000000000000000009091526001600160a01b0389169063022c0d9f9061375f90859085903090602481016142c7565b600060405180830381600087803b15801561377957600080fd5b505af115801561378d573d6000803e3d6000fd5b5050505081811161379e57816137a0565b805b9b9a5050505050505050505050565b6000806137bd60028a614134565b9050600081116138355760405162461bcd60e51b815260206004820152602f60248201527f4465784c6962726172793a3a5f636f6e76657274526577617264546f6b656e7360448201527f546f4465706f736974546f6b656e7300000000000000000000000000000000006064820152608401610a94565b6000876001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015613875573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613899919061420a565b9050816001600160a01b038a8116908316146138bf576138bc838b848b8b613620565b90505b6000896001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613923919061420a565b9050836001600160a01b038c81169083161461394957613946858d848b8b613620565b90505b6139548b8483613a4a565b9d9c50505050505050505050505050565b60006139ba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c4a9092919063ffffffff16565b80519091501561216057808060200190518101906139d891906140df565b6121605760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a94565b6000806000856001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015613a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ab19190614277565b50915091506000613ad586846001600160701b0316846001600160701b0316613c61565b905084811115613b0257849050613aff85836001600160701b0316856001600160701b0316613c61565b95505b613b798787896001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015613b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b69919061420a565b6001600160a01b0316919061352e565b613bbc8782896001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015613b45573d6000803e3d6000fd5b6040517f6a6278420000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03881690636a627842906024016020604051808303816000875af1158015613c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c3f91906140fc565b979650505050505050565b6060613c598484600085613c78565b949350505050565b600082613c6e8386614115565b613c599190614134565b606082471015613cf05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a94565b6001600160a01b0385163b613d475760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a94565b600080866001600160a01b03168587604051613d6391906142f5565b60006040518083038185875af1925050503d8060008114613da0576040519150601f19603f3d011682016040523d82523d6000602084013e613da5565b606091505b5091509150613c3f82828660608315613dbf575081610a34565b825115613dcf5782518084602001fd5b8160405162461bcd60e51b8152600401610a949190613e41565b60005b83811015613e04578181015183820152602001613dec565b8381111561186a5750506000910152565b60008151808452613e2d816020860160208601613de9565b601f01601f19169290920160200192915050565b602081526000610a346020830184613e15565b6001600160a01b03811681146110f957600080fd5b60008060408385031215613e7c57600080fd5b8235613e8781613e54565b946020939093013593505050565b600080600060608486031215613eaa57600080fd5b8335613eb581613e54565b92506020840135613ec581613e54565b929592945050506040919091013590565b600060208284031215613ee857600080fd5b5035919050565b600060208284031215613f0157600080fd5b8135610a3481613e54565b803560ff81168114613f1d57600080fd5b919050565b600080600080600060a08688031215613f3a57600080fd5b8535945060208601359350613f5160408701613f0c565b94979396509394606081013594506080013592915050565b80151581146110f957600080fd5b600060208284031215613f8957600080fd5b8135610a3481613f69565b60008060408385031215613fa757600080fd5b8235613fb281613e54565b91506020830135613fc281613e54565b809150509250929050565b60008060408385031215613fe057600080fd5b823591506020830135613fc281613f69565b600080600080600080600060e0888a03121561400d57600080fd5b873561401881613e54565b9650602088013561402881613e54565b9550604088013594506060880135935061404460808901613f0c565b925060a0880135915060c0880135905092959891949750929550565b600181811c9082168061407457607f821691505b60208210810361409457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156140c2576140c261409a565b500390565b600082198211156140da576140da61409a565b500190565b6000602082840312156140f157600080fd5b8151610a3481613f69565b60006020828403121561410e57600080fd5b5051919050565b600081600019048311821515161561412f5761412f61409a565b500290565b60008261415157634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016141685761416861409a565b5060010190565b600080835481600182811c91508083168061418b57607f831692505b602080841082036141aa57634e487b7160e01b86526022600452602486fd5b8180156141be57600181146141cf576141fc565b60ff198616895284890196506141fc565b60008a81526020902060005b868110156141f45781548b8201529085019083016141db565b505084890196505b509498975050505050505050565b60006020828403121561421c57600080fd5b8151610a3481613e54565b60008060006060848603121561423c57600080fd5b83519250602084015161424e81613e54565b80925050604084015190509250925092565b80516001600160701b0381168114613f1d57600080fd5b60008060006060848603121561428c57600080fd5b61429584614260565b92506142a360208501614260565b9150604084015163ffffffff811681146142bc57600080fd5b809150509250925092565b8481528360208201526001600160a01b03831660408201526080606082015260006135246080830184613e15565b60008251614307818460208701613de9565b919091019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212200d9c525abe32411298e617b8164396ac5ef237487aaded80146c85ee9fdc6c8864736f6c634300080d003353776170207061697220277377617050616972506f6f6c5265776172642720644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000006e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd000000000000000000000000454e67025631c065d3cfad6d71e6892f74487a150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f57971383560715cccf94e0c639125ae0e955e6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004483f0b6e2f5486d06958c20f8c39a7abe87bf8f000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000c31e24f8a25a1dceccfd791ca25b62dcfec5c8f7000000000000000000000000302404cb8f34713a8b8dbf9b4989a41252332068000000000000000000000000f57971383560715cccf94e0c639125ae0e955e60000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c700000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000185969656c642059616b3a204a4c5020425553442d415641580000000000000000

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

00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000006e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd000000000000000000000000454e67025631c065d3cfad6d71e6892f74487a150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f57971383560715cccf94e0c639125ae0e955e6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004483f0b6e2f5486d06958c20f8c39a7abe87bf8f000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000c31e24f8a25a1dceccfd791ca25b62dcfec5c8f7000000000000000000000000302404cb8f34713a8b8dbf9b4989a41252332068000000000000000000000000f57971383560715cccf94e0c639125ae0e955e60000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c700000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000185969656c642059616b3a204a4c5020425553442d415641580000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Yield Yak: JLP BUSD-AVAX
Arg [1] : _nativeRewardToken (address): 0x6e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd
Arg [2] : _swapPairs (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [3] : _stakingContract (address): 0x4483f0b6e2f5486d06958c20f8c39a7abe87bf8f
Arg [4] : _pid (uint256): 14
Arg [5] : _voterProxy (address): 0xc31e24f8a25a1dceccfd791ca25b62dcfec5c8f7
Arg [6] : _timelock (address): 0x302404cb8f34713a8b8dbf9b4989a41252332068
Arg [7] : _strategySettings (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [1] : 0000000000000000000000006e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd
Arg [2] : 000000000000000000000000454e67025631c065d3cfad6d71e6892f74487a15
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000f57971383560715cccf94e0c639125ae0e955e60
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000004483f0b6e2f5486d06958c20f8c39a7abe87bf8f
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [8] : 000000000000000000000000c31e24f8a25a1dceccfd791ca25b62dcfec5c8f7
Arg [9] : 000000000000000000000000302404cb8f34713a8b8dbf9b4989a41252332068
Arg [10] : 000000000000000000000000f57971383560715cccf94e0c639125ae0e955e60
Arg [11] : 000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [12] : 00000000000000000000000000000000000000000000000000038d7ea4c68000
Arg [13] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [14] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [16] : 5969656c642059616b3a204a4c5020425553442d415641580000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.