ETH Price: $3,387.34 (-1.74%)
Gas: 3 Gwei

Contract

0xB2b295BC17c7fC19f52d1f5CD85E7259bB2299a9
 

Overview

ETH Balance

2.369956386423507647 ETH

Eth Value

$8,027.85 (@ $3,387.34/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Deposit196149032024-04-09 1:46:2385 days ago1712627183IN
0xB2b295BC...9bB2299a9
0 ETH0.0009425419.65556654
Deposit195870542024-04-05 4:06:3588 days ago1712289995IN
0xB2b295BC...9bB2299a9
0 ETH0.0004053513.07600481
Setnumdays195395822024-03-29 12:12:4795 days ago1711714367IN
0xB2b295BC...9bB2299a9
0 ETH0.0005633919.59972834
Set Blocks Per D...195395802024-03-29 12:12:2395 days ago1711714343IN
0xB2b295BC...9bB2299a9
0 ETH0.0005146217.94238754
Setnumdays195325172024-03-28 12:09:3596 days ago1711627775IN
0xB2b295BC...9bB2299a9
0 ETH0.0011939841.53729543
Set Blocks Per D...195325162024-03-28 12:09:2396 days ago1711627763IN
0xB2b295BC...9bB2299a9
0 ETH0.0012345443.04239383
Emergency195325142024-03-28 12:08:5996 days ago1711627739IN
0xB2b295BC...9bB2299a9
0 ETH0.0011623442.55485065
Set Blocks Per D...195161092024-03-26 4:02:1198 days ago1711425731IN
0xB2b295BC...9bB2299a9
0 ETH0.0004598616.03322596
Setnumdays195161082024-03-26 4:01:5998 days ago1711425719IN
0xB2b295BC...9bB2299a9
0 ETH0.0004388715.2680311
Deposit195148102024-03-25 23:40:5999 days ago1711410059IN
0xB2b295BC...9bB2299a9
0 ETH0.0005917324.65546889
Withdraw195021922024-03-24 4:59:35100 days ago1711256375IN
0xB2b295BC...9bB2299a9
0 ETH0.0008348615.97378586
Withdraw195013762024-03-24 2:14:11101 days ago1711246451IN
0xB2b295BC...9bB2299a9
0 ETH0.0005441816.22822914
Withdraw194993572024-03-23 19:23:59101 days ago1711221839IN
0xB2b295BC...9bB2299a9
0 ETH0.0005970919.90329094
Deposit194799942024-03-21 2:11:47104 days ago1710987107IN
0xB2b295BC...9bB2299a9
0 ETH0.000605327.51385245
Set Blocks Per D...194779432024-03-20 19:18:47104 days ago1710962327IN
0xB2b295BC...9bB2299a9
0 ETH0.0009677333.74010279
Emergency194779302024-03-20 19:16:11104 days ago1710962171IN
0xB2b295BC...9bB2299a9
0 ETH0.0009272136.62868584
Setnumdays194779262024-03-20 19:15:23104 days ago1710962123IN
0xB2b295BC...9bB2299a9
0 ETH0.0009907734.46759626
Setnumdays194778912024-03-20 19:08:23104 days ago1710961703IN
0xB2b295BC...9bB2299a9
0 ETH0.0011641740.50018225
Withdraw194521742024-03-17 4:24:47107 days ago1710649487IN
0xB2b295BC...9bB2299a9
0 ETH0.0005239623.81672539
Deposit194162202024-03-12 3:08:47112 days ago1710212927IN
0xB2b295BC...9bB2299a9
0 ETH0.0013351744.50579392
Deposit194162122024-03-12 3:07:11112 days ago1710212831IN
0xB2b295BC...9bB2299a9
0 ETH0.0010320544.87187104
Emergency Withdr...192450432024-02-17 3:54:23136 days ago1708142063IN
0xB2b295BC...9bB2299a9
0 ETH0.0038912316.61330006
Deposit189463272024-01-06 6:13:47178 days ago1704521627IN
0xB2b295BC...9bB2299a9
0 ETH0.0004302417.92698673
Emergency Withdr...188813612023-12-28 3:12:47187 days ago1703733167IN
0xB2b295BC...9bB2299a9
0 ETH0.0055176322.25716278
Emergency Withdr...186795542023-11-29 20:08:47216 days ago1701288527IN
0xB2b295BC...9bB2299a9
0 ETH0.0109579444.60542228
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
202188132024-07-02 12:24:2314 hrs ago1719923063
0xB2b295BC...9bB2299a9
0.00091803 ETH
202188122024-07-02 12:24:1114 hrs ago1719923051
0xB2b295BC...9bB2299a9
0.00229509 ETH
202188062024-07-02 12:22:5914 hrs ago1719922979
0xB2b295BC...9bB2299a9
0.00573772 ETH
201823852024-06-27 10:19:475 days ago1719483587
0xB2b295BC...9bB2299a9
0.00134605 ETH
201823832024-06-27 10:19:235 days ago1719483563
0xB2b295BC...9bB2299a9
0.00336514 ETH
201823822024-06-27 10:19:115 days ago1719483551
0xB2b295BC...9bB2299a9
0.00841285 ETH
201616392024-06-24 12:48:238 days ago1719233303
0xB2b295BC...9bB2299a9
0.0016204 ETH
201616382024-06-24 12:48:118 days ago1719233291
0xB2b295BC...9bB2299a9
0.00405101 ETH
201616382024-06-24 12:48:118 days ago1719233291
0xB2b295BC...9bB2299a9
0.01012752 ETH
201400312024-06-21 12:14:5911 days ago1718972099
0xB2b295BC...9bB2299a9
0.00370601 ETH
201400292024-06-21 12:14:3511 days ago1718972075
0xB2b295BC...9bB2299a9
0.00926504 ETH
201400252024-06-21 12:13:4711 days ago1718972027
0xB2b295BC...9bB2299a9
0.0231626 ETH
201254212024-06-19 11:14:5913 days ago1718795699
0xB2b295BC...9bB2299a9
0.00220292 ETH
201254182024-06-19 11:14:2313 days ago1718795663
0xB2b295BC...9bB2299a9
0.00550732 ETH
201254182024-06-19 11:14:2313 days ago1718795663
0xB2b295BC...9bB2299a9
0.0137683 ETH
201056172024-06-16 16:41:5916 days ago1718556119
0xB2b295BC...9bB2299a9
0.00219761 ETH
201056162024-06-16 16:41:4716 days ago1718556107
0xB2b295BC...9bB2299a9
0.00549404 ETH
201056142024-06-16 16:41:2316 days ago1718556083
0xB2b295BC...9bB2299a9
0.01373511 ETH
200947892024-06-15 4:22:2317 days ago1718425343
0xB2b295BC...9bB2299a9
0.0012394 ETH
200947892024-06-15 4:22:2317 days ago1718425343
0xB2b295BC...9bB2299a9
0.00309851 ETH
200947872024-06-15 4:21:5917 days ago1718425319
0xB2b295BC...9bB2299a9
0.00774629 ETH
200813382024-06-13 7:13:1119 days ago1718262791
0xB2b295BC...9bB2299a9
0.00164772 ETH
200813382024-06-13 7:13:1119 days ago1718262791
0xB2b295BC...9bB2299a9
0.00411932 ETH
200813372024-06-13 7:12:5919 days ago1718262779
0xB2b295BC...9bB2299a9
0.0102983 ETH
200550702024-06-09 15:09:4723 days ago1717945787
0xB2b295BC...9bB2299a9
0.00484922 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NooneStakingV2

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200000 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IUniswapV2Router02.sol";
import "./interfaces/INoone.sol";
import "./interfaces/INooneStaking.sol";

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

    struct UserInfo {
        uint16 nftBoost; //NFT token multiplier
        uint16 lockTimeBoost; //time lock multiplier
        uint32 lockedUntil; //lock end in UNIX seconds, used to compute the lockTimeBoost
        uint96 claimableETH; 
        uint112 amount; //amount of staked tokens
        uint112 weightedBalance; //amout of staked tokens * (multiplier + nftMultiplier)
        uint256 withdrawn; //withdrawn ETH to date
        uint112 ETHrewardDebt; //ETH debt for each staking session
        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; // Allocation points assigned to this pool.
        uint64 lastRewardBlock; // Last reward block.
        uint112 accETHPerShare;
        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 = 400; //amount of bonus points that each NFT gives to staker
    uint16 public maxNFTBoost = 2000;
    uint256 public blocksPerDay = 7200;
    uint256 constant WEEK = 604800; //total seconds in one week
    INoone public Noone; 
    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


    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(INoone _noone, address _router) {
        Noone = _noone;
        router = _router;
        WETH = IUniswapV2Router02(router).WETH();
        startBlock = type(uint256).max;
        Noone.approve(router, Noone.totalSupply());
        numdays = 13;
    }

    /**
    * 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);
    }

    function getVotingPower(address _user) public view returns (uint256){
        UserInfo storage user = userInfo[1][_user];
        return Noone.balanceOf(_user) + user.weightedBalance;
    }

    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    //Receive ETH from the tax 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 Noone and ETH and add it to liquidity. Return unspent ETH.
    */
    function addLiquidityNoFeeAndStake(uint256 amountTokensIn, uint256 amountETHMin, uint256 amountTokenMin, uint256 lockTime) public payable nonReentrant {
        INoone.LiquidityETHParams memory params;
        UserInfo storage user = userInfo[0][msg.sender];
        require(msg.value > 0);
        require((lockTime >= WEEK && lockTime <= 52 * WEEK && user.lockedUntil <= lockTime + block.timestamp), "addLiquidityNoFeeAndStake : Lock out of range");
        updatePool(0);
        if (user.weightedBalance > 0) {
            _addToClaimable(0, msg.sender);
        }
        Noone.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(Noone),
            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(Noone);
        if (ETHPending > ETHLeftUnclaimed) {
            ETHPending = ETHLeftUnclaimed;
        }
        uint256 balanceBefore = Noone.balanceOf(address(this));
        IUniswapV2Router02(router).swapExactETHForTokensSupportingFeeOnTransferTokens{value: ETHPending}(
            amountOutMin,
                path,
                address(this),
                block.timestamp
        );

        uint256 amountSwapped = Noone.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);
        IERC721(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");
        require(userInfo[_pid][msg.sender].nftBoost < maxNFTBoost);

        updatePool(_pid);
        _addToClaimable(_pid, msg.sender);
        IERC721(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 NFTStaked(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-Noone 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;
    }

    // change number of blocks produced per day
    function setBlocksPerDay(uint256 _blocks) public onlyOwner {
        blocksPerDay = _blocks;
    }

    // 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 >= WEEK && lockTime <= 52 * WEEK && 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 >= WEEK, "lockTokens: Lock time too short");
        require(lockTime <= 52 * WEEK, "lockTokens: Lock time too long");
        user.lockedUntil = uint32(block.timestamp + lockTime);
        user.lockTimeBoost = uint16((2 * 1000 * lockTime) / (52 * WEEK));
        // 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 / (blocksPerDay * 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;
    }
}

File 2 of 15 : INooneStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface INooneStaking {
    //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 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);

}

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

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

interface INoone is IERC20 {

    struct LiquidityETHParams {
        address pair;
        address to;
        uint256 amountTokenOrLP;
        uint256 amountTokenMin;
        uint256 amountETHMin;
        uint256 deadline;
    }
}

File 4 of 15 : IUniswapV2Router02.sol
// 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;
}

File 5 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 6 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 7 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 8 of 15 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
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 9 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 10 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 11 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 14 of 15 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract INoone","name":"_noone","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":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":"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":"Noone","outputs":[{"internalType":"contract INoone","name":"","type":"address"}],"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":[],"name":"blocksPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_user","type":"address"}],"name":"getVotingPower","outputs":[{"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":"maxNFTBoost","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":"uint256","name":"_blocks","type":"uint256"}],"name":"setBlocksPerDay","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"}]

60806040526002805463ffffffff19166307d00190179055611c206003553480156200002a57600080fd5b5060405162005449380380620054498339810160408190526200004d91620002cc565b620000583362000231565b60018055600480546001600160a01b038085166001600160a01b031992831617835560058054918516919092168117909155604080516315ab88c960e31b81529051919263ad5c4648928282019260209290829003018186803b158015620000bf57600080fd5b505afa158015620000d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000fa919062000281565b600680546001600160a01b0319166001600160a01b0392831617905560001960105560048054600554604080516318160ddd60e01b815290519285169463095ea7b39492169285926318160ddd92808201926020929091829003018186803b1580156200016657600080fd5b505afa1580156200017b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a191906200030b565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015620001e857600080fd5b505af1158015620001fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002239190620002a8565b5050600d600c55506200033e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200029457600080fd5b8151620002a18162000325565b9392505050565b600060208284031215620002bb57600080fd5b81518015158114620002a157600080fd5b60008060408385031215620002e057600080fd5b8251620002ed8162000325565b6020840151909250620003008162000325565b809150509250929050565b6000602082840312156200031e57600080fd5b5051919050565b6001600160a01b03811681146200033b57600080fd5b50565b6150fb806200034e6000396000f3fe6080604052600436106103425760003560e01c8063614f3364116101b0578063b6a5d7de116100ec578063d18df53c11610095578063f0b37c041161006f578063f0b37c0414610b5a578063f0e2058214610b7a578063f2fde38b14610b9b578063f887ea4014610bbb5761036e565b8063d18df53c14610afa578063d89ea34b14610b1a578063e1886f6914610b3a5761036e565b8063c0d78655116100c6578063c0d7865514610a8a578063cbd258b514610aaa578063cfac5d7c14610ada5761036e565b8063b6a5d7de14610a1a578063b918161114610a3a578063bb4d443614610a6a5761036e565b806390998c9d11610159578063a04e5c0411610133578063a04e5c0414610980578063a5bb096d146109ad578063aa97b0a0146109cd578063ad5c4648146109ed5761036e565b806390998c9d1461080557806393f1a40b146108335780639ca1af8c146109525761036e565b8063715018a61161018a578063715018a6146107a55780638da5cb5b146107ba5780638dbb1e3a146107e55761036e565b8063614f33641461075a578063630b5ba11461077a57806367dcaf941461078f5761036e565b806348cd4cb11161027f57806354f29ce2116102285780635dd19829116102025780635dd19829146106f45780635f228a3d146107145780635f2ecf8a1461072a5780635f9e8f82146107405761036e565b806354f29ce21461066c5780635975e332146106825780635c7dd3ff146106a25761036e565b806351eb05a61161025957806351eb05a61461060c5780635312ea8e1461062c578063533981191461064c5761036e565b806348cd4cb1146105c05780634cfea68a146105d65780634d90dd42146105ec5761036e565b80631526fe27116102ec5780632dfd0bdc116102c65780632dfd0bdc1461054b578063353b6c2c14610560578063401519b6146105805780634460d3cf146105a05761036e565b80631526fe271461049657806317caf6f1146105155780632d5310e71461052b5761036e565b806309aaf6841161031d57806309aaf684146103e55780630e19dc3a14610425578063150b7a02146104455761036e565b8062aeef8a1461038e57806306f43a8c146103ae578063081e3eda146103c15761036e565b3661036e5760085473ffffffffffffffffffffffffffffffffffffffff1633141561036c57600080fd5b005b34600a60008282546103809190614df1565b9091555061036c9050610be8565b34801561039a57600080fd5b5061036c6103a9366004614b1c565b610c12565b61036c6103bc366004614b76565b610c34565b3480156103cd57600080fd5b50600d545b6040519081526020015b60405180910390f35b3480156103f157600080fd5b506104156104003660046148d0565b60076020526000908152604090205460ff1681565b60405190151581526020016103dc565b34801561043157600080fd5b5061036c610440366004614be8565b6110cf565b34801561045157600080fd5b506104656104603660046148ed565b61143e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103dc565b3480156104a257600080fd5b506104b66104b1366004614a60565b611468565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865267ffffffffffffffff948516602087015293909216928401929092526dffffffffffffffffffffffffffff918216606084015216608082015260a0016103dc565b34801561052157600080fd5b506103d2600f5481565b34801561053757600080fd5b5061036c610546366004614ac2565b6114fa565b34801561055757600080fd5b5061036c611aa4565b34801561056c57600080fd5b5061036c61057b366004614a60565b611baf565b34801561058c57600080fd5b5061036c61059b366004614ba8565b611bbc565b3480156105ac57600080fd5b5061036c6105bb3660046148d0565b611c90565b3480156105cc57600080fd5b506103d260105481565b3480156105e257600080fd5b506103d260035481565b3480156105f857600080fd5b5061036c610607366004614a92565b611e97565b34801561061857600080fd5b5061036c610627366004614a60565b611f19565b34801561063857600080fd5b5061036c610647366004614a60565b612135565b34801561065857600080fd5b5061036c610667366004614a26565b612360565b34801561067857600080fd5b506103d2600a5481565b34801561068e57600080fd5b5061036c61069d366004614ac2565b6123d4565b3480156106ae57600080fd5b506004546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103dc565b34801561070057600080fd5b5061036c61070f366004614a92565b6127c7565b34801561072057600080fd5b506103d2600c5481565b34801561073657600080fd5b506103d2600b5481565b34801561074c57600080fd5b506011546104159060ff1681565b34801561076657600080fd5b5061036c6107753660046149eb565b612a2f565b34801561078657600080fd5b5061036c612adf565b34801561079b57600080fd5b506103d260095481565b3480156107b157600080fd5b5061036c612b06565b3480156107c657600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166106cf565b3480156107f157600080fd5b506103d2610800366004614afa565b612b1a565b34801561081157600080fd5b50610825610820366004614a92565b612b2d565b6040516103dc929190614cb8565b34801561083f57600080fd5b506108e361084e366004614a92565b600e602090815260009283526040808420909152908252902080546001820154600283015460039093015461ffff8084169462010000850490911693640100000000810463ffffffff1693680100000000000000009091046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff808316936e010000000000000000000000000000909304811692911688565b6040805161ffff998a16815298909716602089015263ffffffff909516958701959095526bffffffffffffffffffffffff90921660608601526dffffffffffffffffffffffffffff908116608086015290811660a085015260c08401929092521660e0820152610100016103dc565b34801561095e57600080fd5b5060025461096d9061ffff1681565b60405161ffff90911681526020016103dc565b34801561098c57600080fd5b506008546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109b957600080fd5b5061036c6109c83660046148d0565b612ce8565b3480156109d957600080fd5b5061036c6109e8366004614c1d565b612d37565b3480156109f957600080fd5b506006546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a2657600080fd5b5061036c610a353660046148d0565b613019565b348015610a4657600080fd5b50610415610a553660046148d0565b60136020526000908152604090205460ff1681565b348015610a7657600080fd5b506103d2610a853660046148d0565b613070565b348015610a9657600080fd5b5061036c610aa53660046148d0565b613179565b348015610ab657600080fd5b50610415610ac53660046148d0565b60126020526000908152604090205460ff1681565b348015610ae657600080fd5b5061036c610af53660046148d0565b6131c8565b348015610b0657600080fd5b506103d2610b15366004614a92565b61321f565b348015610b2657600080fd5b5061036c610b35366004614a60565b6133de565b348015610b4657600080fd5b5061036c610b55366004614a60565b6138ad565b348015610b6657600080fd5b5061036c610b753660046148d0565b6138d3565b348015610b8657600080fd5b5060025461096d9062010000900461ffff1681565b348015610ba757600080fd5b5061036c610bb63660046148d0565b613927565b348015610bc757600080fd5b506005546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b610bf0612adf565b600c54600354610c009190614ea7565b600a54610c0d9190614e5d565b600955565b610c1a6139db565b610c2633848484613a4f565b610c2f60018055565b505050565b610c3c6139db565b610ca16040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b3360009081527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c6020526040902034610cd957600080fd5b62093a808310158015610cf95750610cf562093a806034614ea7565b8311155b8015610d1d5750610d0a4284614df1565b8154640100000000900463ffffffff1611155b610dae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f6164644c69717569646974794e6f466565416e645374616b65203a204c6f636b60448201527f206f7574206f662072616e67650000000000000000000000000000000000000060648201526084015b60405180910390fd5b610db86000611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610def57610def600033613e9c565b600480546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233928101929092523060248301526044820188905273ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610e6857600080fd5b505af1158015610e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea09190614a43565b50600d600081548110610eb557610eb5615037565b6000918252602080832060039092029091015473ffffffffffffffffffffffffffffffffffffffff908116855230918501829052606085018790526080850188905260408086018a90524260a087018190526005546004805493517ff305d71900000000000000000000000000000000000000000000000000000000815293851690840152602483018c9052604483018a9052606483018b9052608483019490945260a4820152911691908190839063f305d71990349060c4016060604051808303818588803b158015610f8857600080fd5b505af1158015610f9c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610fc19190614b48565b90935091503390506108fc610fd68434614f2e565b6040518115909202916000818181858888f19350505050158015610ffe573d6000803e3d6000fd5b506001840180548291906000906110269084906dffffffffffffffffffffffffffff16614da2565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff16021790555060008611156110725761106d33600088614070565b61107d565b61107d6000336127c7565b604080518281526020810188905260009133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350505050506110c960018055565b50505050565b6110d76139db565b6000600d8363ffffffff16815481106110f2576110f2615037565b6000918252602080832063ffffffff8088168552600e83526040808620338752909352919093208054600390930290930193504264010000000090920416106111e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610da5565b60018101546dffffffffffffffffffffffffffff1683118015906112075750600083115b61126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610da5565b61127c8463ffffffff16611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff161561135e576112b88463ffffffff1633613e9c565b80546801000000000000000090046bffffffffffffffffffffffff161561135e5780546113009033906801000000000000000090046bffffffffffffffffffffffff166143a3565b8054600282018054680100000000000000009092046bffffffffffffffffffffffff1691600090611332908490614df1565b909155505080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b600181015461137e9084906dffffffffffffffffffffffffffff16614f2e565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905581546113e29073ffffffffffffffffffffffffffffffffffffffff163385614411565b6113f28463ffffffff16336127c7565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505061143a60018055565b5050565b7f150b7a02000000000000000000000000000000000000000000000000000000005b949350505050565b600d818154811061147857600080fd5b600091825260209091206003909102018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff8216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff680100000000000000009091048116911685565b6115026139db565b6000838152600e60209081526040808320338085529252822060040154909190819061152d87611f19565b6115378785613e9c565b60005b6000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915290206004015481101561165b576000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89811685529252909120600401805491891691839081106115bd576115bd615037565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161415611649576000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152902060050180548791908390811061162c5761162c615037565b90600052602060002001541415611649576001925080935061165b565b8061165381614f71565b91505061153a565b506001821515146116c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610da5565b6002546000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091528120805461ffff9384169391929161171291859116614f13565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902060040161176d600183614f2e565b8154811061177d5761177d615037565b6000918252602080832090910154898352600e8252604080842073ffffffffffffffffffffffffffffffffffffffff898116865293529092206004018054919092169190859081106117d1576117d1615037565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055898252600e8152604080832093881683529290522060040180548061184557611845615008565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600e8152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206005016118d9600183614f2e565b815481106118e9576118e9615037565b6000918252602080832090910154898352600e8252604080842073ffffffffffffffffffffffffffffffffffffffff89168552909252912060050180548590811061193657611936615037565b6000918252602080832090910192909255888152600e8252604080822073ffffffffffffffffffffffffffffffffffffffff881683529092522060050180548061198257611982615008565b600190038181906000526020600020016000905590556119a287856127c7565b6040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611a8f91815260200190565b60405180910390a350505050610c2f60018055565b611aac6144e5565b4360105411611b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610da5565b4360105560005b600d54811015611bac5743600d8281548110611b6257611b62615037565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611ba490614f71565b915050611b44565b50565b611bb76144e5565b600355565b611bc46144e5565b8015611bd257611bd2612adf565b8167ffffffffffffffff16600d8481548110611bf057611bf0615037565b6000918252602090912060039091020154600f54611c309174010000000000000000000000000000000000000000900467ffffffffffffffff1690614f2e565b611c3a9190614df1565b600f8190555081600d8481548110611c5457611c54615037565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b611c986144e5565b73ffffffffffffffffffffffffffffffffffffffff811660009081526012602052604090205460ff1615611d4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611db657600080fd5b505afa158015611dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dee9190614a79565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b158015611e5f57600080fd5b505af1158015611e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2f9190614a43565b611e9f6139db565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091529020600101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16611efd57600080fd5b611f0682611f19565b611f108282613e9c565b61143a60018055565b6000600d8281548110611f2e57611f2e615037565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311611f5a575050565b60028101546dffffffffffffffffffffffffffff16801580611f9d5750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b15611fdb575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b6001820154600090611ff79067ffffffffffffffff1643612b1a565b600f5484546009549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906120339085614ea7565b61203d9190614ea7565b6120479190614e5d565b905080600b546120579190614df1565b600b55600a54612068908290614f2e565b600a558261207b8264e8d4a51000614ea7565b6120859190614e5d565b60018501546120b091906801000000000000000090046dffffffffffffffffffffffffffff16614df1565b60019490940180547fffffffffffffffffffff0000000000000000000000000000000000000000000016680100000000000000006dffffffffffffffffffffffffffff909616959095027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016949094174367ffffffffffffffff161790935550505050565b61213d6139db565b60115460ff1615156001146121d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6000600d82815481106121e9576121e9615037565b60009182526020808320858452600e82526040808520338652909252908320600181015460026003909402909201928301805493955090936dffffffffffffffffffffffffffff808416946e01000000000000000000000000000090940481169361225691859116614ee4565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000001690556003820180547fffffffffffffffffffffffffffffffffffff000000000000000000000000000016905581547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168255825461231d9073ffffffffffffffffffffffffffffffffffffffff163383614411565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a3505050611bac60018055565b6123686144e5565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b6123dc6139db565b33321461246b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f626f6f7374576974684e4654203a204465706f7369742066726f6d20636f6e7460448201527f726163742064697361626c6564000000000000000000000000000000000000006064820152608401610da5565b73ffffffffffffffffffffffffffffffffffffffff821660009081526007602052604090205460ff16612520576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610da5565b6000838152600e602090815260408083203384529091529020600101546dffffffffffffffffffffffffffff166125d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f626f6f7374576974684e46543a205265717569726573207374616b656420746f60448201527f6b656e73000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6002546000848152600e6020908152604080832033845290915290205461ffff62010000909204821691161061260d57600080fd5b61261683611f19565b6126208333613e9c565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff8316906342842e0e90606401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b5050506000848152600e6020908152604080832033808552908352908320600481018054600180820183559186528486200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a1617905560058201805491820181558552928420909201859055600254908352815461ffff918216945091929161274d91859116614dd4565b92506101000a81548161ffff021916908361ffff16021790555061277183336127c7565b60405181815273ffffffffffffffffffffffffffffffffffffffff83169033907f45a0b747ada8575b65125b2144e0de1ff692ff4510bb94a2f9695fcaf1d2bdf39060200160405180910390a3610c2f60018055565b6000600d83815481106127dc576127dc615037565b60009182526020808320868452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252908320600181015460026003909402909201928301549294509291612858916dffffffffffffffffffffffffffff6e01000000000000000000000000000090910481169116614ee4565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff1610156128ac5781547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682555b81546103e89061ffff808216916128cb91620100009091041683614dd4565b6128d59190614dd4565b60018401546128f89161ffff16906dffffffffffffffffffffffffffff16614e71565b6129029190614e30565b6001830180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff938416810291909117918290556129639291041682614df1565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9283161790556001808501549084015464e8d4a51000926129dc926801000000000000000090048116916e010000000000000000000000000000900416614e71565b6129e69190614e30565b60039290920180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9093169290921790915550505050565b3360009081526013602052604090205460ff161515600114612ad3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610da5565b6110c984848484613a4f565b600d5460005b8181101561143a57612af681611f19565b612aff81614f71565b9050612ae5565b612b0e6144e5565b612b186000614566565b565b6000612b268383614f2e565b9392505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206004810154606092839291908167ffffffffffffffff811115612b8157612b81615066565b604051908082528060200260200182016040528015612baa578160200160208202803683370190505b50905060008267ffffffffffffffff811115612bc857612bc8615066565b604051908082528060200260200182016040528015612bf1578160200160208202803683370190505b50905060005b83811015612cda57846004018181548110612c1457612c14615037565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110612c5157612c51615037565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846005018181548110612ca057612ca0615037565b9060005260206000200154828281518110612cbd57612cbd615037565b602090810291909101015280612cd281614f71565b915050612bf7565b509097909650945050505050565b612cf06144e5565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b612d3f6144e5565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054829060ff1615612df7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f6e6f6e4475706c6963617465643a204c5020546f6b656e20616c72656164792060448201527f61646465640000000000000000000000000000000000000000000000000000006064820152608401610da5565b8115612e0557612e05612adf565b60006010544311612e1857601054612e1a565b435b90508467ffffffffffffffff16600f54612e349190614df1565b600f5573ffffffffffffffffffffffffffffffffffffffff938416600081815260126020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155815160a08101835294855267ffffffffffffffff998a169285019283529489169084019081526060840183815260808501848152600d80549788018155909452935160039095027fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58101805493518b1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941696909916959095179190911790965594517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb68301805492516dffffffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffff00000000000000000000000000000000000000000000909416929098169190911791909117905592517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb79093018054939094167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000909316929092179092555050565b6130216144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff81811660008181527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be958207602052604080822060018101546004805493517f70a0823100000000000000000000000000000000000000000000000000000000815290810195909552929490936e0100000000000000000000000000009093046dffffffffffffffffffffffffffff16929116906370a082319060240160206040518083038186803b15801561313757600080fd5b505afa15801561314b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061316f9190614a79565b612b269190614df1565b6131816144e5565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6131d06144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600080600d848154811061323557613235615037565b60009182526020808320878452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff89168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e010000000000000000000000000000909404841693680100000000000000008304811693169167ffffffffffffffff16431180156132d357508115155b156133d25760018601546000906132f49067ffffffffffffffff1643612b1a565b600f5488546009549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906133309085614ea7565b61333a9190614ea7565b6133449190614e5d565b9050836133568264e8d4a51000614ea7565b6133609190614e5d565b61336a9086614df1565b875460038901549196506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a510006133af888a614ea7565b6133b99190614e5d565b6133c39190614f2e565b6133cd9190614df1565b925050505b98975050505050505050565b6133e66139db565b3360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902061341e6001611f19565b80546003820154600d80546000936801000000000000000090046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff169164e8d4a5100091600190811061347057613470615037565b600091825260209091206001600390920201810154908601546134c4916dffffffffffffffffffffffffffff680100000000000000009091048116916e010000000000000000000000000000900416614e71565b6134ce9190614e30565b6134d89190614ee4565b6134e29190614da2565b6dffffffffffffffffffffffffffff1690506000811161350157600080fd5b6040805160028082526060820183526000926020830190803683375050600654825192935073ffffffffffffffffffffffffffffffffffffffff169183915060009061354f5761354f615037565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201015260045482519116908290600190811061358d5761358d615037565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b548211156135d757600b5491505b600480546040517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925260009173ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b15801561364657600080fd5b505afa15801561365a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061367e9190614a79565b6005546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063b6f9de959085906136dd908990879030904290600401614d60565b6000604051808303818588803b1580156136f657600080fd5b505af115801561370a573d6000803e3d6000fd5b5050600480546040517f70a0823100000000000000000000000000000000000000000000000000000000815230928101929092526000945085935073ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b15801561377e57600080fd5b505afa158015613792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b69190614a79565b6137c09190614f2e565b60018601805491925082916000906137e99084906dffffffffffffffffffffffffffff16614da2565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168555600285018054859190600090613850908490614df1565b9091555061386190506001336127c7565b604080518281526000602082015260019133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a35050505050611bac60018055565b6138b56144e5565b6000811180156138c55750600e81105b6138ce57600080fd5b600c55565b6138db6144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b61392f6144e5565b73ffffffffffffffffffffffffffffffffffffffff81166139d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610da5565b611bac81614566565b60026001541415613a48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da5565b6002600155565b6000600d8481548110613a6457613a64615037565b60009182526020808320878452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff8b168652909252922060039091029091019150613aab85611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615613c7e5783158015613ae3575082155b15613c745780546003820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a5100093613b56939091048216916e01000000000000000000000000000090910416614e71565b613b609190614e30565b613b6a9190614ee4565b613b749190614da2565b6dffffffffffffffffffffffffffff1690508015613c4857613b9687826143a3565b80826002016000828254613baa9190614df1565b90915550506001808401549083015464e8d4a5100091613bfc916dffffffffffffffffffffffffffff680100000000000000009092048216916e01000000000000000000000000000090910416614e71565b613c069190614e30565b6003830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168155613c7e565b613c7e8587613e9c565b8315613e0e5762093a808310158015613ca45750613ca062093a806034614ea7565b8311155b8015613cc85750613cb54284614df1565b8154640100000000900463ffffffff1611155b613d7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605f60248201527f6465706f736974203a204c6f636b206f7574206f662072616e6765206f72207060448201527f726576696f75736c79206c6f636b656420746f6b656e7320617265206c6f636b60648201527f6564206c6f6e676572207468616e206e65772064657369726564206c6f636b00608482015260a401610da5565b8154613d9e9073ffffffffffffffffffffffffffffffffffffffff163330876145db565b6001810154613dbe9085906dffffffffffffffffffffffffffff16614df1565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905582613e0e57613e0e85876127c7565b8215613e1f57613e1f868685614070565b80544264010000000090910463ffffffff161015613e4157613e4185876127c7565b6040805185815260208101859052869173ffffffffffffffffffffffffffffffffffffffff8916917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a3505050505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091528120600d805491929185908110613ee257613ee2615037565b600091825260208220600385810154920201600181810154908601549194506dffffffffffffffffffffffffffff9283169264e8d4a5100092613f47926801000000000000000090048216916e01000000000000000000000000000090910416614e71565b613f519190614e30565b613f5b9190614ee4565b6dffffffffffffffffffffffffffff169050801561406957825481908490600890613fa19084906801000000000000000090046bffffffffffffffffffffffff16614e09565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661401d9190614e71565b6140279190614e30565b6003840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5050505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902060018101546dffffffffffffffffffffffffffff1661411a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610da5565b6141248242614df1565b8154640100000000900463ffffffff1611156141c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b62093a8082101561422f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610da5565b61423d62093a806034614ea7565b8211156142a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610da5565b6142b08242614df1565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556142f762093a806034614ea7565b614303836107d0614ea7565b61430d9190614e5d565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff90911617815561434c83856127c7565b604080514281526020810184905273ffffffffffffffffffffffffffffffffffffffff8616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b600b548111156143b25750600b545b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156143f5573d6000803e3d6000fd5b5080600b60008282546144089190614f2e565b90915550505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610c2f9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152614639565b60005473ffffffffffffffffffffffffffffffffffffffff163314612b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da5565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110c99085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401614463565b600061469b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166147459092919063ffffffff16565b805190915015610c2f57808060200190518101906146b99190614a43565b610c2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610da5565b60606114608484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516147799190614c9c565b60006040518083038185875af1925050503d80600081146147b6576040519150601f19603f3d011682016040523d82523d6000602084013e6147bb565b606091505b50915091506147cc878383876147d7565b979650505050505050565b6060831561486a5782516148635773ffffffffffffffffffffffffffffffffffffffff85163b614863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610da5565b5081611460565b611460838381511561487f5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da59190614d0f565b803567ffffffffffffffff811681146148cb57600080fd5b919050565b6000602082840312156148e257600080fd5b8135612b2681615095565b6000806000806080858703121561490357600080fd5b843561490e81615095565b9350602085013561491e81615095565b925060408501359150606085013567ffffffffffffffff8082111561494257600080fd5b818701915087601f83011261495657600080fd5b81358181111561496857614968615066565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156149ae576149ae615066565b816040528281528a60208487010111156149c757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060808587031215614a0157600080fd5b8435614a0c81615095565b966020860135965060408601359560600135945092505050565b600060208284031215614a3857600080fd5b8135612b26816150b7565b600060208284031215614a5557600080fd5b8151612b26816150b7565b600060208284031215614a7257600080fd5b5035919050565b600060208284031215614a8b57600080fd5b5051919050565b60008060408385031215614aa557600080fd5b823591506020830135614ab781615095565b809150509250929050565b600080600060608486031215614ad757600080fd5b833592506020840135614ae981615095565b929592945050506040919091013590565b60008060408385031215614b0d57600080fd5b50508035926020909101359150565b600080600060608486031215614b3157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215614b5d57600080fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215614b8c57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614bbd57600080fd5b83359250614bcd602085016148b3565b91506040840135614bdd816150b7565b809150509250925092565b60008060408385031215614bfb57600080fd5b823563ffffffff81168114614c0f57600080fd5b946020939093013593505050565b600080600060608486031215614c3257600080fd5b614c3b846148b3565b92506020840135614bcd81615095565b600081518084526020808501945080840160005b83811015614c9157815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101614c5f565b509495945050505050565b60008251614cae818460208701614f45565b9190910192915050565b604081526000614ccb6040830185614c4b565b82810360208481019190915284518083528582019282019060005b81811015614d0257845183529383019391830191600101614ce6565b5090979650505050505050565b6020815260008251806020840152614d2e816040850160208701614f45565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b848152608060208201526000614d796080830186614c4b565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b60006dffffffffffffffffffffffffffff808316818516808303821115614dcb57614dcb614faa565b01949350505050565b600061ffff808316818516808303821115614dcb57614dcb614faa565b60008219821115614e0457614e04614faa565b500190565b60006bffffffffffffffffffffffff808316818516808303821115614dcb57614dcb614faa565b60006dffffffffffffffffffffffffffff80841680614e5157614e51614fd9565b92169190910492915050565b600082614e6c57614e6c614fd9565b500490565b60006dffffffffffffffffffffffffffff80831681851681830481118215151615614e9e57614e9e614faa565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614edf57614edf614faa565b500290565b60006dffffffffffffffffffffffffffff83811690831681811015614f0b57614f0b614faa565b039392505050565b600061ffff83811690831681811015614f0b57614f0b614faa565b600082821015614f4057614f40614faa565b500390565b60005b83811015614f60578181015183820152602001614f48565b838111156110c95750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa357614fa3614faa565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611bac57600080fd5b8015158114611bac57600080fdfea26469706673582212204e2daaaa34315da20c99a94dd9f18ecbd50317bde3d0948e90dcc38c0c7f369e64736f6c63430008070033000000000000000000000000296233e84c1d7bff11121bf6d60f0ffa39c3f0cf0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x6080604052600436106103425760003560e01c8063614f3364116101b0578063b6a5d7de116100ec578063d18df53c11610095578063f0b37c041161006f578063f0b37c0414610b5a578063f0e2058214610b7a578063f2fde38b14610b9b578063f887ea4014610bbb5761036e565b8063d18df53c14610afa578063d89ea34b14610b1a578063e1886f6914610b3a5761036e565b8063c0d78655116100c6578063c0d7865514610a8a578063cbd258b514610aaa578063cfac5d7c14610ada5761036e565b8063b6a5d7de14610a1a578063b918161114610a3a578063bb4d443614610a6a5761036e565b806390998c9d11610159578063a04e5c0411610133578063a04e5c0414610980578063a5bb096d146109ad578063aa97b0a0146109cd578063ad5c4648146109ed5761036e565b806390998c9d1461080557806393f1a40b146108335780639ca1af8c146109525761036e565b8063715018a61161018a578063715018a6146107a55780638da5cb5b146107ba5780638dbb1e3a146107e55761036e565b8063614f33641461075a578063630b5ba11461077a57806367dcaf941461078f5761036e565b806348cd4cb11161027f57806354f29ce2116102285780635dd19829116102025780635dd19829146106f45780635f228a3d146107145780635f2ecf8a1461072a5780635f9e8f82146107405761036e565b806354f29ce21461066c5780635975e332146106825780635c7dd3ff146106a25761036e565b806351eb05a61161025957806351eb05a61461060c5780635312ea8e1461062c578063533981191461064c5761036e565b806348cd4cb1146105c05780634cfea68a146105d65780634d90dd42146105ec5761036e565b80631526fe27116102ec5780632dfd0bdc116102c65780632dfd0bdc1461054b578063353b6c2c14610560578063401519b6146105805780634460d3cf146105a05761036e565b80631526fe271461049657806317caf6f1146105155780632d5310e71461052b5761036e565b806309aaf6841161031d57806309aaf684146103e55780630e19dc3a14610425578063150b7a02146104455761036e565b8062aeef8a1461038e57806306f43a8c146103ae578063081e3eda146103c15761036e565b3661036e5760085473ffffffffffffffffffffffffffffffffffffffff1633141561036c57600080fd5b005b34600a60008282546103809190614df1565b9091555061036c9050610be8565b34801561039a57600080fd5b5061036c6103a9366004614b1c565b610c12565b61036c6103bc366004614b76565b610c34565b3480156103cd57600080fd5b50600d545b6040519081526020015b60405180910390f35b3480156103f157600080fd5b506104156104003660046148d0565b60076020526000908152604090205460ff1681565b60405190151581526020016103dc565b34801561043157600080fd5b5061036c610440366004614be8565b6110cf565b34801561045157600080fd5b506104656104603660046148ed565b61143e565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103dc565b3480156104a257600080fd5b506104b66104b1366004614a60565b611468565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865267ffffffffffffffff948516602087015293909216928401929092526dffffffffffffffffffffffffffff918216606084015216608082015260a0016103dc565b34801561052157600080fd5b506103d2600f5481565b34801561053757600080fd5b5061036c610546366004614ac2565b6114fa565b34801561055757600080fd5b5061036c611aa4565b34801561056c57600080fd5b5061036c61057b366004614a60565b611baf565b34801561058c57600080fd5b5061036c61059b366004614ba8565b611bbc565b3480156105ac57600080fd5b5061036c6105bb3660046148d0565b611c90565b3480156105cc57600080fd5b506103d260105481565b3480156105e257600080fd5b506103d260035481565b3480156105f857600080fd5b5061036c610607366004614a92565b611e97565b34801561061857600080fd5b5061036c610627366004614a60565b611f19565b34801561063857600080fd5b5061036c610647366004614a60565b612135565b34801561065857600080fd5b5061036c610667366004614a26565b612360565b34801561067857600080fd5b506103d2600a5481565b34801561068e57600080fd5b5061036c61069d366004614ac2565b6123d4565b3480156106ae57600080fd5b506004546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016103dc565b34801561070057600080fd5b5061036c61070f366004614a92565b6127c7565b34801561072057600080fd5b506103d2600c5481565b34801561073657600080fd5b506103d2600b5481565b34801561074c57600080fd5b506011546104159060ff1681565b34801561076657600080fd5b5061036c6107753660046149eb565b612a2f565b34801561078657600080fd5b5061036c612adf565b34801561079b57600080fd5b506103d260095481565b3480156107b157600080fd5b5061036c612b06565b3480156107c657600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166106cf565b3480156107f157600080fd5b506103d2610800366004614afa565b612b1a565b34801561081157600080fd5b50610825610820366004614a92565b612b2d565b6040516103dc929190614cb8565b34801561083f57600080fd5b506108e361084e366004614a92565b600e602090815260009283526040808420909152908252902080546001820154600283015460039093015461ffff8084169462010000850490911693640100000000810463ffffffff1693680100000000000000009091046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff808316936e010000000000000000000000000000909304811692911688565b6040805161ffff998a16815298909716602089015263ffffffff909516958701959095526bffffffffffffffffffffffff90921660608601526dffffffffffffffffffffffffffff908116608086015290811660a085015260c08401929092521660e0820152610100016103dc565b34801561095e57600080fd5b5060025461096d9061ffff1681565b60405161ffff90911681526020016103dc565b34801561098c57600080fd5b506008546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156109b957600080fd5b5061036c6109c83660046148d0565b612ce8565b3480156109d957600080fd5b5061036c6109e8366004614c1d565b612d37565b3480156109f957600080fd5b506006546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610a2657600080fd5b5061036c610a353660046148d0565b613019565b348015610a4657600080fd5b50610415610a553660046148d0565b60136020526000908152604090205460ff1681565b348015610a7657600080fd5b506103d2610a853660046148d0565b613070565b348015610a9657600080fd5b5061036c610aa53660046148d0565b613179565b348015610ab657600080fd5b50610415610ac53660046148d0565b60126020526000908152604090205460ff1681565b348015610ae657600080fd5b5061036c610af53660046148d0565b6131c8565b348015610b0657600080fd5b506103d2610b15366004614a92565b61321f565b348015610b2657600080fd5b5061036c610b35366004614a60565b6133de565b348015610b4657600080fd5b5061036c610b55366004614a60565b6138ad565b348015610b6657600080fd5b5061036c610b753660046148d0565b6138d3565b348015610b8657600080fd5b5060025461096d9062010000900461ffff1681565b348015610ba757600080fd5b5061036c610bb63660046148d0565b613927565b348015610bc757600080fd5b506005546106cf9073ffffffffffffffffffffffffffffffffffffffff1681565b610bf0612adf565b600c54600354610c009190614ea7565b600a54610c0d9190614e5d565b600955565b610c1a6139db565b610c2633848484613a4f565b610c2f60018055565b505050565b610c3c6139db565b610ca16040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081525090565b3360009081527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c6020526040902034610cd957600080fd5b62093a808310158015610cf95750610cf562093a806034614ea7565b8311155b8015610d1d5750610d0a4284614df1565b8154640100000000900463ffffffff1611155b610dae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f6164644c69717569646974794e6f466565416e645374616b65203a204c6f636b60448201527f206f7574206f662072616e67650000000000000000000000000000000000000060648201526084015b60405180910390fd5b610db86000611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610def57610def600033613e9c565b600480546040517f23b872dd00000000000000000000000000000000000000000000000000000000815233928101929092523060248301526044820188905273ffffffffffffffffffffffffffffffffffffffff16906323b872dd90606401602060405180830381600087803b158015610e6857600080fd5b505af1158015610e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea09190614a43565b50600d600081548110610eb557610eb5615037565b6000918252602080832060039092029091015473ffffffffffffffffffffffffffffffffffffffff908116855230918501829052606085018790526080850188905260408086018a90524260a087018190526005546004805493517ff305d71900000000000000000000000000000000000000000000000000000000815293851690840152602483018c9052604483018a9052606483018b9052608483019490945260a4820152911691908190839063f305d71990349060c4016060604051808303818588803b158015610f8857600080fd5b505af1158015610f9c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610fc19190614b48565b90935091503390506108fc610fd68434614f2e565b6040518115909202916000818181858888f19350505050158015610ffe573d6000803e3d6000fd5b506001840180548291906000906110269084906dffffffffffffffffffffffffffff16614da2565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff16021790555060008611156110725761106d33600088614070565b61107d565b61107d6000336127c7565b604080518281526020810188905260009133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a350505050506110c960018055565b50505050565b6110d76139db565b6000600d8363ffffffff16815481106110f2576110f2615037565b6000918252602080832063ffffffff8088168552600e83526040808620338752909352919093208054600390930290930193504264010000000090920416106111e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610da5565b60018101546dffffffffffffffffffffffffffff1683118015906112075750600083115b61126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610da5565b61127c8463ffffffff16611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff161561135e576112b88463ffffffff1633613e9c565b80546801000000000000000090046bffffffffffffffffffffffff161561135e5780546113009033906801000000000000000090046bffffffffffffffffffffffff166143a3565b8054600282018054680100000000000000009092046bffffffffffffffffffffffff1691600090611332908490614df1565b909155505080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b600181015461137e9084906dffffffffffffffffffffffffffff16614f2e565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905581546113e29073ffffffffffffffffffffffffffffffffffffffff163385614411565b6113f28463ffffffff16336127c7565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505061143a60018055565b5050565b7f150b7a02000000000000000000000000000000000000000000000000000000005b949350505050565b600d818154811061147857600080fd5b600091825260209091206003909102018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff8216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff680100000000000000009091048116911685565b6115026139db565b6000838152600e60209081526040808320338085529252822060040154909190819061152d87611f19565b6115378785613e9c565b60005b6000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8916845290915290206004015481101561165b576000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89811685529252909120600401805491891691839081106115bd576115bd615037565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161415611649576000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff89168452909152902060050180548791908390811061162c5761162c615037565b90600052602060002001541415611649576001925080935061165b565b8061165381614f71565b91505061153a565b506001821515146116c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610da5565b6002546000888152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684529091528120805461ffff9384169391929161171291859116614f13565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902060040161176d600183614f2e565b8154811061177d5761177d615037565b6000918252602080832090910154898352600e8252604080842073ffffffffffffffffffffffffffffffffffffffff898116865293529092206004018054919092169190859081106117d1576117d1615037565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055898252600e8152604080832093881683529290522060040180548061184557611845615008565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600e8152604080832073ffffffffffffffffffffffffffffffffffffffff8816845290915290206005016118d9600183614f2e565b815481106118e9576118e9615037565b6000918252602080832090910154898352600e8252604080842073ffffffffffffffffffffffffffffffffffffffff89168552909252912060050180548590811061193657611936615037565b6000918252602080832090910192909255888152600e8252604080822073ffffffffffffffffffffffffffffffffffffffff881683529092522060050180548061198257611982615008565b600190038181906000526020600020016000905590556119a287856127c7565b6040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b505050508573ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611a8f91815260200190565b60405180910390a350505050610c2f60018055565b611aac6144e5565b4360105411611b3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610da5565b4360105560005b600d54811015611bac5743600d8281548110611b6257611b62615037565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611ba490614f71565b915050611b44565b50565b611bb76144e5565b600355565b611bc46144e5565b8015611bd257611bd2612adf565b8167ffffffffffffffff16600d8481548110611bf057611bf0615037565b6000918252602090912060039091020154600f54611c309174010000000000000000000000000000000000000000900467ffffffffffffffff1690614f2e565b611c3a9190614df1565b600f8190555081600d8481548110611c5457611c54615037565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b611c986144e5565b73ffffffffffffffffffffffffffffffffffffffff811660009081526012602052604090205460ff1615611d4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611db657600080fd5b505afa158015611dca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dee9190614a79565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810182905290915073ffffffffffffffffffffffffffffffffffffffff83169063a9059cbb90604401602060405180830381600087803b158015611e5f57600080fd5b505af1158015611e73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2f9190614a43565b611e9f6139db565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091529020600101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16611efd57600080fd5b611f0682611f19565b611f108282613e9c565b61143a60018055565b6000600d8281548110611f2e57611f2e615037565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311611f5a575050565b60028101546dffffffffffffffffffffffffffff16801580611f9d5750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b15611fdb575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b6001820154600090611ff79067ffffffffffffffff1643612b1a565b600f5484546009549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906120339085614ea7565b61203d9190614ea7565b6120479190614e5d565b905080600b546120579190614df1565b600b55600a54612068908290614f2e565b600a558261207b8264e8d4a51000614ea7565b6120859190614e5d565b60018501546120b091906801000000000000000090046dffffffffffffffffffffffffffff16614df1565b60019490940180547fffffffffffffffffffff0000000000000000000000000000000000000000000016680100000000000000006dffffffffffffffffffffffffffff909616959095027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016949094174367ffffffffffffffff161790935550505050565b61213d6139db565b60115460ff1615156001146121d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6000600d82815481106121e9576121e9615037565b60009182526020808320858452600e82526040808520338652909252908320600181015460026003909402909201928301805493955090936dffffffffffffffffffffffffffff808416946e01000000000000000000000000000090940481169361225691859116614ee4565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000001690556003820180547fffffffffffffffffffffffffffffffffffff000000000000000000000000000016905581547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168255825461231d9073ffffffffffffffffffffffffffffffffffffffff163383614411565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a3505050611bac60018055565b6123686144e5565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168215159081179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b6123dc6139db565b33321461246b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f626f6f7374576974684e4654203a204465706f7369742066726f6d20636f6e7460448201527f726163742064697361626c6564000000000000000000000000000000000000006064820152608401610da5565b73ffffffffffffffffffffffffffffffffffffffff821660009081526007602052604090205460ff16612520576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610da5565b6000838152600e602090815260408083203384529091529020600101546dffffffffffffffffffffffffffff166125d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f626f6f7374576974684e46543a205265717569726573207374616b656420746f60448201527f6b656e73000000000000000000000000000000000000000000000000000000006064820152608401610da5565b6002546000848152600e6020908152604080832033845290915290205461ffff62010000909204821691161061260d57600080fd5b61261683611f19565b6126208333613e9c565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810182905273ffffffffffffffffffffffffffffffffffffffff8316906342842e0e90606401600060405180830381600087803b15801561269457600080fd5b505af11580156126a8573d6000803e3d6000fd5b5050506000848152600e6020908152604080832033808552908352908320600481018054600180820183559186528486200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a1617905560058201805491820181558552928420909201859055600254908352815461ffff918216945091929161274d91859116614dd4565b92506101000a81548161ffff021916908361ffff16021790555061277183336127c7565b60405181815273ffffffffffffffffffffffffffffffffffffffff83169033907f45a0b747ada8575b65125b2144e0de1ff692ff4510bb94a2f9695fcaf1d2bdf39060200160405180910390a3610c2f60018055565b6000600d83815481106127dc576127dc615037565b60009182526020808320868452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252908320600181015460026003909402909201928301549294509291612858916dffffffffffffffffffffffffffff6e01000000000000000000000000000090910481169116614ee4565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff1610156128ac5781547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682555b81546103e89061ffff808216916128cb91620100009091041683614dd4565b6128d59190614dd4565b60018401546128f89161ffff16906dffffffffffffffffffffffffffff16614e71565b6129029190614e30565b6001830180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff938416810291909117918290556129639291041682614df1565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9283161790556001808501549084015464e8d4a51000926129dc926801000000000000000090048116916e010000000000000000000000000000900416614e71565b6129e69190614e30565b60039290920180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9093169290921790915550505050565b3360009081526013602052604090205460ff161515600114612ad3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610da5565b6110c984848484613a4f565b600d5460005b8181101561143a57612af681611f19565b612aff81614f71565b9050612ae5565b612b0e6144e5565b612b186000614566565b565b6000612b268383614f2e565b9392505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915281206004810154606092839291908167ffffffffffffffff811115612b8157612b81615066565b604051908082528060200260200182016040528015612baa578160200160208202803683370190505b50905060008267ffffffffffffffff811115612bc857612bc8615066565b604051908082528060200260200182016040528015612bf1578160200160208202803683370190505b50905060005b83811015612cda57846004018181548110612c1457612c14615037565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110612c5157612c51615037565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050846005018181548110612ca057612ca0615037565b9060005260206000200154828281518110612cbd57612cbd615037565b602090810291909101015280612cd281614f71565b915050612bf7565b509097909650945050505050565b612cf06144e5565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b612d3f6144e5565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260126020526040902054829060ff1615612df7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f6e6f6e4475706c6963617465643a204c5020546f6b656e20616c72656164792060448201527f61646465640000000000000000000000000000000000000000000000000000006064820152608401610da5565b8115612e0557612e05612adf565b60006010544311612e1857601054612e1a565b435b90508467ffffffffffffffff16600f54612e349190614df1565b600f5573ffffffffffffffffffffffffffffffffffffffff938416600081815260126020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155815160a08101835294855267ffffffffffffffff998a169285019283529489169084019081526060840183815260808501848152600d80549788018155909452935160039095027fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb58101805493518b1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941696909916959095179190911790965594517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb68301805492516dffffffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffff00000000000000000000000000000000000000000000909416929098169190911791909117905592517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb79093018054939094167fffffffffffffffffffffffffffffffffffff0000000000000000000000000000909316929092179092555050565b6130216144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff81811660008181527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be958207602052604080822060018101546004805493517f70a0823100000000000000000000000000000000000000000000000000000000815290810195909552929490936e0100000000000000000000000000009093046dffffffffffffffffffffffffffff16929116906370a082319060240160206040518083038186803b15801561313757600080fd5b505afa15801561314b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061316f9190614a79565b612b269190614df1565b6131816144e5565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6131d06144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600080600d848154811061323557613235615037565b60009182526020808320878452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff89168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e010000000000000000000000000000909404841693680100000000000000008304811693169167ffffffffffffffff16431180156132d357508115155b156133d25760018601546000906132f49067ffffffffffffffff1643612b1a565b600f5488546009549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906133309085614ea7565b61333a9190614ea7565b6133449190614e5d565b9050836133568264e8d4a51000614ea7565b6133609190614e5d565b61336a9086614df1565b875460038901549196506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a510006133af888a614ea7565b6133b99190614e5d565b6133c39190614f2e565b6133cd9190614df1565b925050505b98975050505050505050565b6133e66139db565b3360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902061341e6001611f19565b80546003820154600d80546000936801000000000000000090046bffffffffffffffffffffffff16926dffffffffffffffffffffffffffff169164e8d4a5100091600190811061347057613470615037565b600091825260209091206001600390920201810154908601546134c4916dffffffffffffffffffffffffffff680100000000000000009091048116916e010000000000000000000000000000900416614e71565b6134ce9190614e30565b6134d89190614ee4565b6134e29190614da2565b6dffffffffffffffffffffffffffff1690506000811161350157600080fd5b6040805160028082526060820183526000926020830190803683375050600654825192935073ffffffffffffffffffffffffffffffffffffffff169183915060009061354f5761354f615037565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201015260045482519116908290600190811061358d5761358d615037565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b548211156135d757600b5491505b600480546040517f70a08231000000000000000000000000000000000000000000000000000000008152309281019290925260009173ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b15801561364657600080fd5b505afa15801561365a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061367e9190614a79565b6005546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063b6f9de959085906136dd908990879030904290600401614d60565b6000604051808303818588803b1580156136f657600080fd5b505af115801561370a573d6000803e3d6000fd5b5050600480546040517f70a0823100000000000000000000000000000000000000000000000000000000815230928101929092526000945085935073ffffffffffffffffffffffffffffffffffffffff1691506370a082319060240160206040518083038186803b15801561377e57600080fd5b505afa158015613792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b69190614a79565b6137c09190614f2e565b60018601805491925082916000906137e99084906dffffffffffffffffffffffffffff16614da2565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168555600285018054859190600090613850908490614df1565b9091555061386190506001336127c7565b604080518281526000602082015260019133917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a35050505050611bac60018055565b6138b56144e5565b6000811180156138c55750600e81105b6138ce57600080fd5b600c55565b6138db6144e5565b73ffffffffffffffffffffffffffffffffffffffff16600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b61392f6144e5565b73ffffffffffffffffffffffffffffffffffffffff81166139d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610da5565b611bac81614566565b60026001541415613a48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610da5565b6002600155565b6000600d8481548110613a6457613a64615037565b60009182526020808320878452600e8252604080852073ffffffffffffffffffffffffffffffffffffffff8b168652909252922060039091029091019150613aab85611f19565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615613c7e5783158015613ae3575082155b15613c745780546003820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a5100093613b56939091048216916e01000000000000000000000000000090910416614e71565b613b609190614e30565b613b6a9190614ee4565b613b749190614da2565b6dffffffffffffffffffffffffffff1690508015613c4857613b9687826143a3565b80826002016000828254613baa9190614df1565b90915550506001808401549083015464e8d4a5100091613bfc916dffffffffffffffffffffffffffff680100000000000000009092048216916e01000000000000000000000000000090910416614e71565b613c069190614e30565b6003830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5080547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff168155613c7e565b613c7e8587613e9c565b8315613e0e5762093a808310158015613ca45750613ca062093a806034614ea7565b8311155b8015613cc85750613cb54284614df1565b8154640100000000900463ffffffff1611155b613d7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152605f60248201527f6465706f736974203a204c6f636b206f7574206f662072616e6765206f72207060448201527f726576696f75736c79206c6f636b656420746f6b656e7320617265206c6f636b60648201527f6564206c6f6e676572207468616e206e65772064657369726564206c6f636b00608482015260a401610da5565b8154613d9e9073ffffffffffffffffffffffffffffffffffffffff163330876145db565b6001810154613dbe9085906dffffffffffffffffffffffffffff16614df1565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905582613e0e57613e0e85876127c7565b8215613e1f57613e1f868685614070565b80544264010000000090910463ffffffff161015613e4157613e4185876127c7565b6040805185815260208101859052869173ffffffffffffffffffffffffffffffffffffffff8916917f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e910160405180910390a3505050505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff851684529091528120600d805491929185908110613ee257613ee2615037565b600091825260208220600385810154920201600181810154908601549194506dffffffffffffffffffffffffffff9283169264e8d4a5100092613f47926801000000000000000090048216916e01000000000000000000000000000090910416614e71565b613f519190614e30565b613f5b9190614ee4565b6dffffffffffffffffffffffffffff169050801561406957825481908490600890613fa19084906801000000000000000090046bffffffffffffffffffffffff16614e09565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661401d9190614e71565b6140279190614e30565b6003840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b5050505050565b6000828152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152902060018101546dffffffffffffffffffffffffffff1661411a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610da5565b6141248242614df1565b8154640100000000900463ffffffff1611156141c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610da5565b62093a8082101561422f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610da5565b61423d62093a806034614ea7565b8211156142a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610da5565b6142b08242614df1565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556142f762093a806034614ea7565b614303836107d0614ea7565b61430d9190614e5d565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff90911617815561434c83856127c7565b604080514281526020810184905273ffffffffffffffffffffffffffffffffffffffff8616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b600b548111156143b25750600b545b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156143f5573d6000803e3d6000fd5b5080600b60008282546144089190614f2e565b90915550505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610c2f9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152614639565b60005473ffffffffffffffffffffffffffffffffffffffff163314612b18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610da5565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110c99085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401614463565b600061469b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166147459092919063ffffffff16565b805190915015610c2f57808060200190518101906146b99190614a43565b610c2f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610da5565b60606114608484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516147799190614c9c565b60006040518083038185875af1925050503d80600081146147b6576040519150601f19603f3d011682016040523d82523d6000602084013e6147bb565b606091505b50915091506147cc878383876147d7565b979650505050505050565b6060831561486a5782516148635773ffffffffffffffffffffffffffffffffffffffff85163b614863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610da5565b5081611460565b611460838381511561487f5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da59190614d0f565b803567ffffffffffffffff811681146148cb57600080fd5b919050565b6000602082840312156148e257600080fd5b8135612b2681615095565b6000806000806080858703121561490357600080fd5b843561490e81615095565b9350602085013561491e81615095565b925060408501359150606085013567ffffffffffffffff8082111561494257600080fd5b818701915087601f83011261495657600080fd5b81358181111561496857614968615066565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156149ae576149ae615066565b816040528281528a60208487010111156149c757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060808587031215614a0157600080fd5b8435614a0c81615095565b966020860135965060408601359560600135945092505050565b600060208284031215614a3857600080fd5b8135612b26816150b7565b600060208284031215614a5557600080fd5b8151612b26816150b7565b600060208284031215614a7257600080fd5b5035919050565b600060208284031215614a8b57600080fd5b5051919050565b60008060408385031215614aa557600080fd5b823591506020830135614ab781615095565b809150509250929050565b600080600060608486031215614ad757600080fd5b833592506020840135614ae981615095565b929592945050506040919091013590565b60008060408385031215614b0d57600080fd5b50508035926020909101359150565b600080600060608486031215614b3157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215614b5d57600080fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215614b8c57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614bbd57600080fd5b83359250614bcd602085016148b3565b91506040840135614bdd816150b7565b809150509250925092565b60008060408385031215614bfb57600080fd5b823563ffffffff81168114614c0f57600080fd5b946020939093013593505050565b600080600060608486031215614c3257600080fd5b614c3b846148b3565b92506020840135614bcd81615095565b600081518084526020808501945080840160005b83811015614c9157815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101614c5f565b509495945050505050565b60008251614cae818460208701614f45565b9190910192915050565b604081526000614ccb6040830185614c4b565b82810360208481019190915284518083528582019282019060005b81811015614d0257845183529383019391830191600101614ce6565b5090979650505050505050565b6020815260008251806020840152614d2e816040850160208701614f45565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b848152608060208201526000614d796080830186614c4b565b73ffffffffffffffffffffffffffffffffffffffff949094166040830152506060015292915050565b60006dffffffffffffffffffffffffffff808316818516808303821115614dcb57614dcb614faa565b01949350505050565b600061ffff808316818516808303821115614dcb57614dcb614faa565b60008219821115614e0457614e04614faa565b500190565b60006bffffffffffffffffffffffff808316818516808303821115614dcb57614dcb614faa565b60006dffffffffffffffffffffffffffff80841680614e5157614e51614fd9565b92169190910492915050565b600082614e6c57614e6c614fd9565b500490565b60006dffffffffffffffffffffffffffff80831681851681830481118215151615614e9e57614e9e614faa565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614edf57614edf614faa565b500290565b60006dffffffffffffffffffffffffffff83811690831681811015614f0b57614f0b614faa565b039392505050565b600061ffff83811690831681811015614f0b57614f0b614faa565b600082821015614f4057614f40614faa565b500390565b60005b83811015614f60578181015183820152602001614f48565b838111156110c95750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa357614fa3614faa565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611bac57600080fd5b8015158114611bac57600080fdfea26469706673582212204e2daaaa34315da20c99a94dd9f18ecbd50317bde3d0948e90dcc38c0c7f369e64736f6c63430008070033

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

000000000000000000000000296233e84c1d7bff11121bf6d60f0ffa39c3f0cf0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _noone (address): 0x296233E84c1D7bfF11121BF6D60f0FFA39C3f0cf
Arg [1] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000296233e84c1d7bff11121bf6d60f0ffa39c3f0cf
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.