ETH Price: $2,455.25 (-1.31%)

Token

YieldInu (YINU)
 

Overview

Max Total Supply

39,098,173,516,068,968,612.817351598173515981 YINU

Holders

103

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
342,801.168810144986901824 YINU

Value
$0.00
0xAB773A288ab6E82Eb56b660a43AA0D89F5ca80F4
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
YieldInu

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : YieldInu.sol
/**
                              
YieldINU - A sustainable staking solution.

Up to 450% APY when staking 360 days.

Vested rewards for protocol health. Bonding used to ensure ecosystem sustainability.


Join us at -
Web: https://yieldinu.online
telegram: https://t.me/YieldInuPortal

 */

 // SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;


import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./YieldInuStaking.sol";

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

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

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

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

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

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

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

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

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

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

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

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

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

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

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

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

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

    function WETH() external pure returns (address);

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

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

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

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

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

contract YieldInu is ERC20, Ownable, YieldInuStaking {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0xdead);

    bool private swapping;

    address public devWallet;
    address public treasuryWallet;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    uint256 public enableBlock;

    // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
    mapping (address => bool) public bots;
    bool public transferDelayEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buyDevFee;
    uint256 public buyTreasuryFee;
    uint256 public buyLiquidityFee;

    uint256 public sellTotalFees;
    uint256 public sellDevFee;
    uint256 public sellTreasuryFee;
    uint256 public sellLiquidityFee;

    uint256 public tokensForTreasury;
    uint256 public tokensForDev;
    uint256 public tokensForLiquidity;

    // exlcude from fees and max transaction amount
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping(address => bool) public automatedMarketMakerPairs;

    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    );

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event TreasuryWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );

    event devWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    );

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    //ADD STAKE EVENTS HERE

    constructor() ERC20("YieldInu", "YINU") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        uint256 _buyTreasuryFee = 1;
        uint256 _buyDevFee = 1;
        uint256 _buyLiquidityFee = 1;

        uint256 _sellTreasuryFee = 1;
        uint256 _sellDevFee = 1;
        uint256 _sellLiquidityFee = 1;

        uint256 totalSupply = 88_888_888 * 1e18;

        maxTransactionAmount = 1_777_777 * 1e18; // 2% from total supply maxTransactionAmountTxn
        maxWallet = 1_777_777 * 1e18; // 2% from total supply maxWallet
        swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swap wallet

        buyTreasuryFee = _buyTreasuryFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyDevFee = _buyDevFee;
        buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyDevFee;

        sellTreasuryFee = _sellTreasuryFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellDevFee = _sellDevFee;
        sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;

        treasuryWallet = address(owner()); // set as Treasury wallet
        devWallet = address(owner()); // set as dev wallet

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */

        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}


    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
        enableBlock = block.number;
    }

    function initializePlans() public onlyOwner {
        _createPlans();
    }

        // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        return true;
    }

    // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool) {
        transferDelayEnabled = false;
        return true;
    }

    // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount)
        external
        onlyOwner
        returns (bool)
    {
        require(
            newAmount >= (totalSupply() * 1) / 100000,
            "Swap amount cannot be lower than 0.001% total supply."
        );
        require(
            newAmount <= (totalSupply() * 5) / 1000,
            "Swap amount cannot be higher than 0.5% total supply."
        );
        swapTokensAtAmount = newAmount;
        return true;
    }

    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 1) / 1000) / 1e18,
            "Cannot set maxTransactionAmount lower than 0.1%"
        );
        maxTransactionAmount = newNum * (10**18);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(
            newNum >= ((totalSupply() * 5) / 1000) / 1e18,
            "Cannot set maxWallet lower than 0.5%"
        );
        maxWallet = newNum * (10**18);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx)
        public
        onlyOwner
    {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function updateBuyFees(
        uint256 _TreasuryFee,
        uint256 _liquidityFee,
        uint256 _devFee
    ) external onlyOwner {
        buyTreasuryFee = _TreasuryFee;
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _devFee;
        buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyDevFee;
        require(buyTotalFees <= 5, "Must keep fees at 5% or less");
    }

    function updateSellFees(
        uint256 _TreasuryFee,
        uint256 _liquidityFee,
        uint256 _devFee
    ) external onlyOwner {
        sellTreasuryFee = _TreasuryFee;
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _devFee;
        sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
        require(sellTotalFees <= 5, "Must keep fees at 5% or less");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value)
        public
        onlyOwner
    {
        require(
            pair != uniswapV2Pair,
            "The pair cannot be removed from automatedMarketMakerPairs"
        );

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

        function updateTreasuryWallet(address newTreasuryWallet)
        external
        onlyOwner
    {
        emit TreasuryWalletUpdated(newTreasuryWallet, treasuryWallet);
        treasuryWallet = newTreasuryWallet;
    }

    function updateDevWallet(address newWallet) external onlyOwner {
        emit devWalletUpdated(newWallet, devWallet);
        devWallet = newWallet;
    }

    function isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    event BoughtEarly(address indexed sniper);

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (bots[from] || bots[to]){
            super._transfer(from, to, 0);
            return; 
        }

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ) {
                if (!tradingActive) {
                    require(
                        _isExcludedFromFees[from] || _isExcludedFromFees[to],
                        "Trading is not active."
                    );
                }

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
                if (transferDelayEnabled) {
                    if (
                        to != owner() &&
                        to != address(uniswapV2Router) &&
                        to != address(uniswapV2Pair)
                    ) {
                        require(
                            _holderLastTransferTimestamp[tx.origin] <
                                block.number,
                            "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed."
                        );
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                    }
                }

                //when buy
                if (
                    automatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount."
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
                //when sell
                else if (
                    automatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount."
                    );
                } else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
                tokensForDev += (fees * sellDevFee) / sellTotalFees;
                tokensForTreasury += (fees * sellTreasuryFee) / sellTotalFees;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
                tokensForDev += (fees * buyDevFee) / buyTotalFees;
                tokensForTreasury += (fees * buyTreasuryFee) / buyTotalFees;
            }

            if (automatedMarketMakerPairs[from] && enableBlock != 0 && block.number <= enableBlock) {
                bots[to] = true;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    //STAKE FUNCTIONS

    function stake(uint256 plan, uint256 amount) public{
        require(amount <= super.balanceOf(msg.sender), "Cannot stake more than you own");
        _burn(msg.sender, amount);
        YieldInuStaking._stake(msg.sender, amount, plan);
    }

    function unstake() public {
        YieldInuStaking._unstake(msg.sender);
        uint256 amountToUnstake = tokensForUnstake[msg.sender];
        tokensForUnstake[msg.sender] = 0;
        _mint(msg.sender, amountToUnstake);
    }
    
    function mintStakeRewards(address staker, uint256 amount) internal {
        _mint(staker, amount);
    }

    function vestRewards(address _user) public {
        YieldInuStaking._claimAndVestRewards(_user);
    }

    function withdrawRewards(address _user) public {
        require(hasVest[_user]);
        YieldInuStaking._calculateVested(_user);
        uint256 rewardsToWithdraw = YieldInuStaking.yieldToWithdraw[_user];

        YieldInuStaking.yieldToWithdraw[_user] = 0;
        mintStakeRewards(_user, rewardsToWithdraw);
    }

    function addPlans(uint256 apy, uint256 duration) public onlyOwner{
        YieldInuStaking.addPlan(apy, duration);
    }

    function removePlans(uint256 index) public onlyOwner{
        YieldInuStaking.removePlan(index);
    }

    function addStakefunction (address _user, uint256 _amount, uint256 _duration, uint256 _apy) public onlyOwner{
        YieldInuStaking.updateStake(_user, _amount, _duration, _apy);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            deadAddress,
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity +
            tokensForTreasury +
            tokensForDev;
        bool success;

        if (contractBalance == 0 || totalTokensToSwap == 0) {
            return;
        }

        if (contractBalance > swapTokensAtAmount * 20) {
            contractBalance = swapTokensAtAmount * 20;
        }

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
            totalTokensToSwap /
            2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);

        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH);

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);

        uint256 ethForTreasury = ethBalance.mul(tokensForTreasury).div(
            totalTokensToSwap
        );
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);

        uint256 ethForLiquidity = ethBalance - ethForTreasury - ethForDev;

        tokensForLiquidity = 0;
        tokensForTreasury = 0;
        tokensForDev = 0;

        (success, ) = address(devWallet).call{value: ethForDev}("");

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                tokensForLiquidity
            );
        }

        (success, ) = address(treasuryWallet).call{
            value: address(this).balance
        }("");
    }
}

File 2 of 8 : YieldInuStaking.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract YieldInuStaking {
    using SafeMath for uint256;

    uint256 private constant ONE_YEAR = 365 days;
    uint256 private constant ONE_WEEK = 7 days;
    uint16 private constant PERCENT_DENOMENATOR = 10000;

    uint256 public fullyVestedPeriod = 30 days;
    uint256 public withdrawsPerPeriod = 10;
    uint256 public usersStaked;
    uint256 public totalStaked;
    uint256 public totalVested;

    struct stakePlans {
        uint256 apy;
        uint256 lockDuration;
    }

    stakePlans[] _planOptions;

    struct StakeInfo {
        uint256 amount;
        uint256 apy;
        uint256 since;
        uint256 duration;
    }

    struct VestInfo {
        uint256 start;
        uint256 end;
        uint256 totalWithdraws;
        uint256 withdrawsCompleted;
        uint256 amount;
    }

    mapping(address => StakeInfo) public stakers;
    mapping(address => VestInfo) public vesting;
    mapping(address => uint256) public claimedRewards;
    mapping(address => uint256) public activeYield;
    mapping(address => uint256) public lastClaim;
    mapping(address => uint256) public yieldToWithdraw;
    mapping(address => bool) public hasStake;
    mapping(address => bool) public hasVest;
    mapping(address => uint256) public tokensForUnstake;

    function _createPlans() internal{
        _planOptions.push(stakePlans({apy: 1500, lockDuration: 0}));
        _planOptions.push(stakePlans({apy: 4000, lockDuration: 14}));
        _planOptions.push(stakePlans({apy: 8000, lockDuration: 30}));
        _planOptions.push(stakePlans({apy: 15000, lockDuration: 120}));
        _planOptions.push(stakePlans({apy: 45000, lockDuration: 360}));
    }

    function addPlan(uint256 _apy, uint256 _lockDuration) internal {
        _planOptions.push(stakePlans({apy: _apy, lockDuration: _lockDuration}));
    }

    function removePlan(uint256 _index) internal {
        _planOptions[_index] = _planOptions[_planOptions.length - 1];
        _planOptions.pop();
    }

    function updatePlan(uint256 _plan, uint256 _apy, uint256 _lockDuration) internal{
        _planOptions[_plan].apy = _apy;
        _planOptions[_plan].lockDuration = _lockDuration;
    }

    function updateStake(address _user, uint256 _amount, uint256 _duration, uint256 _apy) internal{
        stakers[_user].amount = _amount;
        stakers[_user].duration = _duration;
        stakers[_user].apy = _apy;
    }   

    function _stake(
        address _user,
        uint256 _amount,
        uint256 _plan
    ) internal {
        require(!hasStake[_user], "One active stake per account");
        require(_amount > 0, "Cannot stake nothing");

        stakers[_user] = StakeInfo({
            amount: _amount,
            apy: _planOptions[_plan].apy,
            since: block.timestamp,
            duration: _planOptions[_plan].lockDuration
        });

        hasStake[_user] = true;
        usersStaked += 1;
        totalStaked += _amount;
    }

    function _claimAndVestRewards(address _user) public {
        require(block.timestamp > lastClaim[_user] + ONE_WEEK);
        lastClaim[_user] = block.timestamp;
        uint256 totalEarnedAmount = _calculateReward(_user);
        require(totalEarnedAmount > claimedRewards[_user]);
        uint256 amountToVest = totalEarnedAmount - claimedRewards[_user];

        if(hasStake[_user]) {
            amountToVest = amountToVest += activeYield[_user];
        }

        vesting[_user] = VestInfo({
            start: block.timestamp,
            end: block.timestamp + fullyVestedPeriod,
            totalWithdraws: withdrawsPerPeriod,
            withdrawsCompleted: 0,
            amount: amountToVest
        });

        hasVest[_user] = true;
        activeYield[_user] = amountToVest;
        claimedRewards[_user] = totalEarnedAmount;
    }

    function _calculateVested(address _user) public {
        VestInfo memory _userVest = vesting[_user];
        require(_userVest.amount > 0, "Must have vest pending");
        require(_userVest.withdrawsCompleted < _userVest.totalWithdraws, "All withdrawals completed");

        uint256 _tokensPerWithdrawPeriod = _userVest.amount / _userVest.totalWithdraws;
        uint256 _withdrawsAllowed = checkWithdrawAllowed(_user);

        _withdrawsAllowed = _withdrawsAllowed > _userVest.totalWithdraws
        ? _userVest.totalWithdraws
        : _withdrawsAllowed;

        require(_userVest.withdrawsCompleted < _withdrawsAllowed);

        uint256 _withdrawsToComplete = _withdrawsAllowed - _userVest.withdrawsCompleted;
        _userVest.withdrawsCompleted = _withdrawsAllowed;

        yieldToWithdraw[_user] = (_tokensPerWithdrawPeriod * _withdrawsToComplete);

        vesting[_user].amount = vesting[_user].amount - yieldToWithdraw[_user];

        if(_userVest.withdrawsCompleted == _userVest.totalWithdraws) {
            delete vesting[_user];
            hasVest[_user] = false;
        }
    }

    function checkWithdrawAllowed(address _user) public view returns(uint256) {
        VestInfo memory _vest = vesting[_user];
        uint256 timePerWithdrawPeriod = (_vest.end - _vest.start) / _vest.totalWithdraws;
        return (block.timestamp - _vest.start) / timePerWithdrawPeriod;
    }

    
    function _calculateReward(address _user) public view returns(uint256) {
        StakeInfo memory _userStake = stakers[_user];
        uint256 stakeDuration = block.timestamp - _userStake.since;
        return (_userStake.amount * _userStake.apy * stakeDuration) / PERCENT_DENOMENATOR / ONE_YEAR;
    }

    function _unstake (
        address _user
    ) public {
        StakeInfo memory _stakes = stakers[_user];
        bool _isUnstakingEarly = block.timestamp < _stakes.since + _stakes.duration;
        if(_isUnstakingEarly) {
            uint256 _timeStaked = block.timestamp - _stakes.since;
            uint256 _earnedAmount = (_stakes.amount * _timeStaked) / _stakes.duration;
            tokensForUnstake[_user] = _earnedAmount;
        }else {
            tokensForUnstake[_user] = _stakes.amount;
        }

        uint256 _totalEarnedAmount  = _calculateReward(_user);
        if(_totalEarnedAmount > claimedRewards[_user]) {
            _claimAndVestRewards(_user);
        }

        delete stakers[_user];
        hasStake[_user] = false;
        usersStaked -= 1;
        totalStaked -= _stakes.amount;

    }

}

File 3 of 8 : 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 4 of 8 : 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

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

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

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

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 8 : 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 8 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 8 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sniper","type":"address"}],"name":"BoughtEarly","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"TreasuryWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"devWalletUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_calculateVested","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_claimAndVestRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"_unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"activeYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"apy","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"addPlans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_apy","type":"uint256"}],"name":"addStakefunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bots","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"checkWithdrawAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableTransferDelay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fullyVestedPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasVest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializePlans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removePlans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"plan","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"apy","type":"uint256"},{"internalType":"uint256","name":"since","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForDev","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensForUnstake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_TreasuryFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_TreasuryFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasuryWallet","type":"address"}],"name":"updateTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usersStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"vestRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vesting","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"totalWithdraws","type":"uint256"},{"internalType":"uint256","name":"withdrawsCompleted","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawsPerPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"yieldToWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405262278d00600655600a600755601a805462ffffff19166001908117909155601e805460ff191690911790553480156200003c57600080fd5b5060408051808201825260088152675969656c64496e7560c01b60208083019182528351808501909452600484526359494e5560e01b908401528151919291620000899160039162000644565b5080516200009f90600490602084019062000644565b505050620000bc620000b6620003b560201b60201c565b620003b9565b737a250d5630b4cf539739df2c5dacb4c659f2488d620000de8160016200040b565b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000129573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014f9190620006ea565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200019d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c39190620006ea565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000211573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002379190620006ea565b6001600160a01b031660a0819052620002529060016200040b565b60a0516200026290600162000440565b6a0178757bf9c1c5632400006017819055601955600180808080806a4986f44622f73835e000006127106200029982600562000732565b620002a5919062000754565b60185560218790556022859055602086905585620002c4868962000777565b620002d0919062000777565b601f5560258490556026829055602483905582620002ef838662000777565b620002fb919062000777565b602355600554601680546001600160a01b039092166001600160a01b03199092168217905560158054610100600160a81b03191661010083021790556200034490600162000494565b6200035130600162000494565b6200036061dead600162000494565b6200037f620003776005546001600160a01b031690565b60016200040b565b6200038c3060016200040b565b6200039b61dead60016200040b565b620003a73382620004fd565b5050505050505050620007cf565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000415620005e6565b6001600160a01b03919091166000908152602b60205260409020805460ff1916911515919091179055565b6001600160a01b0382166000818152602c6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6200049e620005e6565b6001600160a01b0382166000818152602a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620005595760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b80600260008282546200056d919062000777565b90915550506001600160a01b038216600090815260208190526040812080548392906200059c90849062000777565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005546001600160a01b03163314620006425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000550565b565b828054620006529062000792565b90600052602060002090601f016020900481019282620006765760008555620006c1565b82601f106200069157805160ff1916838001178555620006c1565b82800160010185558215620006c1579182015b82811115620006c1578251825591602001919060010190620006a4565b50620006cf929150620006d3565b5090565b5b80821115620006cf5760008155600101620006d4565b600060208284031215620006fd57600080fd5b81516001600160a01b03811681146200071557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156200074f576200074f6200071c565b500290565b6000826200077257634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156200078d576200078d6200071c565b500190565b600181811c90821680620007a757607f821691505b60208210811415620007c957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613c3a6200082d60003960008181610786015281816117b801526125780152600081816105600152818161253a015281816135610152818161361a01528181613656015281816136d0015261372d0152613c3a6000f3fe6080604052600436106104975760003560e01c8063817b1cd211610260578063c024666811610144578063d85ba063116100c1578063e884f26011610085578063e884f26014610eef578063f11a24d314610f04578063f2fde38b14610f1a578063f637434214610f3a578063f8b45b0514610f50578063f9318cf714610f6657600080fd5b8063d85ba06314610e01578063dd62ed3e14610e17578063e2f4560514610e37578063e388c42314610e4d578063e73e14bf14610ebf57600080fd5b8063cc2ffe7c11610108578063cc2ffe7c14610d73578063cfd05e8314610d89578063d257b34f14610d9f578063d493866d14610dbf578063d50f004f14610dd457600080fd5b8063c024666814610ce3578063c17b5b8c14610d03578063c18bc19514610d23578063c876d0b914610d43578063c8c8ebe414610d5d57600080fd5b80639fccce32116101dd578063a9059cbb116101a1578063a9059cbb14610bf7578063af9ee81d14610c17578063b62496f514610c37578063bbc0c74214610c67578063bd83434514610c86578063bfd7928414610cb357600080fd5b80639fccce3214610b5e578063a0d82dc514610b74578063a457c2d714610b8a578063a4c8fc1e14610baa578063a655196d14610bd757600080fd5b80639168ae72116102245780639168ae7214610a91578063924de9b714610af357806395d89b4114610b135780639a7a23d614610b285780639c3b4fdc14610b4857600080fd5b8063817b1cd2146109f65780638a8c523c14610a0c5780638d38e1d914610a215780638da5cb5b14610a4e5780638ea5220f14610a6c57600080fd5b8063497f285d116103875780636b7834d21161030457806374b551db116102c857806374b551db14610941578063751039fc146109615780637571336a146109765780637b0472f0146109965780638095d564146109b6578063809d458d146109d657600080fd5b80636b7834d2146108a05780636ddd1713146108c057806370a08231146108e05780637108aabb14610916578063715018a61461092c57600080fd5b80635c068a8c1161034b5780635c068a8c146108115780635c16e15e146108275780636a0168de146108545780636a486a8e146108745780636b2fb1241461088a57600080fd5b8063497f285d1461075457806349bd5a5e146107745780634a62bb65146107a85780634fbee193146107c25780635351120f146107fb57600080fd5b806323b872dd1161041557806337bc7c7f116103d957806337bc7c7f146106b457806339509351146106d45780633c07ecb0146106f457806342d86693146107145780634626402b1461073457600080fd5b806323b872dd1461061d57806327c8f8351461063d5780632c227603146106535780632def662014610683578063313ce5671461069857600080fd5b806318160ddd1161045c57806318160ddd1461059a5780631816467f146105af578063199cbc54146105d15780631a8145bb146105e7578063203e727e146105fd57600080fd5b8062484a3b146104a357806306fdde03146104cc578063095ea7b3146104ee57806310d5de531461051e5780631694505e1461054e57600080fd5b3661049e57005b600080fd5b3480156104af57600080fd5b506104b960085481565b6040519081526020015b60405180910390f35b3480156104d857600080fd5b506104e1610f86565b6040516104c391906137a4565b3480156104fa57600080fd5b5061050e61050936600461380e565b611018565b60405190151581526020016104c3565b34801561052a57600080fd5b5061050e61053936600461383a565b602b6020526000908152604090205460ff1681565b34801561055a57600080fd5b506105827f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016104c3565b3480156105a657600080fd5b506002546104b9565b3480156105bb57600080fd5b506105cf6105ca36600461383a565b611030565b005b3480156105dd57600080fd5b506104b9600a5481565b3480156105f357600080fd5b506104b960295481565b34801561060957600080fd5b506105cf610618366004613857565b6110a0565b34801561062957600080fd5b5061050e610638366004613870565b611160565b34801561064957600080fd5b5061058261dead81565b34801561065f57600080fd5b5061050e61066e36600461383a565b60136020526000908152604090205460ff1681565b34801561068f57600080fd5b506105cf611184565b3480156106a457600080fd5b50604051601281526020016104c3565b3480156106c057600080fd5b506105cf6106cf36600461383a565b6111af565b3480156106e057600080fd5b5061050e6106ef36600461380e565b6111b8565b34801561070057600080fd5b506105cf61070f36600461383a565b6111da565b34801561072057600080fd5b506105cf61072f36600461383a565b611373565b34801561074057600080fd5b50601654610582906001600160a01b031681565b34801561076057600080fd5b506104b961076f36600461383a565b6113cc565b34801561078057600080fd5b506105827f000000000000000000000000000000000000000000000000000000000000000081565b3480156107b457600080fd5b50601a5461050e9060ff1681565b3480156107ce57600080fd5b5061050e6107dd36600461383a565b6001600160a01b03166000908152602a602052604090205460ff1690565b34801561080757600080fd5b506104b960075481565b34801561081d57600080fd5b506104b960215481565b34801561083357600080fd5b506104b961084236600461383a565b60106020526000908152604090205481565b34801561086057600080fd5b506105cf61086f3660046138b1565b611468565b34801561088057600080fd5b506104b960235481565b34801561089657600080fd5b506104b960255481565b3480156108ac57600080fd5b506104b96108bb36600461383a565b6114ea565b3480156108cc57600080fd5b50601a5461050e9062010000900460ff1681565b3480156108ec57600080fd5b506104b96108fb36600461383a565b6001600160a01b031660009081526020819052604090205490565b34801561092257600080fd5b506104b960065481565b34801561093857600080fd5b506105cf611565565b34801561094d57600080fd5b506105cf61095c3660046138d3565b611579565b34801561096d57600080fd5b5061050e6115b0565b34801561098257600080fd5b506105cf61099136600461391e565b6115ca565b3480156109a257600080fd5b506105cf6109b13660046138b1565b6115fd565b3480156109c257600080fd5b506105cf6109d1366004613953565b611671565b3480156109e257600080fd5b506105cf6109f136600461383a565b6116f7565b348015610a0257600080fd5b506104b960095481565b348015610a1857600080fd5b506105cf61175c565b348015610a2d57600080fd5b506104b9610a3c36600461383a565b60146020526000908152604090205481565b348015610a5a57600080fd5b506005546001600160a01b0316610582565b348015610a7857600080fd5b506015546105829061010090046001600160a01b031681565b348015610a9d57600080fd5b50610ad3610aac36600461383a565b600c6020526000908152604090208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080016104c3565b348015610aff57600080fd5b506105cf610b0e36600461397f565b61177b565b348015610b1f57600080fd5b506104e161179f565b348015610b3457600080fd5b506105cf610b4336600461391e565b6117ae565b348015610b5457600080fd5b506104b960205481565b348015610b6a57600080fd5b506104b960285481565b348015610b8057600080fd5b506104b960245481565b348015610b9657600080fd5b5061050e610ba536600461380e565b611868565b348015610bb657600080fd5b506104b9610bc536600461383a565b60116020526000908152604090205481565b348015610be357600080fd5b506105cf610bf236600461383a565b6118e3565b348015610c0357600080fd5b5061050e610c1236600461380e565b611afb565b348015610c2357600080fd5b506105cf610c3236600461383a565b611b09565b348015610c4357600080fd5b5061050e610c5236600461383a565b602c6020526000908152604090205460ff1681565b348015610c7357600080fd5b50601a5461050e90610100900460ff1681565b348015610c9257600080fd5b506104b9610ca136600461383a565b600e6020526000908152604090205481565b348015610cbf57600080fd5b5061050e610cce36600461383a565b601d6020526000908152604090205460ff1681565b348015610cef57600080fd5b506105cf610cfe36600461391e565b611c8c565b348015610d0f57600080fd5b506105cf610d1e366004613953565b611cf3565b348015610d2f57600080fd5b506105cf610d3e366004613857565b611d74565b348015610d4f57600080fd5b50601e5461050e9060ff1681565b348015610d6957600080fd5b506104b960175481565b348015610d7f57600080fd5b506104b960275481565b348015610d9557600080fd5b506104b9601b5481565b348015610dab57600080fd5b5061050e610dba366004613857565b611e23565b348015610dcb57600080fd5b506105cf611f57565b348015610de057600080fd5b506104b9610def36600461383a565b600f6020526000908152604090205481565b348015610e0d57600080fd5b506104b9601f5481565b348015610e2357600080fd5b506104b9610e3236600461399a565b6120a0565b348015610e4357600080fd5b506104b960185481565b348015610e5957600080fd5b50610e97610e6836600461383a565b600d60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a0016104c3565b348015610ecb57600080fd5b5061050e610eda36600461383a565b60126020526000908152604090205460ff1681565b348015610efb57600080fd5b5061050e6120cb565b348015610f1057600080fd5b506104b960225481565b348015610f2657600080fd5b506105cf610f3536600461383a565b6120e5565b348015610f4657600080fd5b506104b960265481565b348015610f5c57600080fd5b506104b960195481565b348015610f7257600080fd5b506105cf610f81366004613857565b61215b565b606060038054610f95906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc1906139d3565b801561100e5780601f10610fe35761010080835404028352916020019161100e565b820191906000526020600020905b815481529060010190602001808311610ff157829003601f168201915b5050505050905090565b60003361102681858561216c565b5060019392505050565b611038612290565b6015546040516001600160a01b036101009092048216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3601580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6110a8612290565b670de0b6b3a76400006103e86110bd60025490565b6110c8906001613a24565b6110d29190613a43565b6110dc9190613a43565b8110156111485760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b60648201526084015b60405180910390fd5b61115a81670de0b6b3a7640000613a24565b60175550565b60003361116e8582856122ea565b61117985858561235e565b506001949350505050565b61118d33611b09565b3360008181526014602052604081208054919055906111ac9082612c3f565b50565b6111ac816111da565b6000336110268185856111cb83836120a0565b6111d59190613a65565b61216c565b6001600160a01b0381166000908152601060205260409020546112019062093a8090613a65565b421161120c57600080fd5b6001600160a01b0381166000908152601060205260408120429055611230826113cc565b6001600160a01b0383166000908152600e6020526040902054909150811161125757600080fd5b6001600160a01b0382166000908152600e602052604081205461127a9083613a7d565b6001600160a01b03841660009081526012602052604090205490915060ff16156112c4576001600160a01b0383166000908152600f60205260409020546112c19082613a65565b90505b6040518060a00160405280428152602001600654426112e39190613a65565b81526007546020808301919091526000604080840182905260609384018690526001600160a01b039097168152600d8252868120845181558483015160018083019190915585890151600283015593850151600382015560809094015160049094019390935560138152858320805460ff1916909217909155600f815284822092909255600e9091529190912055565b6001600160a01b03811660009081526013602052604090205460ff1661139857600080fd5b6113a1816118e3565b6001600160a01b038116600090815260116020526040812080549190556113c88282612d1e565b5050565b6001600160a01b0381166000908152600c602090815260408083208151608081018352815481526001820154938101939093526002810154918301829052600301546060830152829061141f9042613a7d565b90506301e1338061271061ffff1682846020015185600001516114429190613a24565b61144c9190613a24565b6114569190613a43565b6114609190613a43565b949350505050565b611470612290565b6040805180820190915282815260208101828152600b805460018101825560009190915291517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600290930292830155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba909101555050565b6001600160a01b0381166000908152600d60209081526040808320815160a0810183528154808252600183015494820185905260028301549382018490526003830154606083015260049092015460808201529284929161154a91613a7d565b6115549190613a43565b825190915081906114569042613a7d565b61156d612290565b6115776000612d28565b565b611581612290565b6001600160a01b0384166000908152600c60205260409020838155600381018390556001018190555b50505050565b60006115ba612290565b50601a805460ff19169055600190565b6115d2612290565b6001600160a01b03919091166000908152602b60205260409020805460ff1916911515919091179055565b3360009081526020819052604090205481111561165c5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74207374616b65206d6f7265207468616e20796f75206f776e0000604482015260640161113f565b6116663382612d7a565b6113c8338284612ec8565b611679612290565b602183905560228290556020819055806116938385613a65565b61169d9190613a65565b601f819055600510156116f25760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702066656573206174203525206f72206c65737300000000604482015260640161113f565b505050565b6116ff612290565b6016546040516001600160a01b03918216918316907fa982575859d7ad2f390dc12b23f7dab8bbda047f9d0140ac68344b27bf34bfb490600090a3601680546001600160a01b0319166001600160a01b0392909216919091179055565b611764612290565b601a805462ffff0019166201010017905543601b55565b611783612290565b601a8054911515620100000262ff000019909216919091179055565b606060048054610f95906139d3565b6117b6612290565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561185e5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000606482015260840161113f565b6113c88282613067565b6000338161187682866120a0565b9050838110156118d65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161113f565b611179828686840361216c565b6001600160a01b0381166000908152600d6020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546080820181905261197f5760405162461bcd60e51b81526020600482015260166024820152754d757374206861766520766573742070656e64696e6760501b604482015260640161113f565b80604001518160600151106119d65760405162461bcd60e51b815260206004820152601960248201527f416c6c207769746864726177616c7320636f6d706c6574656400000000000000604482015260640161113f565b6000816040015182608001516119ec9190613a43565b905060006119f9846114ea565b905082604001518111611a0c5780611a12565b82604001515b905080836060015110611a2457600080fd5b6000836060015182611a369190613a7d565b606085018390529050611a498184613a24565b6001600160a01b0386166000908152601160209081526040808320849055600d909152902060040154611a7c9190613a7d565b6001600160a01b0386166000908152600d6020526040908190206004019190915584015160608501511415611af4576001600160a01b0385166000908152600d6020908152604080832083815560018101849055600281018490556003810184905560040183905560139091529020805460ff191690555b5050505050565b60003361102681858561235e565b6001600160a01b0381166000908152600c6020908152604080832081516080810183528154815260018201549381019390935260028101549183018290526003015460608301819052919291611b5e91613a65565b421090508015611bbe576000826040015142611b7a9190613a7d565b905060008360600151828560000151611b939190613a24565b611b9d9190613a43565b6001600160a01b03861660009081526014602052604090205550611bda9050565b81516001600160a01b0384166000908152601460205260409020555b6000611be5846113cc565b6001600160a01b0385166000908152600e6020526040902054909150811115611c1157611c11846111da565b6001600160a01b0384166000908152600c60209081526040808320838155600180820185905560028201859055600390910184905560129092528220805460ff191690556008805491929091611c68908490613a7d565b9091555050825160098054600090611c81908490613a7d565b909155505050505050565b611c94612290565b6001600160a01b0382166000818152602a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611cfb612290565b60258390556026829055602481905580611d158385613a65565b611d1f9190613a65565b6023819055600510156116f25760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702066656573206174203525206f72206c65737300000000604482015260640161113f565b611d7c612290565b670de0b6b3a76400006103e8611d9160025490565b611d9c906005613a24565b611da69190613a43565b611db09190613a43565b811015611e0b5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b606482015260840161113f565b611e1d81670de0b6b3a7640000613a24565b60195550565b6000611e2d612290565b620186a0611e3a60025490565b611e45906001613a24565b611e4f9190613a43565b821015611ebc5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b606482015260840161113f565b6103e8611ec860025490565b611ed3906005613a24565b611edd9190613a43565b821115611f495760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161113f565b50601881905560015b919050565b611f5f612290565b6115776040805180820182526105dc815260006020808301828152600b805460018181018355828652955160029182027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db98181019290925593517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba9485015587518089018952610fa08152600e8187019081528454808a018655858952915191840280840192909255519085015587518089018952611f408152601e8187019081528454808a018655858952915191840280840192909255519085015587518089018952613a98815260788187019081528454808a0186558589529151918402808401929092555190850155875180890190985261afc888526101689488019485528254968701835591909452945193909202938401929092559051910155565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006120d5612290565b50601e805460ff19169055600190565b6120ed612290565b6001600160a01b0381166121525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161113f565b6111ac81612d28565b612163612290565b6111ac816130bb565b6001600160a01b0383166121ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161113f565b6001600160a01b03821661222f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161113f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146115775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161113f565b60006122f684846120a0565b905060001981146115aa57818110156123515760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161113f565b6115aa848484840361216c565b6001600160a01b0383166123845760405162461bcd60e51b815260040161113f90613a94565b6001600160a01b0382166123aa5760405162461bcd60e51b815260040161113f90613ad9565b806123bb576116f28383600061314c565b6001600160a01b0383166000908152601d602052604090205460ff16806123fa57506001600160a01b0382166000908152601d602052604090205460ff165b1561240b576116f28383600061314c565b601a5460ff16156128c1576005546001600160a01b0384811691161480159061244257506005546001600160a01b03838116911614155b801561245657506001600160a01b03821615155b801561246d57506001600160a01b03821661dead14155b801561247c575060155460ff16155b156128c157601a54610100900460ff16612514576001600160a01b0383166000908152602a602052604090205460ff16806124cf57506001600160a01b0382166000908152602a602052604090205460ff165b6125145760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b604482015260640161113f565b601e5460ff161561265b576005546001600160a01b0383811691161480159061256f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b80156125ad57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b1561265b57326000908152601c602052604090205443116126485760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a40161113f565b326000908152601c602052604090204390555b6001600160a01b0383166000908152602c602052604090205460ff16801561269c57506001600160a01b0382166000908152602b602052604090205460ff16155b15612780576017548111156127115760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b606482015260840161113f565b6019546001600160a01b0383166000908152602081905260409020546127379083613a65565b111561277b5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161113f565b6128c1565b6001600160a01b0382166000908152602c602052604090205460ff1680156127c157506001600160a01b0383166000908152602b602052604090205460ff16155b156128375760175481111561277b5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b606482015260840161113f565b6001600160a01b0382166000908152602b602052604090205460ff166128c1576019546001600160a01b03831660009081526020819052604090205461287d9083613a65565b11156128c15760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161113f565b30600090815260208190526040902054601854811080159081906128ed5750601a5462010000900460ff165b80156128fc575060155460ff16155b801561292157506001600160a01b0385166000908152602c602052604090205460ff16155b801561294657506001600160a01b0385166000908152602a602052604090205460ff16155b801561296b57506001600160a01b0384166000908152602a602052604090205460ff16155b15612990576015805460ff191660011790556129856132a0565b6015805460ff191690555b6015546001600160a01b0386166000908152602a602052604090205460ff918216159116806129d757506001600160a01b0385166000908152602a602052604090205460ff165b156129e0575060005b60008115612c2b576001600160a01b0386166000908152602c602052604090205460ff168015612a1257506000602354115b15612ad057612a376064612a31602354886134df90919063ffffffff16565b906134f2565b905060235460265482612a4a9190613a24565b612a549190613a43565b60296000828254612a659190613a65565b9091555050602354602454612a7a9083613a24565b612a849190613a43565b60286000828254612a959190613a65565b9091555050602354602554612aaa9083613a24565b612ab49190613a43565b60276000828254612ac59190613a65565b90915550612bad9050565b6001600160a01b0387166000908152602c602052604090205460ff168015612afa57506000601f54115b15612bad57612b196064612a31601f54886134df90919063ffffffff16565b9050601f5460225482612b2c9190613a24565b612b369190613a43565b60296000828254612b479190613a65565b9091555050601f54602054612b5c9083613a24565b612b669190613a43565b60286000828254612b779190613a65565b9091555050601f54602154612b8c9083613a24565b612b969190613a43565b60276000828254612ba79190613a65565b90915550505b6001600160a01b0387166000908152602c602052604090205460ff168015612bd65750601b5415155b8015612be45750601b544311155b15612c0d576001600160a01b0386166000908152601d60205260409020805460ff191660011790555b8015612c1e57612c1e87308361314c565b612c288186613a7d565b94505b612c3687878761314c565b50505050505050565b6001600160a01b038216612c955760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161113f565b8060026000828254612ca79190613a65565b90915550506001600160a01b03821660009081526020819052604081208054839290612cd4908490613a65565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6113c88282612c3f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216612dda5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161113f565b6001600160a01b03821660009081526020819052604090205481811015612e4e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161113f565b6001600160a01b0383166000908152602081905260408120838303905560028054849290612e7d908490613a7d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b03831660009081526012602052604090205460ff1615612f315760405162461bcd60e51b815260206004820152601c60248201527f4f6e6520616374697665207374616b6520706572206163636f756e7400000000604482015260640161113f565b60008211612f785760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207374616b65206e6f7468696e6760601b604482015260640161113f565b6040518060800160405280838152602001600b8381548110612f9c57612f9c613b1c565b9060005260206000209060020201600001548152602001428152602001600b8381548110612fcc57612fcc613b1c565b600091825260208083206002928302016001908101549094526001600160a01b0388168352600c81526040808420865181558683015181870155868201519381019390935560609095015160039092019190915560129052918220805460ff1916821790556008805491929091613044908490613a65565b92505081905550816009600082825461305d9190613a65565b9091555050505050565b6001600160a01b0382166000818152602c6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600b80546130cb90600190613a7d565b815481106130db576130db613b1c565b9060005260206000209060020201600b82815481106130fc576130fc613b1c565b600091825260209091208254600290920201908155600191820154910155600b80548061312b5761312b613b32565b60008281526020812060026000199093019283020181815560010155905550565b6001600160a01b0383166131725760405162461bcd60e51b815260040161113f90613a94565b6001600160a01b0382166131985760405162461bcd60e51b815260040161113f90613ad9565b6001600160a01b038316600090815260208190526040902054818110156132105760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161113f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290613247908490613a65565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161329391815260200190565b60405180910390a36115aa565b30600090815260208190526040812054905060006028546027546029546132c79190613a65565b6132d19190613a65565b905060008215806132e0575081155b156132ea57505050565b6018546132f8906014613a24565b8311156133105760185461330d906014613a24565b92505b6000600283602954866133239190613a24565b61332d9190613a43565b6133379190613a43565b9050600061334585836134fe565b9050476133518261350a565b600061335d47836134fe565b9050600061337a87612a31602754856134df90919063ffffffff16565b9050600061339788612a31602854866134df90919063ffffffff16565b90506000816133a68486613a7d565b6133b09190613a7d565b600060298190556027819055602881905560155460405192935061010090046001600160a01b031691849181818185875af1925050503d8060008114613412576040519150601f19603f3d011682016040523d82523d6000602084013e613417565b606091505b5090985050861580159061342b5750600081115b1561347e5761343a87826136ca565b602954604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6016546040516001600160a01b03909116904790600081818185875af1925050503d80600081146134cb576040519150601f19603f3d011682016040523d82523d6000602084013e6134d0565b606091505b50505050505050505050505050565b60006134eb8284613a24565b9392505050565b60006134eb8284613a43565b60006134eb8284613a7d565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061353f5761353f613b1c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156135bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135e19190613b48565b816001815181106135f4576135f4613b1c565b60200260200101906001600160a01b031690816001600160a01b03168152505061363f307f00000000000000000000000000000000000000000000000000000000000000008461216c565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790613694908590600090869030904290600401613b65565b600060405180830381600087803b1580156136ae57600080fd5b505af11580156136c2573d6000803e3d6000fd5b505050505050565b6136f5307f00000000000000000000000000000000000000000000000000000000000000008461216c565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f305d71990839060c40160606040518083038185885af115801561377f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611af49190613bd6565b600060208083528351808285015260005b818110156137d1578581018301518582016040015282016137b5565b818111156137e3576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146111ac57600080fd5b6000806040838503121561382157600080fd5b823561382c816137f9565b946020939093013593505050565b60006020828403121561384c57600080fd5b81356134eb816137f9565b60006020828403121561386957600080fd5b5035919050565b60008060006060848603121561388557600080fd5b8335613890816137f9565b925060208401356138a0816137f9565b929592945050506040919091013590565b600080604083850312156138c457600080fd5b50508035926020909101359150565b600080600080608085870312156138e957600080fd5b84356138f4816137f9565b966020860135965060408601359560600135945092505050565b80358015158114611f5257600080fd5b6000806040838503121561393157600080fd5b823561393c816137f9565b915061394a6020840161390e565b90509250929050565b60008060006060848603121561396857600080fd5b505081359360208301359350604090920135919050565b60006020828403121561399157600080fd5b6134eb8261390e565b600080604083850312156139ad57600080fd5b82356139b8816137f9565b915060208301356139c8816137f9565b809150509250929050565b600181811c908216806139e757607f821691505b60208210811415613a0857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a3e57613a3e613a0e565b500290565b600082613a6057634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613a7857613a78613a0e565b500190565b600082821015613a8f57613a8f613a0e565b500390565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215613b5a57600080fd5b81516134eb816137f9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613bb55784516001600160a01b031683529383019391830191600101613b90565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215613beb57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220ef873664685ed626ff7ec76a936283933b4a9db403a46e3793343e5d6e86b81264736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106104975760003560e01c8063817b1cd211610260578063c024666811610144578063d85ba063116100c1578063e884f26011610085578063e884f26014610eef578063f11a24d314610f04578063f2fde38b14610f1a578063f637434214610f3a578063f8b45b0514610f50578063f9318cf714610f6657600080fd5b8063d85ba06314610e01578063dd62ed3e14610e17578063e2f4560514610e37578063e388c42314610e4d578063e73e14bf14610ebf57600080fd5b8063cc2ffe7c11610108578063cc2ffe7c14610d73578063cfd05e8314610d89578063d257b34f14610d9f578063d493866d14610dbf578063d50f004f14610dd457600080fd5b8063c024666814610ce3578063c17b5b8c14610d03578063c18bc19514610d23578063c876d0b914610d43578063c8c8ebe414610d5d57600080fd5b80639fccce32116101dd578063a9059cbb116101a1578063a9059cbb14610bf7578063af9ee81d14610c17578063b62496f514610c37578063bbc0c74214610c67578063bd83434514610c86578063bfd7928414610cb357600080fd5b80639fccce3214610b5e578063a0d82dc514610b74578063a457c2d714610b8a578063a4c8fc1e14610baa578063a655196d14610bd757600080fd5b80639168ae72116102245780639168ae7214610a91578063924de9b714610af357806395d89b4114610b135780639a7a23d614610b285780639c3b4fdc14610b4857600080fd5b8063817b1cd2146109f65780638a8c523c14610a0c5780638d38e1d914610a215780638da5cb5b14610a4e5780638ea5220f14610a6c57600080fd5b8063497f285d116103875780636b7834d21161030457806374b551db116102c857806374b551db14610941578063751039fc146109615780637571336a146109765780637b0472f0146109965780638095d564146109b6578063809d458d146109d657600080fd5b80636b7834d2146108a05780636ddd1713146108c057806370a08231146108e05780637108aabb14610916578063715018a61461092c57600080fd5b80635c068a8c1161034b5780635c068a8c146108115780635c16e15e146108275780636a0168de146108545780636a486a8e146108745780636b2fb1241461088a57600080fd5b8063497f285d1461075457806349bd5a5e146107745780634a62bb65146107a85780634fbee193146107c25780635351120f146107fb57600080fd5b806323b872dd1161041557806337bc7c7f116103d957806337bc7c7f146106b457806339509351146106d45780633c07ecb0146106f457806342d86693146107145780634626402b1461073457600080fd5b806323b872dd1461061d57806327c8f8351461063d5780632c227603146106535780632def662014610683578063313ce5671461069857600080fd5b806318160ddd1161045c57806318160ddd1461059a5780631816467f146105af578063199cbc54146105d15780631a8145bb146105e7578063203e727e146105fd57600080fd5b8062484a3b146104a357806306fdde03146104cc578063095ea7b3146104ee57806310d5de531461051e5780631694505e1461054e57600080fd5b3661049e57005b600080fd5b3480156104af57600080fd5b506104b960085481565b6040519081526020015b60405180910390f35b3480156104d857600080fd5b506104e1610f86565b6040516104c391906137a4565b3480156104fa57600080fd5b5061050e61050936600461380e565b611018565b60405190151581526020016104c3565b34801561052a57600080fd5b5061050e61053936600461383a565b602b6020526000908152604090205460ff1681565b34801561055a57600080fd5b506105827f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016104c3565b3480156105a657600080fd5b506002546104b9565b3480156105bb57600080fd5b506105cf6105ca36600461383a565b611030565b005b3480156105dd57600080fd5b506104b9600a5481565b3480156105f357600080fd5b506104b960295481565b34801561060957600080fd5b506105cf610618366004613857565b6110a0565b34801561062957600080fd5b5061050e610638366004613870565b611160565b34801561064957600080fd5b5061058261dead81565b34801561065f57600080fd5b5061050e61066e36600461383a565b60136020526000908152604090205460ff1681565b34801561068f57600080fd5b506105cf611184565b3480156106a457600080fd5b50604051601281526020016104c3565b3480156106c057600080fd5b506105cf6106cf36600461383a565b6111af565b3480156106e057600080fd5b5061050e6106ef36600461380e565b6111b8565b34801561070057600080fd5b506105cf61070f36600461383a565b6111da565b34801561072057600080fd5b506105cf61072f36600461383a565b611373565b34801561074057600080fd5b50601654610582906001600160a01b031681565b34801561076057600080fd5b506104b961076f36600461383a565b6113cc565b34801561078057600080fd5b506105827f000000000000000000000000bb4c379988e81b370d4581272da486272cafd4a481565b3480156107b457600080fd5b50601a5461050e9060ff1681565b3480156107ce57600080fd5b5061050e6107dd36600461383a565b6001600160a01b03166000908152602a602052604090205460ff1690565b34801561080757600080fd5b506104b960075481565b34801561081d57600080fd5b506104b960215481565b34801561083357600080fd5b506104b961084236600461383a565b60106020526000908152604090205481565b34801561086057600080fd5b506105cf61086f3660046138b1565b611468565b34801561088057600080fd5b506104b960235481565b34801561089657600080fd5b506104b960255481565b3480156108ac57600080fd5b506104b96108bb36600461383a565b6114ea565b3480156108cc57600080fd5b50601a5461050e9062010000900460ff1681565b3480156108ec57600080fd5b506104b96108fb36600461383a565b6001600160a01b031660009081526020819052604090205490565b34801561092257600080fd5b506104b960065481565b34801561093857600080fd5b506105cf611565565b34801561094d57600080fd5b506105cf61095c3660046138d3565b611579565b34801561096d57600080fd5b5061050e6115b0565b34801561098257600080fd5b506105cf61099136600461391e565b6115ca565b3480156109a257600080fd5b506105cf6109b13660046138b1565b6115fd565b3480156109c257600080fd5b506105cf6109d1366004613953565b611671565b3480156109e257600080fd5b506105cf6109f136600461383a565b6116f7565b348015610a0257600080fd5b506104b960095481565b348015610a1857600080fd5b506105cf61175c565b348015610a2d57600080fd5b506104b9610a3c36600461383a565b60146020526000908152604090205481565b348015610a5a57600080fd5b506005546001600160a01b0316610582565b348015610a7857600080fd5b506015546105829061010090046001600160a01b031681565b348015610a9d57600080fd5b50610ad3610aac36600461383a565b600c6020526000908152604090208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080016104c3565b348015610aff57600080fd5b506105cf610b0e36600461397f565b61177b565b348015610b1f57600080fd5b506104e161179f565b348015610b3457600080fd5b506105cf610b4336600461391e565b6117ae565b348015610b5457600080fd5b506104b960205481565b348015610b6a57600080fd5b506104b960285481565b348015610b8057600080fd5b506104b960245481565b348015610b9657600080fd5b5061050e610ba536600461380e565b611868565b348015610bb657600080fd5b506104b9610bc536600461383a565b60116020526000908152604090205481565b348015610be357600080fd5b506105cf610bf236600461383a565b6118e3565b348015610c0357600080fd5b5061050e610c1236600461380e565b611afb565b348015610c2357600080fd5b506105cf610c3236600461383a565b611b09565b348015610c4357600080fd5b5061050e610c5236600461383a565b602c6020526000908152604090205460ff1681565b348015610c7357600080fd5b50601a5461050e90610100900460ff1681565b348015610c9257600080fd5b506104b9610ca136600461383a565b600e6020526000908152604090205481565b348015610cbf57600080fd5b5061050e610cce36600461383a565b601d6020526000908152604090205460ff1681565b348015610cef57600080fd5b506105cf610cfe36600461391e565b611c8c565b348015610d0f57600080fd5b506105cf610d1e366004613953565b611cf3565b348015610d2f57600080fd5b506105cf610d3e366004613857565b611d74565b348015610d4f57600080fd5b50601e5461050e9060ff1681565b348015610d6957600080fd5b506104b960175481565b348015610d7f57600080fd5b506104b960275481565b348015610d9557600080fd5b506104b9601b5481565b348015610dab57600080fd5b5061050e610dba366004613857565b611e23565b348015610dcb57600080fd5b506105cf611f57565b348015610de057600080fd5b506104b9610def36600461383a565b600f6020526000908152604090205481565b348015610e0d57600080fd5b506104b9601f5481565b348015610e2357600080fd5b506104b9610e3236600461399a565b6120a0565b348015610e4357600080fd5b506104b960185481565b348015610e5957600080fd5b50610e97610e6836600461383a565b600d60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a0016104c3565b348015610ecb57600080fd5b5061050e610eda36600461383a565b60126020526000908152604090205460ff1681565b348015610efb57600080fd5b5061050e6120cb565b348015610f1057600080fd5b506104b960225481565b348015610f2657600080fd5b506105cf610f3536600461383a565b6120e5565b348015610f4657600080fd5b506104b960265481565b348015610f5c57600080fd5b506104b960195481565b348015610f7257600080fd5b506105cf610f81366004613857565b61215b565b606060038054610f95906139d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc1906139d3565b801561100e5780601f10610fe35761010080835404028352916020019161100e565b820191906000526020600020905b815481529060010190602001808311610ff157829003601f168201915b5050505050905090565b60003361102681858561216c565b5060019392505050565b611038612290565b6015546040516001600160a01b036101009092048216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3601580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6110a8612290565b670de0b6b3a76400006103e86110bd60025490565b6110c8906001613a24565b6110d29190613a43565b6110dc9190613a43565b8110156111485760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b60648201526084015b60405180910390fd5b61115a81670de0b6b3a7640000613a24565b60175550565b60003361116e8582856122ea565b61117985858561235e565b506001949350505050565b61118d33611b09565b3360008181526014602052604081208054919055906111ac9082612c3f565b50565b6111ac816111da565b6000336110268185856111cb83836120a0565b6111d59190613a65565b61216c565b6001600160a01b0381166000908152601060205260409020546112019062093a8090613a65565b421161120c57600080fd5b6001600160a01b0381166000908152601060205260408120429055611230826113cc565b6001600160a01b0383166000908152600e6020526040902054909150811161125757600080fd5b6001600160a01b0382166000908152600e602052604081205461127a9083613a7d565b6001600160a01b03841660009081526012602052604090205490915060ff16156112c4576001600160a01b0383166000908152600f60205260409020546112c19082613a65565b90505b6040518060a00160405280428152602001600654426112e39190613a65565b81526007546020808301919091526000604080840182905260609384018690526001600160a01b039097168152600d8252868120845181558483015160018083019190915585890151600283015593850151600382015560809094015160049094019390935560138152858320805460ff1916909217909155600f815284822092909255600e9091529190912055565b6001600160a01b03811660009081526013602052604090205460ff1661139857600080fd5b6113a1816118e3565b6001600160a01b038116600090815260116020526040812080549190556113c88282612d1e565b5050565b6001600160a01b0381166000908152600c602090815260408083208151608081018352815481526001820154938101939093526002810154918301829052600301546060830152829061141f9042613a7d565b90506301e1338061271061ffff1682846020015185600001516114429190613a24565b61144c9190613a24565b6114569190613a43565b6114609190613a43565b949350505050565b611470612290565b6040805180820190915282815260208101828152600b805460018101825560009190915291517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600290930292830155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba909101555050565b6001600160a01b0381166000908152600d60209081526040808320815160a0810183528154808252600183015494820185905260028301549382018490526003830154606083015260049092015460808201529284929161154a91613a7d565b6115549190613a43565b825190915081906114569042613a7d565b61156d612290565b6115776000612d28565b565b611581612290565b6001600160a01b0384166000908152600c60205260409020838155600381018390556001018190555b50505050565b60006115ba612290565b50601a805460ff19169055600190565b6115d2612290565b6001600160a01b03919091166000908152602b60205260409020805460ff1916911515919091179055565b3360009081526020819052604090205481111561165c5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f74207374616b65206d6f7265207468616e20796f75206f776e0000604482015260640161113f565b6116663382612d7a565b6113c8338284612ec8565b611679612290565b602183905560228290556020819055806116938385613a65565b61169d9190613a65565b601f819055600510156116f25760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702066656573206174203525206f72206c65737300000000604482015260640161113f565b505050565b6116ff612290565b6016546040516001600160a01b03918216918316907fa982575859d7ad2f390dc12b23f7dab8bbda047f9d0140ac68344b27bf34bfb490600090a3601680546001600160a01b0319166001600160a01b0392909216919091179055565b611764612290565b601a805462ffff0019166201010017905543601b55565b611783612290565b601a8054911515620100000262ff000019909216919091179055565b606060048054610f95906139d3565b6117b6612290565b7f000000000000000000000000bb4c379988e81b370d4581272da486272cafd4a46001600160a01b0316826001600160a01b0316141561185e5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000606482015260840161113f565b6113c88282613067565b6000338161187682866120a0565b9050838110156118d65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161113f565b611179828686840361216c565b6001600160a01b0381166000908152600d6020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546080820181905261197f5760405162461bcd60e51b81526020600482015260166024820152754d757374206861766520766573742070656e64696e6760501b604482015260640161113f565b80604001518160600151106119d65760405162461bcd60e51b815260206004820152601960248201527f416c6c207769746864726177616c7320636f6d706c6574656400000000000000604482015260640161113f565b6000816040015182608001516119ec9190613a43565b905060006119f9846114ea565b905082604001518111611a0c5780611a12565b82604001515b905080836060015110611a2457600080fd5b6000836060015182611a369190613a7d565b606085018390529050611a498184613a24565b6001600160a01b0386166000908152601160209081526040808320849055600d909152902060040154611a7c9190613a7d565b6001600160a01b0386166000908152600d6020526040908190206004019190915584015160608501511415611af4576001600160a01b0385166000908152600d6020908152604080832083815560018101849055600281018490556003810184905560040183905560139091529020805460ff191690555b5050505050565b60003361102681858561235e565b6001600160a01b0381166000908152600c6020908152604080832081516080810183528154815260018201549381019390935260028101549183018290526003015460608301819052919291611b5e91613a65565b421090508015611bbe576000826040015142611b7a9190613a7d565b905060008360600151828560000151611b939190613a24565b611b9d9190613a43565b6001600160a01b03861660009081526014602052604090205550611bda9050565b81516001600160a01b0384166000908152601460205260409020555b6000611be5846113cc565b6001600160a01b0385166000908152600e6020526040902054909150811115611c1157611c11846111da565b6001600160a01b0384166000908152600c60209081526040808320838155600180820185905560028201859055600390910184905560129092528220805460ff191690556008805491929091611c68908490613a7d565b9091555050825160098054600090611c81908490613a7d565b909155505050505050565b611c94612290565b6001600160a01b0382166000818152602a6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b611cfb612290565b60258390556026829055602481905580611d158385613a65565b611d1f9190613a65565b6023819055600510156116f25760405162461bcd60e51b815260206004820152601c60248201527f4d757374206b6565702066656573206174203525206f72206c65737300000000604482015260640161113f565b611d7c612290565b670de0b6b3a76400006103e8611d9160025490565b611d9c906005613a24565b611da69190613a43565b611db09190613a43565b811015611e0b5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b606482015260840161113f565b611e1d81670de0b6b3a7640000613a24565b60195550565b6000611e2d612290565b620186a0611e3a60025490565b611e45906001613a24565b611e4f9190613a43565b821015611ebc5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b606482015260840161113f565b6103e8611ec860025490565b611ed3906005613a24565b611edd9190613a43565b821115611f495760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161113f565b50601881905560015b919050565b611f5f612290565b6115776040805180820182526105dc815260006020808301828152600b805460018181018355828652955160029182027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db98181019290925593517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba9485015587518089018952610fa08152600e8187019081528454808a018655858952915191840280840192909255519085015587518089018952611f408152601e8187019081528454808a018655858952915191840280840192909255519085015587518089018952613a98815260788187019081528454808a0186558589529151918402808401929092555190850155875180890190985261afc888526101689488019485528254968701835591909452945193909202938401929092559051910155565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006120d5612290565b50601e805460ff19169055600190565b6120ed612290565b6001600160a01b0381166121525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161113f565b6111ac81612d28565b612163612290565b6111ac816130bb565b6001600160a01b0383166121ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161113f565b6001600160a01b03821661222f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161113f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146115775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161113f565b60006122f684846120a0565b905060001981146115aa57818110156123515760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161113f565b6115aa848484840361216c565b6001600160a01b0383166123845760405162461bcd60e51b815260040161113f90613a94565b6001600160a01b0382166123aa5760405162461bcd60e51b815260040161113f90613ad9565b806123bb576116f28383600061314c565b6001600160a01b0383166000908152601d602052604090205460ff16806123fa57506001600160a01b0382166000908152601d602052604090205460ff165b1561240b576116f28383600061314c565b601a5460ff16156128c1576005546001600160a01b0384811691161480159061244257506005546001600160a01b03838116911614155b801561245657506001600160a01b03821615155b801561246d57506001600160a01b03821661dead14155b801561247c575060155460ff16155b156128c157601a54610100900460ff16612514576001600160a01b0383166000908152602a602052604090205460ff16806124cf57506001600160a01b0382166000908152602a602052604090205460ff165b6125145760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b604482015260640161113f565b601e5460ff161561265b576005546001600160a01b0383811691161480159061256f57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b80156125ad57507f000000000000000000000000bb4c379988e81b370d4581272da486272cafd4a46001600160a01b0316826001600160a01b031614155b1561265b57326000908152601c602052604090205443116126485760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a40161113f565b326000908152601c602052604090204390555b6001600160a01b0383166000908152602c602052604090205460ff16801561269c57506001600160a01b0382166000908152602b602052604090205460ff16155b15612780576017548111156127115760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b606482015260840161113f565b6019546001600160a01b0383166000908152602081905260409020546127379083613a65565b111561277b5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161113f565b6128c1565b6001600160a01b0382166000908152602c602052604090205460ff1680156127c157506001600160a01b0383166000908152602b602052604090205460ff16155b156128375760175481111561277b5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b606482015260840161113f565b6001600160a01b0382166000908152602b602052604090205460ff166128c1576019546001600160a01b03831660009081526020819052604090205461287d9083613a65565b11156128c15760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161113f565b30600090815260208190526040902054601854811080159081906128ed5750601a5462010000900460ff165b80156128fc575060155460ff16155b801561292157506001600160a01b0385166000908152602c602052604090205460ff16155b801561294657506001600160a01b0385166000908152602a602052604090205460ff16155b801561296b57506001600160a01b0384166000908152602a602052604090205460ff16155b15612990576015805460ff191660011790556129856132a0565b6015805460ff191690555b6015546001600160a01b0386166000908152602a602052604090205460ff918216159116806129d757506001600160a01b0385166000908152602a602052604090205460ff165b156129e0575060005b60008115612c2b576001600160a01b0386166000908152602c602052604090205460ff168015612a1257506000602354115b15612ad057612a376064612a31602354886134df90919063ffffffff16565b906134f2565b905060235460265482612a4a9190613a24565b612a549190613a43565b60296000828254612a659190613a65565b9091555050602354602454612a7a9083613a24565b612a849190613a43565b60286000828254612a959190613a65565b9091555050602354602554612aaa9083613a24565b612ab49190613a43565b60276000828254612ac59190613a65565b90915550612bad9050565b6001600160a01b0387166000908152602c602052604090205460ff168015612afa57506000601f54115b15612bad57612b196064612a31601f54886134df90919063ffffffff16565b9050601f5460225482612b2c9190613a24565b612b369190613a43565b60296000828254612b479190613a65565b9091555050601f54602054612b5c9083613a24565b612b669190613a43565b60286000828254612b779190613a65565b9091555050601f54602154612b8c9083613a24565b612b969190613a43565b60276000828254612ba79190613a65565b90915550505b6001600160a01b0387166000908152602c602052604090205460ff168015612bd65750601b5415155b8015612be45750601b544311155b15612c0d576001600160a01b0386166000908152601d60205260409020805460ff191660011790555b8015612c1e57612c1e87308361314c565b612c288186613a7d565b94505b612c3687878761314c565b50505050505050565b6001600160a01b038216612c955760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161113f565b8060026000828254612ca79190613a65565b90915550506001600160a01b03821660009081526020819052604081208054839290612cd4908490613a65565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6113c88282612c3f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216612dda5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161113f565b6001600160a01b03821660009081526020819052604090205481811015612e4e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161113f565b6001600160a01b0383166000908152602081905260408120838303905560028054849290612e7d908490613a7d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b03831660009081526012602052604090205460ff1615612f315760405162461bcd60e51b815260206004820152601c60248201527f4f6e6520616374697665207374616b6520706572206163636f756e7400000000604482015260640161113f565b60008211612f785760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207374616b65206e6f7468696e6760601b604482015260640161113f565b6040518060800160405280838152602001600b8381548110612f9c57612f9c613b1c565b9060005260206000209060020201600001548152602001428152602001600b8381548110612fcc57612fcc613b1c565b600091825260208083206002928302016001908101549094526001600160a01b0388168352600c81526040808420865181558683015181870155868201519381019390935560609095015160039092019190915560129052918220805460ff1916821790556008805491929091613044908490613a65565b92505081905550816009600082825461305d9190613a65565b9091555050505050565b6001600160a01b0382166000818152602c6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600b80546130cb90600190613a7d565b815481106130db576130db613b1c565b9060005260206000209060020201600b82815481106130fc576130fc613b1c565b600091825260209091208254600290920201908155600191820154910155600b80548061312b5761312b613b32565b60008281526020812060026000199093019283020181815560010155905550565b6001600160a01b0383166131725760405162461bcd60e51b815260040161113f90613a94565b6001600160a01b0382166131985760405162461bcd60e51b815260040161113f90613ad9565b6001600160a01b038316600090815260208190526040902054818110156132105760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161113f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290613247908490613a65565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161329391815260200190565b60405180910390a36115aa565b30600090815260208190526040812054905060006028546027546029546132c79190613a65565b6132d19190613a65565b905060008215806132e0575081155b156132ea57505050565b6018546132f8906014613a24565b8311156133105760185461330d906014613a24565b92505b6000600283602954866133239190613a24565b61332d9190613a43565b6133379190613a43565b9050600061334585836134fe565b9050476133518261350a565b600061335d47836134fe565b9050600061337a87612a31602754856134df90919063ffffffff16565b9050600061339788612a31602854866134df90919063ffffffff16565b90506000816133a68486613a7d565b6133b09190613a7d565b600060298190556027819055602881905560155460405192935061010090046001600160a01b031691849181818185875af1925050503d8060008114613412576040519150601f19603f3d011682016040523d82523d6000602084013e613417565b606091505b5090985050861580159061342b5750600081115b1561347e5761343a87826136ca565b602954604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6016546040516001600160a01b03909116904790600081818185875af1925050503d80600081146134cb576040519150601f19603f3d011682016040523d82523d6000602084013e6134d0565b606091505b50505050505050505050505050565b60006134eb8284613a24565b9392505050565b60006134eb8284613a43565b60006134eb8284613a7d565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061353f5761353f613b1c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156135bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135e19190613b48565b816001815181106135f4576135f4613b1c565b60200260200101906001600160a01b031690816001600160a01b03168152505061363f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461216c565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790613694908590600090869030904290600401613b65565b600060405180830381600087803b1580156136ae57600080fd5b505af11580156136c2573d6000803e3d6000fd5b505050505050565b6136f5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461216c565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c40160606040518083038185885af115801561377f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611af49190613bd6565b600060208083528351808285015260005b818110156137d1578581018301518582016040015282016137b5565b818111156137e3576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146111ac57600080fd5b6000806040838503121561382157600080fd5b823561382c816137f9565b946020939093013593505050565b60006020828403121561384c57600080fd5b81356134eb816137f9565b60006020828403121561386957600080fd5b5035919050565b60008060006060848603121561388557600080fd5b8335613890816137f9565b925060208401356138a0816137f9565b929592945050506040919091013590565b600080604083850312156138c457600080fd5b50508035926020909101359150565b600080600080608085870312156138e957600080fd5b84356138f4816137f9565b966020860135965060408601359560600135945092505050565b80358015158114611f5257600080fd5b6000806040838503121561393157600080fd5b823561393c816137f9565b915061394a6020840161390e565b90509250929050565b60008060006060848603121561396857600080fd5b505081359360208301359350604090920135919050565b60006020828403121561399157600080fd5b6134eb8261390e565b600080604083850312156139ad57600080fd5b82356139b8816137f9565b915060208301356139c8816137f9565b809150509250929050565b600181811c908216806139e757607f821691505b60208210811415613a0857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a3e57613a3e613a0e565b500290565b600082613a6057634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613a7857613a78613a0e565b500190565b600082821015613a8f57613a8f613a0e565b500390565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215613b5a57600080fd5b81516134eb816137f9565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613bb55784516001600160a01b031683529383019391830191600101613b90565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215613beb57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220ef873664685ed626ff7ec76a936283933b4a9db403a46e3793343e5d6e86b81264736f6c634300080a0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.