Contract 0x5D505a4B03F7171f6ec0be403EC3a59655A67aAa

Contract Overview

Balance:
0.003427814562499219 Ether

Token:
Txn Hash
Method
Block
From
To
Value
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bfStake225375372020-12-11 14:23:52658 days 8 hrs ago0xab8c1c97ef01aaaadd53cfdd4782633a4429613d IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa1 Ether0.0035936910
0x2fb3c8232f52cf2f016dd4a7527af8b4945da9fd823e76e9e9eb2c930edf493aStake To Hugo225375222020-12-11 14:22:40658 days 8 hrs ago0xab8c1c97ef01aaaadd53cfdd4782633a4429613d IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0008592310
0x329217d9deb845a31c490c41f8b40b1e15fe4fb3baba9672a088004ee768c576Set225374642020-12-11 14:17:32658 days 8 hrs ago0xab8c1c97ef01aaaadd53cfdd4782633a4429613d IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0003877110
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905afStake224321612020-12-05 2:47:28664 days 19 hrs ago0xb8608b814539099269e9a766a1913f7c5d1a3cf2 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa1 Ether0.0077160329
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6Claim224316292020-12-05 2:00:20664 days 20 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0191543538
0x54b1eba9f8f2f0df5927133a0406bd92bf9c3b98bbce64b6ba38db2dc8bb421fClaim224309052020-12-05 0:56:32664 days 21 hrs ago0xb8608b814539099269e9a766a1913f7c5d1a3cf2 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0353949273
0x289587cec10d402be07bf62e150136aedee08ead8db787fa9e80c34f7c608d2eStake To Hugo224307742020-12-05 0:44:12664 days 21 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0113538974
0x0b4a3d1183ae56eb1f41f550a0304e1305f97d976f641d1a4637760bdc7dc693Claim224306202020-12-05 0:29:52664 days 22 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.010031873
0xbfbcf8a3af956a4ee0eb1d9cf364c9cb44ec04172f4186d1adb0b3822d0ac3acClaim224261332020-12-04 18:10:40665 days 4 hrs ago0x37c8049119c47fd338c465c46149b4c2e8db1beb IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0222125842
0x18fad2438c27529b5b086d35e581308bb34e07618db37111adf624cdc78e9dd0Stake224261142020-12-04 18:09:04665 days 4 hrs ago0x37c8049119c47fd338c465c46149b4c2e8db1beb IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0.1 Ether0.0154554443
0xe018a417b54232680c3c09d68b282d1d8f719fbf9dd61801e1afea0d8a6097d7Stake224261022020-12-04 18:08:04665 days 4 hrs ago0xb8608b814539099269e9a766a1913f7c5d1a3cf2 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa10 Ether0.0154554443
0x194e2bb52dd2195a5bb542c800b2d1cac0edb08162fc9f2853bd705515f71d7cStake224245642020-12-04 15:57:40665 days 6 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa10 Ether0.0115492246
0xe4c951fe161e5691db51c8e3c55dde9a285aad590711189e00d2b8588f265703Stake224241112020-12-04 15:18:48665 days 7 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa3 Ether0.0112981545
0x496bb1e3c01c49c34fe1872ce87beef772606c19ce218dcce2b2c9a6046cca66Withdraw224240892020-12-04 15:16:52665 days 7 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0136267245
0x69f3fcfab4aa8f9a7c228853878d461df96190e2acb7378eb6bb7d48c27a070aClaim224240742020-12-04 15:15:40665 days 7 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0194521945
0x0feeb8c58bd0a6051019f353336861af03c2e25c9af7f014dc09d831acd47fc5Stake To Hugo224140302020-12-04 0:41:00665 days 21 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0094813633
0x986a74b4578db8e66b2ba62dc8d91123f34df6b8337ad0fd988ecf85740a8a81Stake To Hugo224135202020-12-03 23:57:44665 days 22 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0028527226
0x6a361961a3639b2fb0ee753c5efc66584f7f1eb098628440077adb40cf2115beClaim224134352020-12-03 23:50:40665 days 22 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0 Ether0.0138598426
0xb435163df5e7306c4cb5c5a8f06ca2d08e4562fb9220906f9957a22ce3ae448bStake224133142020-12-03 23:40:24665 days 22 hrs ago0x065d46a882f14a8bc02ca366fe23f211f20909b6 IN  0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa1 Ether0.0162976631
0x960a4f9bba56f43a004682fe67e1af1715e827290c57faa785c82a49611248490x60806040224039802020-12-03 10:07:04666 days 12 hrs ago0xab8c1c97ef01aaaadd53cfdd4782633a4429613d IN  Create: CategoryFive0 Ether0.1901641620
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x7a250d5630b4cf539739df2c5dacb4c659f2488d 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa1 wei
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x7a250d5630b4cf539739df2c5dacb4c659f2488d1 Ether
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0xd0a1e359811322d97991e03f863a0c30c2cf029c0 Ether
0xb66d3fcc10052e5f93c7cbf10c0dd9501d6978c6513f7e26b8c4c5fd4cd359bf225375372020-12-11 14:23:52658 days 8 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x7a250d5630b4cf539739df2c5dacb4c659f2488d 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa1 wei
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x7a250d5630b4cf539739df2c5dacb4c659f2488d1 Ether
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0xd0a1e359811322d97991e03f863a0c30c2cf029c0 Ether
0x77d583a4ae2e12c90e6134ca6b23c30b935a1dcb83a2edb47be47f12b5e905af224321612020-12-05 2:47:28664 days 19 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0x065d46a882f14a8bc02ca366fe23f211f20909b60.30679855 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x7a250d5630b4cf539739df2c5dacb4c659f2488d0.47317111 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x937b05dc60d69ecc62f445970b1ae5b463720fc70 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x937b05dc60d69ecc62f445970b1ae5b463720fc70 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x7a250d5630b4cf539739df2c5dacb4c659f2488d 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa0.77996966 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x7a250d5630b4cf539739df2c5dacb4c659f2488d0 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
0x6634f57dfe772c88b1fa14d1a2bcf0722023ca5f5e1fff848491430c033409a6224316292020-12-05 2:00:20664 days 20 hrs ago 0x5d505a4b03f7171f6ec0be403ec3a59655a67aaa 0x2acc2e05f69dfab29a4136a9b8c76ecba48cdb590 Ether
[ Download CSV Export 
Loading
This contract contains unverified libraries: FeeHelpers
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
CategoryFive

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : Cane.sol
pragma solidity ^0.6.12;

import "./lib/ERC20.sol";

// File: contracts/Cane.sol
contract Cane is ERC20 {

    address minter;

    modifier onlyMinter {
        require(msg.sender == minter, 'Only minter can call this function.');
        _;
    }

    constructor(address _minter) public ERC20('Hurricane', 'CANE') {
        minter = _minter;
    }

    function mint(address account, uint256 amount) external onlyMinter {
        _mint(account, amount);
    }

    function burn(address account, uint256 amount) external onlyMinter {
        _burn(account, amount);
    }
}

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

pragma solidity ^0.6.12;

import "./interfaces/IERC20.sol";
import "./interfaces/IUniswap.sol";
import "./interfaces/IWETH.sol";
import "./lib/ReentrancyGuard.sol";
import "./lib/Ownable.sol";
import "./lib/SafeMath.sol";
import "./lib/Math.sol";
import "./lib/Address.sol";
import "./lib/SafeERC20.sol";
import "./lib/FeeHelpers.sol";
import "./Cane.sol";
import "./Hugo.sol";


// File: contracts/CategoryFive.sol

contract CategoryFive is ReentrancyGuard, Ownable {
 
    using SafeMath for uint256;
    using Address for address;
    using SafeERC20 for IERC20;

    event Staked(address indexed from, uint256 amount, uint256 amountLP);
    event Withdrawn(address indexed to, uint256 poolId, uint256 amount, uint256 amountLP);
    event Claimed(address indexed to, uint256 poolId, uint256 amount);
    event Halving(uint256 amount);
    event Received(address indexed from, uint256 amount);
    event EmergencyWithdraw(address indexed to, uint256 poolId, uint256 amount);
    event ClaimedLPReward(address indexed to, uint256 poolId, uint256 lpEthReward, uint256 lpCaneReward);

    Cane public cane; // Hurricane farming token
    Hugo public hugo; // Hurricane governance token

    IUniswapV2Factory public factory;
    IUniswapV2Router02 public router;
    address public weth;
    address payable public treasury;

    struct AccountInfo {
        uint256 index;
        uint256 balance;
        uint256 lastWithdrawTimestamp;
        uint256 lastStakedTimestamp;
        uint256 reward;
        uint256 rewardPerTokenPaid;
        uint256 lpEthReward;
        uint256 lpEthRewardPaid;
        uint256 lpCaneReward;
        uint256 lpCaneRewardPaid;
    }
    struct PoolInfo {
        IERC20 pairAddress; // Address of LP token contract
        IERC20 otherToken; // Reference to other token in pair (e.g. 'weth')
        uint256 rewardAllocation; // Rewards allocated for this pool
        uint256 totalSupply; // Total supply of tokens in pool
        uint256 borrowedSupply; // Total CANE token borrowed for pool
    }
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => AccountInfo)) public accountInfos;
    // List for supporting accountInfos interation
    mapping(uint256 => address payable[]) public accountInfosIndex;

    uint256 public constant HALVING_DURATION = 14 days;
    uint256 public rewardAllocation = 5000 * 10 ** 18;
    uint256 public halvingTimestamp = 0;
    uint256 public lastUpdateTimestamp = 0;

    uint256 public rewardRate = 0;
    uint256 public rewardPerTokenStored = 0;

    // configurable parameters via gov voting (days 30+ parameters only)
    uint256 public rewardHalvingPercent = 50;
    uint256 public claimBurnFee = 1;
    uint256 public claimTreasuryFeePercent = 2;
    uint256 public claimLPFeePercent = 2;
    uint256 public claimLiquidBalancePercent = 95;
    uint256 public unstakeLPFeePercent = 2;
    uint256 public unstakeTreasuryFeePercent = 2;
    uint256 public unstakeBurnFeePercent = 1;
    uint256 public withdrawalLimitPercent = 20;
    uint256 public katrinaExitFeePercent = 4;

    // Goal is for farming to be started on this timestamp
    // Date and time (GMT): Monday, December 07, 2020 7:00:00 PM (1607367600)
    uint256 public farmingStartTimestamp = 1607367600;
    bool public farmingStarted = false;

    // References to our 2 core pools
    uint256 private constant HUGO_POOL_ID = 0;
    uint256 private constant KATRINA_POOL_ID = 1;

    // Burn address
    address constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // Uniswap Router Address
    address constant ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;

    constructor(address payable _treasury, uint256 _farmingStartTimestamp) public {

        cane = new Cane(address(this));
        hugo = new Hugo(address(this));

        router = IUniswapV2Router02(ROUTER_ADDRESS);
        factory = IUniswapV2Factory(router.factory());
        weth = router.WETH();
        treasury = _treasury;
        farmingStartTimestamp = _farmingStartTimestamp;

        // TODO: REMOVE BEFORE DEPLOY
        // Calc initial reward rate
        rewardRate = rewardAllocation.div(HALVING_DURATION);

        // Initialize CANE staking pool w/ 40% of rewards at launch
        // New allocations can be set dynamically via governance
        poolInfo.push(PoolInfo({
            pairAddress: cane,
            otherToken: cane,
            rewardAllocation: rewardAllocation.mul(40).div(100),
            borrowedSupply: 0,
            totalSupply: 0
        }));

        // Initialize Katrina liquidity pool w/ 60% of rewards at launch
        // New allocations can be set dynamically via governance
        poolInfo.push(PoolInfo({
            pairAddress: IERC20(factory.createPair(address(cane), weth)),
            otherToken: IERC20(weth),
            rewardAllocation: rewardAllocation.mul(60).div(100),
            borrowedSupply: 0,
            totalSupply: 0
        }));
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
    }

    function stakeToHugo(uint256 _amount, bool _claimAndStakeRewards) external nonReentrant {
        _checkFarming();
        _updateReward(HUGO_POOL_ID);
        _halving(HUGO_POOL_ID);

        // Retrieve pool & account Info
        PoolInfo storage pool = poolInfo[HUGO_POOL_ID];
        AccountInfo storage account = accountInfos[HUGO_POOL_ID][msg.sender];

        require(_amount > 0, 'Invalid stake');

        // find user rewards due in each pool and auto claim
        if (_claimAndStakeRewards) {
            uint256 rewardsDue = account.reward; // current reward due in Hugo
            uint256 poolLength = poolInfo.length;
            for (uint256 pid = 1; pid < poolLength; ++ pid) {
                uint256 poolRewards = accountInfos[pid][msg.sender].reward;
                if (poolRewards > 0) {
                    rewardsDue = rewardsDue.add(poolRewards);
                    accountInfos[pid][msg.sender].reward = 0;
                }
            }

            if (rewardsDue > 0) { // transfer to Hugo staking pool directly without any fees
                // mint rewards directly to pool, plus send equiv Hugo gov tokens to user
                cane.mint(address(this), rewardsDue);
                hugo.mint(msg.sender, rewardsDue);

                account.balance = account.balance.add(rewardsDue);
                pool.totalSupply = pool.totalSupply.add(rewardsDue);

                if (account.reward > 0) {
                    account.reward = 0;
                }
            }
        }

        require(cane.balanceOf(msg.sender) >= _amount, 'Invalid balance');
        cane.transferFrom(msg.sender, address(this), _amount);

        // Add balance to pool's total supply
        pool.totalSupply = pool.totalSupply.add(_amount);

        // Add to iterator tracker if not exists
        account.balance = account.balance.add(_amount);
        account.lastStakedTimestamp = block.timestamp;
        
        if (account.index == 0) {
            accountInfosIndex[HUGO_POOL_ID].push(msg.sender);
            account.index = accountInfosIndex[HUGO_POOL_ID].length;
        }

        // Mint equivalent number of our gov token for user
        hugo.mint(msg.sender, _amount);

        emit Staked(msg.sender, _amount, 0);
    }

    function stake(uint256 _poolId, uint256 _amount) external payable nonReentrant {
        _checkFarming();
        _updateReward(_poolId);
        _halving(_poolId);

        uint256 stakeAmount;
        if (_poolId == KATRINA_POOL_ID) {
            stakeAmount = msg.value;
        } else {
            stakeAmount = _amount;
        }

        require(stakeAmount > 0, 'Invalid amount');
        require(!address(msg.sender).isContract(), 'Invalid user');

        require(_poolId < poolInfo.length, 'Invalid pool');
        require(_poolId > HUGO_POOL_ID, 'Stake in Hugo');

        PoolInfo storage pool = poolInfo[_poolId];
        AccountInfo storage account = accountInfos[_poolId][msg.sender];

        uint256 caneTokenAmount = IERC20(cane).balanceOf(address(pool.pairAddress));
        uint256 otherTokenAmount = IERC20(pool.otherToken).balanceOf(address(pool.pairAddress));

        // If otherTokenAmount = 0 then set initial price to 1 ETH = 10 CANE (valid for eth/CANE pool)
        uint256 amountCaneTokenDesired = 0;

        if (_poolId == KATRINA_POOL_ID) {
            amountCaneTokenDesired = (otherTokenAmount == 0) ? 
                stakeAmount * 10 : stakeAmount.mul(caneTokenAmount).div(otherTokenAmount);
        } else {
            require(otherTokenAmount > 0, "Pool not started"); // require manual add for new LPs
            amountCaneTokenDesired = stakeAmount.mul(caneTokenAmount).div(otherTokenAmount);
        }
        
        // Mint borrowed cane and update borrowed amount in pool
        cane.mint(address(this), amountCaneTokenDesired);
        pool.borrowedSupply = pool.borrowedSupply.add(amountCaneTokenDesired);

        // Add liquidity in uniswap
        IERC20(cane).approve(address(router), amountCaneTokenDesired);
        
        uint256 liquidity;
        if (_poolId == KATRINA_POOL_ID) { // use addLiquidityETH
            (,, liquidity) = router.addLiquidityETH{value : stakeAmount}(
                address(cane), amountCaneTokenDesired, 0, 0, address(this), block.timestamp + 1 days);
        } else { // use addLiquidity for token/cane liquidity
            (,, liquidity) = router.addLiquidity(
                address(pool.otherToken), address(cane), 
                stakeAmount, amountCaneTokenDesired, 0, 0, address(this), block.timestamp + 1 days);
        }

        // Add LP token to total supply
        pool.totalSupply = pool.totalSupply.add(liquidity);

        // Add to balance and iterator tracker if not exists
        account.balance = account.balance.add(liquidity);
        if (account.index == 0) {
            accountInfosIndex[_poolId].push(msg.sender);
            account.index = accountInfosIndex[_poolId].length;
        }

        // Set stake timestamp as last withdraw timestamp
        // to prevent withdraw immediately after first staking
        account.lastStakedTimestamp = block.timestamp;
        if (account.lastWithdrawTimestamp == 0) {
            account.lastWithdrawTimestamp = block.timestamp;
        }

        emit Staked(msg.sender, stakeAmount, liquidity);
    }

    function withdraw(uint256 _poolId, uint256 _amount) external nonReentrant {
        _checkFarming();
        _updateReward(_poolId);
        _halving(_poolId);

        require(_poolId < poolInfo.length, 'Invalid pool');

        // Retrieve account in pool
        PoolInfo storage pool = poolInfo[_poolId];
        AccountInfo storage account = accountInfos[_poolId][msg.sender];

        require(account.lastWithdrawTimestamp + 12 hours <= block.timestamp, 'Invalid withdraw time');
        require(account.balance > 0, 'Invalid balance');
        require(account.balance >= _amount, 'Insufficient balance');

        uint256 _withdrawalLimit = account.balance.mul(withdrawalLimitPercent).div(100);
        if (account.balance < _withdrawalLimit) {
            _withdrawalLimit = account.balance;
        }

        require(_amount <= _withdrawalLimit, 'Invalid amount');

        // Reduce total supply in pool
        pool.totalSupply = pool.totalSupply.sub(_amount);
        // Reduce user's balance
        account.balance = account.balance.sub(_amount);
        // Update user's withdraw timestamp
        account.lastWithdrawTimestamp = block.timestamp;

        uint256[] memory totalToken = new uint256[](2);

        uint256 otherTokenAmountMinusFees = 0;

        if (_poolId == HUGO_POOL_ID) { // burn Hugo
            totalToken[1] = _amount;
            hugo.burn(msg.sender, _amount);

            uint256 burnFee = _amount.div(FeeHelpers.getUnstakeBurnFee(account.lastStakedTimestamp, unstakeBurnFeePercent)); // calculate fee
            cane.burn(BURN_ADDRESS, burnFee);
            otherTokenAmountMinusFees = _amount.sub(burnFee);
        } else { // Remove liquidity in uniswap
            IERC20(pool.pairAddress).approve(address(router), _amount);
            if (_poolId == KATRINA_POOL_ID) {
                (uint256 caneTokenAmount, uint256 otherTokenAmount) = router.removeLiquidityETH(address(cane), _amount, 0, 0, address(this), block.timestamp + 1 days);
                totalToken[0] = caneTokenAmount;
                totalToken[1] = otherTokenAmount;
            } else {
                (uint256 caneTokenAmount, uint256 otherTokenAmount) = router.removeLiquidity(address(cane), address(pool.otherToken), _amount, 0, 0, address(this), block.timestamp + 1 days);
                totalToken[0] = caneTokenAmount;
                totalToken[1] = otherTokenAmount;
            }

            // Burn borrowed cane and update count
            cane.burn(address(this), totalToken[0]);
            pool.borrowedSupply = pool.borrowedSupply.sub(totalToken[0]);
        }

        // Calculate and transfer withdrawal fee to treasury
        uint256 treasuryFee = 0;
        if (_poolId == KATRINA_POOL_ID) {
            treasuryFee = FeeHelpers.getKatrinaExitFee(farmingStartTimestamp, katrinaExitFeePercent);
        } else {
            treasuryFee = FeeHelpers.getUnstakeTreasuryFee(account.lastStakedTimestamp, unstakeTreasuryFeePercent);
        }
        
        treasuryFee = totalToken[1].div(treasuryFee);
        treasury.transfer(treasuryFee);
        if (_poolId == HUGO_POOL_ID) {
            otherTokenAmountMinusFees = otherTokenAmountMinusFees.sub(treasuryFee);
        } else {
            otherTokenAmountMinusFees = totalToken[1].sub(treasuryFee);
        }
        
        // Calculate and transfer withdrawal fee for distribution to other LPs
        if (accountInfosIndex[_poolId].length > 0 && pool.totalSupply > 0) {
            uint256 lpFee = 0;
            if (_poolId == KATRINA_POOL_ID) {
                lpFee = FeeHelpers.getKatrinaExitFee(farmingStartTimestamp, katrinaExitFeePercent);
            } else {
                lpFee = FeeHelpers.getUnstakeLPFee(account.lastStakedTimestamp, unstakeLPFeePercent);
            }

            lpFee = totalToken[1].div(lpFee);
            for (uint256 i = 0; i < accountInfosIndex[_poolId].length; i ++) {
                AccountInfo storage lpAccount = accountInfos[_poolId][accountInfosIndex[_poolId][i]];
                // Send portion of fee and track amounts if we have an LP balance and is not sender
                if (lpAccount.balance > 0 && accountInfosIndex[_poolId][i] != msg.sender) {
                    //accountInfosIndex[_poolId][i].transfer(lpAccount.balance.mul(lpFee).div(pool.totalSupply));
                    lpAccount.lpEthReward = lpAccount.lpEthReward.add(lpAccount.balance.mul(lpFee).div(pool.totalSupply));
                }
            }
            otherTokenAmountMinusFees = otherTokenAmountMinusFees.sub(lpFee);
        }

        totalToken[1] = otherTokenAmountMinusFees;

        if (_poolId == KATRINA_POOL_ID) {
            msg.sender.transfer(totalToken[1]);
        } else {
            pool.otherToken.transfer(msg.sender, totalToken[1]);
        }

        // Remove from list if balance is zero
        if (account.balance == 0 && account.index > 0 && account.index <= accountInfosIndex[_poolId].length) {
            uint256 accountIndex = account.index - 1; // Fetch real index in array
            accountInfos[_poolId][accountInfosIndex[_poolId][accountInfosIndex[_poolId].length - 1]].index = accountIndex + 1; // Give it my index
            accountInfosIndex[_poolId][accountIndex] = accountInfosIndex[_poolId][accountInfosIndex[_poolId].length - 1]; // Give it my address
            accountInfosIndex[_poolId].pop();
            account.index = 0; // Keep struct ref valid, but remove from tracking list of active LPs
        }

        emit Withdrawn(msg.sender, _poolId, _amount, totalToken[1]);
    }

    // Claim functions for extracting pool rewards
    function claim(uint256 _poolId) external nonReentrant {
        _checkFarming();
        _updateReward(_poolId);
        _halving(_poolId);

        // Retrieve account in pool
        PoolInfo storage pool = poolInfo[_poolId];
        AccountInfo storage account = accountInfos[_poolId][msg.sender];
        
        uint256 reward = account.reward;

        require(reward > 0, 'No rewards');

        if (reward > 0) {
            // Reduce rewards due
            account.reward = 0;
            // Apply variable % burn fee
            cane.mint(BURN_ADDRESS, reward.div(FeeHelpers.getClaimBurnFee(account.lastStakedTimestamp, claimBurnFee)));
            // Extract liquid qty and send liquid to user wallet
            cane.mint(msg.sender, reward.div(FeeHelpers.getClaimLiquidBalancePcnt(account.lastStakedTimestamp, claimLiquidBalancePercent)));
            // Extract treasury fee and send
            cane.mint(address(treasury), reward.div(FeeHelpers.getClaimTreasuryFee(account.lastStakedTimestamp, claimTreasuryFeePercent)));

            // Extract LPs fees amount and distribute
            if (accountInfosIndex[_poolId].length > 0 && pool.totalSupply > 0) {
                for (uint256 i = 0; i < accountInfosIndex[_poolId].length; i ++) {
                    AccountInfo storage lpAccount = accountInfos[_poolId][accountInfosIndex[_poolId][i]];
                    // Send portion of fee and track amounts if we have an LP balance and is not sender
                    if (lpAccount.balance > 0 && accountInfosIndex[_poolId][i] != msg.sender) {
                        lpAccount.lpCaneReward = lpAccount.lpCaneReward.add(lpAccount.balance
                            .mul(reward.div(FeeHelpers.getClaimLPFee(account.lastStakedTimestamp, claimLPFeePercent)))
                            .div(pool.totalSupply));
                    }
                }
            }

            if (_poolId != HUGO_POOL_ID) {
                // Remove liquid and treasury/lp/burn fees, then remainder goes back to LP
                uint256[] memory rewardAmounts = new uint256[](2);
                rewardAmounts[0] = reward
                    .sub(reward.div(FeeHelpers.getClaimBurnFee(account.lastStakedTimestamp, claimBurnFee)))
                    .sub(reward.div(FeeHelpers.getClaimLiquidBalancePcnt(account.lastStakedTimestamp, claimLiquidBalancePercent)))
                    .sub(reward.div(FeeHelpers.getClaimTreasuryFee(account.lastStakedTimestamp, claimTreasuryFeePercent)))
                    .sub(reward.div(FeeHelpers.getClaimLPFee(account.lastStakedTimestamp, claimLPFeePercent)));
                rewardAmounts[1] = rewardAmounts[0].div(2);
                // Mint [ALL] the qty of tokens needed to buy ETH and add LP
                cane.mint(address(this), rewardAmounts[0]);
                // Build swap pair from token to token (eg: WETH)
                address[] memory swapPath = new address[](2);
                swapPath[0] = address(cane);
                swapPath[1] = address(weth);
                // Sell minted half for ETH equivalent
                IERC20(cane).safeApprove(address(router), 0);
                IERC20(cane).safeApprove(address(router), rewardAmounts[1]);
                uint256[] memory swappedTokens = router.swapExactTokensForETH(rewardAmounts[1], uint(0), swapPath, address(this), block.timestamp + 1 days);
                
                IUniswapV2Pair _pair = IUniswapV2Pair(address(pool.pairAddress));
                (uint256 _reserve0, uint256 _reserve1, ) = _pair.getReserves();
                bool _isToken0 = _pair.token0() == address(cane);
                uint256 _tokensPerETH = 1e18 * (_isToken0 ? _reserve0 : _reserve1) / (_isToken0 ? _reserve1 : _reserve0);

                // Use other minted half for CANE part, add to lp
                uint256[] memory totalLp = new uint256[](3);
                IERC20(cane).safeApprove(address(router), 0);
                if (_tokensPerETH > 1e18 * rewardAmounts[1] / swappedTokens[swappedTokens.length - 1]) {
                    uint256 _ethValue = 1e18 * rewardAmounts[1] / _tokensPerETH;
                    IERC20(cane).safeApprove(address(router), rewardAmounts[1]);
                    (totalLp[0], totalLp[1], totalLp[2]) = router.addLiquidityETH{value: _ethValue}(address(cane), rewardAmounts[1], 0, 0, address(this), block.timestamp + 5 minutes);
                } else {
                    uint256 _tokenValue = 1e18 * _tokensPerETH / swappedTokens[swappedTokens.length - 1];
                    IERC20(cane).safeApprove(address(router), _tokenValue);
                    (totalLp[0], totalLp[1], totalLp[2]) = router.addLiquidityETH{value: swappedTokens[swappedTokens.length - 1]}(address(cane), _tokenValue, 0, 0, address(this), block.timestamp + 5 minutes);
                }
                
                // Check for any leftover CANE amounts, return to user
                if (rewardAmounts[1].sub(totalLp[0]) > 0) {
                    cane.mint(msg.sender, rewardAmounts[1].sub(totalLp[0]));
                }
                
                if (swappedTokens[swappedTokens.length - 1].sub(totalLp[1]) > 0) {
                    msg.sender.transfer(swappedTokens[swappedTokens.length - 1].sub(totalLp[1]));
                }

                // Add LP token to total and borrowed supply to KAT pool
                PoolInfo storage katPool = poolInfo[KATRINA_POOL_ID];
                AccountInfo storage katAccount = accountInfos[KATRINA_POOL_ID][msg.sender];

                katPool.totalSupply = katPool.totalSupply.add(totalLp[2]);
                katPool.borrowedSupply = katPool.borrowedSupply.add(totalLp[0]);
                
                // Add to balance and iterator if not already in pool
                katAccount.balance = katAccount.balance.add(totalLp[2]);
                if (katAccount.index == 0) {
                    accountInfosIndex[KATRINA_POOL_ID].push(msg.sender);
                    katAccount.index = accountInfosIndex[KATRINA_POOL_ID].length;
                }
            }
            emit Claimed(msg.sender, _poolId, reward);
        }

        // Claim LP rewards with zero fees
        uint256 lpEthReward = account.lpEthReward;
        uint256 lpCaneReward = account.lpCaneReward;
        bool claimedLP = false;
        if (lpEthReward > 0) {
            claimedLP = true;
            // Reduce rewards due, track total paid, and send ETH
            account.lpEthReward = 0;
            account.lpEthRewardPaid = account.lpEthRewardPaid.add(lpEthReward);
            msg.sender.transfer(lpEthReward);
        }
        if (lpCaneReward > 0) {
            claimedLP = true;
            account.lpCaneReward = 0;
            account.lpCaneRewardPaid = account.lpCaneRewardPaid.add(lpCaneReward);
            cane.mint(msg.sender, lpCaneReward);
        }
        if (claimedLP) {
            emit ClaimedLPReward(msg.sender, _poolId, lpEthReward, lpCaneReward);
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _poolId) external {
        require(_poolId < poolInfo.length, 'Invalid pool');
        require (_poolId != HUGO_POOL_ID, 'You must withdraw from Hugo by unstaking');
        PoolInfo storage pool = poolInfo[_poolId];
        AccountInfo storage account = accountInfos[_poolId][msg.sender];

        pool.pairAddress.safeTransfer(address(msg.sender), account.balance);
        account.balance = 0;

        emit EmergencyWithdraw(msg.sender, _poolId, account.balance);
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    // _rewardAllocation must be % number (e.g. 15 means 15%)
    
    function add(
        uint256 _rewardAllocation, 
        IERC20 _pairAddress, 
        IERC20 _otherToken
        ) external onlyOwner {

        poolInfo.push(PoolInfo({
            pairAddress: _pairAddress,
            otherToken: _otherToken,
            rewardAllocation: rewardAllocation.mul(_rewardAllocation).div(100),
            borrowedSupply: 0,
            totalSupply: 0
        }));
    }

    // Update the given pool's CANE rewards. Can only be called by the owner.
    // _rewardAllocation must be % number (e.g. 15 means 15%)
    function set(uint256 _poolId, uint256 _rewardAllocation) external onlyOwner {
        uint256 prevRewardAllocation = poolInfo[_poolId].rewardAllocation;
        if (prevRewardAllocation != rewardAllocation.mul(_rewardAllocation).div(100)) {
            rewardAllocation = rewardAllocation.sub(prevRewardAllocation).add(rewardAllocation.mul(_rewardAllocation).div(100));
            poolInfo[_poolId].rewardAllocation = rewardAllocation.mul(_rewardAllocation).div(100);
        }
    }

    // Fetches length of accounts in a pool
    // Allows easy front end iteration of accountInfos
    function accountInfosLength(uint256 _poolId) external view returns (uint256) {
        require(_poolId < poolInfo.length, 'Invalid pool');
        return accountInfosIndex[_poolId].length;
    }

    // Fetches details of account in the pool specified
    // Allows easy front end iteration of accountInfos
    function accountInfosByIndex(uint256 _poolId, uint256 _index) 
        external view returns (
            uint256 index,
            uint256 balance,
            uint256 lastWithdrawTimestamp,
            uint256 lastStakedTimestamp,
            uint256 reward,
            uint256 rewardPerTokenPaid,
            uint256 lpEthReward,
            uint256 lpEthRewardPaid,
            uint256 lpCaneReward,
            uint256 lpCaneRewardPaid,
            address userAddress) {

        require(_poolId < poolInfo.length, 'Invalid pool');
        userAddress = accountInfosIndex[_poolId][_index];
        AccountInfo memory account = accountInfos[_poolId][userAddress];
        return (
            account.index,
            account.balance,
            account.lastWithdrawTimestamp,
            account.lastStakedTimestamp,
            account.reward,
            account.rewardPerTokenPaid,
            account.lpEthReward,
            account.lpEthRewardPaid,
            account.lpCaneReward,
            account.lpCaneRewardPaid,
            userAddress
            );
    }

    // Fetches individual balances for each token in a pair
    function balanceOfPool(uint256 _poolId) external view returns (uint256, uint256) {
        require(_poolId < poolInfo.length, 'Invalid pool');
        PoolInfo storage pool = poolInfo[_poolId];
        
        uint256 otherTokenAmount = IERC20(pool.otherToken).balanceOf(address(pool.pairAddress));
        uint256 caneTokenAmount = IERC20(cane).balanceOf(address(pool.pairAddress));

        return (otherTokenAmount, caneTokenAmount);
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function burnedTokenAmount() external view returns (uint256) {
        return cane.balanceOf(BURN_ADDRESS);
    }

    function rewardPerToken(uint256 _poolId) public view returns (uint256) {
        require(_poolId < poolInfo.length, 'Invalid pool');
        PoolInfo storage pool = poolInfo[_poolId];
        if (pool.totalSupply == 0) {
            return rewardPerTokenStored;
        }

        uint256 poolRewardRate = pool.rewardAllocation.mul(rewardRate).div(rewardAllocation);

        return rewardPerTokenStored
        .add(
            lastRewardTimestamp()
            .sub(lastUpdateTimestamp)
            .mul(poolRewardRate)
            .mul(1e18)
            .div(pool.totalSupply)
        );
    }

    function lastRewardTimestamp() public view returns (uint256) {
        return Math.min(block.timestamp, halvingTimestamp);
    }

    function rewardEarned(uint256 _poolId, address account) public view returns (uint256) {
        return accountInfos[_poolId][account].balance.mul(
            rewardPerToken(_poolId).sub(accountInfos[_poolId][account].rewardPerTokenPaid)
        )
        .div(1e18)
        .add(accountInfos[_poolId][account].reward);
    }

    // Token price in eth
    function tokenPrice(uint256 _poolId) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_poolId];
        uint256 ethAmount = IERC20(weth).balanceOf(address(pool.pairAddress));
        uint256 tokenAmount = IERC20(cane).balanceOf(address(pool.pairAddress));
        
        return tokenAmount > 0 ?
        // Current price
        ethAmount.mul(1e18).div(tokenAmount) :
        // Initial price
        (uint256(1e18).div(10));
    }

    // Set all configurable parameters
    function setGoverningParameters(uint256[] memory _parameters) external onlyOwner {
        require(_parameters[0] >= 5 && _parameters[0] <= 50, "Invalid range");  //_parameters[0] _rewardHalvingPercent
        require(_parameters[1] >= 10 && _parameters[1] <= 50, "Invalid range"); //_parameters[1] _withdrawalLimitPercent
        require(_parameters[2] >= 1 && _parameters[2] <= 5, "Invalid range");   //_parameters[2] _claimBurnFee
        require(_parameters[3] >= 1 && _parameters[3] <= 5, "Invalid range");   //_parameters[3] _claimTreasuryFeePercent
        require(_parameters[4] >= 1 && _parameters[4] <= 5, "Invalid range");   //_parameters[4] _claimLPFeePercent
        require(_parameters[5] >= 25 && _parameters[5] <= 95, "Invalid range"); //_parameters[5] _claimLiquidBalancePercent
        require(_parameters[6] >= 1 && _parameters[6] <= 5, "Invalid range");   //_parameters[6] _unstakeBurnFeePercent
        require(_parameters[7] >= 1 && _parameters[7] <= 5, "Invalid range");   //_parameters[7] _unstakeTreasuryFeePercent
        require(_parameters[8] >= 1 && _parameters[8] <= 5, "Invalid range");   //_parameters[8] _unstakeLPFeePercent
        require(_parameters[9] >= 2 && _parameters[9] <= 10, "Invalid range");  //_parameters[9] _katrinaExitFeePercent
        rewardHalvingPercent = _parameters[0];
        withdrawalLimitPercent = _parameters[1];
        claimBurnFee = _parameters[2];
        claimTreasuryFeePercent = _parameters[3];
        claimLPFeePercent = _parameters[4];
        claimLiquidBalancePercent = _parameters[5];
        unstakeBurnFeePercent = _parameters[6];
        unstakeTreasuryFeePercent = _parameters[7];
        unstakeLPFeePercent = _parameters[8];
        katrinaExitFeePercent = _parameters[9];
    }
    
    // Only allow our farmingStartTimestamp to be changed between 72 hours
    // of the original schedule. Gives us flexibility in when to go live
    // if some unexpected circumstances happens (such as high gas prices)
    //
    // We must start farming somewhere between Dec 07, 2020 and Dec 10, 2020 19:00 GMT
    // Thanks Karl (Cat3) for the suggestion ;-)
    function setFarmingStartTimestamp(uint256 _farmingStartTimestamp) external onlyOwner {
        require(_farmingStartTimestamp >= 1607367600 && _farmingStartTimestamp <= 1607626800, "Invalid range");
        farmingStartTimestamp = _farmingStartTimestamp;
    }

    // public
    function _updateReward(uint256 _poolId) internal {
        rewardPerTokenStored = rewardPerToken(_poolId);
        lastUpdateTimestamp = lastRewardTimestamp();
        if (msg.sender != address(0)) {
            accountInfos[_poolId][msg.sender].reward = rewardEarned(_poolId, msg.sender);
            accountInfos[_poolId][msg.sender].rewardPerTokenPaid = rewardPerTokenStored;
        }
    }

    // Do halving when timestamp reached
    function _halving(uint256 _poolId) internal {
        if (block.timestamp >= halvingTimestamp) {
            rewardAllocation = rewardAllocation.mul(rewardHalvingPercent).div(100);

            rewardRate = rewardAllocation.div(HALVING_DURATION);
            halvingTimestamp = halvingTimestamp.add(HALVING_DURATION);

            _updateReward(_poolId);
            emit Halving(rewardAllocation);
        }
    }
    // Check if farming is started
    function _checkFarming() internal {
        require(farmingStartTimestamp <= block.timestamp, 'Farming has not yet started. Try again later.');
        if (!farmingStarted) {
            // We made it to this line, so farming has finally started! The Hurricane.Finance team 
            // would love to thank the following team members for their unwavering support:
            // Kart (Cat3); Foxtrot Delta; Storm Wins; psychologist; Lito; and Lizzie
            // ...and of course, me, Meteorologist - hehehe.
            //
            // Let's go, Hurricanes!
            farmingStarted = true;
            halvingTimestamp = block.timestamp.add(HALVING_DURATION);
            lastUpdateTimestamp = block.timestamp;
        }
    }
}

File 3 of 15 : Hugo.sol
pragma solidity ^0.6.12;

import "./lib/ERC20.sol";

// File: contracts/Hugo.sol
contract Hugo is ERC20 {
    
    address minter;

    modifier onlyMinter {
        require(msg.sender == minter, 'Only minter can call this function.');
        _;
    }

    constructor(address _minter) public ERC20('Hurricane.Hugo', 'HUGO') {
        minter = _minter;
    }

    function mint(address account, uint256 amount) external onlyMinter {
        _mint(account, amount);
    }

    function burn(address account, uint256 amount) external onlyMinter {
        _burn(account, amount);
    }
}

File 4 of 15 : IERC20.sol
pragma solidity ^0.6.12;

/**
 * @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 5 of 15 : IUniswap.sol
pragma solidity ^0.6.12;

// File: contracts/uniswapv2/interfaces/IUniswapV2Factory.sol

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

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

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

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

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

// File: contracts/uniswapv2/interfaces/IUniswapV2Pair.sol

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

// File: contracts/uniswapv2/interfaces/IUniswapV2Router01.sol

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

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

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

// File: contracts/uniswapv2/interfaces/IUniswapV2Router02.sol

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

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

File 6 of 15 : IWETH.sol
pragma solidity ^0.6.12;

// File: contracts/uniswapv2/interfaces/IWETH.sol

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 7 of 15 : Address.sol
pragma solidity ^0.6.12;

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 8 of 15 : Context.sol
pragma solidity ^0.6.12;

// File: @openzeppelin/contracts/GSN/Context.sol

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

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

File 9 of 15 : ERC20.sol
pragma solidity ^0.6.12;

import "./Address.sol";
import "./Context.sol";
import "./SafeMath.sol";
import "../interfaces/IERC20.sol";

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

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

File 10 of 15 : FeeHelpers.sol
pragma solidity ^0.6.12;

import "./SafeMath.sol";
import "./Math.sol";

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library FeeHelpers {
    using SafeMath for uint256;
    
    function getClaimBurnFee(uint256 lastStakedTimestamp, uint256 claimBurnFee) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days) {
            return base.mul(100).div(25);
        } else if (block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(20);
        } else if (block.timestamp < lastStakedTimestamp + 3 days) {
            return base.mul(100).div(10);
        } else if (block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(5);
        } else {
            return base.mul(100).div(claimBurnFee);
        }
    }

    function getClaimTreasuryFee(uint256 lastStakedTimestamp, uint256 claimTreasuryFeePercent) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days) {
            return base.mul(100).div(9);
        } else if (block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(8);
        } else if (block.timestamp < lastStakedTimestamp + 3 days || block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(5);
        } else if (block.timestamp > lastStakedTimestamp + 4 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(4);
        } else {
            return base.mul(100).div(claimTreasuryFeePercent);
        }
    }

    function getClaimLPFee(uint256 lastStakedTimestamp, uint256 claimLPFeePercent) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days) {
            return base.mul(100).div(15);
        } else if (block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(12);
        } else if (block.timestamp < lastStakedTimestamp + 3 days || block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(10);
        } else if (block.timestamp > lastStakedTimestamp + 4 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(5);
        } else {
            return base.mul(100).div(claimLPFeePercent);
        }
    }
    
    function getClaimLiquidBalancePcnt(uint256 lastStakedTimestamp, uint256 claimLiquidBalancePercent) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days) {
            return base.mul(100).div(1);
        } else if (block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(10);
        } else if (block.timestamp < lastStakedTimestamp + 3 days) {
            return base.mul(100).div(15);
        } else if (block.timestamp > lastStakedTimestamp + 3 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(20);
        } else {
            return base.mul(100).div(claimLiquidBalancePercent);
        }
    }

    function getUnstakeBurnFee(uint256 lastStakedTimestamp, uint256 unstakeBurnFeePercent) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days || block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(25);
        } else if (block.timestamp < lastStakedTimestamp + 3 days) {
            return base.mul(100).div(20);
        } else if (block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(15);
        } else if (block.timestamp > lastStakedTimestamp + 4 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(5);
        } else {
            return base.mul(100).div(unstakeBurnFeePercent);
        }
    }

    function getUnstakeTreasuryFee(uint256 lastStakedTimestamp, uint256 unstakeTreasuryFeePercent) public view returns (uint256) {
        uint256 base = 1;

        if (block.timestamp < lastStakedTimestamp + 1 days || block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(25);
        } else if (block.timestamp < lastStakedTimestamp + 3 days) {
            return base.mul(100).div(20);
        } else if (block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(15);
        } else if (block.timestamp > lastStakedTimestamp + 4 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(5);
        } else {
            return base.mul(100).div(unstakeTreasuryFeePercent);
        }
    }
    
    function getUnstakeLPFee(uint256 lastStakedTimestamp, uint256 unstakeLPFeePercent) public view returns (uint256) {
        uint256 base = 1;
        if (block.timestamp < lastStakedTimestamp + 1 days || block.timestamp < lastStakedTimestamp + 2 days) {
            return base.mul(100).div(25);
        } else if (block.timestamp < lastStakedTimestamp + 3 days) {
            return base.mul(100).div(20);
        } else if (block.timestamp < lastStakedTimestamp + 4 days) {
            return base.mul(100).div(15);
        } else if (block.timestamp > lastStakedTimestamp + 4 days && block.timestamp < lastStakedTimestamp + 29 days) {
            return base.mul(100).div(10);
        } else {
            return base.mul(100).div(unstakeLPFeePercent);
        }
    }

    function getKatrinaExitFee(uint256 farmingStartTimestamp, uint256 katrinaExitFeePercent) public view returns (uint256) {
        uint256 base = 1;
        if (block.timestamp < farmingStartTimestamp + 29 days) {
            return 25;
        } else {
            return base.mul(100).div(katrinaExitFeePercent);
        }
    }
}

File 11 of 15 : Math.sol
pragma solidity ^0.6.12;

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

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 12 of 15 : Ownable.sol
pragma solidity ^0.6.12;

/**
 * @title Owned
 * @dev Basic contract for authorization control.
 * @author dicether
 */
contract Ownable {
    address public owner;
    address public pendingOwner;

    event LogOwnerShipTransferred(address indexed previousOwner, address indexed newOwner);
    event LogOwnerShipTransferInitiated(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Modifier, which throws if called by other account than owner.
     */
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Modifier throws if called by any account other than the pendingOwner.
     */
    modifier onlyPendingOwner() {
        require(msg.sender == pendingOwner);
        _;
    }

    /**
     * @dev Set contract creator as initial owner
     */
    constructor() public {
        owner = msg.sender;
        pendingOwner = address(0);
    }

    /**
     * @dev Allows the current owner to set the pendingOwner address.
     * @param _newOwner The address to transfer ownership to.
     */
    function transferOwnership(address _newOwner) public onlyOwner {
        pendingOwner = _newOwner;
        emit LogOwnerShipTransferInitiated(owner, _newOwner);
    }

    /**
     * @dev PendingOwner can accept ownership.
     */
    function claimOwnership() public onlyPendingOwner {
        owner = pendingOwner;
        pendingOwner = address(0);
        emit LogOwnerShipTransferred(owner, pendingOwner);
    }
}

File 13 of 15 : ReentrancyGuard.sol
pragma solidity ^0.6.12;

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

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 14 of 15 : SafeERC20.sol
pragma solidity ^0.6.12;

import "./Address.sol";
import "./SafeMath.sol";

import "../interfaces/IERC20.sol";

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

File 15 of 15 : SafeMath.sol
pragma solidity ^0.6.12;

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {
    "": {
      "FeeHelpers": "0xa644CA24B407A728be13Ec097BeC66D8c5891553"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_farmingStartTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpEthReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpCaneReward","type":"uint256"}],"name":"ClaimedLPReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Halving","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"LogOwnerShipTransferInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"LogOwnerShipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLP","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLP","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"HALVING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"accountInfos","outputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"lastWithdrawTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastStakedTimestamp","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"},{"internalType":"uint256","name":"lpEthReward","type":"uint256"},{"internalType":"uint256","name":"lpEthRewardPaid","type":"uint256"},{"internalType":"uint256","name":"lpCaneReward","type":"uint256"},{"internalType":"uint256","name":"lpCaneRewardPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"accountInfosByIndex","outputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"lastWithdrawTimestamp","type":"uint256"},{"internalType":"uint256","name":"lastStakedTimestamp","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"},{"internalType":"uint256","name":"lpEthReward","type":"uint256"},{"internalType":"uint256","name":"lpEthRewardPaid","type":"uint256"},{"internalType":"uint256","name":"lpCaneReward","type":"uint256"},{"internalType":"uint256","name":"lpCaneRewardPaid","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"accountInfosIndex","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"accountInfosLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardAllocation","type":"uint256"},{"internalType":"contract IERC20","name":"_pairAddress","type":"address"},{"internalType":"contract IERC20","name":"_otherToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnedTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cane","outputs":[{"internalType":"contract Cane","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimLPFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimLiquidBalancePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTreasuryFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hugo","outputs":[{"internalType":"contract Hugo","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"katrinaExitFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"pairAddress","type":"address"},{"internalType":"contract IERC20","name":"otherToken","type":"address"},{"internalType":"uint256","name":"rewardAllocation","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"borrowedSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"rewardEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardHalvingPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_rewardAllocation","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_farmingStartTimestamp","type":"uint256"}],"name":"setFarmingStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_parameters","type":"uint256[]"}],"name":"setGoverningParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_claimAndStakeRewards","type":"bool"}],"name":"stakeToHugo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstakeBurnFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstakeLPFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstakeTreasuryFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalLimitPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405269010f0cf064dd59200000600c556000600d819055600e819055600f819055601055603260115560016012819055600260138190556014818155605f60155560168290556017919091556018919091556019556004601a55635fce7bb0601b55601c805460ff191690553480156200007b57600080fd5b50604051620078f4380380620078f483398181016040526040811015620000a157600080fd5b5080516020909101516001600081905580546001600160a01b031990811633179091556002805490911690556040513090620000dd906200067b565b6001600160a01b03909116815260405190819003602001906000f0801580156200010b573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691909117905560405130906200013c9062000689565b6001600160a01b03909116815260405190819003602001906000f0801580156200016a573d6000803e3d6000fd5b50600480546001600160a01b039283166001600160a01b031991821617825560068054909116737a250d5630b4cf539739df2c5dacb4c659f2488d17908190556040805163c45a015560e01b81529051919093169263c45a01559281810192602092909190829003018186803b158015620001e457600080fd5b505afa158015620001f9573d6000803e3d6000fd5b505050506040513d60208110156200021057600080fd5b5051600580546001600160a01b0319166001600160a01b03928316179055600654604080516315ab88c960e31b81529051919092169163ad5c4648916004808301926020929190829003018186803b1580156200026c57600080fd5b505afa15801562000281573d6000803e3d6000fd5b505050506040513d60208110156200029857600080fd5b5051600780546001600160a01b03199081166001600160a01b039384161790915560088054909116918416919091179055601b819055600c54620002ec906212750062000523602090811b62004b1b17901c565b600f556040805160a0810182526003546001600160a01b0316808252602080830191909152600c546009938301916200034e916064916200033a919060289062004b5d62000576821b17901c565b6200052360201b62004b1b1790919060201c565b81526000602080830182905260409283018290528454600180820187559583528183208551600592830290910180546001600160a01b03199081166001600160a01b03938416178255878501519882018054909116988316989098179097558585015160028801556060860151600380890191909155608090960151600490970196909655835160a08101808652915495546007546364e329cb60e11b909352871660a482015290861660c4820152925160099593948594169263c9c653969260e480870193919282880390910190829087803b1580156200042f57600080fd5b505af115801562000444573d6000803e3d6000fd5b505050506040513d60208110156200045b57600080fd5b50516001600160a01b03908116825260075416602082810191909152600c546040909201916200049f916064916200033a91603c9062004b5d62000576821b17901c565b815260006020808301829052604092830182905284546001818101875595835291819020845160059093020180546001600160a01b039384166001600160a01b031991821617825591850151958101805496909316959091169490941790558101516002830155606081015160038301556080015160049091015550620006979050565b60006200056d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620005d460201b60201c565b90505b92915050565b600082620005875750600062000570565b828202828482816200059557fe5b04146200056d5760405162461bcd60e51b8152600401808060200182810382526021815260200180620078d36021913960400191505060405180910390fd5b60008183620006645760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620006285781810151838201526020016200060e565b50505050905090810190601f168015620006565780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200067157fe5b0495945050505050565b610f298062005a7c83390190565b610f2e80620069a583390190565b6153d580620006a76000396000f3fe6080604052600436106102b25760003560e01c8063721a033f11610175578063c45a0155116100dc578063e30c397811610095578063f8077fae1161006f578063f8077fae146109e0578063f887ea40146109f5578063fc926a0914610a0a578063fd7e584814610a93576102ef565b8063e30c397814610983578063ef08bf4814610998578063f2fde38b146109ad576102ef565b8063c45a0155146108b7578063cdfa2c36146108cc578063d43cdb6214610905578063d4ddce8a1461092f578063df136d6514610959578063e0493f8c1461096e576102ef565b80638da5cb5b1161012e5780638da5cb5b146107f957806395a2a0431461080e5780639ca6fbb4146108235780639d06c5631461084c578063ab12f46414610861578063ab7de09814610876576102ef565b8063721a033f14610720578063777d5c7b146107355780637b0472f0146107655780637b0a47ee14610788578063868a89881461079d578063874c120b146107cf576102ef565b8063346cfb2711610219578063441a3e70116101d2578063441a3e70146105f85780634e71e0c8146106285780635312ea8e1461063d57806361d027b3146106675780636631fa461461067c578063677393871461070b576102ef565b8063346cfb2714610499578063379607f5146104ae5780633bba00c4146104d85780633e6ec0c6146105025780633fc8cef3146105335780634011962e14610548576102ef565b80631ab06ee51161026b5780631ab06ee5146103fe5780631b67d229146104305780631f353cec1461044557806325798e611461045a5780632cbe0a271461046f5780632f60f52514610484576102ef565b806302683fa9146102f4578063081e3eda1461031b5780630a2e5c75146103305780630d749cec1461034557806314bcec9f146103885780631526fe271461039d576102ef565b366102ef5760408051348152905133917f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874919081900360200190a2005b600080fd5b34801561030057600080fd5b50610309610aa8565b60408051918252519081900360200190f35b34801561032757600080fd5b50610309610aae565b34801561033c57600080fd5b50610309610ab4565b34801561035157600080fd5b5061036f6004803603602081101561036857600080fd5b5035610aba565b6040805192835260208301919091528051918290030190f35b34801561039457600080fd5b50610309610c2d565b3480156103a957600080fd5b506103c7600480360360208110156103c057600080fd5b5035610c33565b604080516001600160a01b039687168152949095166020850152838501929092526060830152608082015290519081900360a00190f35b34801561040a57600080fd5b5061042e6004803603604081101561042157600080fd5b5080359060200135610c7d565b005b34801561043c57600080fd5b50610309610d4b565b34801561045157600080fd5b50610309610d51565b34801561046657600080fd5b50610309610d57565b34801561047b57600080fd5b50610309610d5e565b34801561049057600080fd5b50610309610d64565b3480156104a557600080fd5b50610309610d6a565b3480156104ba57600080fd5b5061042e600480360360208110156104d157600080fd5b5035610d70565b3480156104e457600080fd5b5061042e600480360360208110156104fb57600080fd5b503561219d565b34801561050e57600080fd5b50610517612212565b604080516001600160a01b039092168252519081900360200190f35b34801561053f57600080fd5b50610517612221565b34801561055457600080fd5b5061042e6004803603602081101561056b57600080fd5b81019060208101813564010000000081111561058657600080fd5b82018360208201111561059857600080fd5b803590602001918460208302840111640100000000831117156105ba57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612230945050505050565b34801561060457600080fd5b5061042e6004803603604081101561061b57600080fd5b5080359060200135612826565b34801561063457600080fd5b5061042e61362a565b34801561064957600080fd5b5061042e6004803603602081101561066057600080fd5b503561369b565b34801561067357600080fd5b506105176137bd565b34801561068857600080fd5b506106ac6004803603604081101561069f57600080fd5b50803590602001356137cc565b604080519b8c5260208c019a909a528a8a019890985260608a0196909652608089019490945260a088019290925260c087015260e08601526101008501526101208401526001600160a01b031661014083015251908190036101600190f35b34801561071757600080fd5b5061030961395f565b34801561072c57600080fd5b50610309613965565b34801561074157600080fd5b506105176004803603604081101561075857600080fd5b508035906020013561396b565b61042e6004803603604081101561077b57600080fd5b50803590602001356139a0565b34801561079457600080fd5b5061030961403c565b3480156107a957600080fd5b5061042e600480360360408110156107c057600080fd5b50803590602001351515614042565b3480156107db57600080fd5b50610309600480360360208110156107f257600080fd5b5035614556565b34801561080557600080fd5b50610517614639565b34801561081a57600080fd5b50610309614648565b34801561082f57600080fd5b506108386146c6565b604080519115158252519081900360200190f35b34801561085857600080fd5b506103096146cf565b34801561086d57600080fd5b506105176146d5565b34801561088257600080fd5b5061042e6004803603606081101561089957600080fd5b508035906001600160a01b03602082013581169160400135166146e4565b3480156108c357600080fd5b506105176147c0565b3480156108d857600080fd5b50610309600480360360408110156108ef57600080fd5b50803590602001356001600160a01b03166147cf565b34801561091157600080fd5b506103096004803603602081101561092857600080fd5b5035614855565b34801561093b57600080fd5b506103096004803603602081101561095257600080fd5b50356148b0565b34801561096557600080fd5b50610309614a08565b34801561097a57600080fd5b50610309614a0e565b34801561098f57600080fd5b50610517614a14565b3480156109a457600080fd5b50610309614a23565b3480156109b957600080fd5b5061042e600480360360208110156109d057600080fd5b50356001600160a01b0316614a29565b3480156109ec57600080fd5b50610309614a92565b348015610a0157600080fd5b50610517614aa5565b348015610a1657600080fd5b50610a4360048036036040811015610a2d57600080fd5b50803590602001356001600160a01b0316614ab4565b604080519a8b5260208b0199909952898901979097526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015251908190036101400190f35b348015610a9f57600080fd5b50610309614b15565b60135481565b60095490565b60185481565b60095460009081908310610b04576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b600060098481548110610b1357fe5b6000918252602080832060059290920290910160018101548154604080516370a0823160e01b81526001600160a01b03928316600482015290519396509116926370a0823192602480840193829003018186803b158015610b7357600080fd5b505afa158015610b87573d6000803e3d6000fd5b505050506040513d6020811015610b9d57600080fd5b50516003548354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b158015610bf457600080fd5b505afa158015610c08573d6000803e3d6000fd5b505050506040513d6020811015610c1e57600080fd5b50519194509092505050915091565b600e5481565b60098181548110610c4057fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b03938416955091909216929085565b6001546001600160a01b03163314610c9457600080fd5b600060098381548110610ca357fe5b9060005260206000209060050201600201549050610cd76064610cd184600c54614b5d90919063ffffffff16565b90614b1b565b8114610d4657610d0d610cfa6064610cd185600c54614b5d90919063ffffffff16565b600c54610d079084614bb6565b90614bf8565b600c819055610d2390606490610cd19085614b5d565b60098481548110610d3057fe5b9060005260206000209060050201600201819055505b505050565b60115481565b60195481565b6212750081565b601a5481565b600d5481565b60165481565b60026000541415610db6576040805162461bcd60e51b815260206004820152601f60248201526000805160206152d7833981519152604482015290519081900360640190fd5b6002600055610dc3614c52565b610dcc81614cc1565b610dd581614d16565b600060098281548110610de457fe5b60009182526020808320858452600a82526040808520338652909252922060048101546005909202909201925080610e50576040805162461bcd60e51b815260206004820152600a6024820152694e6f207265776172647360b01b604482015290519081900360640190fd5b80156120545760008260040181905550600360009054906101000a90046001600160a01b03166001600160a01b03166340c10f1961dead610f1a73a644ca24b407a728be13ec097bec66d8c589155363d572676d87600301546012546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610ee757600080fd5b505af4158015610efb573d6000803e3d6000fd5b505050506040513d6020811015610f1157600080fd5b50518590614b1b565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f6057600080fd5b505af1158015610f74573d6000803e3d6000fd5b50505050600360009054906101000a90046001600160a01b03166001600160a01b03166340c10f1933610ffd73a644ca24b407a728be13ec097bec66d8c58915536310d8c9aa87600301546015546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610ee757600080fd5b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505060038054600854918601546013546040805163f1dc0cc360e01b815260048101939093526024830191909152516001600160a01b0392831695506340c10f19945091909216916110de9173a644ca24b407a728be13ec097bec66d8c58915539163f1dc0cc3916044808301926020929190829003018186803b158015610ee757600080fd5b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561112457600080fd5b505af1158015611138573d6000803e3d6000fd5b5050506000858152600b6020526040902054158015915061115d575060008360030154115b156112d95760005b6000858152600b60205260409020548110156112d7576000858152600a60209081526040808320600b90925282208054839190859081106111a257fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902060018101549091501580159061120c57506000868152600b602052604090208054339190849081106111f457fe5b6000918252602090912001546001600160a01b031614155b156112ce576112c86112bd8660030154610cd16112b273a644ca24b407a728be13ec097bec66d8c589155363f6286ae18a600301546014546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561127f57600080fd5b505af4158015611293573d6000803e3d6000fd5b505050506040513d60208110156112a957600080fd5b50518890614b1b565b600186015490614b5d565b600883015490614bf8565b60088201555b50600101611165565b505b831561201957604080516002808252606080830184529260208301908036833701905050905061153161139573a644ca24b407a728be13ec097bec66d8c589155363f6286ae186600301546014546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561136257600080fd5b505af4158015611376573d6000803e3d6000fd5b505050506040513d602081101561138c57600080fd5b50518490614b1b565b61152b61142b73a644ca24b407a728be13ec097bec66d8c589155363f1dc0cc388600301546013546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156113f857600080fd5b505af415801561140c573d6000803e3d6000fd5b505050506040513d602081101561142257600080fd5b50518690614b1b565b61152b61148e73a644ca24b407a728be13ec097bec66d8c58915536310d8c9aa8a600301546015546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561127f57600080fd5b61152b61152473a644ca24b407a728be13ec097bec66d8c589155363d572676d8c600301546012546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156114f157600080fd5b505af4158015611505573d6000803e3d6000fd5b505050506040513d602081101561151b57600080fd5b50518a90614b1b565b8990614bb6565b90614bb6565b8160008151811061153e57fe5b60200260200101818152505061157260028260008151811061155c57fe5b6020026020010151614b1b90919063ffffffff16565b8160018151811061157f57fe5b602090810291909101015260035481516001600160a01b03909116906340c10f1990309084906000906115ae57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156115fc57600080fd5b505af1158015611610573d6000803e3d6000fd5b505060408051600280825260608083018452945090925090602083019080368337505060035482519293506001600160a01b03169183915060009061165157fe5b6001600160a01b03928316602091820292909201015260075482519116908290600190811061167c57fe5b6001600160a01b0392831660209182029290920101526006546003546116a89290811691166000614da4565b60065482516116e6916001600160a01b031690849060019081106116c857fe5b60209081029190910101516003546001600160a01b03169190614da4565b60065482516060916001600160a01b0316906318cbafe5908590600190811061170b57fe5b6020026020010151600085304262015180016040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b8381101561178d578181015183820152602001611775565b505050509050019650505050505050600060405180830381600087803b1580156117b657600080fd5b505af11580156117ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156117f357600080fd5b810190808051604051939291908464010000000082111561181357600080fd5b90830190602082018581111561182857600080fd5b825186602082028301116401000000008211171561184557600080fd5b82525081516020918201928201910280838360005b8381101561187257818101518382015260200161185a565b505050509190910160408181528c54630240bc6b60e21b835290519697506001600160a01b03169560009550859450869350630902f1ac92506004808301926060929190829003018186803b1580156118ca57600080fd5b505afa1580156118de573d6000803e3d6000fd5b505050506040513d60608110156118f457600080fd5b50805160209182015160035460408051630dfe168160e01b815290516dffffffffffffffffffffffffffff94851697509390921694506000936001600160a01b039182169391881692630dfe16819260048083019392829003018186803b15801561195e57600080fd5b505afa158015611972573d6000803e3d6000fd5b505050506040513d602081101561198857600080fd5b50516001600160a01b03161490506000816119a357836119a5565b825b826119b057836119b2565b845b670de0b6b3a764000002816119c357fe5b60408051600380825260808201909252929091049250606091906020820183803683375050600654600354929350611a0a926001600160a01b039081169250166000614da4565b86600188510381518110611a1a57fe5b602002602001015189600181518110611a2f57fe5b6020026020010151670de0b6b3a76400000281611a4857fe5b04821115611bd2576000828a600181518110611a6057fe5b6020026020010151670de0b6b3a76400000281611a7957fe5b049050611aa2600660009054906101000a90046001600160a01b03168b6001815181106116c857fe5b6006546003548b516001600160a01b039283169263f305d7199285929116908e906001908110611ace57fe5b6020026020010151600080304261012c016040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b158015611b4957600080fd5b505af1158015611b5d573d6000803e3d6000fd5b50505050506040513d6060811015611b7457600080fd5b508051602082015160409092015184519192918590600090611b9257fe5b6020026020010185600181518110611ba657fe5b6020026020010186600281518110611bba57fe5b60209081029190910101929092529190525250611d46565b600087600189510381518110611be457fe5b602002602001015183670de0b6b3a76400000281611bfe57fe5b600654600354929091049250611c21916001600160a01b03908116911683614da4565b60065488516001600160a01b039091169063f305d719908a906000198101908110611c4857fe5b6020908102919091010151600354604080516001600160e01b031960e086901b1681526001600160a01b03909216600483015260248201869052600060448301819052606483015230608483015261012c420160a48301525160c480830192606092919082900301818588803b158015611cc157600080fd5b505af1158015611cd5573d6000803e3d6000fd5b50505050506040513d6060811015611cec57600080fd5b508051602082015160409092015184519192918590600090611d0a57fe5b6020026020010185600181518110611d1e57fe5b6020026020010186600281518110611d3257fe5b602090810291909101019290925291905252505b6000611d8382600081518110611d5857fe5b60200260200101518b600181518110611d6d57fe5b6020026020010151614bb690919063ffffffff16565b1115611e255760035481516001600160a01b03909116906340c10f19903390611dc6908590600090611db157fe5b60200260200101518d600181518110611d6d57fe5b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015611e0c57600080fd5b505af1158015611e20573d6000803e3d6000fd5b505050505b6000611e4f82600181518110611e3757fe5b60200260200101518960018b510381518110611d6d57fe5b1115611eb457336001600160a01b03166108fc611e8a83600181518110611e7257fe5b60200260200101518a60018c510381518110611d6d57fe5b6040518115909202916000818181858888f19350505050158015611eb2573d6000803e3d6000fd5b505b60006009600181548110611ec457fe5b600091825260208083203384527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79091526040909220845160059092029092019250611f329084906002908110611f1757fe5b60200260200101518360030154614bf890919063ffffffff16565b8260030181905550611f6583600081518110611f4a57fe5b60200260200101518360040154614bf890919063ffffffff16565b8260040181905550611f9883600281518110611f7d57fe5b60200260200101518260010154614bf890919063ffffffff16565b6001820155805461200d57600b6020527f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf8054600181810183557ffc2858506235d5502cafdfae2dcc7804b97258f4d77357c39b0f2a32aa2e6a5090910180546001600160a01b031916331790556000525481555b50505050505050505050505b6040805185815260208101839052815133927f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a928290030190a25b60068201546008830154600082156120b457506000600685015560078401546001906120809084614bf8565b6007860155604051339084156108fc029085906000818181858888f193505050501580156120b2573d6000803e3d6000fd5b505b811561214557506000600885015560098401546001906120d49083614bf8565b6009860155600354604080516340c10f1960e01b81523360048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561212c57600080fd5b505af1158015612140573d6000803e3d6000fd5b505050505b801561218f576040805188815260208101859052808201849052905133917f3eebddb24765187145dfd33b309fe37cda5b88eea08993213266bcf045d5765e919081900360600190a25b505060016000555050505050565b6001546001600160a01b031633146121b457600080fd5b635fce7bb081101580156121cc5750635fd270308111155b61220d576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b601b55565b6004546001600160a01b031681565b6007546001600160a01b031681565b6001546001600160a01b0316331461224757600080fd5b60058160008151811061225657fe5b602002602001015110158015612281575060328160008151811061227657fe5b602002602001015111155b6122c2576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b600a816001815181106122d157fe5b6020026020010151101580156122fc57506032816001815181106122f157fe5b602002602001015111155b61233d576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b60018160028151811061234c57fe5b602002602001015110158015612377575060058160028151811061236c57fe5b602002602001015111155b6123b8576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b6001816003815181106123c757fe5b6020026020010151101580156123f257506005816003815181106123e757fe5b602002602001015111155b612433576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b60018160048151811061244257fe5b60200260200101511015801561246d575060058160048151811061246257fe5b602002602001015111155b6124ae576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b6019816005815181106124bd57fe5b6020026020010151101580156124e85750605f816005815181106124dd57fe5b602002602001015111155b612529576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b60018160068151811061253857fe5b602002602001015110158015612563575060058160068151811061255857fe5b602002602001015111155b6125a4576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b6001816007815181106125b357fe5b6020026020010151101580156125de57506005816007815181106125d357fe5b602002602001015111155b61261f576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b60018160088151811061262e57fe5b602002602001015110158015612659575060058160088151811061264e57fe5b602002602001015111155b61269a576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b6002816009815181106126a957fe5b6020026020010151101580156126d45750600a816009815181106126c957fe5b602002602001015111155b612715576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c69642072616e676560981b604482015290519081900360640190fd5b8060008151811061272257fe5b60200260200101516011819055508060018151811061273d57fe5b60200260200101516019819055508060028151811061275857fe5b60200260200101516012819055508060038151811061277357fe5b60200260200101516013819055508060048151811061278e57fe5b6020026020010151601481905550806005815181106127a957fe5b6020026020010151601581905550806006815181106127c457fe5b6020026020010151601881905550806007815181106127df57fe5b6020026020010151601781905550806008815181106127fa57fe5b60200260200101516016819055508060098151811061281557fe5b6020026020010151601a8190555050565b6002600054141561286c576040805162461bcd60e51b815260206004820152601f60248201526000805160206152d7833981519152604482015290519081900360640190fd5b6002600055612879614c52565b61288282614cc1565b61288b82614d16565b60095482106128d0576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b6000600983815481106128df57fe5b60009182526020808320868452600a8252604080852033865290925292206002810154600590920290920192504261a8c0909101111561295e576040805162461bcd60e51b8152602060048201526015602482015274496e76616c69642077697468647261772074696d6560581b604482015290519081900360640190fd5b60008160010154116129a9576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c69642062616c616e636560881b604482015290519081900360640190fd5b82816001015410156129f9576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6000612a196064610cd16019548560010154614b5d90919063ffffffff16565b90508082600101541015612a2e575060018101545b80841115612a74576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b6003830154612a839085614bb6565b60038401556001820154612a979085614bb6565b6001830155426002808401919091556040805182815260608082018352929091602083019080368337019050509050600086612c3f578582600181518110612adb57fe5b60209081029190910101526004805460408051632770a7eb60e21b8152339381019390935260248301899052516001600160a01b0390911691639dc29fac91604480830192600092919082900301818387803b158015612b3a57600080fd5b505af1158015612b4e573d6000803e3d6000fd5b505050506000612bb473a644ca24b407a728be13ec097bec66d8c5891553637c18f69687600301546018546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561127f57600080fd5b60035460408051632770a7eb60e21b815261dead60048201526024810184905290519293506001600160a01b0390911691639dc29fac9160448082019260009290919082900301818387803b158015612c0c57600080fd5b505af1158015612c20573d6000803e3d6000fd5b50505050612c378188614bb690919063ffffffff16565b915050612f64565b84546006546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018a90529051919092169163095ea7b39160448083019260209291908290030181600087803b158015612c9757600080fd5b505af1158015612cab573d6000803e3d6000fd5b505050506040513d6020811015612cc157600080fd5b50506001871415612db55760065460035460408051629d473b60e21b81526001600160a01b039283166004820152602481018a90526000604482018190526064820181905230608483015262015180420160a483015282519094859416926302751cec9260c4808201939182900301818787803b158015612d4157600080fd5b505af1158015612d55573d6000803e3d6000fd5b505050506040513d6040811015612d6b57600080fd5b5080516020909101518551919350915082908590600090612d8857fe5b6020026020010181815250508084600181518110612da257fe5b6020026020010181815250505050612ea9565b600654600354600187015460408051635d5155ef60e11b81526001600160a01b0393841660048201529183166024830152604482018a9052600060648301819052608483018190523060a484015262015180420160c4840152815190948594169263baa2abde9260e480830193919282900301818787803b158015612e3957600080fd5b505af1158015612e4d573d6000803e3d6000fd5b505050506040513d6040811015612e6357600080fd5b5080516020909101518551919350915082908590600090612e8057fe5b6020026020010181815250508084600181518110612e9a57fe5b60200260200101818152505050505b60035482516001600160a01b0390911690639dc29fac9030908590600090612ecd57fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612f1b57600080fd5b505af1158015612f2f573d6000803e3d6000fd5b50505050612f5e82600081518110612f4357fe5b60200260200101518660040154614bb690919063ffffffff16565b60048601555b60006001881415612ffd5773a644ca24b407a728be13ec097bec66d8c589155363cdc345ca601b54601a546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015612fca57600080fd5b505af4158015612fde573d6000803e3d6000fd5b505050506040513d6020811015612ff457600080fd5b50519050613089565b73a644ca24b407a728be13ec097bec66d8c5891553631915579886600301546017546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561305a57600080fd5b505af415801561306e573d6000803e3d6000fd5b505050506040513d602081101561308457600080fd5b505190505b61309a818460018151811061155c57fe5b6008546040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156130d5573d6000803e3d6000fd5b50876130ec576130e58282614bb6565b9150613100565b6130fd8184600181518110611d6d57fe5b91505b6000888152600b602052604090205415801590613121575060008660030154115b1561335857600060018914156131bf5773a644ca24b407a728be13ec097bec66d8c589155363cdc345ca601b54601a546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561318c57600080fd5b505af41580156131a0573d6000803e3d6000fd5b505050506040513d60208110156131b657600080fd5b5051905061324b565b73a644ca24b407a728be13ec097bec66d8c58915536397c0f28887600301546016546040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561321c57600080fd5b505af4158015613230573d6000803e3d6000fd5b505050506040513d602081101561324657600080fd5b505190505b61325c818560018151811061155c57fe5b905060005b60008a8152600b60205260409020548110156133495760008a8152600a60209081526040808320600b909252822080548391908590811061329e57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020600181015490915015801590613308575060008b8152600b602052604090208054339190849081106132f057fe5b6000918252602090912001546001600160a01b031614155b156133405761333a61332f8a60030154610cd1868560010154614b5d90919063ffffffff16565b600683015490614bf8565b60068201555b50600101613261565b506133548382614bb6565b9250505b818360018151811061336657fe5b60200260200101818152505060018814156133ce57336001600160a01b03166108fc8460018151811061339557fe5b60200260200101519081150290604051600060405180830381858888f193505050501580156133c8573d6000803e3d6000fd5b5061346f565b60018087015484516001600160a01b039091169163a9059cbb913391879181106133f457fe5b60200260200101516040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561344257600080fd5b505af1158015613456573d6000803e3d6000fd5b505050506040513d602081101561346c57600080fd5b50505b60018501541580156134815750845415155b801561349c57506000888152600b6020526040902054855411155b156135b65784546000898152600a60209081526040808320600b90925282208054600019808601959492919081019081106134d357fe5b60009182526020808320909101546001600160a01b031683528281019390935260409182018120939093558b8352600b90915290208054600019810190811061351857fe5b60009182526020808320909101548b8352600b909152604090912080546001600160a01b03909216918390811061354b57fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b0394909416939093179092558a8152600b9091526040902080548061358d57fe5b600082815260208120820160001990810180546001600160a01b03191690559091019091558655505b336001600160a01b03167f75e161b3e824b114fc1a33274bd7091918dd4e639cede50b78b15a4eea956a218989866001815181106135f057fe5b602002602001015160405180848152602001838152602001828152602001935050505060405180910390a250506001600055505050505050565b6002546001600160a01b0316331461364157600080fd5b60028054600180546001600160a01b038084166001600160a01b031992831617928390559216909255604051600092909116907f897d3c8bbea11029ba3b26eb993fe8edb14c2c4c0d2ecceccce41d1d83d3e359908390a3565b60095481106136e0576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b8061371c5760405162461bcd60e51b81526004018080602001828103825260288152602001806152f76028913960400191505060405180910390fd5b60006009828154811061372b57fe5b60009182526020808320858452600a82526040808520338087529352909320600181015460059093029093018054909450613773926001600160a01b03919091169190614eb7565b600060018201819055604080518581526020810192909252805133927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059592908290030190a2505050565b6008546001600160a01b031681565b60008060008060008060008060008060006009805490508d10613825576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b60008d8152600b6020526040902080548d90811061383f57fe5b6000918252602090912001546001600160a01b0316905061385e615256565b600a60008f81526020019081526020016000206000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806101400160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820154815250509050806000015181602001518260400151836060015184608001518560a001518660c001518760e001518861010001518961012001519b509b509b509b509b509b509b509b509b509b50509295989b509295989b9093969950565b600c5481565b60155481565b600b602052816000526040600020818154811061398457fe5b6000918252602090912001546001600160a01b03169150829050565b600260005414156139e6576040805162461bcd60e51b815260206004820152601f60248201526000805160206152d7833981519152604482015290519081900360640190fd5b60026000556139f3614c52565b6139fc82614cc1565b613a0582614d16565b60006001831415613a17575034613a1a565b50805b60008111613a60576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b613a6933614f09565b15613aaa576040805162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103ab9b2b960a11b604482015290519081900360640190fd5b6009548310613aef576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b60008311613b34576040805162461bcd60e51b815260206004820152600d60248201526c5374616b6520696e204875676f60981b604482015290519081900360640190fd5b600060098481548110613b4357fe5b60009182526020808320878452600a8252604080852033865283528085206003546005909502909201805482516370a0823160e01b81526001600160a01b0391821660048201529251919750929594909216926370a0823192602480840193829003018186803b158015613bb657600080fd5b505afa158015613bca573d6000803e3d6000fd5b505050506040513d6020811015613be057600080fd5b505160018401548454604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b158015613c3957600080fd5b505afa158015613c4d573d6000803e3d6000fd5b505050506040513d6020811015613c6357600080fd5b5051905060006001881415613c97578115613c8b57613c8682610cd18886614b5d565b613c90565b85600a025b9050613cf0565b60008211613cdf576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081b9bdd081cdd185c9d195960821b604482015290519081900360640190fd5b613ced82610cd18886614b5d565b90505b600354604080516340c10f1960e01b81523060048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015613d4357600080fd5b505af1158015613d57573d6000803e3d6000fd5b5050506004860154613d6a915082614bf8565b6004808701919091556003546006546040805163095ea7b360e01b81526001600160a01b0392831694810194909452602484018590525191169163095ea7b39160448083019260209291908290030181600087803b158015613dcb57600080fd5b505af1158015613ddf573d6000803e3d6000fd5b505050506040513d6020811015613df557600080fd5b50600090506001891415613eb4576006546003546040805163f305d71960e01b81526001600160a01b03928316600482015260248101869052600060448201819052606482015230608482015262015180420160a48201529051919092169163f305d719918a9160c48082019260609290919082900301818588803b158015613e7d57600080fd5b505af1158015613e91573d6000803e3d6000fd5b50505050506040513d6060811015613ea857600080fd5b50604001519050613f75565b60065460018701546003546040805162e8e33760e81b81526001600160a01b0393841660048201529183166024830152604482018b90526064820186905260006084830181905260a483018190523060c484015262015180420160e48401529051929093169263e8e3370092610104808401936060939083900390910190829087803b158015613f4357600080fd5b505af1158015613f57573d6000803e3d6000fd5b505050506040513d6060811015613f6d57600080fd5b506040015190505b6003860154613f849082614bf8565b60038701556001850154613f989082614bf8565b60018601558454613fdc576000898152600b602090815260408220805460018101825581845291832090910180546001600160a01b03191633179055908a90525485555b4260038601556002850154613ff2574260028601555b6040805188815260208101839052815133927f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee90928290030190a25050600160005550505050505050565b600f5481565b60026000541415614088576040805162461bcd60e51b815260206004820152601f60248201526000805160206152d7833981519152604482015290519081900360640190fd5b6002600055614095614c52565b61409f6000614cc1565b6140a96000614d16565b600060096000815481106140b957fe5b600091825260208083203384527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e39091526040909220600590910290910191508361413b576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c6964207374616b6560981b604482015290519081900360640190fd5b82156142c557600481015460095460015b818110156141aa576000818152600a6020908152604080832033845290915290206004015480156141a1576141818482614bf8565b6000838152600a6020908152604080832033845290915281206004015593505b5060010161414c565b5081156142c257600354604080516340c10f1960e01b81523060048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561420457600080fd5b505af1158015614218573d6000803e3d6000fd5b505060048054604080516340c10f1960e01b8152339381019390935260248301879052516001600160a01b0390911693506340c10f199250604480830192600092919082900301818387803b15801561427057600080fd5b505af1158015614284573d6000803e3d6000fd5b5050506001840154614297915083614bf8565b600184015560038401546142ab9083614bf8565b60038501556004830154156142c257600060048401555b50505b600354604080516370a0823160e01b8152336004820152905186926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561430f57600080fd5b505afa158015614323573d6000803e3d6000fd5b505050506040513d602081101561433957600080fd5b50511015614380576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c69642062616c616e636560881b604482015290519081900360640190fd5b600354604080516323b872dd60e01b81523360048201523060248201526044810187905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156143da57600080fd5b505af11580156143ee573d6000803e3d6000fd5b505050506040513d602081101561440457600080fd5b505060038201546144159085614bf8565b600383015560018101546144299085614bf8565b600182015542600382015580546144a257600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7680546001810182557f4335e144cd35056e5b3aebd10c5e62566e9af1617088f92a0f803bf15715d84a0180546001600160a01b03191633179055600080525481555b60048054604080516340c10f1960e01b8152339381019390935260248301879052516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b1580156144f657600080fd5b505af115801561450a573d6000803e3d6000fd5b5050604080518781526000602082015281513394507f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee9093509081900390910190a2505060016000555050565b600954600090821061459e576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b6000600983815481106145ad57fe5b906000526020600020906005020190508060030154600014156145d4575050601054614634565b60006145f5600c54610cd1600f548560020154614b5d90919063ffffffff16565b905061462f6146268360030154610cd1670de0b6b3a764000061462086614620600e5461152b614a92565b90614b5d565b60105490614bf8565b925050505b919050565b6001546001600160a01b031681565b600354604080516370a0823160e01b815261dead600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561469557600080fd5b505afa1580156146a9573d6000803e3d6000fd5b505050506040513d60208110156146bf57600080fd5b5051905090565b601c5460ff1681565b601b5481565b6003546001600160a01b031681565b6001546001600160a01b031633146146fb57600080fd5b60096040518060a00160405280846001600160a01b03168152602001836001600160a01b031681526020016147406064610cd188600c54614b5d90919063ffffffff16565b815260006020808301829052604092830182905284546001818101875595835291819020845160059093020180546001600160a01b039384166001600160a01b0319918216178255918501519581018054969093169590911694909417905581015160028301556060810151600383015560800151600490910155505050565b6005546001600160a01b031681565b6000828152600a602090815260408083206001600160a01b03851684529091528120600481015460059091015461484c9190610d0790670de0b6b3a764000090610cd1906148209061152b8a614556565b6000898152600a602090815260408083206001600160a01b038c16845290915290206001015490614b5d565b90505b92915050565b600954600090821061489d576040805162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c1bdbdb60a21b604482015290519081900360640190fd5b506000908152600b602052604090205490565b600080600983815481106148c057fe5b600091825260208083206007546005909302018054604080516370a0823160e01b81526001600160a01b03928316600482015290519296509316926370a08231926024808301939192829003018186803b15801561491d57600080fd5b505afa158015614931573d6000803e3d6000fd5b505050506040513d602081101561494757600080fd5b50516003548354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561499e57600080fd5b505afa1580156149b2573d6000803e3d6000fd5b505050506040513d60208110156149c857600080fd5b50519050806149e9576149e4670de0b6b3a7640000600a614b1b565b6149ff565b6149ff81610cd184670de0b6b3a7640000614b5d565b95945050505050565b60105481565b60125481565b6002546001600160a01b031681565b60145481565b6001546001600160a01b03163314614a4057600080fd5b600280546001600160a01b0319166001600160a01b03838116918217909255600154604051919216907f83ada3430836f9d4bd6f7bc690ffbba5199cb19b37393dd64c2299302135359690600090a350565b6000614aa042600d54614f0f565b905090565b6006546001600160a01b031681565b600a60205281600052604060002060205280600052604060002060009150915050806000015490806001015490806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b60175481565b600061484c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614f25565b600082614b6c5750600061484f565b82820282848281614b7957fe5b041461484c5760405162461bcd60e51b815260040180806020018281038252602181526020018061531f6021913960400191505060405180910390fd5b600061484c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614fc7565b60008282018381101561484c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b42601b541115614c935760405162461bcd60e51b815260040180806020018281038252602d8152602001806152aa602d913960400191505060405180910390fd5b601c5460ff16614cbf57601c805460ff19166001179055614cb74262127500614bf8565b600d5542600e555b565b614cca81614556565b601055614cd5614a92565b600e553315614d1357614ce881336147cf565b6000828152600a60209081526040808320338452909152902060048101919091556010546005909101555b50565b600d544210614d1357614d3b6064610cd1601154600c54614b5d90919063ffffffff16565b600c819055614d4d9062127500614b1b565b600f55600d54614d609062127500614bf8565b600d55614d6c81614cc1565b600c5460408051918252517ffafb0ec84dbe5a6bf08f4fec2f970b66d402032cdfea2008b11e11eb5c3990f09181900360200190a150565b801580614e2a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015614dfc57600080fd5b505afa158015614e10573d6000803e3d6000fd5b505050506040513d6020811015614e2657600080fd5b5051155b614e655760405162461bcd60e51b815260040180806020018281038252603681526020018061536a6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d46908490615021565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d46908490615021565b3b151590565b6000818310614f1e578161484c565b5090919050565b60008183614fb15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614f76578181015183820152602001614f5e565b50505050905090810190601f168015614fa35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614fbd57fe5b0495945050505050565b600081848411156150195760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614f76578181015183820152602001614f5e565b505050900390565b6060615076826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166150d29092919063ffffffff16565b805190915015610d465780806020019051602081101561509557600080fd5b5051610d465760405162461bcd60e51b815260040180806020018281038252602a815260200180615340602a913960400191505060405180910390fd5b60606150e184846000856150e9565b949350505050565b60606150f485614f09565b615145576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106151845780518252601f199092019160209182019101615165565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146151e6576040519150601f19603f3d011682016040523d82523d6000602084013e6151eb565b606091505b509150915081156151ff5791506150e19050565b80511561520f5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315614f76578181015183820152602001614f5e565b60405180610140016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe4661726d696e6720686173206e6f742079657420737461727465642e2054727920616761696e206c617465722e5265656e7472616e637947756172643a207265656e7472616e742063616c6c00596f75206d7573742077697468647261772066726f6d204875676f20627920756e7374616b696e67536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220b307ba5dafc42b93c5f5c327c828b57a8a587ea322405f29db68de72b0f7e1f164736f6c634300060c0033608060405234801561001057600080fd5b50604051610f29380380610f298339818101604052602081101561003357600080fd5b50516040805180820182526009815268487572726963616e6560b81b60208281019182528351808501909452600484526343414e4560e01b908401528151919291610080916003916100cd565b5080516100949060049060208401906100cd565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff19909416601217939093169290921790915550610160565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010e57805160ff191683800117855561013b565b8280016001018555821561013b579182015b8281111561013b578251825591602001919060010190610120565b5061014792915061014b565b5090565b5b80821115610147576000815560010161014c565b610dba8061016f6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac14610287578063a457c2d7146102b3578063a9059cbb146102df578063dd62ed3e1461030b576100cf565b806340c10f191461022b57806370a082311461025957806395d89b411461027f576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc610339565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103cf565b604080519115158252519081900360200190f35b6101996103ec565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103f2565b6101e9610479565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610482565b6102576004803603604081101561024157600080fd5b506001600160a01b0381351690602001356104d0565b005b6101996004803603602081101561026f57600080fd5b50356001600160a01b031661052c565b6100dc610547565b6102576004803603604081101561029d57600080fd5b506001600160a01b0381351690602001356105a8565b61017d600480360360408110156102c957600080fd5b506001600160a01b038135169060200135610600565b61017d600480360360408110156102f557600080fd5b506001600160a01b038135169060200135610668565b6101996004803603604081101561032157600080fd5b506001600160a01b038135811691602001351661067c565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b820191906000526020600020905b8154815290600101906020018083116103a857829003601f168201915b5050505050905090565b60006103e36103dc6106a7565b84846106ab565b50600192915050565b60025490565b60006103ff848484610797565b61046f8461040b6106a7565b61046a85604051806060016040528060288152602001610cce602891396001600160a01b038a166000908152600160205260408120906104496106a7565b6001600160a01b0316815260208101919091526040016000205491906108f2565b6106ab565b5060019392505050565b60055460ff1690565b60006103e361048f6106a7565b8461046a85600160006104a06106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610989565b60055461010090046001600160a01b0316331461051e5760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b61052882826109ea565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b60055461010090046001600160a01b031633146105f65760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b6105288282610ada565b60006103e361060d6106a7565b8461046a85604051806060016040528060258152602001610d6060259139600160006106376106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108f2565b60006103e36106756106a7565b8484610797565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166106f05760405162461bcd60e51b8152600401808060200182810382526024815260200180610d3c6024913960400191505060405180910390fd5b6001600160a01b0382166107355760405162461bcd60e51b8152600401808060200182810382526022815260200180610c636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107dc5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d176025913960400191505060405180910390fd5b6001600160a01b0382166108215760405162461bcd60e51b8152600401808060200182810382526023815260200180610c1e6023913960400191505060405180910390fd5b61082c838383610bd6565b61086981604051806060016040528060268152602001610ca8602691396001600160a01b03861660009081526020819052604090205491906108f2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108989082610989565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561094657818101518382015260200161092e565b50505050905090810190601f1680156109735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156109e3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610a45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a5160008383610bd6565b600254610a5e9082610989565b6002556001600160a01b038216600090815260208190526040902054610a849082610989565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b1f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610cf66021913960400191505060405180910390fd5b610b2b82600083610bd6565b610b6881604051806060016040528060228152602001610c41602291396001600160a01b03851660009081526020819052604090205491906108f2565b6001600160a01b038316600090815260208190526040902055600254610b8e9082610bdb565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b60006109e383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108f256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f20616464726573734f6e6c79206d696e7465722063616e2063616c6c20746869732066756e6374696f6e2e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122068012cd70becce49502f9802fd39b5d151695333d222558c3bccdeb186020e2c64736f6c634300060c0033608060405234801561001057600080fd5b50604051610f2e380380610f2e8339818101604052602081101561003357600080fd5b5051604080518082018252600e81526d487572726963616e652e4875676f60901b6020828101918252835180850190945260048452634855474f60e01b908401528151919291610085916003916100d2565b5080516100999060049060208401906100d2565b5050600580546001600160a01b0390931661010002610100600160a81b031960ff19909416601217939093169290921790915550610165565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011357805160ff1916838001178555610140565b82800160010185558215610140579182015b82811115610140578251825591602001919060010190610125565b5061014c929150610150565b5090565b5b8082111561014c5760008155600101610151565b610dba806101746000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac14610287578063a457c2d7146102b3578063a9059cbb146102df578063dd62ed3e1461030b576100cf565b806340c10f191461022b57806370a082311461025957806395d89b411461027f576100cf565b806306fdde03146100d4578063095ea7b31461015157806318160ddd1461019157806323b872dd146101ab578063313ce567146101e157806339509351146101ff575b600080fd5b6100dc610339565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561016757600080fd5b506001600160a01b0381351690602001356103cf565b604080519115158252519081900360200190f35b6101996103ec565b60408051918252519081900360200190f35b61017d600480360360608110156101c157600080fd5b506001600160a01b038135811691602081013590911690604001356103f2565b6101e9610479565b6040805160ff9092168252519081900360200190f35b61017d6004803603604081101561021557600080fd5b506001600160a01b038135169060200135610482565b6102576004803603604081101561024157600080fd5b506001600160a01b0381351690602001356104d0565b005b6101996004803603602081101561026f57600080fd5b50356001600160a01b031661052c565b6100dc610547565b6102576004803603604081101561029d57600080fd5b506001600160a01b0381351690602001356105a8565b61017d600480360360408110156102c957600080fd5b506001600160a01b038135169060200135610600565b61017d600480360360408110156102f557600080fd5b506001600160a01b038135169060200135610668565b6101996004803603604081101561032157600080fd5b506001600160a01b038135811691602001351661067c565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b820191906000526020600020905b8154815290600101906020018083116103a857829003601f168201915b5050505050905090565b60006103e36103dc6106a7565b84846106ab565b50600192915050565b60025490565b60006103ff848484610797565b61046f8461040b6106a7565b61046a85604051806060016040528060288152602001610cce602891396001600160a01b038a166000908152600160205260408120906104496106a7565b6001600160a01b0316815260208101919091526040016000205491906108f2565b6106ab565b5060019392505050565b60055460ff1690565b60006103e361048f6106a7565b8461046a85600160006104a06106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610989565b60055461010090046001600160a01b0316331461051e5760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b61052882826109ea565b5050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103c55780601f1061039a576101008083540402835291602001916103c5565b60055461010090046001600160a01b031633146105f65760405162461bcd60e51b8152600401808060200182810382526023815260200180610c856023913960400191505060405180910390fd5b6105288282610ada565b60006103e361060d6106a7565b8461046a85604051806060016040528060258152602001610d6060259139600160006106376106a7565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906108f2565b60006103e36106756106a7565b8484610797565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166106f05760405162461bcd60e51b8152600401808060200182810382526024815260200180610d3c6024913960400191505060405180910390fd5b6001600160a01b0382166107355760405162461bcd60e51b8152600401808060200182810382526022815260200180610c636022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166107dc5760405162461bcd60e51b8152600401808060200182810382526025815260200180610d176025913960400191505060405180910390fd5b6001600160a01b0382166108215760405162461bcd60e51b8152600401808060200182810382526023815260200180610c1e6023913960400191505060405180910390fd5b61082c838383610bd6565b61086981604051806060016040528060268152602001610ca8602691396001600160a01b03861660009081526020819052604090205491906108f2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546108989082610989565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156109815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561094657818101518382015260200161092e565b50505050905090810190601f1680156109735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156109e3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610a45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610a5160008383610bd6565b600254610a5e9082610989565b6002556001600160a01b038216600090815260208190526040902054610a849082610989565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610b1f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610cf66021913960400191505060405180910390fd5b610b2b82600083610bd6565b610b6881604051806060016040528060228152602001610c41602291396001600160a01b03851660009081526020819052604090205491906108f2565b6001600160a01b038316600090815260208190526040902055600254610b8e9082610bdb565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b505050565b60006109e383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506108f256fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f20616464726573734f6e6c79206d696e7465722063616e2063616c6c20746869732066756e6374696f6e2e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212200161c323c7fbf534ad1e65218879f4b45e230de2287e2b5b8c20688b5439d88364736f6c634300060c0033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77000000000000000000000000b8608b814539099269e9a766a1913f7c5d1a3cf2000000000000000000000000000000000000000000000000000000005fc695d0

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

000000000000000000000000b8608b814539099269e9a766a1913f7c5d1a3cf2000000000000000000000000000000000000000000000000000000005fc695d0

-----Decoded View---------------
Arg [0] : _treasury (address): 0xB8608b814539099269E9A766a1913F7c5d1a3Cf2
Arg [1] : _farmingStartTimestamp (uint256): 1606850000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b8608b814539099269e9a766a1913f7c5d1a3cf2
Arg [1] : 000000000000000000000000000000000000000000000000000000005fc695d0


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.