Contract 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b

Contract Overview

Balance:
1 wei

CLV Value:
Less Than $0.01 (@ $0.06/CLV)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x80531cbdbd8eae60d4fb6e446abdf72041db9716b93ed29c71e3860d8f6b7c0eHarvest23225182022-11-30 19:03:185 days 11 hrs ago0x56aa4fb42f77faa81b5ca0d2b3cab33f80899648 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0x5d21aa59e4c7c52d10af48ad5f51549eba93ad9068dcf2f9f651b6eec097350aHarvest22210212022-11-16 12:53:2419 days 17 hrs ago0x5def548d48d623c370bf86e9c27c1b83cb222e74 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0x75b977861584083f2d35f8371ca2af2292af0ffb5a3725ba579fbe26269a55ffHarvest21592972022-11-07 20:22:4828 days 10 hrs ago0x8de3c3891268502f77db7e876d727257dec0f852 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0099673
0xb90aa283bd227ef4760f5944e7a514e3b0b6b1d95c53b84ad92488c03329e69eHarvest20984232022-10-30 6:42:5436 days 23 hrs ago0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d7 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0x613db59f1f6db8476c47733899bef19b09dce8c2b7d2634a0c1ba0b21209a9feHarvest20932772022-10-29 13:20:0637 days 17 hrs ago0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d7 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0099673
0x3e1bcaca88db73069fe14909a725a2e8f20225b3455aa8a86f235e39b9840cffHarvest20914162022-10-29 7:03:1237 days 23 hrs ago0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d7 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0xbfee011fb1a280a21ce85d4dd52f801d1ebf1311361ed687022b98612eeddb61Harvest20855492022-10-28 11:08:3638 days 19 hrs ago0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d7 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0099673
0x528456be1f819009e4e6f75f0a28da0fd49adab54abf2ba91aed50e61be92e21Harvest20772132022-10-27 6:54:4239 days 23 hrs ago0x5def548d48d623c370bf86e9c27c1b83cb222e74 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0x9552031e7a98692d08e0ccc9eefcad0adc5efaaf790ca35835bd7d0b661f6e11Harvest20427072022-10-22 8:45:1844 days 21 hrs ago0x5def548d48d623c370bf86e9c27c1b83cb222e74 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.00498365
0x58c43cb57d831f605e15b83fc0f6d5f4ba1b164408fc8e8daecab4ac68696079Harvest19879372022-10-14 14:29:2452 days 16 hrs ago0x8de3c3891268502f77db7e876d727257dec0f852 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0099673
0xfdeb8a3b18414eda78c08d50c49cb974947fbddc0afa8634b41be12f4b9d7a2cHarvest18885162022-09-30 14:19:3666 days 16 hrs ago0x67eba047357e586fa68a18477364bff35ee14767 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0099673
0xd208ca14e72b2be547041ed63f073c6692c2f6b0a8689502afbd364bb186b7b9Harvest16749432022-08-30 20:29:0097 days 10 hrs ago0x8de3c3891268502f77db7e876d727257dec0f852 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.005482015
0xfa10f6ad8f02178077c5d6cf8e248410958bf047ba6b914c4fd1c6b869aa76ebHarvest15431572022-08-11 9:09:48116 days 21 hrs ago0xada286f2d2cb001b53deee492b61d288cfb90a35 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0498365
0x5b45ce3c525b1282616157894c1b6651c0e536cb102cfd2ce642447fb8e5b75fHarvest15422962022-08-11 6:04:30117 days 30 mins ago0xada286f2d2cb001b53deee492b61d288cfb90a35 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0548365
0x4c26469f07e0c615487a7666be5b40ef40749c383a7611a7232d0e7d43cb0d33Harvest15420272022-08-11 5:06:00117 days 1 hr ago0xada286f2d2cb001b53deee492b61d288cfb90a35 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0026587
0xfaecb2c2601a9550bc68bfe799b024b784cdf1d9adfaa059d3a218134231ccceHarvest15420012022-08-11 5:00:30117 days 1 hr ago0xada286f2d2cb001b53deee492b61d288cfb90a35 IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0026587
0x1c29ed29455d144aced90e95a20a2371c42a9c9a9e31cd7122550a77c96b8e60Set Izlude15418672022-08-11 4:31:42117 days 2 hrs ago0xe395605bd95b3a641b9d1266cdb256176419161a IN  0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0 CLV0.0023231775
0xc775c45a293971c393a5806985f037fbad0e4b88f2ac0912c05ec1aa703d33fc0x6101006015418132022-08-11 4:20:00117 days 2 hrs ago0xe395605bd95b3a641b9d1266cdb256176419161a IN  Create: HuckleberryLP0 CLV0.2254246575
[ Download CSV Export 
Latest 24 internal transactions
Parent Txn Hash Block From To Value
0x80531cbdbd8eae60d4fb6e446abdf72041db9716b93ed29c71e3860d8f6b7c0e23225182022-11-30 19:03:185 days 11 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.717429805670651857 CLV
0x80531cbdbd8eae60d4fb6e446abdf72041db9716b93ed29c71e3860d8f6b7c0e23225182022-11-30 19:03:185 days 11 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.717429805670651857 CLV
0x80531cbdbd8eae60d4fb6e446abdf72041db9716b93ed29c71e3860d8f6b7c0e23225182022-11-30 19:03:185 days 11 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x56aa4fb42f77faa81b5ca0d2b3cab33f808996480.95657307422753581 CLV
0x80531cbdbd8eae60d4fb6e446abdf72041db9716b93ed29c71e3860d8f6b7c0e23225182022-11-30 19:03:185 days 11 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b2.391432685568839524 CLV
0x5d21aa59e4c7c52d10af48ad5f51549eba93ad9068dcf2f9f651b6eec097350a22210212022-11-16 12:53:2419 days 17 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.537368175539683774 CLV
0x5d21aa59e4c7c52d10af48ad5f51549eba93ad9068dcf2f9f651b6eec097350a22210212022-11-16 12:53:2419 days 17 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.537368175539683774 CLV
0x5d21aa59e4c7c52d10af48ad5f51549eba93ad9068dcf2f9f651b6eec097350a22210212022-11-16 12:53:2419 days 17 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x5def548d48d623c370bf86e9c27c1b83cb222e740.716490900719578365 CLV
0x5d21aa59e4c7c52d10af48ad5f51549eba93ad9068dcf2f9f651b6eec097350a22210212022-11-16 12:53:2419 days 17 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b1.791227251798945913 CLV
0xb90aa283bd227ef4760f5944e7a514e3b0b6b1d95c53b84ad92488c03329e69e20984232022-10-30 6:42:5436 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.095940806576273499 CLV
0xb90aa283bd227ef4760f5944e7a514e3b0b6b1d95c53b84ad92488c03329e69e20984232022-10-30 6:42:5436 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.095940806576273499 CLV
0xb90aa283bd227ef4760f5944e7a514e3b0b6b1d95c53b84ad92488c03329e69e20984232022-10-30 6:42:5436 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d70.127921075435031332 CLV
0xb90aa283bd227ef4760f5944e7a514e3b0b6b1d95c53b84ad92488c03329e69e20984232022-10-30 6:42:5436 days 23 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0.319802688587578329 CLV
0x3e1bcaca88db73069fe14909a725a2e8f20225b3455aa8a86f235e39b9840cff20914162022-10-29 7:03:1237 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.079773751209627608 CLV
0x3e1bcaca88db73069fe14909a725a2e8f20225b3455aa8a86f235e39b9840cff20914162022-10-29 7:03:1237 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.079773751209627608 CLV
0x3e1bcaca88db73069fe14909a725a2e8f20225b3455aa8a86f235e39b9840cff20914162022-10-29 7:03:1237 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x69fc5e91e7db6d2b470911fc2adf020e6c8a44d70.106365001612836811 CLV
0x3e1bcaca88db73069fe14909a725a2e8f20225b3455aa8a86f235e39b9840cff20914162022-10-29 7:03:1237 days 23 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0.265912504032092027 CLV
0x528456be1f819009e4e6f75f0a28da0fd49adab54abf2ba91aed50e61be92e2120772132022-10-27 6:54:4239 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.255368648254159629 CLV
0x528456be1f819009e4e6f75f0a28da0fd49adab54abf2ba91aed50e61be92e2120772132022-10-27 6:54:4239 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.255368648254159629 CLV
0x528456be1f819009e4e6f75f0a28da0fd49adab54abf2ba91aed50e61be92e2120772132022-10-27 6:54:4239 days 23 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x5def548d48d623c370bf86e9c27c1b83cb222e740.340491531005546172 CLV
0x528456be1f819009e4e6f75f0a28da0fd49adab54abf2ba91aed50e61be92e2120772132022-10-27 6:54:4239 days 23 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0.851228827513865429 CLV
0x9552031e7a98692d08e0ccc9eefcad0adc5efaaf790ca35835bd7d0b661f6e1120427072022-10-22 8:45:1844 days 21 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0xb6e581dadd3c6211828242dab1ef9fb3a343902c0.238326025969698686 CLV
0x9552031e7a98692d08e0ccc9eefcad0adc5efaaf790ca35835bd7d0b661f6e1120427072022-10-22 8:45:1844 days 21 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b0.238326025969698686 CLV
0x9552031e7a98692d08e0ccc9eefcad0adc5efaaf790ca35835bd7d0b661f6e1120427072022-10-22 8:45:1844 days 21 hrs ago 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0x5def548d48d623c370bf86e9c27c1b83cb222e740.317768034626264914 CLV
0x9552031e7a98692d08e0ccc9eefcad0adc5efaaf790ca35835bd7d0b661f6e1120427072022-10-22 8:45:1844 days 21 hrs ago 0x5d91eaee3a8b2a73b0505c9585cbfcd81d972d7e 0x6a57d36eccff3c2efd20f998ee2ab517e98ec69b0.794420086565662286 CLV
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HuckleberryLP

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

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

pragma solidity 0.8.9;

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

import "../../interfaces/IUniswapV2Router02.sol";
import "../../interfaces/IUniswapV2Pair.sol";
import "../../interfaces/huckleberry/IMasterChef.sol";
import "../../interfaces/IByalan.sol";

import "../ByalanIsland.sol";
import "../Sailor.sol";

contract HuckleberryLP is ByalanIsland, Sailor, IByalan {
    using SafeERC20 for IERC20;
    using Address for address payable;

    // Tokens used
    address public constant WCLV = 0x6d6AD95425FcF315c39Fa6F3226471d4f16F27B3;
    address public constant FINN = 0xBeA4928632e482A0A1241B38f596a311Ad7b98B1;
    address public immutable override want;
    address public immutable lpToken0;
    address public immutable lpToken1;

    // Third party contracts
    address public constant MASTERCHEF = 0x67dc6E39A46EfCBd9ec7bb8d490EFF6DF9c9B047;
    uint256 public immutable pid;

    // Routes
    address[] public finnToWbnbRoute;
    address[] public finnToLp0Route;
    address[] public finnToLp1Route;

    event Harvest(address indexed harvester);

    constructor(
        address _hydra,
        address _izlude,
        address _kswFeeRecipient,
        address _treasuryFeeRecipient,
        address _harvester,
        uint256 _pid,
        address[] memory _finnToLp0Route,
        address[] memory _finnToLp1Route
    )
        ByalanIsland(
            _hydra,
            0x5D91eAEe3a8b2A73B0505c9585cBFCD81d972d7E,
            _izlude,
            _kswFeeRecipient,
            _treasuryFeeRecipient,
            _harvester
        )
    {
        pid = _pid;

        want = IMasterChef(MASTERCHEF).poolInfo(_pid).lpToken;
        lpToken0 = IUniswapV2Pair(want).token0();
        lpToken1 = IUniswapV2Pair(want).token1();

        finnToWbnbRoute = [FINN, WCLV];
        if (lpToken0 != FINN) {
            require(_finnToLp0Route[0] == FINN, "invalid lp 0 route");
            require(_finnToLp0Route[_finnToLp0Route.length - 1] == lpToken0, "invalid lp 0 route");
            require(
                IUniswapV2Router02(unirouter).getAmountsOut(1 ether, _finnToLp0Route)[_finnToLp0Route.length - 1] > 0,
                "invalid lp 0 route"
            );
            finnToLp0Route = _finnToLp0Route;
        }

        if (lpToken1 != FINN) {
            require(_finnToLp1Route[0] == FINN, "invalid lp 1 route");
            require(_finnToLp1Route[_finnToLp1Route.length - 1] == lpToken1, "invalid lp 1 route");
            require(
                IUniswapV2Router02(unirouter).getAmountsOut(1 ether, _finnToLp1Route)[_finnToLp1Route.length - 1] > 0,
                "invalid lp 1 route"
            );
            finnToLp1Route = _finnToLp1Route;
        }

        _giveAllowances();
    }

    /**
     * @dev Function to synchronize balances before new user deposit.
     */
    function beforeDeposit() external override {}

    // puts the funds to work
    function deposit() public override whenNotPaused {
        uint256 wantBal = IERC20(want).balanceOf(address(this));

        if (wantBal > 0) {
            IMasterChef(MASTERCHEF).deposit(pid, wantBal);
        }
    }

    function withdraw(uint256 _amount) external override onlyIzlude {
        uint256 wantBal = IERC20(want).balanceOf(address(this));

        if (wantBal < _amount) {
            IMasterChef(MASTERCHEF).withdraw(pid, _amount - wantBal);
            wantBal = IERC20(want).balanceOf(address(this));
        }

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

        IERC20(want).safeTransfer(izlude, wantBal);
    }

    // compounds earnings and charges performance fee
    function harvest() external override whenNotPaused onlyEOA onlyHarvester gasThrottle {
        IMasterChef(MASTERCHEF).deposit(pid, 0);
        chargeFees();
        addLiquidity();
        deposit();

        emit Harvest(msg.sender);
    }

    // performance fees
    function chargeFees() internal {
        uint256 toBnb = (IERC20(FINN).balanceOf(address(this)) * totalFee) / MAX_FEE;
        IUniswapV2Router02(unirouter).swapExactTokensForETH(toBnb, 0, finnToWbnbRoute, address(this), block.timestamp);

        uint256 bnbBal = address(this).balance;

        uint256 callFeeAmount = (bnbBal * callFee) / feeSum;
        payable(msg.sender).sendValue(callFeeAmount);

        uint256 treasuryFeeAmount = (bnbBal * treasuryFee) / feeSum;
        payable(treasuryFeeRecipient).sendValue(treasuryFeeAmount);

        uint256 kswFeeAmount = (bnbBal * kswFee) / feeSum;
        payable(kswFeeRecipient).sendValue(kswFeeAmount);
    }

    // Adds liquidity to AMM and gets more LP tokens.
    function addLiquidity() internal {
        uint256 finnHalf = IERC20(FINN).balanceOf(address(this)) / 2;

        if (lpToken0 != FINN) {
            IUniswapV2Router02(unirouter).swapExactTokensForTokens(
                finnHalf,
                0,
                finnToLp0Route,
                address(this),
                block.timestamp
            );
        }

        if (lpToken1 != FINN) {
            IUniswapV2Router02(unirouter).swapExactTokensForTokens(
                finnHalf,
                0,
                finnToLp1Route,
                address(this),
                block.timestamp
            );
        }

        IUniswapV2Router02(unirouter).addLiquidity(
            lpToken0,
            lpToken1,
            IERC20(lpToken0).balanceOf(address(this)),
            IERC20(lpToken1).balanceOf(address(this)),
            0,
            0,
            address(this),
            block.timestamp
        );
    }

    // calculate the total underlaying 'want' held by the strat.
    function balanceOf() external view override returns (uint256) {
        return balanceOfWant() + balanceOfPool();
    }

    // it calculates how much 'want' this contract holds.
    function balanceOfWant() public view override returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    // it calculates how much 'want' the strategy has working in the farm.
    function balanceOfPool() public view override returns (uint256) {
        return IMasterChef(MASTERCHEF).userInfo(pid, address(this)).amount;
    }

    function balanceOfMasterChef() external view override returns (uint256) {
        return IERC20(want).balanceOf(MASTERCHEF);
    }

    function pendingRewardTokens()
        external
        view
        override
        returns (IERC20[] memory rewardTokens, uint256[] memory rewardAmounts)
    {
        rewardTokens = new IERC20[](1);
        rewardAmounts = new uint256[](1);
        rewardTokens[0] = IERC20(FINN);
        rewardAmounts[0] =
            IMasterChef(MASTERCHEF).pendingReward(pid, address(this)) +
            IERC20(FINN).balanceOf(address(this));
    }

    // called as part of strategy migration. Sends all the available funds back to the vault.
    function retireStrategy() external override onlyIzlude {
        IMasterChef(MASTERCHEF).emergencyWithdraw(pid);

        uint256 wantBal = IERC20(want).balanceOf(address(this));
        IERC20(want).transfer(izlude, wantBal);
    }

    // pauses deposits and withdraws all funds from third party systems.
    function panic() external override onlyHydra {
        pause();
        IMasterChef(MASTERCHEF).emergencyWithdraw(pid);
    }

    function pause() public override onlyHydra {
        _pause();

        _removeAllowances();
    }

    function unpause() external override onlyHydra {
        _unpause();

        _giveAllowances();

        deposit();
    }

    function paused() public view override(IByalan, Pausable) returns (bool) {
        return super.paused();
    }

    function _giveAllowances() internal {
        IERC20(want).safeApprove(MASTERCHEF, type(uint256).max);
        IERC20(FINN).safeApprove(unirouter, type(uint256).max);

        // lp token 0 and 1 maybe finn so approve 0 is needed here
        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, type(uint256).max);

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

    function _removeAllowances() internal {
        IERC20(want).safeApprove(MASTERCHEF, 0);
        IERC20(FINN).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, 0);
    }

    receive() external payable {
        require(msg.sender == unirouter, "reject");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity 0.8.9;

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

    function WETH() external pure returns (address);

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

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

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

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

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

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

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

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

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

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

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

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

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

pragma solidity 0.8.9;

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

    function name() external pure returns (string memory);

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

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

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

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

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

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

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

    function burn(address to) external returns (uint256 amount0, uint256 amount1);

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

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

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

pragma solidity 0.8.9;

interface IMasterChef {
    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }

    struct PoolInfo {
        address lpToken;
        uint256 allocPoint;
        uint256 lastRewardTimestamp;
        uint256 accRewardPerShare;
    }

    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

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

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

    function poolInfo(uint256 _pid) external view returns (PoolInfo memory);

    function emergencyWithdraw(uint256 _pid) external;

    function finnPerSecond() external view returns (uint256);

    function startTime() external view returns (uint256);

    function allEndTime() external view returns (uint256);

    function totalAllocPoint() external view returns (uint256);

    function getMultiplier(uint256 _from, uint256 _to) external view returns (uint256);
}

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

pragma solidity 0.8.9;

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

import "./IByalanIsland.sol";
import "./ISailor.sol";

interface IByalan is IByalanIsland, ISailor {
    function want() external view returns (address);

    function beforeDeposit() external;

    function deposit() external;

    function withdraw(uint256) external;

    function balanceOf() external view returns (uint256);

    function balanceOfWant() external view returns (uint256);

    function balanceOfPool() external view returns (uint256);

    function balanceOfMasterChef() external view returns (uint256);

    function pendingRewardTokens() external view returns (IERC20[] memory rewardTokens, uint256[] memory rewardAmounts);

    function harvest() external;

    function retireStrategy() external;

    function panic() external;

    function pause() external;

    function unpause() external;

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

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

pragma solidity 0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

import "../interfaces/IByalanIsland.sol";
import "../interfaces/IGasPrice.sol";

abstract contract ByalanIsland is Ownable, Pausable, IByalanIsland {
    address public hydra;
    address public unirouter;
    address public override izlude;
    address public kswFeeRecipient;
    address public treasuryFeeRecipient;
    address public harvester;

    address public gasPrice = 0xab69A92cC3286d438Dcd748e3E71060538c86fFb;

    event SetHydra(address hydra);
    event SetRouter(address router);
    event SetKswFeeRecipient(address kswFeeRecipient);
    event SetTreasuryFeeRecipient(address treasuryFeeRecipient);
    event SetHarvester(address harvester);
    event SetGasPrice(address gasPrice);

    constructor(
        address _hydra,
        address _unirouter,
        address _izlude,
        address _kswFeeRecipient,
        address _treasuryFeeRecipient,
        address _harvester
    ) {
        hydra = _hydra;
        unirouter = _unirouter;
        izlude = _izlude;
        kswFeeRecipient = _kswFeeRecipient;
        treasuryFeeRecipient = _treasuryFeeRecipient;
        harvester = _harvester;
    }

    // checks that caller is either owner or hydra.
    modifier onlyHydra() {
        require(msg.sender == owner() || msg.sender == hydra, "!hydra");
        _;
    }

    // verifies that the caller is not a contract.
    modifier onlyEOA() {
        require(msg.sender == tx.origin, "!EOA");
        _;
    }

    modifier onlyIzlude() {
        require(msg.sender == izlude, "!izlude");
        _;
    }

    modifier onlyEOAandIzlude() {
        require(tx.origin == msg.sender || msg.sender == izlude, "!contract");
        _;
    }

    modifier onlyHarvester() {
        require(harvester == address(0) || msg.sender == harvester, "!harvester");
        _;
    }

    modifier gasThrottle() {
        require(tx.gasprice <= IGasPrice(gasPrice).maxGasPrice(), "gas is too high!");
        _;
    }

    function setHydra(address _hydra) external onlyHydra {
        hydra = _hydra;
        emit SetHydra(_hydra);
    }

    function setUnirouter(address _unirouter) external onlyOwner {
        unirouter = _unirouter;
        emit SetRouter(_unirouter);
    }

    function setIzlude(address _izlude) external onlyOwner {
        require(izlude == address(0), "already set");
        izlude = _izlude;
    }

    function setTreasuryFeeRecipient(address _treasuryFeeRecipient) external onlyOwner {
        treasuryFeeRecipient = _treasuryFeeRecipient;
        emit SetTreasuryFeeRecipient(_treasuryFeeRecipient);
    }

    function setKswFeeRecipient(address _kswFeeRecipient) external onlyOwner {
        kswFeeRecipient = _kswFeeRecipient;
        emit SetKswFeeRecipient(_kswFeeRecipient);
    }

    function setHarvester(address _harvester) external onlyOwner {
        harvester = _harvester;
        emit SetHarvester(_harvester);
    }

    function setGasPrice(address _gasPrice) external onlyHydra {
        gasPrice = _gasPrice;
        emit SetGasPrice(_gasPrice);
    }
}

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

pragma solidity 0.8.9;

import "./ByalanIsland.sol";

import "../interfaces/ISailor.sol";

abstract contract Sailor is ByalanIsland, ISailor {
    uint256 public constant override MAX_FEE = 10000;
    uint256 public override totalFee = 300; // 3%
    uint256 public constant MAX_TOTAL_FEE = 1000; // 10%

    uint256 public override callFee = 4000; // 40% of total fee
    uint256 public treasuryFee = 3000; // 30% of total fee
    uint256 public override kswFee = 3000; // 30% of total fee
    uint256 public feeSum = 10000;

    event SetTotalFee(uint256 totalFee);
    event SetCallFee(uint256 fee);
    event SetTreasuryFee(uint256 fee);
    event SetKSWFee(uint256 fee);

    function setTotalFee(uint256 _totalFee) external onlyOwner {
        require(_totalFee <= MAX_TOTAL_FEE, "!cap");

        totalFee = _totalFee;
        emit SetTotalFee(_totalFee);
    }

    function setCallFee(uint256 _fee) external onlyOwner {
        callFee = _fee;
        feeSum = callFee + treasuryFee + kswFee;
        emit SetCallFee(_fee);
    }

    function setTreasuryFee(uint256 _fee) external onlyOwner {
        treasuryFee = _fee;
        feeSum = callFee + treasuryFee + kswFee;
        emit SetTreasuryFee(_fee);
    }

    function setKSWFee(uint256 _fee) external onlyOwner {
        kswFee = _fee;
        feeSum = callFee + treasuryFee + kswFee;
        emit SetKSWFee(_fee);
    }
}

File 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 16 : IByalanIsland.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

interface IByalanIsland {
    function izlude() external view returns (address);
}

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

pragma solidity 0.8.9;

interface ISailor {
    function MAX_FEE() external view returns (uint256);

    function totalFee() external view returns (uint256);

    function callFee() external view returns (uint256);

    function kswFee() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity 0.8.9;

interface IGasPrice {
    function maxGasPrice() external returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_hydra","type":"address"},{"internalType":"address","name":"_izlude","type":"address"},{"internalType":"address","name":"_kswFeeRecipient","type":"address"},{"internalType":"address","name":"_treasuryFeeRecipient","type":"address"},{"internalType":"address","name":"_harvester","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address[]","name":"_finnToLp0Route","type":"address[]"},{"internalType":"address[]","name":"_finnToLp1Route","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"}],"name":"Harvest","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SetCallFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gasPrice","type":"address"}],"name":"SetGasPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"harvester","type":"address"}],"name":"SetHarvester","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"hydra","type":"address"}],"name":"SetHydra","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SetKSWFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"kswFeeRecipient","type":"address"}],"name":"SetKswFeeRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"router","type":"address"}],"name":"SetRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalFee","type":"uint256"}],"name":"SetTotalFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"SetTreasuryFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasuryFeeRecipient","type":"address"}],"name":"SetTreasuryFeeRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"FINN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASTERCHEF","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WCLV","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfMasterChef","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeSum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"finnToLp0Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"finnToLp1Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"finnToWbnbRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasPrice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvester","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hydra","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"izlude","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kswFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kswFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRewardTokens","outputs":[{"internalType":"contract IERC20[]","name":"rewardTokens","type":"address[]"},{"internalType":"uint256[]","name":"rewardAmounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setCallFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gasPrice","type":"address"}],"name":"setGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvester","type":"address"}],"name":"setHarvester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_hydra","type":"address"}],"name":"setHydra","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_izlude","type":"address"}],"name":"setIzlude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setKSWFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_kswFeeRecipient","type":"address"}],"name":"setKswFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalFee","type":"uint256"}],"name":"setTotalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryFeeRecipient","type":"address"}],"name":"setTreasuryFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"setUnirouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610100604052600780546001600160a01b03191673ab69a92cc3286d438dcd748e3e71060538c86ffb17905561012c600855610fa0600955610bb8600a819055600b55612710600c553480156200005557600080fd5b50604051620055f7380380620055f7833981016040819052620000789162000e76565b87735d91eaee3a8b2a73b0505c9585cbfcd81d972d7e888888886200009d33620007ac565b6000805460ff60a01b19169055600180546001600160a01b03199081166001600160a01b03988916179091556002805482169688169690961790955560038054861694871694909417909355600480548516928616929092178255600580548516918616919091179055600680549093169190931617905560e0849052604051631526fe2760e01b81529081018490527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04790631526fe279060240160806040518083038186803b1580156200016557600080fd5b505afa1580156200017a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a0919062000f48565b516001600160a01b0316608081905260408051630dfe168160e01b81529051630dfe168191600480820192602092909190829003018186803b158015620001e657600080fd5b505afa158015620001fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000221919062000fb8565b6001600160a01b031660a0816001600160a01b0316815250506080516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200027657600080fd5b505afa1580156200028b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b1919062000fb8565b6001600160a01b031660c05260408051808201909152600080516020620055d78339815191528152736d6ad95425fcf315c39fa6f3226471d4f16f27b360208201526200030390600d90600262000ced565b5060a0516001600160a01b0316600080516020620055d7833981519152146200054e57600080516020620055d78339815191526001600160a01b03168260008151811062000355576200035562000fd6565b60200260200101516001600160a01b031614620003ae5760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203020726f75746560701b60448201526064015b60405180910390fd5b60a0516001600160a01b03168260018451620003cb919062000fec565b81518110620003de57620003de62000fd6565b60200260200101516001600160a01b031614620004335760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203020726f75746560701b6044820152606401620003a5565b60025460405163d06ca61f60e01b81526000916001600160a01b03169063d06ca61f906200047090670de0b6b3a764000090879060040162001012565b60006040518083038186803b1580156200048957600080fd5b505afa1580156200049e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620004c891908101906200106b565b60018451620004d8919062000fec565b81518110620004eb57620004eb62000fd6565b602002602001015111620005375760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203020726f75746560701b6044820152606401620003a5565b81516200054c90600e90602085019062000ced565b505b60c0516001600160a01b0316600080516020620055d7833981519152146200079457600080516020620055d78339815191526001600160a01b0316816000815181106200059f576200059f62000fd6565b60200260200101516001600160a01b031614620005f45760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203120726f75746560701b6044820152606401620003a5565b60c0516001600160a01b0316816001835162000611919062000fec565b8151811062000624576200062462000fd6565b60200260200101516001600160a01b031614620006795760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203120726f75746560701b6044820152606401620003a5565b60025460405163d06ca61f60e01b81526000916001600160a01b03169063d06ca61f90620006b690670de0b6b3a764000090869060040162001012565b60006040518083038186803b158015620006cf57600080fd5b505afa158015620006e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200070e91908101906200106b565b600183516200071e919062000fec565b8151811062000731576200073162000fd6565b6020026020010151116200077d5760405162461bcd60e51b8152602060048201526012602482015271696e76616c6964206c70203120726f75746560701b6044820152606401620003a5565b80516200079290600f90602084019062000ced565b505b6200079e620007fc565b5050505050505050620011bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620008397367dc6e39a46efcbd9ec7bb8d490eff6df9c9b0476000196080516001600160a01b03166200092460201b620029e7179092919060201c565b6002546200087090600080516020620055d7833981519152906001600160a01b031660001962000924602090811b620029e717901c565b60025460a0516200089c916001600160a01b039182169116600062000924602090811b620029e717901c565b60025460a051620008c9916001600160a01b03918216911660001962000924602090811b620029e717901c565b60025460c051620008f5916001600160a01b039182169116600062000924602090811b620029e717901c565b60025460c05162000922916001600160a01b03918216911660001962000924602090811b620029e717901c565b565b801580620009b25750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200097557600080fd5b505afa1580156200098a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009b09190620010f9565b155b62000a265760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401620003a5565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915262000a7e91859162000a8316565b505050565b600062000adf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000b6160201b62002bfb179092919060201c565b80519091501562000a7e578080602001905181019062000b00919062001113565b62000a7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620003a5565b606062000b72848460008562000b7c565b90505b9392505050565b60608247101562000bdf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620003a5565b843b62000c2f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620003a5565b600080866001600160a01b0316858760405162000c4d91906200116a565b60006040518083038185875af1925050503d806000811462000c8c576040519150601f19603f3d011682016040523d82523d6000602084013e62000c91565b606091505b50909250905062000ca482828662000caf565b979650505050505050565b6060831562000cc057508162000b75565b82511562000cd15782518084602001fd5b8160405162461bcd60e51b8152600401620003a5919062001188565b82805482825590600052602060002090810192821562000d45579160200282015b8281111562000d4557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000d0e565b5062000d5392915062000d57565b5090565b5b8082111562000d53576000815560010162000d58565b80516001600160a01b038116811462000d8657600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000dcc5762000dcc62000d8b565b604052919050565b60006001600160401b0382111562000df05762000df062000d8b565b5060051b60200190565b600082601f83011262000e0c57600080fd5b8151602062000e2562000e1f8362000dd4565b62000da1565b82815260059290921b8401810191818101908684111562000e4557600080fd5b8286015b8481101562000e6b5762000e5d8162000d6e565b835291830191830162000e49565b509695505050505050565b600080600080600080600080610100898b03121562000e9457600080fd5b62000e9f8962000d6e565b975062000eaf60208a0162000d6e565b965062000ebf60408a0162000d6e565b955062000ecf60608a0162000d6e565b945062000edf60808a0162000d6e565b60a08a015160c08b015191955093506001600160401b038082111562000f0457600080fd5b62000f128c838d0162000dfa565b935060e08b015191508082111562000f2957600080fd5b5062000f388b828c0162000dfa565b9150509295985092959890939650565b60006080828403121562000f5b57600080fd5b604051608081016001600160401b038111828210171562000f805762000f8062000d8b565b60405262000f8e8362000d6e565b81526020830151602082015260408301516040820152606083015160608201528091505092915050565b60006020828403121562000fcb57600080fd5b62000b758262000d6e565b634e487b7160e01b600052603260045260246000fd5b6000828210156200100d57634e487b7160e01b600052601160045260246000fd5b500390565b6000604082018483526020604081850152818551808452606086019150828701935060005b818110156200105e5784516001600160a01b03168352938301939183019160010162001037565b5090979650505050505050565b600060208083850312156200107f57600080fd5b82516001600160401b038111156200109657600080fd5b8301601f81018513620010a857600080fd5b8051620010b962000e1f8262000dd4565b81815260059190911b82018301908381019087831115620010d957600080fd5b928401925b8284101562000ca457835182529284019290840190620010de565b6000602082840312156200110c57600080fd5b5051919050565b6000602082840312156200112657600080fd5b8151801515811462000b7557600080fd5b60005b83811015620011545781810151838201526020016200113a565b8381111562001164576000848401525b50505050565b600082516200117e81846020870162001137565b9190910192915050565b6020815260008251806020840152620011a981604085016020870162001137565b601f01601f19169190910160400192915050565b60805160a05160c05160e05161431c620012bb60003960008181610a0d01528181610ad1015281816111df0152818161186b015281816119ff01528181611c23015281816122ce01526126520152600081816107f601528181612efe01528181612f46015281816133a50152818161353c015281816135e7015261399901526000818161070b01528181612e4f01528181612e970152818161327e0152818161351a015261395101526000818161049201528181610cb20152818161112a015281816112a20152818161135f01528181611cc801528181611daa015281816124990152818161259301528181612d7d01526138bd015261431c6000f3fe6080604052600436106103435760003560e01c8063715018a6116101b0578063bc063e1a116100ec578063de41651311610095578063f10684541161006f578063f1068454146109fb578063f2fde38b14610a2f578063fcd36ec514610a4f578063fe173b9714610a7c57600080fd5b8063de4165131461098b578063e3692c36146109ab578063ebc161bb146109d357600080fd5b8063cc32d176116100c6578063cc32d17614610940578063d0e30db014610956578063d92f3d731461096b57600080fd5b8063bc063e1a146108e8578063c1a3d44c146108fe578063cba098e71461091357600080fd5b80638da5cb5b11610159578063a2f264ca11610133578063a2f264ca14610879578063b44d4e5f1461089c578063b4a9bd74146108b2578063b776968f146108d257600080fd5b80638da5cb5b1461081857806390321e1a14610843578063992d0ebb1461085957600080fd5b80637f635cc01161018a5780637f635cc0146107b95780638456cb59146107cf578063877562b6146107e457600080fd5b8063715018a61461076f578063722713f71461078457806377e741c71461079957600080fd5b806335973c571161027f5780634bdaeac1116102285780635c975abb116102025780635c975abb146106be5780635ee167c0146106f95780636ba1b3e01461072d5780636f3cf01e1461074257600080fd5b80634bdaeac114610662578063573fef0a1461068f57806358063ce81461069e57600080fd5b80634641257d116102595780634641257d146106185780634700d3051461062d5780634b00d3361461064257600080fd5b806335973c57146105c3578063376aa0af146105e35780633f4ba83a1461060357600080fd5b806321d8ce20116102ec57806328c8eeae116102c657806328c8eeae146105435780632a29a226146105635780632e1a7d4d14610583578063327b520f146105a357600080fd5b806321d8ce20146104c9578063257ae0de146104f6578063264658261461052357600080fd5b80631df4ccfc1161031d5780631df4ccfc1461046a5780631f1fcd511461048057806320d64060146104b457600080fd5b806309cc3157146103d5578063115880861461042757806315de1daa1461044a57600080fd5b366103d05760025473ffffffffffffffffffffffffffffffffffffffff1633146103ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f72656a656374000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b005b600080fd5b3480156103e157600080fd5b506103fd73bea4928632e482a0a1241b38f596a311ad7b98b181565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561043357600080fd5b5061043c610aa9565b60405190815260200161041e565b34801561045657600080fd5b506103ce610465366004613dfc565b610b72565b34801561047657600080fd5b5061043c60085481565b34801561048c57600080fd5b506103fd7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c057600080fd5b5061043c610c6d565b3480156104d557600080fd5b506001546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561050257600080fd5b506002546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561052f57600080fd5b506103ce61053e366004613e32565b610d47565b34801561054f57600080fd5b506103ce61055e366004613dfc565b610e1a565b34801561056f57600080fd5b506103ce61057e366004613dfc565b610f62565b34801561058f57600080fd5b506103ce61059e366004613e32565b611078565b3480156105af57600080fd5b506103fd6105be366004613e32565b61138c565b3480156105cf57600080fd5b506103fd6105de366004613e32565b6113c3565b3480156105ef57600080fd5b506103ce6105fe366004613dfc565b6113d3565b34801561060f57600080fd5b506103ce6114e9565b34801561062457600080fd5b506103ce6115a6565b34801561063957600080fd5b506103ce61192c565b34801561064e57600080fd5b506103ce61065d366004613dfc565b611a76565b34801561066e57600080fd5b506006546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561069b57600080fd5b50005b3480156106aa57600080fd5b506103fd6106b9366004613e32565b611b6a565b3480156106ca57600080fd5b5060005474010000000000000000000000000000000000000000900460ff16604051901515815260200161041e565b34801561070557600080fd5b506103fd7f000000000000000000000000000000000000000000000000000000000000000081565b34801561073957600080fd5b506103ce611b7a565b34801561074e57600080fd5b506005546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561077b57600080fd5b506103ce611e26565b34801561079057600080fd5b5061043c611eb1565b3480156107a557600080fd5b506103ce6107b4366004613e32565b611ecd565b3480156107c557600080fd5b5061043c6103e881565b3480156107db57600080fd5b506103ce611fa1565b3480156107f057600080fd5b506103fd7f000000000000000000000000000000000000000000000000000000000000000081565b34801561082457600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166103fd565b34801561084f57600080fd5b5061043c60095481565b34801561086557600080fd5b506103ce610874366004613e32565b612054565b34801561088557600080fd5b5061088e612178565b60405161041e929190613e4b565b3480156108a857600080fd5b5061043c600c5481565b3480156108be57600080fd5b506103ce6108cd366004613e32565b612394565b3480156108de57600080fd5b5061043c600b5481565b3480156108f457600080fd5b5061043c61271081565b34801561090a57600080fd5b5061043c612468565b34801561091f57600080fd5b506003546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561094c57600080fd5b5061043c600a5481565b34801561096257600080fd5b506103ce6124dd565b34801561097757600080fd5b506103ce610986366004613dfc565b6126d2565b34801561099757600080fd5b506103ce6109a6366004613dfc565b6127c6565b3480156109b757600080fd5b506103fd7367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04781565b3480156109df57600080fd5b506103fd736d6ad95425fcf315c39fa6f3226471d4f16f27b381565b348015610a0757600080fd5b5061043c7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a3b57600080fd5b506103ce610a4a366004613dfc565b6128ba565b348015610a5b57600080fd5b506004546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a8857600080fd5b506007546103fd9073ffffffffffffffffffffffffffffffffffffffff1681565b6040517f93f1a40b0000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523060248201526000907367dc6e39a46efcbd9ec7bb8d490eff6df9c9b047906393f1a40b90604401604080518083038186803b158015610b3457600080fd5b505afa158015610b48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6c9190613f5a565b51919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bf3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f3e1de8417612aeb2f34c3ff349211d9a51193831d02625e053759a249b594115906020015b60405180910390a150565b6040517f70a082310000000000000000000000000000000000000000000000000000000081527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04760048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a08231906024015b60206040518083038186803b158015610d0a57600080fd5b505afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d429190613fa9565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b6009819055600b54600a54610ddd9083613ff1565b610de79190613ff1565b600c556040518181527f589643087c0743c4f44030e1994d37c73dcd0630bfc83573775b0d8ed22cdb7490602001610c62565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b60035473ffffffffffffffffffffffffffffffffffffffff1615610f1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f616c72656164792073657400000000000000000000000000000000000000000060448201526064016103c5565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480610f9f575060015473ffffffffffffffffffffffffffffffffffffffff1633145b611005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216879647261000000000000000000000000000000000000000000000000000060448201526064016103c5565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f0e93a74f09bd9f06ba160c92206c71570d29a909be00e90a901ac216e5c39b6790602001610c62565b60035473ffffffffffffffffffffffffffffffffffffffff1633146110f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f21697a6c7564650000000000000000000000000000000000000000000000000060448201526064016103c5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561118157600080fd5b505afa158015611195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b99190613fa9565b905081811015611336577367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04763441a3e707f00000000000000000000000000000000000000000000000000000000000000006112088486614009565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526024820152604401600060405180830381600087803b15801561125e57600080fd5b505af1158015611272573d6000803e3d6000fd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1692506370a08231915060240160206040518083038186803b1580156112fb57600080fd5b505afa15801561130f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113339190613fa9565b90505b818111156113415750805b6003546113889073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683612c14565b5050565b600e818154811061139c57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600f818154811061139c57600080fd5b60005473ffffffffffffffffffffffffffffffffffffffff16331480611410575060015473ffffffffffffffffffffffffffffffffffffffff1633145b611476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216879647261000000000000000000000000000000000000000000000000000060448201526064016103c5565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f631b41a952f6b26e3c6a26d615d1a6589a4f7ec0efd6f2b67df605fe84c9a50e90602001610c62565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611526575060015473ffffffffffffffffffffffffffffffffffffffff1633145b61158c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216879647261000000000000000000000000000000000000000000000000000060448201526064016103c5565b611594612c6a565b61159c612d63565b6115a46124dd565b565b60005474010000000000000000000000000000000000000000900460ff161561162b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016103c5565b333214611696576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c59060208082526004908201527f21454f4100000000000000000000000000000000000000000000000000000000604082015260600190565b60065473ffffffffffffffffffffffffffffffffffffffff1615806116d2575060065473ffffffffffffffffffffffffffffffffffffffff1633145b611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f216861727665737465720000000000000000000000000000000000000000000060448201526064016103c5565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633de39c116040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117a257600080fd5b505af11580156117b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117da9190613fa9565b3a1115611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f67617320697320746f6f2068696768210000000000000000000000000000000060448201526064016103c5565b6040517fe2bbb1580000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600060248201527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b0479063e2bbb15890604401600060405180830381600087803b1580156118cf57600080fd5b505af11580156118e3573d6000803e3d6000fd5b505050506118ef612f8f565b6118f76131cf565b6118ff6124dd565b60405133907f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b90600090a2565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611969575060015473ffffffffffffffffffffffffffffffffffffffff1633145b6119cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216879647261000000000000000000000000000000000000000000000000000060448201526064016103c5565b6119d7611fa1565b6040517f5312ea8e0000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04790635312ea8e90602401600060405180830381600087803b158015611a5c57600080fd5b505af1158015611a70573d6000803e3d6000fd5b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611af7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f82aae05d0165a3a8e62e9b3d5fa16f4143d3699f3fe531558fa55ab3a33fbafb90602001610c62565b600d818154811061139c57600080fd5b60035473ffffffffffffffffffffffffffffffffffffffff163314611bfb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f21697a6c7564650000000000000000000000000000000000000000000000000060448201526064016103c5565b6040517f5312ea8e0000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04790635312ea8e90602401600060405180830381600087803b158015611c8057600080fd5b505af1158015611c94573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600092507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b158015611d2057600080fd5b505afa158015611d34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d589190613fa9565b6003546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018390529192507f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b158015611dee57600080fd5b505af1158015611e02573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113889190614020565b60005473ffffffffffffffffffffffffffffffffffffffff163314611ea7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b6115a46000613742565b6000611ebb610aa9565b611ec3612468565b610d429190613ff1565b60005473ffffffffffffffffffffffffffffffffffffffff163314611f4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600a819055600b54600954611f64908390613ff1565b611f6e9190613ff1565b600c556040518181527fa7c4c731ff77ef9526cef11cdc6945803b9d84efb979c9e9c1c700938d5616a390602001610c62565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611fde575060015473ffffffffffffffffffffffffffffffffffffffff1633145b612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f216879647261000000000000000000000000000000000000000000000000000060448201526064016103c5565b61204c6137b7565b6115a46138a3565b60005473ffffffffffffffffffffffffffffffffffffffff1633146120d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b6103e8811115612143576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c59060208082526004908201527f2163617000000000000000000000000000000000000000000000000000000000604082015260600190565b60088190556040518181527fc8bd03dacc33f0bd4fd682e19aedafc9d1f4cf7e60acdec6d45fcb71812e431b90602001610c62565b60408051600180825281830190925260609182919060208083019080368337505060408051600180825281830190925292945090506020808301908036833701905050905073bea4928632e482a0a1241b38f596a311ad7b98b1826000815181106121e5576121e5614042565b73ffffffffffffffffffffffffffffffffffffffff92909216602092830291909101909101526040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273bea4928632e482a0a1241b38f596a311ad7b98b1906370a082319060240160206040518083038186803b15801561226e57600080fd5b505afa158015612282573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a69190613fa9565b6040517f98969e820000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523060248201527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b047906398969e829060440160206040518083038186803b15801561232f57600080fd5b505afa158015612343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123679190613fa9565b6123719190613ff1565b8160008151811061238457612384614042565b6020026020010181815250509091565b60005473ffffffffffffffffffffffffffffffffffffffff163314612415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600b819055600a54600954829161242b91613ff1565b6124359190613ff1565b600c556040518181527fcff36482e06d0c8ba99d35759b9fb1704979571e80c14c9c2285be01aad8cd1c90602001610c62565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401610cf2565b60005474010000000000000000000000000000000000000000900460ff1615612562576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016103c5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156125ea57600080fd5b505afa1580156125fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126229190613fa9565b905080156126cf576040517fe2bbb1580000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018290527367dc6e39a46efcbd9ec7bb8d490eff6df9c9b0479063e2bbb15890604401600060405180830381600087803b1580156126b657600080fd5b505af11580156126ca573d6000803e3d6000fd5b505050505b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314612753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f6de4326a8b9054d72d9dbab97d27bc4edffadee7d966f5af9cc4eafdaf8e545590602001610c62565b60005473ffffffffffffffffffffffffffffffffffffffff163314612847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527ffd09e6f79c78e6d1d93f82b04dacf89d723e54b7f1c8033cdcb17e8905aea2c090602001610c62565b60005473ffffffffffffffffffffffffffffffffffffffff16331461293b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c5565b73ffffffffffffffffffffffffffffffffffffffff81166129de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c5565b6126cf81613742565b801580612a9657506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b158015612a5c57600080fd5b505afa158015612a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a949190613fa9565b155b612b22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016103c5565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612bf69084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526139c3565b505050565b6060612c0a8484600085613acf565b90505b9392505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612bf69084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401612b74565b60005474010000000000000000000000000000000000000000900460ff16612cee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016103c5565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b612dd873ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167367dc6e39a46efcbd9ec7bb8d490eff6df9c9b0477fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6129e7565b600254612e319073bea4928632e482a0a1241b38f596a311ad7b98b19073ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6129e7565b600254612e799073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911660006129e7565b600254612ee09073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6129e7565b600254612f289073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911660006129e7565b6002546115a49073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811691167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6129e7565b6008546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916127109173bea4928632e482a0a1241b38f596a311ad7b98b1906370a082319060240160206040518083038186803b158015612ffc57600080fd5b505afa158015613010573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130349190613fa9565b61303e9190614071565b61304891906140ae565b6002546040517f18cbafe500000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff16906318cbafe5906130a9908490600090600d90309042906004016140e9565b600060405180830381600087803b1580156130c357600080fd5b505af11580156130d7573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261311d9190810190614179565b50600c5460095447916000916131339084614071565b61313d91906140ae565b90506131493382613c4f565b6000600c54600a548461315c9190614071565b61316691906140ae565b60055490915061318c9073ffffffffffffffffffffffffffffffffffffffff1682613c4f565b6000600c54600b548561319f9190614071565b6131a991906140ae565b6004549091506126ca9073ffffffffffffffffffffffffffffffffffffffff1682613c4f565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009060029073bea4928632e482a0a1241b38f596a311ad7b98b1906370a082319060240160206040518083038186803b15801561323857600080fd5b505afa15801561324c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132709190613fa9565b61327a91906140ae565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1673bea4928632e482a0a1241b38f596a311ad7b98b1146133a3576002546040517f38ed173900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906338ed17399061332d908490600090600e90309042906004016140e9565b600060405180830381600087803b15801561334757600080fd5b505af115801561335b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526133a19190810190614179565b505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1673bea4928632e482a0a1241b38f596a311ad7b98b1146134ca576002546040517f38ed173900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906338ed173990613454908490600090600f90309042906004016140e9565b600060405180830381600087803b15801561346e57600080fd5b505af1158015613482573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526134c89190810190614179565b505b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9182169163e8e33700917f0000000000000000000000000000000000000000000000000000000000000000917f000000000000000000000000000000000000000000000000000000000000000091908316906370a082319060240160206040518083038186803b15801561358157600080fd5b505afa158015613595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135b99190613fa9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561363e57600080fd5b505afa158015613652573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136769190613fa9565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff94851660048201529390921660248401526044830152606482015260006084820181905260a48201523060c48201524260e482015261010401606060405180830381600087803b15801561370a57600080fd5b505af115801561371e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a70919061421f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005474010000000000000000000000000000000000000000900460ff161561383c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016103c5565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d393390565b6138f973ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167367dc6e39a46efcbd9ec7bb8d490eff6df9c9b04760006129e7565b6002546139339073bea4928632e482a0a1241b38f596a311ad7b98b19073ffffffffffffffffffffffffffffffffffffffff1660006129e7565b60025461397b9073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911660006129e7565b6002546115a49073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911660006129e7565b6000613a25826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612bfb9092919063ffffffff16565b805190915015612bf65780806020019051810190613a439190614020565b612bf6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016103c5565b606082471015613b61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016103c5565b843b613bc9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c5565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613bf29190614279565b60006040518083038185875af1925050503d8060008114613c2f576040519150601f19603f3d011682016040523d82523d6000602084013e613c34565b606091505b5091509150613c44828286613da9565b979650505050505050565b80471015613cb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103c5565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613d13576040519150601f19603f3d011682016040523d82523d6000602084013e613d18565b606091505b5050905080612bf6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103c5565b60608315613db8575081612c0d565b825115613dc85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c59190614295565b600060208284031215613e0e57600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114612c0d57600080fd5b600060208284031215613e4457600080fd5b5035919050565b604080825283519082018190526000906020906060840190828701845b82811015613e9a57815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101613e68565b5050508381038285015284518082528583019183019060005b81811015613ecf57835183529284019291840191600101613eb3565b5090979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613f5257613f52613edc565b604052919050565b600060408284031215613f6c57600080fd5b6040516040810181811067ffffffffffffffff82111715613f8f57613f8f613edc565b604052825181526020928301519281019290925250919050565b600060208284031215613fbb57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561400457614004613fc2565b500190565b60008282101561401b5761401b613fc2565b500390565b60006020828403121561403257600080fd5b81518015158114612c0d57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140a9576140a9613fc2565b500290565b6000826140e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875480845260c0860191508860005282600020935060005b8181101561414b57845473ffffffffffffffffffffffffffffffffffffffff1683526001948501949284019201614119565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b6000602080838503121561418c57600080fd5b825167ffffffffffffffff808211156141a457600080fd5b818501915085601f8301126141b857600080fd5b8151818111156141ca576141ca613edc565b8060051b91506141db848301613f0b565b81815291830184019184810190888411156141f557600080fd5b938501935b83851015614213578451825293850193908501906141fa565b98975050505050505050565b60008060006060848603121561423457600080fd5b8351925060208401519150604084015190509250925092565b60005b83811015614268578181015183820152602001614250565b83811115611a705750506000910152565b6000825161428b81846020870161424d565b9190910192915050565b60208152600082518060208401526142b481604085016020870161424d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212207e5dac29e6437e034300dee79ffd51e5ffddd231365987b6c06391e35321b9cc64736f6c63430008090033000000000000000000000000bea4928632e482a0a1241b38f596a311ad7b98b1000000000000000000000000e395605bd95b3a641b9d1266cdb256176419161a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b6e581dadd3c6211828242dab1ef9fb3a343902c00000000000000000000000077adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bea4928632e482a0a1241b38f596a311ad7b98b10000000000000000000000006d6ad95425fcf315c39fa6f3226471d4f16f27b30000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000e395605bd95b3a641b9d1266cdb256176419161a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b6e581dadd3c6211828242dab1ef9fb3a343902c00000000000000000000000077adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bea4928632e482a0a1241b38f596a311ad7b98b10000000000000000000000006d6ad95425fcf315c39fa6f3226471d4f16f27b30000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _hydra (address): 0xe395605bd95b3a641b9d1266cdb256176419161a
Arg [1] : _izlude (address): 0x0000000000000000000000000000000000000000
Arg [2] : _kswFeeRecipient (address): 0xb6e581dadd3c6211828242dab1ef9fb3a343902c
Arg [3] : _treasuryFeeRecipient (address): 0x77adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b
Arg [4] : _harvester (address): 0x0000000000000000000000000000000000000000
Arg [5] : _pid (uint256): 0
Arg [6] : _finnToLp0Route (address[]): 0xbea4928632e482a0a1241b38f596a311ad7b98b1,0x6d6ad95425fcf315c39fa6f3226471d4f16f27b3

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000e395605bd95b3a641b9d1266cdb256176419161a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000b6e581dadd3c6211828242dab1ef9fb3a343902c
Arg [3] : 00000000000000000000000077adbd9410f7132a1c3bc84f9e0e6f5a4fc6c44b
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 000000000000000000000000bea4928632e482a0a1241b38f596a311ad7b98b1
Arg [10] : 0000000000000000000000006d6ad95425fcf315c39fa6f3226471d4f16f27b3
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000


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.