ETH Price: $1,963.18 (-1.02%)

Contract

0xFdffB4Fd1FD55d40Cb27EDFae02f752fCd50Fd56
 

Overview

ETH Balance

0.423177164365207125 ETH

Eth Value

$830.77 (@ $1,963.18/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Emergency Withdr...231029202025-08-09 10:31:47210 days ago1754735507IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.000237063.19342562
Emergency231029162025-08-09 10:30:59210 days ago1754735459IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.000145553.08504988
Deposit178117832023-07-31 8:25:35950 days ago1690791935IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008609617.96784636
Withdraw178117812023-07-31 8:25:11950 days ago1690791911IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008679316.61920278
Withdraw177912682023-07-28 11:30:11953 days ago1690543811IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0011387521.79983211
Withdraw177912652023-07-28 11:29:35953 days ago1690543775IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.000722821.5616096
Withdraw176790902023-07-12 17:55:35969 days ago1689184535IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0107350468.00788284
Deposit176769762023-07-12 10:46:35969 days ago1689158795IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0020326519.20284098
Deposit176769622023-07-12 10:43:47969 days ago1689158627IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0017504419.72292273
Withdraw176566892023-07-09 14:17:35972 days ago1688912255IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008391416.06055721
Deposit176566842023-07-09 14:16:35972 days ago1688912195IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008449117.6284065
Withdraw176218532023-07-04 16:51:11977 days ago1688489471IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0010708220.49468025
Withdraw175990402023-07-01 11:54:59980 days ago1688212499IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.000770114.73918654
Withdraw175985842023-07-01 10:21:47980 days ago1688206907IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008964317.1569014
Withdraw175985582023-07-01 10:16:35980 days ago1688206595IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0007858115.03976961
Withdraw175985492023-07-01 10:14:47980 days ago1688206487IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0008793616.83020478
Deposit175791042023-06-28 16:47:47983 days ago1687970867IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0016375521.1987067
Deposit175534252023-06-25 2:06:11987 days ago1687658771IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.001300413.78477037
Withdraw175346282023-06-22 10:40:35989 days ago1687430435IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0026176616.88273894
Withdraw174741202023-06-13 22:44:11998 days ago1686696251IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.002560716.22239038
Deposit174716662023-06-13 14:28:47998 days ago1686666527IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0019778120.72312762
Deposit174491582023-06-10 10:23:591001 days ago1686392639IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0018110820.4061716
Withdraw174310122023-06-07 20:59:111004 days ago1686171551IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0031021222.48930617
Deposit174309562023-06-07 20:47:591004 days ago1686170879IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0022037324.83021631
Withdraw174032732023-06-03 23:01:471008 days ago1685833307IN
0xFdffB4Fd...fCd50Fd56
0 ETH0.0035635622.66366539
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer*228319382025-07-02 13:48:59248 days ago1751464139
0xFdffB4Fd...fCd50Fd56
0.01161698 ETH
Transfer*184057112023-10-22 12:02:35867 days ago1697976155
0xFdffB4Fd...fCd50Fd56
0.04291882 ETH
Transfer176790902023-07-12 17:55:35969 days ago1689184535
0xFdffB4Fd...fCd50Fd56
0.00217109 ETH
Transfer176769762023-07-12 10:46:35969 days ago1689158795
0xFdffB4Fd...fCd50Fd56
0.05886672 ETH
Transfer176769622023-07-12 10:43:47969 days ago1689158627
0xFdffB4Fd...fCd50Fd56
0.07028461 ETH
Transfer*176568762023-07-09 14:55:47972 days ago1688914547
0xFdffB4Fd...fCd50Fd56
0.01024183 ETH
Transfer175791042023-06-28 16:47:47983 days ago1687970867
0xFdffB4Fd...fCd50Fd56
0.00952146 ETH
Transfer175534252023-06-25 2:06:11987 days ago1687658771
0xFdffB4Fd...fCd50Fd56
0.03274187 ETH
Transfer175346282023-06-22 10:40:35989 days ago1687430435
0xFdffB4Fd...fCd50Fd56
0.00143549 ETH
Transfer*175288332023-06-21 15:09:35990 days ago1687360175
0xFdffB4Fd...fCd50Fd56
0.00671516 ETH
Transfer174741202023-06-13 22:44:11998 days ago1686696251
0xFdffB4Fd...fCd50Fd56
0.00942004 ETH
Transfer174716662023-06-13 14:28:47998 days ago1686666527
0xFdffB4Fd...fCd50Fd56
0.21165596 ETH
Transfer*174713202023-06-13 13:17:59998 days ago1686662279
0xFdffB4Fd...fCd50Fd56
0.00902559 ETH
Transfer174491582023-06-10 10:23:591001 days ago1686392639
0xFdffB4Fd...fCd50Fd56
0.12065752 ETH
Transfer174310122023-06-07 20:59:111004 days ago1686171551
0xFdffB4Fd...fCd50Fd56
0.00000005 ETH
Transfer174309562023-06-07 20:47:591004 days ago1686170879
0xFdffB4Fd...fCd50Fd56
0.01536452 ETH
Transfer174032732023-06-03 23:01:471008 days ago1685833307
0xFdffB4Fd...fCd50Fd56
0.00415914 ETH
Transfer173972832023-06-03 2:47:231008 days ago1685760443
0xFdffB4Fd...fCd50Fd56
0 ETH
Transfer173972802023-06-03 2:46:471008 days ago1685760407
0xFdffB4Fd...fCd50Fd56
0.00000001 ETH
Transfer173972732023-06-03 2:45:231008 days ago1685760323
0xFdffB4Fd...fCd50Fd56
0.03829969 ETH
Transfer*173914532023-06-02 7:02:591009 days ago1685689379
0xFdffB4Fd...fCd50Fd56
0.01999087 ETH
Transfer173580352023-05-28 14:13:111014 days ago1685283191
0xFdffB4Fd...fCd50Fd56
0.00000001 ETH
Transfer173580322023-05-28 14:12:351014 days ago1685283155
0xFdffB4Fd...fCd50Fd56
0.02422103 ETH
Transfer*173203432023-05-23 7:04:471019 days ago1684825487
0xFdffB4Fd...fCd50Fd56
0.04078444 ETH
Transfer173098682023-05-21 19:40:471021 days ago1684698047
0xFdffB4Fd...fCd50Fd56
0.03735402 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CimoStaking

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 14 : CimoStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./../libs/Ownable.sol";
import "./../contracts/ReentrancyGuard.sol";
import "./../contracts/ERC721Holder.sol";
import "./../interfaces/IUniswapV2Router02.sol";
import "./../libs/SafeERC20.sol";
import "./../interfaces/ICimo.sol";
import "./../interfaces/INFT.sol";

contract CimoStaking is Ownable, ReentrancyGuard, ERC721Holder {
    using SafeERC20 for IERC20;

    //store data of each user in UserInfo
    struct UserInfo {
        uint16 nftBoost; //NFT token multiplier
        uint16 lockTimeBoost; //time lock multiplier - max x3
        uint32 lockedUntil; //lock end in UNIX seconds, used to compute the lockTimeBoost
        uint96 claimableETH; //amount of eth ready to be claimed
        uint112 amount; //amount of staked tokens
        uint112 weightedBalance; //amout of staked tokens * multiplier * nftMultiplier
        uint256 withdrawn; //sum of withdrawn ETH
        uint112 ETHrewardDebt; //ETH debt for each staking session. Session resets upon withdrawal
        address[] NFTContracts; //array of nft contracts (for multiple NFTcontract boost
        uint256[] NFTTokenIDs; //nft id tracker
    }
    // store data of each pool
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint64 allocPoint; // How many allocation points assigned to this pool.
        uint64 lastRewardBlock; // Last reward block.
        uint112 accETHPerShare; // Accumulated ETH rewards
        uint112 weightedBalance; // weightedBalances from all users.
    }

    // helper to track users NFTs
    struct UsersNFTs {
        address NFTContract; // address
        uint256 TokenId; // id of token (NFT)
    }

    uint16 public pointsPerNFT = 150; //amount of bonus points that each NFT gives to staker
    uint256 constant ONE_DAY = 86400; //total seconds in one day
    ICimo public Cimo; // The Cimo token
    address public router; // The uniswap V2 router
    address public WETH; // The WETH token contract
    mapping(address => bool) public isNFTContract; // check if address is NFT contract
    address public TaxDistributor; // address of taxDistributor. Just in case TD transfers the ETH without arbitrary data
    uint256 public ETHPerBlock; // amount of ETH per block
    uint256 public ETHLeftUnshared; // amount of ETH that is not distributed to stakers
    uint256 public ETHLeftUnclaimed; // amount of ETH that is distributed but unclaimed
    uint256 public numdays; // number of days used to calculate rewards. Feed the staking contract with ETH within numdays days

    PoolInfo[] public poolInfo; // pool info storage
    mapping(uint256 => mapping(address => UserInfo)) public userInfo; // userinfo storage


    uint256 public totalAllocPoint; // total allocation points
    uint256 public startBlock; // starting block
    bool public isEmergency; //if Emergency users can withdraw their tokens without caring about the locks and rewards


    //events
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 lockTime);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount
    );
    event UpdateEmissionRate(address indexed user, uint256 cimoRWTokenPerBlock);
    event NFTStaked(
        address indexed user,
        address indexed NFTContract,
        uint256 tokenID
    );
    event NFTWithdrawn(
        address indexed user,
        address indexed NFTContract,
        uint256 tokenID
    );
    event TokensLocked(
        address indexed user,
        uint256 timestamp,
        uint256 lockTime
    );
    event Emergency(uint256 timestamp, bool ifEmergency);

    mapping(IERC20 => bool) public poolExistence;
    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: LP Token already added");
        _;
    }

    modifier onlyEmergency() {
        require(isEmergency == true, "onlyEmergency: Emergency use only!");
        _;
    }
    mapping(address => bool) public authorized;
    modifier onlyAuthorized() {
        require(authorized[msg.sender] == true, "onlyAuthorized: address not authorized");
        _;
    }

    constructor(ICimo _cimo, address _router) {
        Cimo = _cimo;
        router = _router;
        WETH = IUniswapV2Router02(router).WETH();
        startBlock = type(uint256).max;
        Cimo.approve(router, Cimo.totalSupply());
        //approve staking-router
        numdays = 8;
    }

    /**
    * poolLength
    * Returns total number of pools
    */
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    /**
    * getMultiplier
    * Return reward multiplier over the given _from to _to block.
    */
    function getMultiplier(uint256 _from, uint256 _to)
    public
    pure
    returns (uint256)
    {
        return (_to - _from);
    }

    /**
    * pendingRewards
    * Calculate pending rewards
    */
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 userWeightedAmount = user.weightedBalance;
        uint256 accETHPerShare = pool.accETHPerShare;
        uint256 weightedBalance = pool.weightedBalance;
        uint256 PendingETH;
        if (block.number > pool.lastRewardBlock && weightedBalance != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 ETHReward = multiplier * ETHPerBlock * pool.allocPoint / totalAllocPoint;
            accETHPerShare = accETHPerShare + ETHReward * 1e12 / weightedBalance;
            PendingETH = (userWeightedAmount * accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
        }
        return (PendingETH);
    }

    /**
    * getUsersNFTs
    * Return array of contracts and ids of users staked NFTs
    */
    function getUsersNFTs(uint256 _pid, address _user)
    public
    view
    returns (address[] memory, uint256[] memory)
    {
        UserInfo storage user = userInfo[_pid][_user];
        uint256 nftCount = user.NFTContracts.length;

        address[] memory _nftContracts = new address[](nftCount);
        uint256[] memory _nftTokenIds = new uint256[](nftCount);

        for (uint256 i = 0; i < nftCount; i++) {
            _nftContracts[i] = user.NFTContracts[i];
            _nftTokenIds[i] = user.NFTTokenIDs[i];
        }

        return (_nftContracts, _nftTokenIds);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    //Receive ETH from the tax splitter contract. triggered on a value transfer with .call("arbitraryData").
    fallback() external payable {
        ETHLeftUnshared += msg.value;
        updateETHRewards();
    }

    //Receive ETH sent through .send, .transfer, or .call(""). These wont be taken into account in the rewards.
    receive() external payable {
        require(msg.sender != TaxDistributor);
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.weightedBalance;
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = uint64(block.number);
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);

        uint256 ETHReward = multiplier * ETHPerBlock * pool.allocPoint / totalAllocPoint;

        ETHLeftUnclaimed = ETHLeftUnclaimed + ETHReward;
        ETHLeftUnshared = ETHLeftUnshared - ETHReward;
        pool.accETHPerShare = uint112(pool.accETHPerShare + ETHReward * 1e12 / lpSupply);
        pool.lastRewardBlock = uint64(block.number);
    }

    // Deposit tokens for rewards.
    function deposit(uint256 _pid, uint256 _amount, uint256 lockTime) public nonReentrant {
        _deposit(msg.sender, _pid, _amount, lockTime);
    }

    // Withdraw unlocked tokens.
    function withdraw(uint32 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.lockedUntil < block.timestamp, "withdraw: Tokens locked, if you're trying to claim your rewards use the deposit function");
        require(user.amount >= _amount && _amount > 0, "withdraw: not good");
        updatePool(_pid);
        if (user.weightedBalance > 0) {
            _addToClaimable(_pid, msg.sender);
            if (user.claimableETH > 0) {
                safeETHTransfer(msg.sender, user.claimableETH);
                user.withdrawn += user.claimableETH;
                user.claimableETH = 0;
            }
        }
        user.amount = uint112(user.amount - _amount);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        updateUserWeightedBalance(_pid, msg.sender);

        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw unlocked tokens without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant onlyEmergency {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        pool.weightedBalance -= user.weightedBalance;
        user.amount = 0;
        user.weightedBalance = 0;
        user.ETHrewardDebt = 0;
        user.claimableETH = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    /**
    * addLiquidityNoFeeAndStake
    * take $CIMO and ETH and add it to liquidity. Return unspent ETH.
    */
    function addLiquidityNoFeeAndStake(uint256 amountTokensIn, uint256 amountETHMin, uint256 amountTokenMin, uint256 lockTime) public payable nonReentrant {
        ICimo.LiquidityETHParams memory params;
        UserInfo storage user = userInfo[0][msg.sender];
        require(msg.value > 0);
        require((lockTime >= 0 && lockTime <= 90 * ONE_DAY && user.lockedUntil <= lockTime + block.timestamp), "addLiquidityNoFeeAndStake : Lock out of range");
        updatePool(0);
        if (user.weightedBalance > 0) {
            _addToClaimable(0, msg.sender);
        }
        Cimo.transferFrom(msg.sender, address(this), amountTokensIn);
        params.pair = address(poolInfo[0].lpToken);
        params.to = address(this);
        params.amountTokenMin = amountTokenMin;
        params.amountETHMin = amountETHMin;
        params.amountTokenOrLP = amountTokensIn;
        params.deadline = block.timestamp;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(router);

        (, uint256 ETHUsed, uint256 numLiquidityAdded) = _uniswapV2Router.addLiquidityETH{value : msg.value}(
            address(Cimo),
            params.amountTokenOrLP,
            params.amountTokenMin,
            params.amountETHMin,
            params.to,
            block.timestamp
        );

        payable(msg.sender).transfer(msg.value - ETHUsed);
        user.amount += uint112(numLiquidityAdded);
        if (lockTime > 0) {
            lockTokens(msg.sender, 0, lockTime);
        } else {
            updateUserWeightedBalance(0, msg.sender);
        }
        emit Deposit(msg.sender, 0, numLiquidityAdded, lockTime);
    }

    // Reinvest users rewards. Only works for token staking
    function reinvestETHRewards(uint256 amountOutMin) public nonReentrant {
        UserInfo storage user = userInfo[1][msg.sender];
        updatePool(1);
        uint256 ETHPending = (user.weightedBalance * poolInfo[1].accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
        require(ETHPending > 0);
        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = address(Cimo);
        if (ETHPending > ETHLeftUnclaimed) {
            ETHPending = ETHLeftUnclaimed;
        }
        uint256 balanceBefore = Cimo.balanceOf(address(this));
        IUniswapV2Router02(router).swapExactETHForTokensSupportingFeeOnTransferTokens{value: ETHPending}(
            amountOutMin,
                path,
                address(this),
                block.timestamp
        );

        uint256 amountSwapped = Cimo.balanceOf(address(this)) - balanceBefore;
        user.amount += uint112(amountSwapped);
        user.claimableETH = 0;
        user.withdrawn += ETHPending;
        updateUserWeightedBalance(1, msg.sender);
        emit Deposit(msg.sender, 1, amountSwapped, 0);
    }

    // Withdraw previously staked NFT, loosing the rewards boost
    function withdrawNFT(uint256 _pid, address NFTContract, uint256 tokenID) public nonReentrant {
        address sender = msg.sender;
        uint256 NFTIndex;
        bool tokenFound;
        uint256 length = userInfo[_pid][sender].NFTContracts.length;
        updatePool(_pid);
        _addToClaimable(_pid, sender);
        for (uint256 i; i < userInfo[_pid][sender].NFTContracts.length; i++) {
            if (userInfo[_pid][sender].NFTContracts[i] == NFTContract) {
                if (userInfo[_pid][sender].NFTTokenIDs[i] == tokenID) {
                    tokenFound = true;
                    NFTIndex = i;
                    break;
                }
            }
        }
        require(tokenFound == true, "withdrawNFT, token not found");
        userInfo[_pid][sender].nftBoost -= uint16(pointsPerNFT);
        userInfo[_pid][sender].NFTContracts[NFTIndex] = userInfo[_pid][sender].NFTContracts[length - 1];
        userInfo[_pid][sender].NFTContracts.pop();
        userInfo[_pid][sender].NFTTokenIDs[NFTIndex] = userInfo[_pid][sender].NFTTokenIDs[length - 1];
        userInfo[_pid][sender].NFTTokenIDs.pop();
        updateUserWeightedBalance(_pid, sender);
        INFT(NFTContract).safeTransferFrom(address(this), sender, tokenID);
        emit NFTWithdrawn(sender, NFTContract, tokenID);
    }
    // Stake NFTs, giving the user a bonus point boost defined in pointsPerNFT
    function boostWithNFT(uint256 _pid, address NFTContract, uint256 tokenID) public nonReentrant {
        require(msg.sender == tx.origin, "boostWithNFT : Deposit from contract disabled");
        require(isNFTContract[NFTContract], "boostWithNFT: incorrect contract address");
        require(userInfo[_pid][msg.sender].amount > 0, "boostWithNFT: Requires staked tokens");
        updatePool(_pid);
        _addToClaimable(_pid, msg.sender);
        INFT(NFTContract).safeTransferFrom(msg.sender, address(this), tokenID);
        userInfo[_pid][msg.sender].NFTContracts.push(NFTContract);
        userInfo[_pid][msg.sender].NFTTokenIDs.push(tokenID);
        userInfo[_pid][msg.sender].nftBoost += uint16(pointsPerNFT);
        updateUserWeightedBalance(_pid, msg.sender);
        emit NFTWithdrawn(msg.sender, NFTContract, tokenID);
    }

    function addToClaimable(uint256 _pid, address sender) public nonReentrant {
        require(userInfo[_pid][sender].weightedBalance > 0);
        updatePool(_pid);
        _addToClaimable(_pid, sender);
    }

    function depositFor(address sender, uint256 _pid, uint256 amount, uint256 lockTime    ) public onlyAuthorized {
        _deposit(sender, _pid, amount, lockTime);
    }

    //add new pool. LP staking should be 0, token staking 1
    function add(uint64 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint64 lastRewardBlock = uint64(block.number > startBlock ? block.number : startBlock);
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolExistence[_lpToken] = true;
        poolInfo.push(
            PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accETHPerShare : 0,
        weightedBalance : 0
        }));
    }

    // add nft contract to array
    function addNFTContract(address NFTcontract) public onlyOwner {
        isNFTContract[NFTcontract] = true;
    }

    // change taxDistributor address
    function setTaxDistributor(address _TaxDistributor) public onlyOwner {
        TaxDistributor = _TaxDistributor;
    }

    // change router address
    function setRouter(address _router) public onlyOwner {
        router = _router;
    }

    // transfer non-CIMO tokens that were sent to staking contract by accident
    function rescueToken(address tokenAddress) public onlyOwner {
        require(!poolExistence[IERC20(tokenAddress)], "rescueToken : wrong token address");
        uint256 bal = IERC20(tokenAddress).balanceOf(address(this));
        IERC20(tokenAddress).transfer(msg.sender, bal);
    }

    // update pool allocation points
    function set(uint256 _pid, uint64 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // start rewards
    function startRewards() public onlyOwner {
        require(startBlock > block.number, "startRewards: rewards already started");
        startBlock = block.number;
        for (uint256 i; i < poolInfo.length; i++) {
            poolInfo[i].lastRewardBlock = uint64(block.number);
        }
    }

    // check if emergency mode is enabled
    function emergency(bool _isEmergency) public onlyOwner {
        isEmergency = _isEmergency;
        emit Emergency(block.timestamp, _isEmergency);
    }

    // authorize the address
    function authorize(address _address) public onlyOwner {
        authorized[_address] = true;
    }

    // unauthorize the address
    function unauthorize(address _address) public onlyOwner {
        authorized[_address] = false;
    }

    // set new interval for rewards
    function setnumdays(uint256 _days) public onlyOwner {
        require(_days > 0 && _days < 14);
        numdays = _days;
    }

    // deposit tokens to pool >1
    // if lockTime set lock the tokens
    function _deposit(address sender, uint256 _pid, uint256 _amount, uint256 lockTime) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][sender];
        updatePool(_pid);
        if (user.weightedBalance > 0) {
            if (_amount == 0 && lockTime == 0) {
                uint256 ETHPending = (user.weightedBalance * pool.accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
                if (ETHPending > 0) {
                    safeETHTransfer(sender, ETHPending);
                    user.withdrawn += ETHPending;
                    user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;
                }
                user.claimableETH = 0;
            } else {
                _addToClaimable(_pid, sender);
            }
        }
        if (_amount > 0) {
            require(
                (lockTime >= 0 && lockTime <= 90 * ONE_DAY && user.lockedUntil <= lockTime + block.timestamp),
                "deposit : Lock out of range or previously locked tokens are locked longer than new desired lock"
            );
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = uint112(user.amount + _amount);
            if (lockTime == 0) {
                updateUserWeightedBalance(_pid, sender);
            }
        }

        if (lockTime > 0) {
            lockTokens(sender, _pid, lockTime);
        }
        if (user.lockedUntil < block.timestamp) {
            updateUserWeightedBalance(_pid, sender);
        }
        emit Deposit(sender, _pid, _amount, lockTime);
    }

    //Lock tokens up to 90 days for rewards boost, (max rewards = x3, rewards increase linearly with lock time)
    function lockTokens(address sender, uint256 _pid, uint256 lockTime) internal {
        UserInfo storage user = userInfo[_pid][sender];
        require(user.amount > 0, "lockTokens: No tokens to lock");
        require(user.lockedUntil <= block.timestamp + lockTime, "lockTokens: Tokens already locked");
        require(lockTime >= ONE_DAY, "lockTokens: Lock time too short");
        require(lockTime <= 90 * ONE_DAY, "lockTokens: Lock time too long");
        user.lockedUntil = uint32(block.timestamp + lockTime);
        user.lockTimeBoost = uint16((2 * 1000 * lockTime) / (90 * ONE_DAY));
        // 0 - 2000
        updateUserWeightedBalance(_pid, sender);
        emit TokensLocked(sender, block.timestamp, lockTime);
    }

    // calculate and update the user weighted balance
    function updateUserWeightedBalance(uint256 _pid, address _user) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 poolBalance = pool.weightedBalance - user.weightedBalance;
        if (user.lockedUntil < block.timestamp) {
            user.lockTimeBoost = 0;
        }

        user.weightedBalance = (user.amount * (1000 + user.lockTimeBoost + user.nftBoost) / 1000);

        pool.weightedBalance = uint112(poolBalance + user.weightedBalance);
        user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;
    }

    function updateETHRewards() internal {
        massUpdatePools();
        ETHPerBlock = ETHLeftUnshared / (6400 * numdays);
    }

    function _addToClaimable(uint256 _pid, address sender) internal {
        UserInfo storage user = userInfo[_pid][sender];
        PoolInfo storage pool = poolInfo[_pid];

        uint256 ETHPending = (user.weightedBalance * pool.accETHPerShare / 1e12) - user.ETHrewardDebt;
        if (ETHPending > 0) {
            user.claimableETH += uint96(ETHPending);
            user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;
        }
    }

    function safeETHTransfer(address _to, uint256 _amount) internal {
        if (_amount > ETHLeftUnclaimed) {
            _amount = ETHLeftUnclaimed;
        }
        payable(_to).transfer(_amount);
        ETHLeftUnclaimed -= _amount;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./IERC721.sol";

interface INFT is IERC721 {
	function getMultiplierForTokenID(uint256 _tokenID) external view returns (uint256);
}

File 3 of 14 : ICimo.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./IERC20.sol";

interface ICimo is IERC20 {
    struct LiquidityETHParams {
        address pair;
        address to;
        uint256 amountTokenOrLP;
        uint256 amountTokenMin;
        uint256 amountETHMin;
        uint256 deadline;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

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

// SafeERC20 (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/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 Address for address;

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

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

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

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

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

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

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

// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.7;

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./../interfaces/IERC721Receiver.sol";

contract ERC721Holder is IERC721Receiver {

    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 7 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// ReentrancyGuard (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/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].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making 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;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./Context.sol";

// Ownable (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol)

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

//
// IERC20 (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol)
/**
 * @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);
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

//Address (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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 on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// Context (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./IERC165.sol";

// IERC721(https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol)
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// IERC721Receiver(https://github.com/binodnp/openzeppelin-solidity/blob/master/contracts/token/ERC721/IERC721Receiver.sol)

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// IERC165(https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol)

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract ICimo","name":"_cimo","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"ifEmergency","type":"bool"}],"name":"Emergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"TokensLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"cimoRWTokenPerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"Cimo","outputs":[{"internalType":"contract ICimo","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHLeftUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHLeftUnshared","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TaxDistributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_allocPoint","type":"uint64"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountTokensIn","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"addLiquidityNoFeeAndStake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"NFTcontract","type":"address"}],"name":"addNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"addToClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"boostWithNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEmergency","type":"bool"}],"name":"emergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUsersNFTs","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEmergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isNFTContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"numdays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointsPerNFT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint64","name":"allocPoint","type":"uint64"},{"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"internalType":"uint112","name":"accETHPerShare","type":"uint112"},{"internalType":"uint112","name":"weightedBalance","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"name":"reinvestETHRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint64","name":"_allocPoint","type":"uint64"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_TaxDistributor","type":"address"}],"name":"setTaxDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"setnumdays","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"updateUserWeightedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint16","name":"nftBoost","type":"uint16"},{"internalType":"uint16","name":"lockTimeBoost","type":"uint16"},{"internalType":"uint32","name":"lockedUntil","type":"uint32"},{"internalType":"uint96","name":"claimableETH","type":"uint96"},{"internalType":"uint112","name":"amount","type":"uint112"},{"internalType":"uint112","name":"weightedBalance","type":"uint112"},{"internalType":"uint256","name":"withdrawn","type":"uint256"},{"internalType":"uint112","name":"ETHrewardDebt","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_pid","type":"uint32"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526002805461ffff191660961790553480156200001f57600080fd5b50604051620056e3380380620056e38339810160408190526200004291620002da565b6200004d336200023f565b60018055600280546001600160a01b03808516620100000262010000600160b01b031990921691909117909155600380549183166001600160a01b031990921682179055604080516315ab88c960e31b8152905163ad5c464891600480820192602092909190829003018186803b158015620000c857600080fd5b505afa158015620000dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200010391906200028f565b600480546001600160a01b0319166001600160a01b03928316178155600019600e55600254600354604080516318160ddd60e01b815290516201000090930485169463095ea7b39492169285926318160ddd92808201926020929091829003018186803b1580156200017457600080fd5b505afa15801562000189573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001af919062000319565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015620001f657600080fd5b505af11580156200020b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002319190620002b6565b50506008600a55506200034c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620002a257600080fd5b8151620002af8162000333565b9392505050565b600060208284031215620002c957600080fd5b81518015158114620002af57600080fd5b60008060408385031215620002ee57600080fd5b8251620002fb8162000333565b60208401519092506200030e8162000333565b809150509250929050565b6000602082840312156200032c57600080fd5b5051919050565b6001600160a01b03811681146200034957600080fd5b50565b615387806200035c6000396000f3fe6080604052600436106103165760003560e01c8063630b5ba11161019a578063ad5c4648116100e1578063d18df53c1161008a578063f0b37c0411610064578063f0b37c0414610b02578063f2fde38b14610b22578063f887ea4014610b4257610342565b8063d18df53c14610aa2578063d89ea34b14610ac2578063e1886f6914610ae257610342565b8063c0d78655116100bb578063c0d7865514610a32578063cbd258b514610a52578063cfac5d7c14610a8257610342565b8063ad5c4648146109b5578063b6a5d7de146109e2578063b918161114610a0257610342565b806390998c9d11610143578063a04e5c041161011d578063a04e5c0414610948578063a5bb096d14610975578063aa97b0a01461099557610342565b806390998c9d146107cd57806393f1a40b146107fb5780639ca1af8c1461091a57610342565b8063715018a611610174578063715018a61461076d5780638da5cb5b146107825780638dbb1e3a146107ad57610342565b8063630b5ba1146106ea57806367dcaf94146106ff578063714892191461071557610342565b806348cd4cb11161025e5780635975e332116102075780635f2ecf8a116101e15780635f2ecf8a1461069a5780635f9e8f82146106b0578063614f3364146106ca57610342565b80635975e332146106445780635dd19829146106645780635f228a3d1461068457610342565b80635312ea8e116102385780635312ea8e146105ee578063533981191461060e57806354f29ce21461062e57610342565b806348cd4cb1146105985780634d90dd42146105ae57806351eb05a6146105ce57610342565b80631526fe27116102c05780632dfd0bdc1161029a5780632dfd0bdc14610543578063401519b6146105585780634460d3cf1461057857610342565b80631526fe271461048e57806317caf6f11461050d5780632d5310e71461052357610342565b806309aaf684116102f157806309aaf684146103b95780630e19dc3a146103f9578063150b7a021461041957610342565b8062aeef8a1461036257806306f43a8c14610382578063081e3eda1461039557610342565b366103425760065473ffffffffffffffffffffffffffffffffffffffff1633141561034057600080fd5b005b3460086000828254610354919061507d565b909155506103409050610b6f565b34801561036e57600080fd5b5061034061037d366004614da8565b610b98565b610340610390366004614e02565b610c0a565b3480156103a157600080fd5b50600b545b6040519081526020015b60405180910390f35b3480156103c557600080fd5b506103e96103d4366004614b5c565b60056020526000908152604090205460ff1681565b60405190151581526020016103b0565b34801561040557600080fd5b50610340610414366004614e74565b611094565b34801561042557600080fd5b5061045d610434366004614b79565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103b0565b34801561049a57600080fd5b506104ae6104a9366004614cec565b61141e565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865267ffffffffffffffff948516602087015293909216928401929092526dffffffffffffffffffffffffffff918216606084015216608082015260a0016103b0565b34801561051957600080fd5b506103a6600d5481565b34801561052f57600080fd5b5061034061053e366004614d4e565b6114b0565b34801561054f57600080fd5b50610340611a90565b34801561056457600080fd5b50610340610573366004614e34565b611be0565b34801561058457600080fd5b50610340610593366004614b5c565b611d13565b3480156105a457600080fd5b506103a6600e5481565b3480156105ba57600080fd5b506103406105c9366004614d1e565b611f64565b3480156105da57600080fd5b506103406105e9366004614cec565b612035565b3480156105fa57600080fd5b50610340610609366004614cec565b612251565b34801561061a57600080fd5b50610340610629366004614cb2565b6124a3565b34801561063a57600080fd5b506103a660085481565b34801561065057600080fd5b5061034061065f366004614d4e565b612576565b34801561067057600080fd5b5061034061067f366004614d1e565b612936565b34801561069057600080fd5b506103a6600a5481565b3480156106a657600080fd5b506103a660095481565b3480156106bc57600080fd5b50600f546103e99060ff1681565b3480156106d657600080fd5b506103406106e5366004614c77565b612b9e565b3480156106f657600080fd5b50610340612c3a565b34801561070b57600080fd5b506103a660075481565b34801561072157600080fd5b506002546107489062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b0565b34801561077957600080fd5b50610340612c65565b34801561078e57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610748565b3480156107b957600080fd5b506103a66107c8366004614d86565b612cd8565b3480156107d957600080fd5b506107ed6107e8366004614d1e565b612ceb565b6040516103b0929190614f44565b34801561080757600080fd5b506108ab610816366004614d1e565b600c602090815260009283526040808420909152908252902080546001820154600283015460039093015461ffff8084169462010000850490911693640100000000810463ffffffff1693680100000000000000009091046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff808316936e010000000000000000000000000000909304811692911688565b6040805161ffff998a16815298909716602089015263ffffffff909516958701959095526bffffffffffffffffffffffff90921660608601526dffffffffffffffffffffffffffff908116608086015290811660a085015260c08401929092521660e0820152610100016103b0565b34801561092657600080fd5b506002546109359061ffff1681565b60405161ffff90911681526020016103b0565b34801561095457600080fd5b506006546107489073ffffffffffffffffffffffffffffffffffffffff1681565b34801561098157600080fd5b50610340610990366004614b5c565b612ea6565b3480156109a157600080fd5b506103406109b0366004614ea9565b612f54565b3480156109c157600080fd5b506004546107489073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109ee57600080fd5b506103406109fd366004614b5c565b61327b565b348015610a0e57600080fd5b506103e9610a1d366004614b5c565b60116020526000908152604090205460ff1681565b348015610a3e57600080fd5b50610340610a4d366004614b5c565b613331565b348015610a5e57600080fd5b506103e9610a6d366004614b5c565b60106020526000908152604090205460ff1681565b348015610a8e57600080fd5b50610340610a9d366004614b5c565b6133df565b348015610aae57600080fd5b506103a6610abd366004614d1e565b613495565b348015610ace57600080fd5b50610340610add366004614cec565b613654565b348015610aee57600080fd5b50610340610afd366004614cec565b613ba8565b348015610b0e57600080fd5b50610340610b1d366004614b5c565b613c2d565b348015610b2e57600080fd5b50610340610b3d366004614b5c565b613ce0565b348015610b4e57600080fd5b506003546107489073ffffffffffffffffffffffffffffffffffffffff1681565b610b77612c3a565b600a54610b8690611900615133565b600854610b9391906150e9565b600755565b60026001541415610bf05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155610c0133848484613dd9565b50506001805550565b60026001541415610c5d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001556040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290523382527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e890529190912034610cc857600080fd5b610cd662015180605a615133565b8311158015610cfd5750610cea428461507d565b8154640100000000900463ffffffff1611155b610d6f5760405162461bcd60e51b815260206004820152602d60248201527f6164644c69717569646974794e6f466565416e645374616b65203a204c6f636b60448201527f206f7574206f662072616e6765000000000000000000000000000000000000006064820152608401610be7565b610d796000612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610db057610db06000336141fd565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526201000090910473ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610e2d57600080fd5b505af1158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e659190614ccf565b50600b600081548110610e7a57610e7a6152c3565b600091825260208083206003928302015473ffffffffffffffffffffffffffffffffffffffff908116865230918601829052606086018890526080860189905260408087018b90524260a08801819052935460025491517ff305d7190000000000000000000000000000000000000000000000000000000081526201000090920483166004830152602482018c9052604482018a9052606482018b9052608482019390935260a48101939093521691908190839063f305d71990349060c4016060604051808303818588803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f8b9190614dd4565b90935091503390506108fc610fa084346151ba565b6040518115909202916000818181858888f19350505050158015610fc8573d6000803e3d6000fd5b50600184018054829190600090610ff09084906dffffffffffffffffffffffffffff1661502e565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550600086111561103c57611037336000886143d1565b611047565b611047600033612936565b604080518281526020810188905260009133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350506001805550505050505050565b600260015414156110e75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001819055506000600b8363ffffffff168154811061110a5761110a6152c3565b6000918252602080832063ffffffff8088168552600c83526040808620338752909352919093208054600390930290930193504264010000000090920416106111e15760405162461bcd60e51b815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610be7565b60018101546dffffffffffffffffffffffffffff1683118015906112055750600083115b6112515760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610be7565b6112608463ffffffff16612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156113425761129c8463ffffffff16336141fd565b80546801000000000000000090046bffffffffffffffffffffffff16156113425780546112e49033906801000000000000000090046bffffffffffffffffffffffff1661469c565b8054600282018054680100000000000000009092046bffffffffffffffffffffffff169160009061131690849061507d565b909155505080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b60018101546113629084906dffffffffffffffffffffffffffff166151ba565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905581546113c69073ffffffffffffffffffffffffffffffffffffffff16338561470a565b6113d68463ffffffff1633612936565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b600b818154811061142e57600080fd5b600091825260209091206003909102018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff8216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff680100000000000000009091048116911685565b600260015414156115035760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001556000838152600c60209081526040808320338085529252822060040154909190819061153387612035565b61153d87856141fd565b60005b6000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152902060040154811015611661576000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89811685529252909120600401805491891691839081106115c3576115c36152c3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561164f576000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091529020600501805487919083908110611632576116326152c3565b9060005260206000200154141561164f5760019250809350611661565b80611659816151fd565b915050611540565b506001821515146116b45760405162461bcd60e51b815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610be7565b6002546000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091528120805461ffff938416939192916116fe9185911661519f565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206004016117596001836151ba565b81548110611769576117696152c3565b6000918252602080832090910154898352600c8252604080842073ffffffffffffffffffffffffffffffffffffffff898116865293529092206004018054919092169190859081106117bd576117bd6152c3565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055898252600c8152604080832093881683529290522060040180548061183157611831615294565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600c8152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206005016118c56001836151ba565b815481106118d5576118d56152c3565b6000918252602080832090910154898352600c8252604080842073ffffffffffffffffffffffffffffffffffffffff891685529092529120600501805485908110611922576119226152c3565b6000918252602080832090910192909255888152600c8252604080822073ffffffffffffffffffffffffffffffffffffffff881683529092522060050180548061196e5761196e615294565b6001900381819060005260206000200160009055905561198e8785612936565b6040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611a0457600080fd5b505af1158015611a18573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611a7b91815260200190565b60405180910390a35050600180555050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611af75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b43600e5411611b6e5760405162461bcd60e51b815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610be7565b43600e5560005b600b54811015611bdd5743600b8281548110611b9357611b936152c3565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611bd5906151fd565b915050611b75565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b8015611c5557611c55612c3a565b8167ffffffffffffffff16600b8481548110611c7357611c736152c3565b6000918252602090912060039091020154600d54611cb39174010000000000000000000000000000000000000000900467ffffffffffffffff16906151ba565b611cbd919061507d565b600d8190555081600b8481548110611cd757611cd76152c3565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff1615611e165760405162461bcd60e51b815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611e7e57600080fd5b505afa158015611e92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb69190614d05565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b158015611f2757600080fd5b505af1158015611f3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5f9190614ccf565b505050565b60026001541415611fb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b600260019081556000838152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902001546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1661201a57600080fd5b61202382612035565b61202d82826141fd565b505060018055565b6000600b828154811061204a5761204a6152c3565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311612076575050565b60028101546dffffffffffffffffffffffffffff168015806120b95750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b156120f7575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b60018201546000906121139067ffffffffffffffff1643612cd8565b600d5484546007549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff169061214f9085615133565b6121599190615133565b61216391906150e9565b905080600954612173919061507d565b6009556008546121849082906151ba565b600855826121978264e8d4a51000615133565b6121a191906150e9565b60018501546121cc91906801000000000000000090046dffffffffffffffffffffffffffff1661507d565b60019490940180547fffffffffffffffffffff0000000000000000000000000000000000000000000016680100000000000000006dffffffffffffffffffffffffffff909616959095027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016949094174367ffffffffffffffff161790935550505050565b600260015414156122a45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001908155600f5460ff161515146123265760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b6000600b828154811061233b5761233b6152c3565b60009182526020808320858452600c82526040808520338652909252908320600181015460026003909402909201928301805493955090936dffffffffffffffffffffffffffff808416946e0100000000000000000000000000009094048116936123a891859116615170565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000001690556003820180547fffffffffffffffffffffffffffffffffffff000000000000000000000000000016905581547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168255825461246f9073ffffffffffffffffffffffffffffffffffffffff16338361470a565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200161140c565b60005473ffffffffffffffffffffffffffffffffffffffff16331461250a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b600260015414156125c95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001553332146126435760405162461bcd60e51b815260206004820152602d60248201527f626f6f7374576974684e4654203a204465706f7369742066726f6d20636f6e7460448201527f726163742064697361626c6564000000000000000000000000000000000000006064820152608401610be7565b73ffffffffffffffffffffffffffffffffffffffff821660009081526005602052604090205460ff166126de5760405162461bcd60e51b815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610be7565b6000838152600c602090815260408083203384529091529020600101546dffffffffffffffffffffffffffff1661277c5760405162461bcd60e51b8152602060048201526024808201527f626f6f7374576974684e46543a205265717569726573207374616b656420746f60448201527f6b656e73000000000000000000000000000000000000000000000000000000006064820152608401610be7565b61278583612035565b61278f83336141fd565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff8316906342842e0e90606401600060405180830381600087803b15801561280357600080fd5b505af1158015612817573d6000803e3d6000fd5b5050506000848152600c6020908152604080832033808552908352908320600481018054600180820183559186528486200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a1617905560058201805491820181558552928420909201859055600254908352815461ffff91821694509192916128bc91859116615060565b92506101000a81548161ffff021916908361ffff1602179055506128e08333612936565b60405181815273ffffffffffffffffffffffffffffffffffffffff83169033907fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb9060200160405180910390a350506001805550565b6000600b838154811061294b5761294b6152c3565b60009182526020808320868452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529083206001810154600260039094029092019283015492945092916129c7916dffffffffffffffffffffffffffff6e01000000000000000000000000000090910481169116615170565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff161015612a1b5781547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682555b81546103e89061ffff80821691612a3a91620100009091041683615060565b612a449190615060565b6001840154612a679161ffff16906dffffffffffffffffffffffffffff166150fd565b612a7191906150bc565b6001830180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff93841681029190911791829055612ad2929104168261507d565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9283161790556001808501549084015464e8d4a5100092612b4b926801000000000000000090048116916e0100000000000000000000000000009004166150fd565b612b5591906150bc565b60039290920180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9093169290921790915550505050565b3360009081526011602052604090205460ff161515600114612c285760405162461bcd60e51b815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610be7565b612c3484848484613dd9565b50505050565b600b5460005b81811015612c6157612c5181612035565b612c5a816151fd565b9050612c40565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612ccc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b612cd660006147de565b565b6000612ce483836151ba565b9392505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206004810154606092839291908167ffffffffffffffff811115612d3f57612d3f6152f2565b604051908082528060200260200182016040528015612d68578160200160208202803683370190505b50905060008267ffffffffffffffff811115612d8657612d866152f2565b604051908082528060200260200182016040528015612daf578160200160208202803683370190505b50905060005b83811015612e9857846004018181548110612dd257612dd26152c3565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110612e0f57612e0f6152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846005018181548110612e5e57612e5e6152c3565b9060005260206000200154828281518110612e7b57612e7b6152c3565b602090810291909101015280612e90816151fd565b915050612db5565b509097909650945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612f0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314612fbb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260106020526040902054829060ff16156130595760405162461bcd60e51b815260206004820152602560248201527f6e6f6e4475706c6963617465643a204c5020546f6b656e20616c72656164792060448201527f61646465640000000000000000000000000000000000000000000000000000006064820152608401610be7565b811561306757613067612c3a565b6000600e54431161307a57600e5461307c565b435b90508467ffffffffffffffff16600d54613096919061507d565b600d5573ffffffffffffffffffffffffffffffffffffffff938416600081815260106020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155815160a08101835294855267ffffffffffffffff998a169285019283529489169084019081526060840183815260808501848152600b80549788018155909452935160039095027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db98101805493518b1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941696909916959095179190911790965594517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8301805492516dffffffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffff00000000000000000000000000000000000000000000909416929098169190911791909117905592517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb9093018054939094167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000909316929092179092555050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146132e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146133985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146134465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600080600b84815481106134ab576134ab6152c3565b60009182526020808320878452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff89168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e010000000000000000000000000000909404841693680100000000000000008304811693169167ffffffffffffffff164311801561354957508115155b1561364857600186015460009061356a9067ffffffffffffffff1643612cd8565b600d5488546007549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906135a69085615133565b6135b09190615133565b6135ba91906150e9565b9050836135cc8264e8d4a51000615133565b6135d691906150e9565b6135e0908661507d565b875460038901549196506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a51000613625888a615133565b61362f91906150e9565b61363991906151ba565b613643919061507d565b925050505b98975050505050505050565b600260015414156136a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b600260019081553360009081527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c60205260409020906136e690612035565b80546003820154600b80546000936801000000000000000090046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff169164e8d4a51000916001908110613738576137386152c3565b6000918252602090912060016003909202018101549086015461378c916dffffffffffffffffffffffffffff680100000000000000009091048116916e0100000000000000000000000000009004166150fd565b61379691906150bc565b6137a09190615170565b6137aa919061502e565b6dffffffffffffffffffffffffffff169050600081116137c957600080fd5b6040805160028082526060820183526000926020830190803683375050600454825192935073ffffffffffffffffffffffffffffffffffffffff1691839150600090613817576138176152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060028054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110613885576138856152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506009548211156138cf5760095491505b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009162010000900473ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561393f57600080fd5b505afa158015613953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139779190614d05565b6003546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063b6f9de959085906139d6908990879030904290600401614fec565b6000604051808303818588803b1580156139ef57600080fd5b505af1158015613a03573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508593506201000090910473ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b158015613a7b57600080fd5b505afa158015613a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ab39190614d05565b613abd91906151ba565b6001860180549192508291600090613ae69084906dffffffffffffffffffffffffffff1661502e565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168555600285018054859190600090613b4d90849061507d565b90915550613b5e9050600133612936565b604080518281526000602082015260019133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350506001805550505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600081118015613c1f5750600e81105b613c2857600080fd5b600a55565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314613d475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff8116613dd05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610be7565b611bdd816147de565b6000600b8481548110613dee57613dee6152c3565b60009182526020808320878452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff8b168652909252922060039091029091019150613e3585612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156140085783158015613e6d575082155b15613ffe5780546003820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a5100093613ee0939091048216916e010000000000000000000000000000909104166150fd565b613eea91906150bc565b613ef49190615170565b613efe919061502e565b6dffffffffffffffffffffffffffff1690508015613fd257613f20878261469c565b80826002016000828254613f34919061507d565b90915550506001808401549083015464e8d4a5100091613f86916dffffffffffffffffffffffffffff680100000000000000009092048216916e010000000000000000000000000000909104166150fd565b613f9091906150bc565b6003830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168155614008565b61400885876141fd565b831561416f5761401c62015180605a615133565b83111580156140435750614030428461507d565b8154640100000000900463ffffffff1611155b6140db5760405162461bcd60e51b815260206004820152605f60248201527f6465706f736974203a204c6f636b206f7574206f662072616e6765206f72207060448201527f726576696f75736c79206c6f636b656420746f6b656e7320617265206c6f636b60648201527f6564206c6f6e676572207468616e206e65772064657369726564206c6f636b00608482015260a401610be7565b81546140ff9073ffffffffffffffffffffffffffffffffffffffff16333087614853565b600181015461411f9085906dffffffffffffffffffffffffffff1661507d565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790558261416f5761416f8587612936565b8215614180576141808686856143d1565b80544264010000000090910463ffffffff1610156141a2576141a28587612936565b6040805185815260208101859052869173ffffffffffffffffffffffffffffffffffffffff8916917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a3505050505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091528120600b805491929185908110614243576142436152c3565b600091825260208220600385810154920201600181810154908601549194506dffffffffffffffffffffffffffff9283169264e8d4a51000926142a8926801000000000000000090048216916e010000000000000000000000000000909104166150fd565b6142b291906150bc565b6142bc9190615170565b6dffffffffffffffffffffffffffff16905080156143ca578254819084906008906143029084906801000000000000000090046bffffffffffffffffffffffff16615095565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661437e91906150fd565b61438891906150bc565b6003840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5050505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902060018101546dffffffffffffffffffffffffffff166144615760405162461bcd60e51b815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610be7565b61446b824261507d565b8154640100000000900463ffffffff1611156144ef5760405162461bcd60e51b815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b620151808210156145425760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610be7565b61455062015180605a615133565b82111561459f5760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610be7565b6145a9824261507d565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556145f062015180605a615133565b6145fc836107d0615133565b61460691906150e9565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff9091161781556146458385612936565b604080514281526020810184905273ffffffffffffffffffffffffffffffffffffffff8616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b6009548111156146ab57506009545b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156146ee573d6000803e3d6000fd5b50806009600082825461470191906151ba565b90915550505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611f5f9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526148b1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052612c349085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161475c565b6000614913826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166149a39092919063ffffffff16565b805190915015611f5f57808060200190518101906149319190614ccf565b611f5f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610be7565b60606149b284846000856149ba565b949350505050565b606082471015614a325760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610be7565b843b614a805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610be7565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051614aa99190614f28565b60006040518083038185875af1925050503d8060008114614ae6576040519150601f19603f3d011682016040523d82523d6000602084013e614aeb565b606091505b5091509150614afb828286614b06565b979650505050505050565b60608315614b15575081612ce4565b825115614b255782518084602001fd5b8160405162461bcd60e51b8152600401610be79190614f9b565b803567ffffffffffffffff81168114614b5757600080fd5b919050565b600060208284031215614b6e57600080fd5b8135612ce481615321565b60008060008060808587031215614b8f57600080fd5b8435614b9a81615321565b93506020850135614baa81615321565b925060408501359150606085013567ffffffffffffffff80821115614bce57600080fd5b818701915087601f830112614be257600080fd5b813581811115614bf457614bf46152f2565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614c3a57614c3a6152f2565b816040528281528a6020848701011115614c5357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060808587031215614c8d57600080fd5b8435614c9881615321565b966020860135965060408601359560600135945092505050565b600060208284031215614cc457600080fd5b8135612ce481615343565b600060208284031215614ce157600080fd5b8151612ce481615343565b600060208284031215614cfe57600080fd5b5035919050565b600060208284031215614d1757600080fd5b5051919050565b60008060408385031215614d3157600080fd5b823591506020830135614d4381615321565b809150509250929050565b600080600060608486031215614d6357600080fd5b833592506020840135614d7581615321565b929592945050506040919091013590565b60008060408385031215614d9957600080fd5b50508035926020909101359150565b600080600060608486031215614dbd57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215614de957600080fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215614e1857600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614e4957600080fd5b83359250614e5960208501614b3f565b91506040840135614e6981615343565b809150509250925092565b60008060408385031215614e8757600080fd5b823563ffffffff81168114614e9b57600080fd5b946020939093013593505050565b600080600060608486031215614ebe57600080fd5b614ec784614b3f565b92506020840135614e5981615321565b600081518084526020808501945080840160005b83811015614f1d57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101614eeb565b509495945050505050565b60008251614f3a8184602087016151d1565b9190910192915050565b604081526000614f576040830185614ed7565b82810360208481019190915284518083528582019282019060005b81811015614f8e57845183529383019391830191600101614f72565b5090979650505050505050565b6020815260008251806020840152614fba8160408501602087016151d1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b8481526080602082015260006150056080830186614ed7565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b60006dffffffffffffffffffffffffffff80831681851680830382111561505757615057615236565b01949350505050565b600061ffff80831681851680830382111561505757615057615236565b6000821982111561509057615090615236565b500190565b60006bffffffffffffffffffffffff80831681851680830382111561505757615057615236565b60006dffffffffffffffffffffffffffff808416806150dd576150dd615265565b92169190910492915050565b6000826150f8576150f8615265565b500490565b60006dffffffffffffffffffffffffffff8083168185168183048111821515161561512a5761512a615236565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561516b5761516b615236565b500290565b60006dffffffffffffffffffffffffffff8381169083168181101561519757615197615236565b039392505050565b600061ffff8381169083168181101561519757615197615236565b6000828210156151cc576151cc615236565b500390565b60005b838110156151ec5781810151838201526020016151d4565b83811115612c345750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561522f5761522f615236565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611bdd57600080fd5b8015158114611bdd57600080fdfea264697066735822122054e7bd1311d0479d89c74478f722549c19a815be673edaf31724dbc6b562598864736f6c63430008070033000000000000000000000000c3f65b1c45b0d42a472cd0fbd37dd6678aef667a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x6080604052600436106103165760003560e01c8063630b5ba11161019a578063ad5c4648116100e1578063d18df53c1161008a578063f0b37c0411610064578063f0b37c0414610b02578063f2fde38b14610b22578063f887ea4014610b4257610342565b8063d18df53c14610aa2578063d89ea34b14610ac2578063e1886f6914610ae257610342565b8063c0d78655116100bb578063c0d7865514610a32578063cbd258b514610a52578063cfac5d7c14610a8257610342565b8063ad5c4648146109b5578063b6a5d7de146109e2578063b918161114610a0257610342565b806390998c9d11610143578063a04e5c041161011d578063a04e5c0414610948578063a5bb096d14610975578063aa97b0a01461099557610342565b806390998c9d146107cd57806393f1a40b146107fb5780639ca1af8c1461091a57610342565b8063715018a611610174578063715018a61461076d5780638da5cb5b146107825780638dbb1e3a146107ad57610342565b8063630b5ba1146106ea57806367dcaf94146106ff578063714892191461071557610342565b806348cd4cb11161025e5780635975e332116102075780635f2ecf8a116101e15780635f2ecf8a1461069a5780635f9e8f82146106b0578063614f3364146106ca57610342565b80635975e332146106445780635dd19829146106645780635f228a3d1461068457610342565b80635312ea8e116102385780635312ea8e146105ee578063533981191461060e57806354f29ce21461062e57610342565b806348cd4cb1146105985780634d90dd42146105ae57806351eb05a6146105ce57610342565b80631526fe27116102c05780632dfd0bdc1161029a5780632dfd0bdc14610543578063401519b6146105585780634460d3cf1461057857610342565b80631526fe271461048e57806317caf6f11461050d5780632d5310e71461052357610342565b806309aaf684116102f157806309aaf684146103b95780630e19dc3a146103f9578063150b7a021461041957610342565b8062aeef8a1461036257806306f43a8c14610382578063081e3eda1461039557610342565b366103425760065473ffffffffffffffffffffffffffffffffffffffff1633141561034057600080fd5b005b3460086000828254610354919061507d565b909155506103409050610b6f565b34801561036e57600080fd5b5061034061037d366004614da8565b610b98565b610340610390366004614e02565b610c0a565b3480156103a157600080fd5b50600b545b6040519081526020015b60405180910390f35b3480156103c557600080fd5b506103e96103d4366004614b5c565b60056020526000908152604090205460ff1681565b60405190151581526020016103b0565b34801561040557600080fd5b50610340610414366004614e74565b611094565b34801561042557600080fd5b5061045d610434366004614b79565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103b0565b34801561049a57600080fd5b506104ae6104a9366004614cec565b61141e565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865267ffffffffffffffff948516602087015293909216928401929092526dffffffffffffffffffffffffffff918216606084015216608082015260a0016103b0565b34801561051957600080fd5b506103a6600d5481565b34801561052f57600080fd5b5061034061053e366004614d4e565b6114b0565b34801561054f57600080fd5b50610340611a90565b34801561056457600080fd5b50610340610573366004614e34565b611be0565b34801561058457600080fd5b50610340610593366004614b5c565b611d13565b3480156105a457600080fd5b506103a6600e5481565b3480156105ba57600080fd5b506103406105c9366004614d1e565b611f64565b3480156105da57600080fd5b506103406105e9366004614cec565b612035565b3480156105fa57600080fd5b50610340610609366004614cec565b612251565b34801561061a57600080fd5b50610340610629366004614cb2565b6124a3565b34801561063a57600080fd5b506103a660085481565b34801561065057600080fd5b5061034061065f366004614d4e565b612576565b34801561067057600080fd5b5061034061067f366004614d1e565b612936565b34801561069057600080fd5b506103a6600a5481565b3480156106a657600080fd5b506103a660095481565b3480156106bc57600080fd5b50600f546103e99060ff1681565b3480156106d657600080fd5b506103406106e5366004614c77565b612b9e565b3480156106f657600080fd5b50610340612c3a565b34801561070b57600080fd5b506103a660075481565b34801561072157600080fd5b506002546107489062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103b0565b34801561077957600080fd5b50610340612c65565b34801561078e57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610748565b3480156107b957600080fd5b506103a66107c8366004614d86565b612cd8565b3480156107d957600080fd5b506107ed6107e8366004614d1e565b612ceb565b6040516103b0929190614f44565b34801561080757600080fd5b506108ab610816366004614d1e565b600c602090815260009283526040808420909152908252902080546001820154600283015460039093015461ffff8084169462010000850490911693640100000000810463ffffffff1693680100000000000000009091046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff808316936e010000000000000000000000000000909304811692911688565b6040805161ffff998a16815298909716602089015263ffffffff909516958701959095526bffffffffffffffffffffffff90921660608601526dffffffffffffffffffffffffffff908116608086015290811660a085015260c08401929092521660e0820152610100016103b0565b34801561092657600080fd5b506002546109359061ffff1681565b60405161ffff90911681526020016103b0565b34801561095457600080fd5b506006546107489073ffffffffffffffffffffffffffffffffffffffff1681565b34801561098157600080fd5b50610340610990366004614b5c565b612ea6565b3480156109a157600080fd5b506103406109b0366004614ea9565b612f54565b3480156109c157600080fd5b506004546107489073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109ee57600080fd5b506103406109fd366004614b5c565b61327b565b348015610a0e57600080fd5b506103e9610a1d366004614b5c565b60116020526000908152604090205460ff1681565b348015610a3e57600080fd5b50610340610a4d366004614b5c565b613331565b348015610a5e57600080fd5b506103e9610a6d366004614b5c565b60106020526000908152604090205460ff1681565b348015610a8e57600080fd5b50610340610a9d366004614b5c565b6133df565b348015610aae57600080fd5b506103a6610abd366004614d1e565b613495565b348015610ace57600080fd5b50610340610add366004614cec565b613654565b348015610aee57600080fd5b50610340610afd366004614cec565b613ba8565b348015610b0e57600080fd5b50610340610b1d366004614b5c565b613c2d565b348015610b2e57600080fd5b50610340610b3d366004614b5c565b613ce0565b348015610b4e57600080fd5b506003546107489073ffffffffffffffffffffffffffffffffffffffff1681565b610b77612c3a565b600a54610b8690611900615133565b600854610b9391906150e9565b600755565b60026001541415610bf05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155610c0133848484613dd9565b50506001805550565b60026001541415610c5d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001556040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290523382527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e890529190912034610cc857600080fd5b610cd662015180605a615133565b8311158015610cfd5750610cea428461507d565b8154640100000000900463ffffffff1611155b610d6f5760405162461bcd60e51b815260206004820152602d60248201527f6164644c69717569646974794e6f466565416e645374616b65203a204c6f636b60448201527f206f7574206f662072616e6765000000000000000000000000000000000000006064820152608401610be7565b610d796000612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610db057610db06000336141fd565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526201000090910473ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610e2d57600080fd5b505af1158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e659190614ccf565b50600b600081548110610e7a57610e7a6152c3565b600091825260208083206003928302015473ffffffffffffffffffffffffffffffffffffffff908116865230918601829052606086018890526080860189905260408087018b90524260a08801819052935460025491517ff305d7190000000000000000000000000000000000000000000000000000000081526201000090920483166004830152602482018c9052604482018a9052606482018b9052608482019390935260a48101939093521691908190839063f305d71990349060c4016060604051808303818588803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f8b9190614dd4565b90935091503390506108fc610fa084346151ba565b6040518115909202916000818181858888f19350505050158015610fc8573d6000803e3d6000fd5b50600184018054829190600090610ff09084906dffffffffffffffffffffffffffff1661502e565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550600086111561103c57611037336000886143d1565b611047565b611047600033612936565b604080518281526020810188905260009133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350506001805550505050505050565b600260015414156110e75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001819055506000600b8363ffffffff168154811061110a5761110a6152c3565b6000918252602080832063ffffffff8088168552600c83526040808620338752909352919093208054600390930290930193504264010000000090920416106111e15760405162461bcd60e51b815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610be7565b60018101546dffffffffffffffffffffffffffff1683118015906112055750600083115b6112515760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610be7565b6112608463ffffffff16612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156113425761129c8463ffffffff16336141fd565b80546801000000000000000090046bffffffffffffffffffffffff16156113425780546112e49033906801000000000000000090046bffffffffffffffffffffffff1661469c565b8054600282018054680100000000000000009092046bffffffffffffffffffffffff169160009061131690849061507d565b909155505080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b60018101546113629084906dffffffffffffffffffffffffffff166151ba565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905581546113c69073ffffffffffffffffffffffffffffffffffffffff16338561470a565b6113d68463ffffffff1633612936565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b600b818154811061142e57600080fd5b600091825260209091206003909102018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff8216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff680100000000000000009091048116911685565b600260015414156115035760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001556000838152600c60209081526040808320338085529252822060040154909190819061153387612035565b61153d87856141fd565b60005b6000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152902060040154811015611661576000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89811685529252909120600401805491891691839081106115c3576115c36152c3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561164f576000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091529020600501805487919083908110611632576116326152c3565b9060005260206000200154141561164f5760019250809350611661565b80611659816151fd565b915050611540565b506001821515146116b45760405162461bcd60e51b815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610be7565b6002546000888152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091528120805461ffff938416939192916116fe9185911661519f565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206004016117596001836151ba565b81548110611769576117696152c3565b6000918252602080832090910154898352600c8252604080842073ffffffffffffffffffffffffffffffffffffffff898116865293529092206004018054919092169190859081106117bd576117bd6152c3565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055898252600c8152604080832093881683529290522060040180548061183157611831615294565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600c8152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206005016118c56001836151ba565b815481106118d5576118d56152c3565b6000918252602080832090910154898352600c8252604080842073ffffffffffffffffffffffffffffffffffffffff891685529092529120600501805485908110611922576119226152c3565b6000918252602080832090910192909255888152600c8252604080822073ffffffffffffffffffffffffffffffffffffffff881683529092522060050180548061196e5761196e615294565b6001900381819060005260206000200160009055905561198e8785612936565b6040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611a0457600080fd5b505af1158015611a18573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611a7b91815260200190565b60405180910390a35050600180555050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611af75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b43600e5411611b6e5760405162461bcd60e51b815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610be7565b43600e5560005b600b54811015611bdd5743600b8281548110611b9357611b936152c3565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611bd5906151fd565b915050611b75565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314611c475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b8015611c5557611c55612c3a565b8167ffffffffffffffff16600b8481548110611c7357611c736152c3565b6000918252602090912060039091020154600d54611cb39174010000000000000000000000000000000000000000900467ffffffffffffffff16906151ba565b611cbd919061507d565b600d8190555081600b8481548110611cd757611cd76152c3565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff1615611e165760405162461bcd60e51b815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611e7e57600080fd5b505afa158015611e92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb69190614d05565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b158015611f2757600080fd5b505af1158015611f3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5f9190614ccf565b505050565b60026001541415611fb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b600260019081556000838152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152902001546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1661201a57600080fd5b61202382612035565b61202d82826141fd565b505060018055565b6000600b828154811061204a5761204a6152c3565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311612076575050565b60028101546dffffffffffffffffffffffffffff168015806120b95750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b156120f7575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b60018201546000906121139067ffffffffffffffff1643612cd8565b600d5484546007549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff169061214f9085615133565b6121599190615133565b61216391906150e9565b905080600954612173919061507d565b6009556008546121849082906151ba565b600855826121978264e8d4a51000615133565b6121a191906150e9565b60018501546121cc91906801000000000000000090046dffffffffffffffffffffffffffff1661507d565b60019490940180547fffffffffffffffffffff0000000000000000000000000000000000000000000016680100000000000000006dffffffffffffffffffffffffffff909616959095027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016949094174367ffffffffffffffff161790935550505050565b600260015414156122a45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001908155600f5460ff161515146123265760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b6000600b828154811061233b5761233b6152c3565b60009182526020808320858452600c82526040808520338652909252908320600181015460026003909402909201928301805493955090936dffffffffffffffffffffffffffff808416946e0100000000000000000000000000009094048116936123a891859116615170565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000001690556003820180547fffffffffffffffffffffffffffffffffffff000000000000000000000000000016905581547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168255825461246f9073ffffffffffffffffffffffffffffffffffffffff16338361470a565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200161140c565b60005473ffffffffffffffffffffffffffffffffffffffff16331461250a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b600260015414156125c95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b60026001553332146126435760405162461bcd60e51b815260206004820152602d60248201527f626f6f7374576974684e4654203a204465706f7369742066726f6d20636f6e7460448201527f726163742064697361626c6564000000000000000000000000000000000000006064820152608401610be7565b73ffffffffffffffffffffffffffffffffffffffff821660009081526005602052604090205460ff166126de5760405162461bcd60e51b815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610be7565b6000838152600c602090815260408083203384529091529020600101546dffffffffffffffffffffffffffff1661277c5760405162461bcd60e51b8152602060048201526024808201527f626f6f7374576974684e46543a205265717569726573207374616b656420746f60448201527f6b656e73000000000000000000000000000000000000000000000000000000006064820152608401610be7565b61278583612035565b61278f83336141fd565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff8316906342842e0e90606401600060405180830381600087803b15801561280357600080fd5b505af1158015612817573d6000803e3d6000fd5b5050506000848152600c6020908152604080832033808552908352908320600481018054600180820183559186528486200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a1617905560058201805491820181558552928420909201859055600254908352815461ffff91821694509192916128bc91859116615060565b92506101000a81548161ffff021916908361ffff1602179055506128e08333612936565b60405181815273ffffffffffffffffffffffffffffffffffffffff83169033907fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb9060200160405180910390a350506001805550565b6000600b838154811061294b5761294b6152c3565b60009182526020808320868452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff881686529092529083206001810154600260039094029092019283015492945092916129c7916dffffffffffffffffffffffffffff6e01000000000000000000000000000090910481169116615170565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff161015612a1b5781547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682555b81546103e89061ffff80821691612a3a91620100009091041683615060565b612a449190615060565b6001840154612a679161ffff16906dffffffffffffffffffffffffffff166150fd565b612a7191906150bc565b6001830180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff93841681029190911791829055612ad2929104168261507d565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9283161790556001808501549084015464e8d4a5100092612b4b926801000000000000000090048116916e0100000000000000000000000000009004166150fd565b612b5591906150bc565b60039290920180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9093169290921790915550505050565b3360009081526011602052604090205460ff161515600114612c285760405162461bcd60e51b815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610be7565b612c3484848484613dd9565b50505050565b600b5460005b81811015612c6157612c5181612035565b612c5a816151fd565b9050612c40565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612ccc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b612cd660006147de565b565b6000612ce483836151ba565b9392505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206004810154606092839291908167ffffffffffffffff811115612d3f57612d3f6152f2565b604051908082528060200260200182016040528015612d68578160200160208202803683370190505b50905060008267ffffffffffffffff811115612d8657612d866152f2565b604051908082528060200260200182016040528015612daf578160200160208202803683370190505b50905060005b83811015612e9857846004018181548110612dd257612dd26152c3565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110612e0f57612e0f6152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846005018181548110612e5e57612e5e6152c3565b9060005260206000200154828281518110612e7b57612e7b6152c3565b602090810291909101015280612e90816151fd565b915050612db5565b509097909650945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612f0d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314612fbb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260106020526040902054829060ff16156130595760405162461bcd60e51b815260206004820152602560248201527f6e6f6e4475706c6963617465643a204c5020546f6b656e20616c72656164792060448201527f61646465640000000000000000000000000000000000000000000000000000006064820152608401610be7565b811561306757613067612c3a565b6000600e54431161307a57600e5461307c565b435b90508467ffffffffffffffff16600d54613096919061507d565b600d5573ffffffffffffffffffffffffffffffffffffffff938416600081815260106020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155815160a08101835294855267ffffffffffffffff998a169285019283529489169084019081526060840183815260808501848152600b80549788018155909452935160039095027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db98101805493518b1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941696909916959095179190911790965594517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8301805492516dffffffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffff00000000000000000000000000000000000000000000909416929098169190911791909117905592517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb9093018054939094167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000909316929092179092555050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146132e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146133985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146134465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600080600b84815481106134ab576134ab6152c3565b60009182526020808320878452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff89168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e010000000000000000000000000000909404841693680100000000000000008304811693169167ffffffffffffffff164311801561354957508115155b1561364857600186015460009061356a9067ffffffffffffffff1643612cd8565b600d5488546007549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906135a69085615133565b6135b09190615133565b6135ba91906150e9565b9050836135cc8264e8d4a51000615133565b6135d691906150e9565b6135e0908661507d565b875460038901549196506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a51000613625888a615133565b61362f91906150e9565b61363991906151ba565b613643919061507d565b925050505b98975050505050505050565b600260015414156136a75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610be7565b600260019081553360009081527fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c60205260409020906136e690612035565b80546003820154600b80546000936801000000000000000090046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff169164e8d4a51000916001908110613738576137386152c3565b6000918252602090912060016003909202018101549086015461378c916dffffffffffffffffffffffffffff680100000000000000009091048116916e0100000000000000000000000000009004166150fd565b61379691906150bc565b6137a09190615170565b6137aa919061502e565b6dffffffffffffffffffffffffffff169050600081116137c957600080fd5b6040805160028082526060820183526000926020830190803683375050600454825192935073ffffffffffffffffffffffffffffffffffffffff1691839150600090613817576138176152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060028054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110613885576138856152c3565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506009548211156138cf5760095491505b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009162010000900473ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561393f57600080fd5b505afa158015613953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139779190614d05565b6003546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063b6f9de959085906139d6908990879030904290600401614fec565b6000604051808303818588803b1580156139ef57600080fd5b505af1158015613a03573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508593506201000090910473ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b158015613a7b57600080fd5b505afa158015613a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ab39190614d05565b613abd91906151ba565b6001860180549192508291600090613ae69084906dffffffffffffffffffffffffffff1661502e565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168555600285018054859190600090613b4d90849061507d565b90915550613b5e9050600133612936565b604080518281526000602082015260019133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350506001805550505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b600081118015613c1f5750600e81105b613c2857600080fd5b600a55565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260116020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60005473ffffffffffffffffffffffffffffffffffffffff163314613d475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be7565b73ffffffffffffffffffffffffffffffffffffffff8116613dd05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610be7565b611bdd816147de565b6000600b8481548110613dee57613dee6152c3565b60009182526020808320878452600c8252604080852073ffffffffffffffffffffffffffffffffffffffff8b168652909252922060039091029091019150613e3585612035565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156140085783158015613e6d575082155b15613ffe5780546003820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a5100093613ee0939091048216916e010000000000000000000000000000909104166150fd565b613eea91906150bc565b613ef49190615170565b613efe919061502e565b6dffffffffffffffffffffffffffff1690508015613fd257613f20878261469c565b80826002016000828254613f34919061507d565b90915550506001808401549083015464e8d4a5100091613f86916dffffffffffffffffffffffffffff680100000000000000009092048216916e010000000000000000000000000000909104166150fd565b613f9091906150bc565b6003830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168155614008565b61400885876141fd565b831561416f5761401c62015180605a615133565b83111580156140435750614030428461507d565b8154640100000000900463ffffffff1611155b6140db5760405162461bcd60e51b815260206004820152605f60248201527f6465706f736974203a204c6f636b206f7574206f662072616e6765206f72207060448201527f726576696f75736c79206c6f636b656420746f6b656e7320617265206c6f636b60648201527f6564206c6f6e676572207468616e206e65772064657369726564206c6f636b00608482015260a401610be7565b81546140ff9073ffffffffffffffffffffffffffffffffffffffff16333087614853565b600181015461411f9085906dffffffffffffffffffffffffffff1661507d565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790558261416f5761416f8587612936565b8215614180576141808686856143d1565b80544264010000000090910463ffffffff1610156141a2576141a28587612936565b6040805185815260208101859052869173ffffffffffffffffffffffffffffffffffffffff8916917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a3505050505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091528120600b805491929185908110614243576142436152c3565b600091825260208220600385810154920201600181810154908601549194506dffffffffffffffffffffffffffff9283169264e8d4a51000926142a8926801000000000000000090048216916e010000000000000000000000000000909104166150fd565b6142b291906150bc565b6142bc9190615170565b6dffffffffffffffffffffffffffff16905080156143ca578254819084906008906143029084906801000000000000000090046bffffffffffffffffffffffff16615095565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661437e91906150fd565b61438891906150bc565b6003840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5050505050565b6000828152600c6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902060018101546dffffffffffffffffffffffffffff166144615760405162461bcd60e51b815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610be7565b61446b824261507d565b8154640100000000900463ffffffff1611156144ef5760405162461bcd60e51b815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610be7565b620151808210156145425760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610be7565b61455062015180605a615133565b82111561459f5760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610be7565b6145a9824261507d565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556145f062015180605a615133565b6145fc836107d0615133565b61460691906150e9565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff9091161781556146458385612936565b604080514281526020810184905273ffffffffffffffffffffffffffffffffffffffff8616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b6009548111156146ab57506009545b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156146ee573d6000803e3d6000fd5b50806009600082825461470191906151ba565b90915550505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052611f5f9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526148b1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052612c349085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161475c565b6000614913826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166149a39092919063ffffffff16565b805190915015611f5f57808060200190518101906149319190614ccf565b611f5f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610be7565b60606149b284846000856149ba565b949350505050565b606082471015614a325760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610be7565b843b614a805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610be7565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051614aa99190614f28565b60006040518083038185875af1925050503d8060008114614ae6576040519150601f19603f3d011682016040523d82523d6000602084013e614aeb565b606091505b5091509150614afb828286614b06565b979650505050505050565b60608315614b15575081612ce4565b825115614b255782518084602001fd5b8160405162461bcd60e51b8152600401610be79190614f9b565b803567ffffffffffffffff81168114614b5757600080fd5b919050565b600060208284031215614b6e57600080fd5b8135612ce481615321565b60008060008060808587031215614b8f57600080fd5b8435614b9a81615321565b93506020850135614baa81615321565b925060408501359150606085013567ffffffffffffffff80821115614bce57600080fd5b818701915087601f830112614be257600080fd5b813581811115614bf457614bf46152f2565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614c3a57614c3a6152f2565b816040528281528a6020848701011115614c5357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060808587031215614c8d57600080fd5b8435614c9881615321565b966020860135965060408601359560600135945092505050565b600060208284031215614cc457600080fd5b8135612ce481615343565b600060208284031215614ce157600080fd5b8151612ce481615343565b600060208284031215614cfe57600080fd5b5035919050565b600060208284031215614d1757600080fd5b5051919050565b60008060408385031215614d3157600080fd5b823591506020830135614d4381615321565b809150509250929050565b600080600060608486031215614d6357600080fd5b833592506020840135614d7581615321565b929592945050506040919091013590565b60008060408385031215614d9957600080fd5b50508035926020909101359150565b600080600060608486031215614dbd57600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215614de957600080fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215614e1857600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614e4957600080fd5b83359250614e5960208501614b3f565b91506040840135614e6981615343565b809150509250925092565b60008060408385031215614e8757600080fd5b823563ffffffff81168114614e9b57600080fd5b946020939093013593505050565b600080600060608486031215614ebe57600080fd5b614ec784614b3f565b92506020840135614e5981615321565b600081518084526020808501945080840160005b83811015614f1d57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101614eeb565b509495945050505050565b60008251614f3a8184602087016151d1565b9190910192915050565b604081526000614f576040830185614ed7565b82810360208481019190915284518083528582019282019060005b81811015614f8e57845183529383019391830191600101614f72565b5090979650505050505050565b6020815260008251806020840152614fba8160408501602087016151d1565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b8481526080602082015260006150056080830186614ed7565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b60006dffffffffffffffffffffffffffff80831681851680830382111561505757615057615236565b01949350505050565b600061ffff80831681851680830382111561505757615057615236565b6000821982111561509057615090615236565b500190565b60006bffffffffffffffffffffffff80831681851680830382111561505757615057615236565b60006dffffffffffffffffffffffffffff808416806150dd576150dd615265565b92169190910492915050565b6000826150f8576150f8615265565b500490565b60006dffffffffffffffffffffffffffff8083168185168183048111821515161561512a5761512a615236565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561516b5761516b615236565b500290565b60006dffffffffffffffffffffffffffff8381169083168181101561519757615197615236565b039392505050565b600061ffff8381169083168181101561519757615197615236565b6000828210156151cc576151cc615236565b500390565b60005b838110156151ec5781810151838201526020016151d4565b83811115612c345750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561522f5761522f615236565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611bdd57600080fd5b8015158114611bdd57600080fdfea264697066735822122054e7bd1311d0479d89c74478f722549c19a815be673edaf31724dbc6b562598864736f6c63430008070033

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

000000000000000000000000c3f65b1c45b0d42a472cd0fbd37dd6678aef667a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _cimo (address): 0xC3f65b1c45B0D42a472CD0Fbd37dD6678AEf667a
Arg [1] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c3f65b1c45b0d42a472cd0fbd37dd6678aef667a
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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.