ETH Price: $3,470.93 (+4.61%)

Token

Stakify (SIFY)
 

Overview

Max Total Supply

242,760,935.657976791630253001 SIFY

Holders

613 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
14,849.273740607821783476 SIFY

Value
$0.00
0xcaae34247b4c8ef5697445d1f73dad7afacf8760
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Stakify employs a positive Rebase formula that enables the direct correlation between daily token distribution and rebase rewards.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Stakify

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : Lock.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/math/SignedSafeMath.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "./Pool.sol";

contract Stakify is IERC20, Ownable {
    using SafeMath for uint256;
    using SignedSafeMath for int256;

    event LogRebase(uint256 indexed epoch, uint256 totalSupply);
    event RepellentFeeActivated(uint256 activatedAmount);
    event RepellentFeeDisabled(uint256 disabledAmount);

    IUniswapV2Pair public pairContract;
    mapping(address => bool) _isFeeExempt;
    mapping(address => bool) isAuthorized;
    mapping(address => bool) isMaxWalletExcluded;
    mapping(address => bool) isMaxTxExcluded;

    modifier validRecipient(address to) {
        require(to != address(0x0));
        _;
    }

    string constant _name = "Stakify";
    string constant _symbol = "SIFY";
    uint8 constant _decimals = 18;

    uint256 public constant DECIMALS = 18;
    uint256 public constant MAX_UINT256 = ~uint256(0);
    uint8 public constant RATE_DECIMALS = 11;

    uint256 private constant INITIAL_FRAGMENTS_SUPPLY =
        100 * 10 ** 6 * 10 ** DECIMALS;

    uint256 public autoBurnFee = 0;
    uint256 public liquidityFee = 0;
    uint256 public treasuryFee = 0;
    uint256 public totalFee = 0;

    uint256 public repellentSellAutoBurnFee = 15;
    uint256 public repellentSellLiquidityFee = 5;
    uint256 public repellentSellTreasuryFee = 10;
    uint256 public repellentSellTotalFee = 30;

    uint256 public repellentBuyAutoBurnFee = 1;
    uint256 public repellentBuyLiquidityFee = 1;
    uint256 public repellentBuyTreasuryFee = 1;
    uint256 public repellentBuyTotalFee = 3;

    uint256 public firstTax = 30;

    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;

    address BUSD = 0xdAC17F958D2ee523a2206206994597C13D831ec7;

    address public treasuryFeeWallet =
        0xdAb6280d5a87c10250F454EE3AD3b3b0C1A274C0;

    bool public swapEnabled = true;

    IUniswapV2Router02 public router;

    enum LPLevels {
        Level1,
        Level2,
        Level3,
        Level4,
        Level5
    }

    LPLevels public currentLpLevel;

    ReferalPool public referalPool;

    uint256 public lastLPCheckedAt;
    uint256 public lastLPAmount;
    uint256 public lpCheckFrequency = 24 hours;

    struct LPRange {
        uint256 minLimit;
        uint256 maxLimit;
        uint256 dropLimit;
        uint256 recoverLimit;
    }

    mapping(LPLevels => LPRange) public lpRanges;

    address public pair;
    bool inSwap = false;
    modifier swapping() {
        inSwap = true;
        _;
        inSwap = false;
    }

    uint256 private constant TOTAL_GONS =
        MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY);

    bool public tradingOpen = false;

    bool public isRepellentFee;

    uint256 public repellentFeeActivatedAt;
    uint256 public repellentFeeActivatedAmount;
    uint256 public repellentFeeRecoverAmount;

    uint256 public lastRepellentFeeActivatedAt;
    uint256 public lastRepellentFeeRecoveredAt;

    bool public _autoRebase;
    uint256 public _initRebaseStartTime;
    uint256 public _lastRebasedTime;
    uint256 public _lastAddLiquidityTime;
    uint256 public launchBlock;
    uint256 public launchTime;
    uint256 public _totalSupply;
    uint256 private _gonsPerFragment;

    uint256 public maxWallet = 2;
    uint256 public maxTransaction = 2;

    mapping(uint256 => uint256) public rebaseRates;

    mapping(address => uint256) private _gonBalances;
    mapping(address => mapping(address => uint256)) private _allowedFragments;

    constructor() {
        router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        pair = IUniswapV2Factory(router.factory()).createPair(
            router.WETH(),
            address(this)
        );

        address _newOwner = 0x64Ab7F64187AF212007A3EE9fdF990101DE4Bc16;

        isMaxWalletExcluded[_newOwner] = true;
        isMaxTxExcluded[_newOwner] = true;

        _allowedFragments[address(this)][address(router)] = type(uint256).max;
        pairContract = IUniswapV2Pair(pair);

        isAuthorized[_newOwner] = true;

        _totalSupply = INITIAL_FRAGMENTS_SUPPLY;
        _gonBalances[_newOwner] = TOTAL_GONS;
        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);

        _isFeeExempt[_newOwner] = true;
        _isFeeExempt[address(this)] = true;

        lpRanges[LPLevels.Level1].minLimit = 0;
        lpRanges[LPLevels.Level1].maxLimit = 100000 ether;
        lpRanges[LPLevels.Level1].dropLimit = 1000;
        lpRanges[LPLevels.Level1].recoverLimit = 2000;

        lpRanges[LPLevels.Level2].minLimit = 100000 ether;
        lpRanges[LPLevels.Level2].maxLimit = 200000 ether;
        lpRanges[LPLevels.Level2].dropLimit = 750;
        lpRanges[LPLevels.Level2].recoverLimit = 1500;

        lpRanges[LPLevels.Level3].minLimit = 200000 ether;
        lpRanges[LPLevels.Level3].maxLimit = 500000 ether;
        lpRanges[LPLevels.Level3].dropLimit = 500;
        lpRanges[LPLevels.Level3].recoverLimit = 1000;

        lpRanges[LPLevels.Level4].minLimit = 500000 ether;
        lpRanges[LPLevels.Level4].maxLimit = 1000000 ether;
        lpRanges[LPLevels.Level4].dropLimit = 250;
        lpRanges[LPLevels.Level4].recoverLimit = 500;

        lpRanges[LPLevels.Level5].minLimit = 1000000 ether;
        lpRanges[LPLevels.Level5].maxLimit = 600000 ether;
        lpRanges[LPLevels.Level5].dropLimit = 100;
        lpRanges[LPLevels.Level5].recoverLimit = 200;

        referalPool = new ReferalPool(_newOwner, address(this));

        rebaseRates[0] = 1990454926;
        rebaseRates[1] = 197041366050627;
        rebaseRates[2] = 194889257616765;
        rebaseRates[3] = 19256552122506;
        rebaseRates[4] = 190040343656622;
        rebaseRates[5] = 187275393171979;
        rebaseRates[6] = 18422022807982;
        rebaseRates[7] = 180806586722789;
        rebaseRates[8] = 176938855799049;
        rebaseRates[9] = 172477165745424;
        rebaseRates[10] = 167204993319412;
        rebaseRates[11] = 160760319411521;
        rebaseRates[12] = 152466421092887;
        rebaseRates[13] = 140811084880022;
        rebaseRates[14] = 121016398099906;

        _transferOwnership(_newOwner);
        emit Transfer(address(0x0), _newOwner, _totalSupply);
    }

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    function rebase() internal {
        if (inSwap) return;
        uint256 rebaseRate;
        uint256 deltaTimeFromInit = block.timestamp - _initRebaseStartTime;
        uint256 deltaTime = block.timestamp - _lastRebasedTime;
        uint256 times = deltaTime.div(900);

        if (deltaTimeFromInit <= 10 days) {
            rebaseRate = rebaseRates[0];
        } else if (deltaTimeFromInit < 150 days) {
            uint256 numberOf10Days = deltaTimeFromInit / 10 days;
            rebaseRate = rebaseRates[numberOf10Days];
        } else {
            rebaseRate = 272039454237335;
        }

        for (uint256 i = 0; i < times; i++) {
            if (deltaTimeFromInit >= 150 days) {
                uint256 increaseSupply = _totalSupply.mul(rebaseRate).div(
                    10 ** 18
                );
                _totalSupply = _totalSupply.add(increaseSupply);
            } else {
                uint256 increaseSupply = _totalSupply.mul(rebaseRate).div(
                    10 ** 11
                );
                _totalSupply = _totalSupply.add(increaseSupply);
            }
        }

        _gonsPerFragment = TOTAL_GONS.div(_totalSupply);
        _lastRebasedTime = _lastRebasedTime.add(times.mul(900));

        pairContract.sync();

        emit LogRebase(block.timestamp, _totalSupply);
    }

    function transfer(
        address to,
        uint256 value
    ) external override validRecipient(to) returns (bool) {
        _transferFrom(msg.sender, to, value);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external override validRecipient(to) returns (bool) {
        if (_allowedFragments[from][msg.sender] != type(uint256).max) {
            _allowedFragments[from][msg.sender] = _allowedFragments[from][
                msg.sender
            ].sub(value, "Insufficient Allowance");
        }
        _transferFrom(from, to, value);
        return true;
    }

    function _basicTransfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 gonAmount = amount.mul(_gonsPerFragment);
        _gonBalances[from] = _gonBalances[from].sub(gonAmount);
        _gonBalances[to] = _gonBalances[to].add(gonAmount);
        return true;
    }

    function _transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) internal returns (bool) {
        if (!isAuthorized[sender]) {
            require(tradingOpen, "Trading not open yet");
        }

        if (inSwap || sender == address(referalPool)) {
            return _basicTransfer(sender, recipient, amount);
        }

        if (
            !isMaxWalletExcluded[recipient] &&
            recipient != address(pair) &&
            tradingOpen
        ) {
            uint256 _balaceAfter = balanceOf(recipient) + amount;

            require(
                _balaceAfter <= ((_totalSupply * maxWallet) / 100),
                "Max Wallet Exceeded"
            );
        }

        if (!isMaxTxExcluded[sender]) {
            require(
                amount <= ((_totalSupply * maxTransaction) / 100),
                "Max transaction exceeded"
            );
        }

        if (
            (lastLPCheckedAt + lpCheckFrequency) < block.timestamp &&
            !isRepellentFee &&
            tradingOpen
        ) {
            uint256 lpBnbBalance = IERC20(router.WETH()).balanceOf(
                address(pair)
            );
            lastLPAmount = getBnbPrice(lpBnbBalance);
            lastLPCheckedAt = block.timestamp;
        }

        if (sender == pair) {
            if (referalPool.userReferal(recipient) != ZERO) {
                referalPool.setReferalBonus(recipient, amount);
            }
        }
        if (tradingOpen) {
            calculateLPStatus();
        }

        if (shouldRebase()) {
            rebase();
        }

        if (shouldSwapBack()) {
            swapBack();
        }

        uint256 gonAmount = amount.mul(_gonsPerFragment);
        _gonBalances[sender] = _gonBalances[sender].sub(gonAmount);
        uint256 gonAmountReceived = shouldTakeFee(sender, recipient)
            ? takeFee(sender, recipient, gonAmount)
            : gonAmount;
        _gonBalances[recipient] = _gonBalances[recipient].add(
            gonAmountReceived
        );

        emit Transfer(
            sender,
            recipient,
            gonAmountReceived.div(_gonsPerFragment)
        );
        return true;
    }

    function takeFee(
        address sender,
        address recipient,
        uint256 gonAmount
    ) internal returns (uint256) {
        uint256 feeAmount = 0;

        uint256 tokensToBurn = 0;

        if (!isRepellentFee) {
            if (recipient == pair) {
                if (block.number < (launchBlock + 2))
                    feeAmount = gonAmount.div(100).mul(45);
                else if (block.timestamp < (launchTime + 24 hours))
                    feeAmount = gonAmount.div(100).mul(firstTax);
                else {
                    feeAmount = gonAmount.div(100).mul(totalFee);
                    tokensToBurn = feeAmount.mul(autoBurnFee).div(totalFee);
                }
            } else {
                feeAmount = gonAmount.div(100).mul(totalFee);

                tokensToBurn = feeAmount.mul(autoBurnFee).div(totalFee);
            }
        } else {
            if (recipient == pair) {
                feeAmount = gonAmount.div(100).mul(repellentSellTotalFee);

                tokensToBurn = feeAmount.mul(repellentSellAutoBurnFee).div(
                    repellentSellTotalFee
                );
            } else {
                feeAmount = gonAmount.div(100).mul(repellentBuyTotalFee);

                tokensToBurn = feeAmount.mul(repellentBuyAutoBurnFee).div(
                    repellentBuyTotalFee
                );
            }
        }

        feeAmount = feeAmount.sub(tokensToBurn);

        _gonBalances[DEAD] = _gonBalances[DEAD].add(tokensToBurn);

        emit Transfer(sender, DEAD, tokensToBurn.div(_gonsPerFragment));
        _gonBalances[address(this)] = _gonBalances[address(this)].add(
            feeAmount
        );

        emit Transfer(sender, address(this), feeAmount.div(_gonsPerFragment));
        return gonAmount.sub(feeAmount + tokensToBurn);
    }

    function swapAndLiquify(uint256 tokens) private {
        // split the contract balance into halves
        uint256 half = tokens.div(2);
        uint256 otherHalf = tokens.sub(half);

        // capture the contract's current ETH balance.
        // this is so that we can capture exactly the amount of ETH that the
        // swap creates, and not make the liquidity event include any ETH that
        // has been manually sent to the contract
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

        // how much ETH did we just swap into?
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // add liquidity to uniswap
        addLiquidity(otherHalf, newBalance);
    }

    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] = router.WETH();
        // make the swap
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 bnbAmount) private {
        // add the liquidity
        router.addLiquidityETH{value: bnbAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(DEAD),
            block.timestamp
        );
    }

    function swapBack() internal swapping {
        uint256 contractTokenBalance = balanceOf(address(this));

        if (contractTokenBalance == 0 && totalFee == 0) return;

        uint256 _totalSwapFees = liquidityFee + treasuryFee;

        uint256 _tokensToTreasury = (contractTokenBalance * treasuryFee) /
            _totalSwapFees;

        if (_tokensToTreasury > 0) {
            swapTokensForEth(_tokensToTreasury);
            payable(treasuryFeeWallet).transfer(address(this).balance);
        }
        if ((contractTokenBalance - _tokensToTreasury) > 0)
            swapAndLiquify(contractTokenBalance - _tokensToTreasury);
    }

    function shouldTakeFee(
        address from,
        address to
    ) internal view returns (bool) {
        return (pair == from || pair == to) && !_isFeeExempt[from];
    }

    function shouldRebase() internal view returns (bool) {
        return
            _autoRebase &&
            msg.sender != pair &&
            !inSwap &&
            tradingOpen &&
            block.timestamp >= (_lastRebasedTime + 15 minutes);
    }

    function shouldSwapBack() internal view returns (bool) {
        return !inSwap && msg.sender != pair && swapEnabled;
    }

    function enableSwap(bool status) external onlyOwner {
        swapEnabled = status;
    }

    function setAutoRebase(bool _flag) external onlyOwner {
        if (_flag) {
            _autoRebase = _flag;
            _lastRebasedTime = block.timestamp;
        } else {
            _autoRebase = _flag;
        }
    }

    function allowance(
        address owner_,
        address spender
    ) external view override returns (uint256) {
        return _allowedFragments[owner_][spender];
    }

    function enableTrading() external onlyOwner {
        require(!tradingOpen, "Already Enabaled");
        tradingOpen = true;
        launchBlock = block.number;
        launchTime = block.timestamp;
        _initRebaseStartTime = block.timestamp;
        _lastRebasedTime = block.timestamp;
        _autoRebase = true;
    }

    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) external returns (bool) {
        uint256 oldValue = _allowedFragments[msg.sender][spender];
        if (subtractedValue >= oldValue) {
            _allowedFragments[msg.sender][spender] = 0;
        } else {
            _allowedFragments[msg.sender][spender] = oldValue.sub(
                subtractedValue
            );
        }
        emit Approval(
            msg.sender,
            spender,
            _allowedFragments[msg.sender][spender]
        );
        return true;
    }

    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) external returns (bool) {
        _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][
            spender
        ].add(addedValue);
        emit Approval(
            msg.sender,
            spender,
            _allowedFragments[msg.sender][spender]
        );
        return true;
    }

    function approve(
        address spender,
        uint256 value
    ) external override returns (bool) {
        _allowedFragments[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function checkFeeExempt(address _addr) external view returns (bool) {
        return _isFeeExempt[_addr];
    }

    function getCirculatingSupply() public view returns (uint256) {
        return
            (TOTAL_GONS.sub(_gonBalances[DEAD]).sub(_gonBalances[ZERO])).div(
                _gonsPerFragment
            );
    }

    function isNotInSwap() external view returns (bool) {
        return !inSwap;
    }

    function manualSync() external {
        IUniswapV2Pair(pair).sync();
    }

    function setFeeReceivers(address _treasuryFeeWallet) external onlyOwner {
        treasuryFeeWallet = _treasuryFeeWallet;
    }

    function getLiquidityBacking(
        uint256 accuracy
    ) public view returns (uint256) {
        uint256 liquidityBalance = _gonBalances[pair].div(_gonsPerFragment);
        return
            accuracy.mul(liquidityBalance.mul(2)).div(getCirculatingSupply());
    }

    function setWhitelist(address _addr, bool _status) external onlyOwner {
        _isFeeExempt[_addr] = _status;
    }

    function setLP(address _address) external onlyOwner {
        pairContract = IUniswapV2Pair(_address);
    }

    function totalSupply() external view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view override returns (uint256) {
        return _gonBalances[account].div(_gonsPerFragment);
    }

    function isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }

    function _transferBNBToWallet(
        address payable recipient,
        uint256 amount
    ) private {
        recipient.transfer(amount);
    }

    function calculateLPStatus() internal {
        uint256 lpBnbBalance = IERC20(router.WETH()).balanceOf(address(pair));
        uint256 lpBalance = getBnbPrice(lpBnbBalance);

        if (
            lpBalance >= lpRanges[LPLevels.Level1].minLimit &&
            lpBalance <= lpRanges[LPLevels.Level1].maxLimit
        ) currentLpLevel = LPLevels.Level1;

        if (
            lpBalance >= lpRanges[LPLevels.Level2].minLimit &&
            lpBalance <= lpRanges[LPLevels.Level2].maxLimit
        ) currentLpLevel = LPLevels.Level2;

        if (
            lpBalance >= lpRanges[LPLevels.Level3].minLimit &&
            lpBalance <= lpRanges[LPLevels.Level3].maxLimit
        ) currentLpLevel = LPLevels.Level3;

        if (
            lpBalance >= lpRanges[LPLevels.Level4].minLimit &&
            lpBalance <= lpRanges[LPLevels.Level4].maxLimit
        ) currentLpLevel = LPLevels.Level4;

        if (lpBalance >= lpRanges[LPLevels.Level5].minLimit)
            currentLpLevel = LPLevels.Level5;

        if (lastLPAmount > lpBalance && !isRepellentFee) {
            uint256 lpDifference = lastLPAmount - lpBalance;

            uint256 differencePercentage = ((lpDifference * 10000) /
                lastLPAmount);

            if (differencePercentage > lpRanges[currentLpLevel].dropLimit) {
                isRepellentFee = true;
                repellentFeeActivatedAt = block.timestamp;
                lastRepellentFeeActivatedAt = block.timestamp;
                repellentFeeActivatedAmount = lpBalance;
                repellentFeeRecoverAmount =
                    lpBalance +
                    ((lpBalance * lpRanges[currentLpLevel].recoverLimit) /
                        10000);

                emit RepellentFeeActivated(lpBalance);
            }
        }
        if (isRepellentFee && lpBalance > repellentFeeRecoverAmount) {
            isRepellentFee = false;
            repellentFeeActivatedAt = 0;
            repellentFeeActivatedAmount = 0;
            repellentFeeRecoverAmount = 0;

            lastRepellentFeeRecoveredAt = block.timestamp;

            lastLPAmount = lpBalance;

            emit RepellentFeeDisabled(lpBalance);
        }
    }

    function getBnbPrice(uint256 _amount) public view returns (uint256) {
        address[] memory path = new address[](2);
        path[0] = router.WETH();
        path[1] = BUSD;

        uint256[] memory amounts = router.getAmountsOut(_amount, path);

        return amounts[1];
    }

    function setLpRange(
        LPLevels _level,
        uint256 _min,
        uint256 _max,
        uint256 _drop,
        uint256 _recover
    ) external onlyOwner {
        LPRange storage currentRange = lpRanges[_level];

        currentRange.minLimit = _min;
        currentRange.maxLimit = _max;
        currentRange.dropLimit = _drop;
        currentRange.recoverLimit = _recover;
    }

    function changeNormalFees(
        uint256 _autoBurnFee,
        uint256 _liquidityFee,
        uint256 _treasuryFee
    ) external onlyOwner {
        autoBurnFee = _autoBurnFee;
        liquidityFee = _liquidityFee;
        treasuryFee = _treasuryFee;

        totalFee = _autoBurnFee + _liquidityFee + _treasuryFee;

        require(totalFee <= 20, "Fees can not be grater than 20%");
    }

    function changeRepellentSellFees(
        uint256 _autoBurnFee,
        uint256 _liquidityFee,
        uint256 _treasuryFee
    ) external onlyOwner {
        repellentSellAutoBurnFee = _autoBurnFee;
        repellentSellLiquidityFee = _liquidityFee;
        repellentSellTreasuryFee = _treasuryFee;

        repellentSellTotalFee = _autoBurnFee + _liquidityFee + _treasuryFee;

        require(repellentSellTotalFee <= 30, "Fees can not be grater than 30%");
    }

    function changeRepellentBuyFees(
        uint256 _autoBurnFee,
        uint256 _liquidityFee,
        uint256 _treasuryFee
    ) external onlyOwner {
        repellentBuyAutoBurnFee = _autoBurnFee;
        repellentBuyLiquidityFee = _liquidityFee;
        repellentBuyTreasuryFee = _treasuryFee;

        repellentBuyTotalFee = _autoBurnFee + _liquidityFee + _treasuryFee;

        require(repellentSellTotalFee <= 20, "Fees can not be grater than 20%");
    }

    function setAuthorizedWallet(
        address _wallet,
        bool _status
    ) external onlyOwner {
        isAuthorized[_wallet] = _status;
    }

    function changeLpCheckFrequency(uint256 _hours) external onlyOwner {
        lpCheckFrequency = _hours;
    }

    function excludeFromMaxTx(
        address _wallet,
        bool _status
    ) external onlyOwner {
        isMaxTxExcluded[_wallet] = _status;
    }

    function excludeFromMaxWallet(
        address _wallet,
        bool _status
    ) external onlyOwner {
        isMaxWalletExcluded[_wallet] = _status;
    }

    function changeFirst24HourTax(uint256 _tax) external onlyOwner {
        require(_tax <= 30, "Tax can not exceed 30%");
        firstTax = _tax;
    }

    receive() external payable {}
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 4 of 11 : 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 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 11 : SignedSafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SignedSafeMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SignedSafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SignedSafeMath {
    /**
     * @dev Returns the multiplication of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        return a * b;
    }

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

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

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

File 7 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

File 8 of 11 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 9 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

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

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

File 10 of 11 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 11 of 11 : Pool.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.19;

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

contract ReferalPool is Ownable {
    enum ReferalLevels {
        Basic,
        Advanced,
        Pro
    }
    struct Referals {
        ReferalLevels level;
        uint256 totalRewards;
        uint256 claimedRewards;
        uint256 lastClaimedAt;
        uint256 lastRewardsAt;
        address lastRewardFrom;
        bool isAtMaxLevel;
        uint256 referalCount;
    }

    struct TierStructure {
        uint256 minReferals;
        uint256 rewardPercentage;
    }

    uint256 constant DEVIDE_FACTOR = 10000;

    address public superAdmin;
    IERC20 public Token;

    uint256 public totalRewardsSent;

    mapping(ReferalLevels => TierStructure) public levelDetails;

    mapping(address => Referals) public referalDetails;

    mapping(address => address) public userReferal;

    event NewReferalAdded(address referee, address referal);
    event NewReferalBonusAdded(address from, address to, uint256 amount);

    modifier onlySuper() {
        require(
            msg.sender == superAdmin,
            "Ownable: caller is not the Super admin"
        );
        _;
    }

    constructor(address _superAdmin, address _token) {
        TierStructure storage _level1 = levelDetails[ReferalLevels.Basic];
        TierStructure storage _level2 = levelDetails[ReferalLevels.Advanced];
        TierStructure storage _level3 = levelDetails[ReferalLevels.Pro];

        _level1.minReferals = 1;
        _level1.rewardPercentage = 100;

        _level2.minReferals = 4;
        _level2.rewardPercentage = 200;

        _level3.minReferals = 7;
        _level3.rewardPercentage = 300;

        superAdmin = _superAdmin;
        Token = IERC20(_token);
    }

    function setReferal(address _referal) external {
        require(
            userReferal[msg.sender] == address(0),
            "Referal address already set"
        );

        require(msg.sender != _referal, "Can not set own address");

        userReferal[msg.sender] = _referal;

        Referals storage referal = referalDetails[_referal];

        referal.referalCount++;

        if (!referal.isAtMaxLevel) {
            updateReferalLevel(_referal);
        }

        emit NewReferalAdded(msg.sender, _referal);
    }

    function setReferalBonus(
        address from,
        uint256 buyAmount
    ) external onlyOwner {
        if (userReferal[from] == address(0)) return;
        Referals storage referal = referalDetails[userReferal[from]];
        TierStructure memory tier = levelDetails[referal.level];

        uint256 _bonus = (buyAmount * tier.rewardPercentage) / DEVIDE_FACTOR;

        referal.lastRewardFrom = from;
        referal.lastRewardsAt = block.timestamp;
        referal.totalRewards += _bonus;

        Token.transfer(userReferal[from], _bonus);

        emit NewReferalBonusAdded(from, userReferal[from], _bonus);
    }

    function changeTiers(
        ReferalLevels level,
        uint256 newMinReferals,
        uint256 newRewardPercentage
    ) external onlySuper {
        TierStructure storage tier = levelDetails[level];

        // Check that the provided values are valid
        require(newMinReferals > 0, "Minimum referrals must be greater than 0");
        require(
            newRewardPercentage > 0,
            "Reward percentage must be greater than 0"
        );

        // Update the tier structure with the new values
        tier.minReferals = newMinReferals;
        tier.rewardPercentage = newRewardPercentage;
    }

    function withdrawErc20(address _token, uint256 _amount) external onlySuper {
        IERC20(_token).transfer(msg.sender, _amount);
    }

    function updateReferalLevel(address _user) internal {
        Referals storage referal = referalDetails[_user];

        uint256 referalCount = referal.referalCount;
        ReferalLevels newLevel;

        if (referalCount >= levelDetails[ReferalLevels.Pro].minReferals) {
            newLevel = ReferalLevels.Pro;
        } else if (
            referalCount >= levelDetails[ReferalLevels.Advanced].minReferals
        ) {
            newLevel = ReferalLevels.Advanced;
        } else {
            newLevel = ReferalLevels.Basic;
        }

        // Update the referral's level if it has changed
        if (referal.level != newLevel) {
            referal.level = newLevel;
            if (newLevel == ReferalLevels.Pro) referal.isAtMaxLevel = true;
        }
    }

    function claimRewards() external {
        Referals storage referal = referalDetails[msg.sender];

        require(referal.totalRewards > 0, "you didn't start earning yet");

        uint256 claimabaleRewards = referal.totalRewards -
            referal.claimedRewards;

        require(claimabaleRewards > 0, "you don't have any claiamble rewards");

        referal.claimedRewards += claimabaleRewards;

        referal.lastClaimedAt = block.timestamp;
        Token.transfer(msg.sender, claimabaleRewards);

        totalRewardsSent += claimabaleRewards;
    }
}

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":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"activatedAmount","type":"uint256"}],"name":"RepellentFeeActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"disabledAmount","type":"uint256"}],"name":"RepellentFeeDisabled","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"},{"inputs":[],"name":"DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_UINT256","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_autoRebase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_initRebaseStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_lastAddLiquidityTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_lastRebasedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_tax","type":"uint256"}],"name":"changeFirst24HourTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_hours","type":"uint256"}],"name":"changeLpCheckFrequency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_autoBurnFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"changeNormalFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_autoBurnFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"changeRepellentBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_autoBurnFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"changeRepellentSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"checkFeeExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentLpLevel","outputs":[{"internalType":"enum Stakify.LPLevels","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[{"internalType":"bool","name":"status","type":"bool"}],"name":"enableSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"excludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"excludeFromMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"firstTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getBnbPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCirculatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"getLiquidityBacking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isNotInSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRepellentFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastLPAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastLPCheckedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRepellentFeeActivatedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRepellentFeeRecoveredAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpCheckFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Stakify.LPLevels","name":"","type":"uint8"}],"name":"lpRanges","outputs":[{"internalType":"uint256","name":"minLimit","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"},{"internalType":"uint256","name":"dropLimit","type":"uint256"},{"internalType":"uint256","name":"recoverLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTransaction","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":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairContract","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rebaseRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referalPool","outputs":[{"internalType":"contract ReferalPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"repellentBuyAutoBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentBuyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentBuyTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentBuyTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentFeeActivatedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentFeeActivatedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentFeeRecoverAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentSellAutoBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentSellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentSellTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"repellentSellTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setAuthorizedWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setAutoRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryFeeWallet","type":"address"}],"name":"setFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Stakify.LPLevels","name":"_level","type":"uint8"},{"internalType":"uint256","name":"_min","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"},{"internalType":"uint256","name":"_drop","type":"uint256"},{"internalType":"uint256","name":"_recover","type":"uint256"}],"name":"setLpRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalFee","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":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000600681905560078190556008819055600955600f600a8181556005600b55600c55601e600d8190556001600e819055918290556010919091556003601155601255601380546001600160a01b031990811661dead1790915560148054821690556015805490911673dac17f958d2ee523a2206206994597c13d831ec7179055601680547401dab6280d5a87c10250f454ee3ad3b3b0c1a274c06001600160a81b031990911617905562015180601b55601d805461ffff60a01b191690556002602b819055602c55348015620000da57600080fd5b50620000e63362000aaa565b601780546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156200014b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000171919062000b1f565b6001600160a01b031663c9c65396601760009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f9919062000b1f565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201523060248201526044016020604051808303816000875af115801562000246573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026c919062000b1f565b601d80546001600160a01b039283166001600160a01b03199182161782557f0ed789647784a0f81cd8c89dcb96b593fb53e315945a8193827899f71bb75bd4805460ff1990811660019081179092557f88c544f575e5786f2f72d2c2a128cae28322ddcee65242d87c54592ab3bb47cc8054821683179055306000908152602f602090815260408083206017548916845282528220600019905594548354909416939095169290921781557364ab7f64187af212007a3ee9fdf990101de4bc169384905260039092527f61d73a82ed90f2cb158bc5ee0be1a04a3f2a0eda8b856f1c0d757077358090de805490911690911790556200036e6012600a62000c64565b6200037e906305f5e10062000c72565b6029556200038f6012600a62000c64565b6200039f906305f5e10062000c72565b620003ad9060001962000ca2565b620003bb9060001962000cb9565b6001600160a01b0382166000908152602e60205260409020556029546200041d90620003ea6012600a62000c64565b620003fa906305f5e10062000c72565b620004089060001962000ca2565b620004169060001962000cb9565b9062000afa565b602a556001600160a01b03811660009081526002602090815260408083208054600160ff1991821681179092553080865283862080549092169092179055601c9092527fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84983905569152d02c7e14af68000007fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84a8190556103e87fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84b8190556107d07fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84c557f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a0291909155692a5a058fc295ed0000007f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a038190556102ee7f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a04556105dc7f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a05557ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c87556969e10de76676d08000007ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c888190556101f47ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c898190557ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c8a929092557fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f75569d3c21bcecceda10000007fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f881905560fa7fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f9557fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287fa9190915560049093527fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfb792909255697f0e10af47c1c70000007fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfb85560647fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfb95560c87fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfba559051829190620007839062000b11565b6001600160a01b03928316815291166020820152604001604051809103906000f080158015620007b7573d6000803e3d6000fd5b50601880546001600160a01b0319166001600160a01b0392909216919091179055602d6020526376a3ee8e7f6648a85983aca0407b603b260cacb25b5e5e8e5194522de3d8a800e71aa41bae5565b33544a127437f4ac3b22e31fa68474eb1c8f858cd447cf1ee3eef7de8984178a7afa8f4fe0cd05565b14030f8857d7f3acd642f41c4abca13e6953c1b760d7f24daf271c41106e480dd1fea313ccc725565118383f2e88a7f1d82e85504d8f49072f846129ecee69c763b08a82ee3d81cda62b57a7576d37b5565acd7372d38ae7faa2e4aefbe0e8a3f17f0ef1a62898433725e8346722aad5b9b38d3974d2160835565aa537349020b7ff4e70c5971a4cc8cf9f9f8ecc4b5217b9d5f157385b05a56c54d37f26435621c556510c1362021ae7fb166da6939c8546909795cbdc2ac7eb95e976cea31f094e55573dbb6ac49f74f5565a471505fe9e57f4d73f294a2cb7f5a471fde2e2c5652a46cf819d439af00ca2c7f02d5472b48b85565a0ecc9a599097fa2f336f0b64c36f00eb69e4db2a59b180df22373f5caac79d85090ad12cafb1455659cddf83235107faa6d8055bc02a71b26ecd4539c59cc4a649dc7d4edf9627cf42f174bfc01d3e955659812723b41f47f48a7c22b4b841dea2b1b8967abe3dcb0737ed7989ed909992389a0c35d2af99a55659235edbb85417f09a06d2ff95b1315911018871ff7289c5cdcc91d13f7199020bea57114562f8755658aaadade92177f2ecbe49487c9d4f66b5567f89f53a710a24f49727df0e316d4dcf6f0958d1eeb5565801122b1d8967f05f2ce205818f14000ff326562b115e6628e41d4db1d7367ebd306e95ed8ad0255600e600052656e10536bb5c27f4a61b1430292853920fbd6dc752bb9550146b76100bb623f23f8be635947e4fb5562000a528162000aaa565b806001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60295460405162000a9b91815260200190565b60405180910390a35062000ce6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600062000b08828462000ccf565b90505b92915050565b611031806200409483390190565b60006020828403121562000b3257600080fd5b81516001600160a01b038116811462000b4a57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000ba857816000190482111562000b8c5762000b8c62000b51565b8085161562000b9a57918102915b93841c939080029062000b6c565b509250929050565b60008262000bc15750600162000b0b565b8162000bd05750600062000b0b565b816001811462000be9576002811462000bf45762000c14565b600191505062000b0b565b60ff84111562000c085762000c0862000b51565b50506001821b62000b0b565b5060208310610133831016604e8410600b841016171562000c39575081810a62000b0b565b62000c45838362000b67565b806000190482111562000c5c5762000c5c62000b51565b029392505050565b600062000b08838362000bb0565b808202811582820484141762000b0b5762000b0b62000b51565b634e487b7160e01b600052601260045260246000fd5b60008262000cb45762000cb462000c8c565b500690565b8181038181111562000b0b5762000b0b62000b51565b60008262000ce15762000ce162000c8c565b500490565b61339e8062000cf66000396000f3fe60806040526004361061046c5760003560e01c806383b4ac681161024a578063c8836d3c11610139578063d51ed1c8116100b6578063f38e28e91161007a578063f38e28e914610d02578063f6718d1714610d64578063f887ea4014610d84578063f8b45b0514610da4578063ffb54a9914610dba57600080fd5b8063d51ed1c814610c3c578063dd62ed3e14610c5c578063e01bb68814610ca2578063e15beb8014610cc2578063f2fde38b14610ce257600080fd5b8063d00efb2f116100fd578063d00efb2f14610b8d578063d2a09c7114610ba3578063d2fcc00114610bc3578063d439979014610be3578063d4c989d314610c1c57600080fd5b8063c8836d3c14610b15578063cc32d17614610b35578063cf21e18e14610b4b578063cf4ff6dc14610b61578063cf68145314610b7757600080fd5b80639a0fd579116101c7578063a9059cbb1161018b578063a9059cbb14610a8f578063afb9cf6d14610aaf578063ba625bfe14610ac9578063c062dc5714610adf578063c3f70b5214610aff57600080fd5b80639a0fd57914610a0d5780639b2912cc14610a235780639b87676c14610a39578063a457c2d714610a4f578063a8aa1b3114610a6f57600080fd5b80638ed52bbf1161020e5780638ed52bbf1461097e578063910c67351461099e57806395d89b41146109b4578063979e9589146109e157806398118cb4146109f757600080fd5b806383b4ac68146108f5578063866e7cf5146109155780638a8c523c1461092b5780638aec2cb2146109405780638da5cb5b1461096057600080fd5b8063396b6f71116103665780636556fce5116102e3578063753d02a1116102a7578063753d02a11461087e57806378f5a73f14610893578063790ca413146108b35780638289aaa0146108c95780638346a6c2146108df57600080fd5b80636556fce5146107fc5780636ddd17131461081257806370a0823114610833578063715018a61461085357806374858e761461086857600080fd5b8063583d98401161032a578063583d9840146107635780635962b9d7146107835780635a604c52146107a45780635abcd5ff146107b957806361cf9265146107e657600080fd5b8063396b6f71146106b55780633eaaf86b146106d55780634d709adf146106eb57806353d6fd591461072357806356b0ab011461074357600080fd5b806323b872dd116103f4578063313ce567116103b8578063313ce5671461063157806332b756831461065357806333a581d21461066957806333e75aca1461067f578063395093511461069557600080fd5b806323b872dd146105af5780632b112e49146105cf5780632d1f0b40146105e45780632e0f2625146105fa5780632f34d2821461060f57600080fd5b806318160ddd1161043b57806318160ddd146105385780631c2d86ad1461054d5780631d407b2d146105635780631df4ccfc146105795780631f55f48d1461058f57600080fd5b806306273fc71461047857806306fdde03146104a1578063095ea7b3146104da578063122e97151461050a57600080fd5b3661047357005b600080fd5b34801561048457600080fd5b5061048e601a5481565b6040519081526020015b60405180910390f35b3480156104ad57600080fd5b506040805180820190915260078152665374616b69667960c81b60208201525b6040516104989190612d65565b3480156104e657600080fd5b506104fa6104f5366004612dc8565b610ddb565b6040519015158152602001610498565b34801561051657600080fd5b5060175461052b90600160a01b900460ff1681565b6040516104989190612e0a565b34801561054457600080fd5b5060295461048e565b34801561055957600080fd5b5061048e60105481565b34801561056f57600080fd5b5061048e601e5481565b34801561058557600080fd5b5061048e60095481565b34801561059b57600080fd5b5061048e6105aa366004612e32565b610e48565b3480156105bb57600080fd5b506104fa6105ca366004612e4b565b610fcd565b3480156105db57600080fd5b5061048e6110a7565b3480156105f057600080fd5b5061048e600d5481565b34801561060657600080fd5b5061048e601281565b34801561061b57600080fd5b5061062f61062a366004612e8c565b611127565b005b34801561063d57600080fd5b5060125b60405160ff9091168152602001610498565b34801561065f57600080fd5b5061048e60255481565b34801561067557600080fd5b5061048e60001981565b34801561068b57600080fd5b5061048e60115481565b3480156106a157600080fd5b506104fa6106b0366004612dc8565b611151565b3480156106c157600080fd5b5061062f6106d0366004612ea9565b6111d6565b3480156106e157600080fd5b5061048e60295481565b3480156106f757600080fd5b5060015461070b906001600160a01b031681565b6040516001600160a01b039091168152602001610498565b34801561072f57600080fd5b5061062f61073e366004612eea565b611262565b34801561074f57600080fd5b5061062f61075e366004612ea9565b611295565b34801561076f57600080fd5b5060165461070b906001600160a01b031681565b34801561078f57600080fd5b50601d546104fa90600160b01b900460ff1681565b3480156107b057600080fd5b50610641600b81565b3480156107c557600080fd5b5061048e6107d4366004612e32565b602d6020526000908152604090205481565b3480156107f257600080fd5b5061048e600f5481565b34801561080857600080fd5b5061048e600c5481565b34801561081e57600080fd5b506016546104fa90600160a01b900460ff1681565b34801561083f57600080fd5b5061048e61084e366004612e8c565b611316565b34801561085f57600080fd5b5061062f61133e565b34801561087457600080fd5b5061048e600b5481565b34801561088a57600080fd5b5061062f611352565b34801561089f57600080fd5b5060185461070b906001600160a01b031681565b3480156108bf57600080fd5b5061048e60285481565b3480156108d557600080fd5b5061048e601f5481565b3480156108eb57600080fd5b5061048e601b5481565b34801561090157600080fd5b50601d54600160a01b900460ff16156104fa565b34801561092157600080fd5b5061048e60205481565b34801561093757600080fd5b5061062f6113bc565b34801561094c57600080fd5b5061062f61095b366004612f2e565b611445565b34801561096c57600080fd5b506000546001600160a01b031661070b565b34801561098a57600080fd5b5061062f610999366004612e32565b6114a0565b3480156109aa57600080fd5b5061048e60225481565b3480156109c057600080fd5b506040805180820190915260048152635349465960e01b60208201526104cd565b3480156109ed57600080fd5b5061048e60195481565b348015610a0357600080fd5b5061048e60075481565b348015610a1957600080fd5b5061048e60065481565b348015610a2f57600080fd5b5061048e60265481565b348015610a4557600080fd5b5061048e60245481565b348015610a5b57600080fd5b506104fa610a6a366004612dc8565b6114ad565b348015610a7b57600080fd5b50601d5461070b906001600160a01b031681565b348015610a9b57600080fd5b506104fa610aaa366004612dc8565b611594565b348015610abb57600080fd5b506023546104fa9060ff1681565b348015610ad557600080fd5b5061048e60215481565b348015610aeb57600080fd5b5061062f610afa366004612ea9565b6115c0565b348015610b0b57600080fd5b5061048e602c5481565b348015610b2157600080fd5b5061062f610b30366004612eea565b611641565b348015610b4157600080fd5b5061048e60085481565b348015610b5757600080fd5b5061048e600e5481565b348015610b6d57600080fd5b5061048e60125481565b348015610b8357600080fd5b5061048e600a5481565b348015610b9957600080fd5b5061048e60275481565b348015610baf57600080fd5b5061062f610bbe366004612f70565b611674565b348015610bcf57600080fd5b5061062f610bde366004612eea565b61169a565b348015610bef57600080fd5b506104fa610bfe366004612e8c565b6001600160a01b031660009081526002602052604090205460ff1690565b348015610c2857600080fd5b5061062f610c37366004612eea565b6116cd565b348015610c4857600080fd5b5061048e610c57366004612e32565b611700565b348015610c6857600080fd5b5061048e610c77366004612f8b565b6001600160a01b039182166000908152602f6020908152604080832093909416825291909152205490565b348015610cae57600080fd5b5061062f610cbd366004612e8c565b611754565b348015610cce57600080fd5b5061062f610cdd366004612f70565b61177e565b348015610cee57600080fd5b5061062f610cfd366004612e8c565b6117b5565b348015610d0e57600080fd5b50610d44610d1d366004612fc4565b601c6020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610498565b348015610d7057600080fd5b5061062f610d7f366004612e32565b61182b565b348015610d9057600080fd5b5060175461070b906001600160a01b031681565b348015610db057600080fd5b5061048e602b5481565b348015610dc657600080fd5b50601d546104fa90600160a81b900460ff1681565b336000818152602f602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610e369086815260200190565b60405180910390a35060015b92915050565b604080516002808252606082018352600092839291906020830190803683375050601754604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610eb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eda9190612ff5565b81600081518110610eed57610eed613012565b6001600160a01b039283166020918202929092010152601554825191169082906001908110610f1e57610f1e613012565b6001600160a01b03928316602091820292909201015260175460405163d06ca61f60e01b8152600092919091169063d06ca61f90610f62908790869060040161306c565b600060405180830381865afa158015610f7f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fa7919081019061308d565b905080600181518110610fbc57610fbc613012565b602002602001015192505050919050565b6000826001600160a01b038116610fe357600080fd5b6001600160a01b0385166000908152602f6020908152604080832033845290915290205460001914611090576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b0388166000908152602f8252838120338252909152919091205461106b918590611882565b6001600160a01b0386166000908152602f602090815260408083203384529091529020555b61109b8585856118ae565b50600195945050505050565b602a546014546001600160a01b039081166000908152602e6020526040808220546013549093168252812054909261112292909161111c9190611116906110f06012600a613245565b6110fe906305f5e100613251565b61110a9060001961327e565b61111690600019613292565b90611e32565b90611e3e565b905090565b61112f611e4a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152602f602090815260408083206001600160a01b038616845290915281205461117f9083611ea4565b336000818152602f602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610e36565b6111de611e4a565b600e839055600f8290556010819055806111f883856132a5565b61120291906132a5565b601155600d546014101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e203230250060448201526064015b60405180910390fd5b505050565b61126a611e4a565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61129d611e4a565b600a839055600b829055600c819055806112b783856132a5565b6112c191906132a5565b600d819055601e101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e20333025006044820152606401611254565b602a546001600160a01b0382166000908152602e60205260408120549091610e429190611e3e565b611346611e4a565b6113506000611eb0565b565b601d60009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156113a257600080fd5b505af11580156113b6573d6000803e3d6000fd5b50505050565b6113c4611e4a565b601d54600160a81b900460ff16156114115760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e48115b9858985b195960821b6044820152606401611254565b601d805460ff60a81b1916600160a81b1790554360275542602881905560248190556025556023805460ff19166001179055565b61144d611e4a565b6000601c600087600481111561146557611465612df4565b600481111561147657611476612df4565b81526020810191909152604001600020948555506001840192909255600283015560039091015550565b6114a8611e4a565b601b55565b336000908152602f602090815260408083206001600160a01b038616845290915281205480831061150157336000908152602f602090815260408083206001600160a01b0388168452909152812055611530565b61150b8184611e32565b336000908152602f602090815260408083206001600160a01b03891684529091529020555b336000818152602f602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6000826001600160a01b0381166115aa57600080fd5b6115b53385856118ae565b506001949350505050565b6115c8611e4a565b600683905560078290556008819055806115e283856132a5565b6115ec91906132a5565b60098190556014101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e20323025006044820152606401611254565b611649611e4a565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b61167c611e4a565b60168054911515600160a01b0260ff60a01b19909216919091179055565b6116a2611e4a565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6116d5611e4a565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b602a54601d546001600160a01b03166000908152602e60205260408120549091829161172b91611e3e565b905061174d6117386110a7565b61111c611746846002611f00565b8690611f00565b9392505050565b61175c611e4a565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b611786611e4a565b80156117a3576023805482151560ff199091161790554260255550565b6023805460ff19168215151790555b50565b6117bd611e4a565b6001600160a01b0381166118225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611254565b6117b281611eb0565b611833611e4a565b601e81111561187d5760405162461bcd60e51b81526020600482015260166024820152755461782063616e206e6f74206578636565642033302560501b6044820152606401611254565b601255565b600081848411156118a65760405162461bcd60e51b81526004016112549190612d65565b505050900390565b6001600160a01b03831660009081526003602052604081205460ff1661191e57601d54600160a81b900460ff1661191e5760405162461bcd60e51b8152602060048201526014602482015273151c98591a5b99c81b9bdd081bdc195b881e595d60621b6044820152606401611254565b601d54600160a01b900460ff168061194357506018546001600160a01b038581169116145b1561195a57611953848484611f0c565b905061174d565b6001600160a01b03831660009081526004602052604090205460ff161580156119915750601d546001600160a01b03848116911614155b80156119a65750601d54600160a81b900460ff165b15611a26576000826119b785611316565b6119c191906132a5565b90506064602b546029546119d59190613251565b6119df91906132b8565b811115611a245760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401611254565b505b6001600160a01b03841660009081526005602052604090205460ff16611ab1576064602c54602954611a589190613251565b611a6291906132b8565b821115611ab15760405162461bcd60e51b815260206004820152601860248201527f4d6178207472616e73616374696f6e20657863656564656400000000000000006044820152606401611254565b42601b54601954611ac291906132a5565b108015611ad95750601d54600160b01b900460ff16155b8015611aee5750601d54600160a81b900460ff165b15611be257601754604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611b3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b619190612ff5565b601d546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015611baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bce91906132cc565b9050611bd981610e48565b601a5550426019555b601d546001600160a01b0390811690851603611ce25760145460185460405163c676ea6560e01b81526001600160a01b038681166004830152928316929091169063c676ea6590602401602060405180830381865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d9190612ff5565b6001600160a01b031614611ce25760185460405163b8f3ba8d60e01b81526001600160a01b038581166004830152602482018590529091169063b8f3ba8d90604401600060405180830381600087803b158015611cc957600080fd5b505af1158015611cdd573d6000803e3d6000fd5b505050505b601d54600160a81b900460ff1615611cfc57611cfc611f9e565b611d046124a4565b15611d1157611d1161250d565b611d19612761565b15611d2657611d266127a1565b6000611d3d602a5484611f0090919063ffffffff16565b6001600160a01b0386166000908152602e6020526040902054909150611d639082611e32565b6001600160a01b0386166000908152602e6020526040812091909155611d89868661288c565b611d935781611d9e565b611d9e8686846128e0565b6001600160a01b0386166000908152602e6020526040902054909150611dc49082611ea4565b6001600160a01b038087166000818152602e6020526040902092909255602a54908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e15908590611e3e565b60405190815260200160405180910390a350600195945050505050565b600061174d8284613292565b600061174d82846132b8565b6000546001600160a01b031633146113505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611254565b600061174d82846132a5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061174d8284613251565b600080611f24602a5484611f0090919063ffffffff16565b6001600160a01b0386166000908152602e6020526040902054909150611f4a9082611e32565b6001600160a01b038087166000908152602e60205260408082209390935590861681522054611f799082611ea4565b6001600160a01b0385166000908152602e602052604090205550600190509392505050565b601754604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200c9190612ff5565b601d546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015612055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207991906132cc565b9050600061208682610e48565b60008052601c6020527fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f8495490915081108015906120ed575060008052601c6020527fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84a548111155b15612100576017805460ff60a01b191690555b6001600052601c6020527f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a0254811080159061216657506001600052601c6020527f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a03548111155b1561217f576017805460ff60a01b1916600160a01b1790555b6002600052601c6020527ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c875481108015906121e557506002600052601c6020527ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c88548111155b156121fe576017805460ff60a01b1916600160a11b1790555b6003600052601c6020527fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f754811080159061226457506003600052601c6020527fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f8548111155b1561227d576017805460ff60a01b1916600360a01b1790555b6004600052601c6020527fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfb75481106122c3576017805460ff60a01b1916600160a21b1790555b80601a541180156122de5750601d54600160b01b900460ff16155b1561242857600081601a546122f39190613292565b90506000601a54826127106123089190613251565b61231291906132b8565b9050601c6000601760149054906101000a900460ff16600481111561233957612339612df4565b600481111561234a5761234a612df4565b81526020019081526020016000206002015481111561242557601d805460ff60b01b1916600160b01b17905542601e819055602155601f83905560175461271090601c90600090600160a01b900460ff1660048111156123ac576123ac612df4565b60048111156123bd576123bd612df4565b815260200190815260200160002060030154846123da9190613251565b6123e491906132b8565b6123ee90846132a5565b60209081556040518481527f1c436e00c3e6a4c9fe8c4b06b059a2cc9039fb62142b6512adfe4fe9c4475858910160405180910390a15b50505b601d54600160b01b900460ff168015612442575060205481115b156124a057601d805460ff60b01b191690556000601e819055601f819055602090815542602255601a8290556040518281527f7a711ba0fefabae0255256a32733d1e8f7500ae03b42aca2a87876c9d38a2a30910160405180910390a15b5050565b60235460009060ff1680156124c45750601d546001600160a01b03163314155b80156124da5750601d54600160a01b900460ff16155b80156124ef5750601d54600160a81b900460ff165b80156111225750602554612505906103846132a5565b421015905090565b601d54600160a01b900460ff161561252157565b600080602454426125329190613292565b90506000602554426125449190613292565b9050600061255482610384611e3e565b9050620d2f0083116125925760008052602d6020527f6648a85983aca0407b603b260cacb25b5e5e8e5194522de3d8a800e71aa41bae5493506125ce565b62c5c1008310156125c45760006125ac620d2f00856132b8565b6000908152602d602052604090205494506125ce9050565b65f76b1f08e29793505b60005b818110156126665762c5c100841061261f576000612606670de0b6b3a764000061111c88602954611f0090919063ffffffff16565b6029549091506126169082611ea4565b60295550612654565b600061263f64174876e80061111c88602954611f0090919063ffffffff16565b60295490915061264f9082611ea4565b602955505b8061265e816132e5565b9150506125d1565b506029546126a09061267a6012600a613245565b612688906305f5e100613251565b6126949060001961327e565b61111c90600019613292565b602a556126bb6126b282610384611f00565b60255490611ea4565b6025556001546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561270757600080fd5b505af115801561271b573d6000803e3d6000fd5b50505050427f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f260295460405161275391815260200190565b60405180910390a250505050565b601d54600090600160a01b900460ff161580156127895750601d546001600160a01b03163314155b8015611122575050601654600160a01b900460ff1690565b601d805460ff60a01b1916600160a01b17905560006127bf30611316565b9050801580156127cf5750600954155b156127da575061287d565b60006008546007546127ec91906132a5565b9050600081600854846127ff9190613251565b61280991906132b8565b905080156128555761281a81612b49565b6016546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015612853573d6000803e3d6000fd5b505b60006128618285613292565b1115612879576128796128748285613292565b612c8a565b5050505b601d805460ff60a01b19169055565b601d546000906001600160a01b03848116911614806128b85750601d546001600160a01b038381169116145b801561174d575050506001600160a01b031660009081526002602052604090205460ff161590565b601d5460009081908190600160b01b900460ff1661299f57601d546001600160a01b03908116908616036129695760275461291c9060026132a5565b43101561294057612939602d612933866064611e3e565b90611f00565b9150612a16565b60285461295090620151806132a5565b4210156129695760125461293990612933866064611e3e565b60095461297b90612933866064611e3e565b915061299860095461111c60065485611f0090919063ffffffff16565b9050612a16565b601d546001600160a01b03908116908616036129e457600d546129c790612933866064611e3e565b9150612998600d5461111c600a5485611f0090919063ffffffff16565b6011546129f690612933866064611e3e565b9150612a1360115461111c600e5485611f0090919063ffffffff16565b90505b612a208282611e32565b6013546001600160a01b03166000908152602e6020526040902054909250612a489082611ea4565b601380546001600160a01b039081166000908152602e602052604090209290925554602a54908216918816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612aa1908590611e3e565b60405190815260200160405180910390a3306000908152602e6020526040902054612acc9083611ea4565b306000818152602e6020526040902091909155602a546001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b1a908690611e3e565b60405190815260200160405180910390a3612b3f612b3882846132a5565b8590611e32565b9695505050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612b7e57612b7e613012565b6001600160a01b03928316602091820292909201810191909152601754604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bfb9190612ff5565b81600181518110612c0e57612c0e613012565b6001600160a01b03928316602091820292909201015260175460405163791ac94760e01b815291169063791ac94790612c549085906000908690309042906004016132fe565b600060405180830381600087803b158015612c6e57600080fd5b505af1158015612c82573d6000803e3d6000fd5b505050505050565b6000612c97826002611e3e565b90506000612ca58383611e32565b905047612cb183612b49565b6000612cbd4783611e32565b9050612cc98382612cd0565b5050505050565b60175460135460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612d40573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612cc9919061333a565b600060208083528351808285015260005b81811015612d9257858101830151858201604001528201612d76565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146117b257600080fd5b60008060408385031215612ddb57600080fd5b8235612de681612db3565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612e2c57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215612e4457600080fd5b5035919050565b600080600060608486031215612e6057600080fd5b8335612e6b81612db3565b92506020840135612e7b81612db3565b929592945050506040919091013590565b600060208284031215612e9e57600080fd5b813561174d81612db3565b600080600060608486031215612ebe57600080fd5b505081359360208301359350604090920135919050565b80358015158114612ee557600080fd5b919050565b60008060408385031215612efd57600080fd5b8235612f0881612db3565b9150612f1660208401612ed5565b90509250929050565b803560058110612ee557600080fd5b600080600080600060a08688031215612f4657600080fd5b612f4f86612f1f565b97602087013597506040870135966060810135965060800135945092505050565b600060208284031215612f8257600080fd5b61174d82612ed5565b60008060408385031215612f9e57600080fd5b8235612fa981612db3565b91506020830135612fb981612db3565b809150509250929050565b600060208284031215612fd657600080fd5b61174d82612f1f565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561300757600080fd5b815161174d81612db3565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b838110156130615781516001600160a01b03168752958201959082019060010161303c565b509495945050505050565b8281526040602082015260006130856040830184613028565b949350505050565b600060208083850312156130a057600080fd5b825167ffffffffffffffff808211156130b857600080fd5b818501915085601f8301126130cc57600080fd5b8151818111156130de576130de612fdf565b8060051b604051601f19603f8301168101818110858211171561310357613103612fdf565b60405291825284820192508381018501918883111561312157600080fd5b938501935b8285101561313f57845184529385019392850192613126565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561319c5781600019048211156131825761318261314b565b8085161561318f57918102915b93841c9390800290613166565b509250929050565b6000826131b357506001610e42565b816131c057506000610e42565b81600181146131d657600281146131e0576131fc565b6001915050610e42565b60ff8411156131f1576131f161314b565b50506001821b610e42565b5060208310610133831016604e8410600b841016171561321f575081810a610e42565b6132298383613161565b806000190482111561323d5761323d61314b565b029392505050565b600061174d83836131a4565b8082028115828204841417610e4257610e4261314b565b634e487b7160e01b600052601260045260246000fd5b60008261328d5761328d613268565b500690565b81810381811115610e4257610e4261314b565b80820180821115610e4257610e4261314b565b6000826132c7576132c7613268565b500490565b6000602082840312156132de57600080fd5b5051919050565b6000600182016132f7576132f761314b565b5060010190565b85815284602082015260a06040820152600061331d60a0830186613028565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561334f57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220ab7f258e6ea977ab3f355daa77524b3f53faa983df3737504d59faa0d48015dc64736f6c63430008130033608060405234801561001057600080fd5b5060405161103138038061103183398101604081905261002f916101bb565b6100383361014f565b600460208190526002600081905260017f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ec81905560647f17ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3ed557fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe059290925560c87fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe065560077f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a75561012c7f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a85581546001600160a01b039485166001600160a01b03199182161790925580549290931691161790556101ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146101b657600080fd5b919050565b600080604083850312156101ce57600080fd5b6101d78361019f565b91506101e56020840161019f565b90509250929050565b610e34806101fd6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063b8f3ba8d1161008c578063c676ea6511610066578063c676ea6514610246578063d903dfed1461026f578063e689f03914610282578063f2fde38b1461029557600080fd5b8063b8f3ba8d1461020d578063bd1f4b5214610220578063c24126761461023357600080fd5b806354ba495a116100c857806354ba495a146101a1578063715018a6146101dd5780638da5cb5b146101e55780639d2dff9b146101f657600080fd5b806329575f6a146100ef578063372500ab1461011f578063524074ed14610129575b600080fd5b600154610102906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101276102a8565b005b61018d610137366004610bdf565b6005602081905260009182526040909120805460018201546002830154600384015460048501549585015460069095015460ff94851696939592949193926001600160a01b03811692600160a01b909104169088565b604051610116989796959493929190610c17565b6101c86101af366004610c8a565b6004602052600090815260409020805460019091015482565b60408051928352602083019190915201610116565b610127610431565b6000546001600160a01b0316610102565b6101ff60035481565b604051908152602001610116565b61012761021b366004610ca5565b610445565b61012761022e366004610ca5565b610646565b600254610102906001600160a01b031681565b610102610254366004610bdf565b6006602052600090815260409020546001600160a01b031681565b61012761027d366004610bdf565b6106e6565b610127610290366004610ccf565b610851565b6101276102a3366004610bdf565b610982565b336000908152600560205260409020600181015461030d5760405162461bcd60e51b815260206004820152601c60248201527f796f75206469646e2774207374617274206561726e696e67207965740000000060448201526064015b60405180910390fd5b6000816002015482600101546103239190610d18565b9050600081116103815760405162461bcd60e51b8152602060048201526024808201527f796f7520646f6e2774206861766520616e7920636c6169616d626c65207265776044820152636172647360e01b6064820152608401610304565b808260020160008282546103959190610d31565b909155505042600383015560025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156103f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104159190610d44565b5080600360008282546104289190610d31565b90915550505050565b6104396109fb565b6104436000610a55565b565b61044d6109fb565b6001600160a01b038281166000908152600660205260409020541615610642576001600160a01b038083166000908152600660209081526040808320549093168252600590529081208054909190600490829060ff1660028111156104b4576104b4610c01565b60028111156104c5576104c5610c01565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060006127108260200151856105099190610d66565b6105139190610d7d565b6005840180546001600160a01b0319166001600160a01b038816179055426004850155600184018054919250829160009061054f908490610d31565b90915550506002546001600160a01b038681166000908152600660205260409081902054905163a9059cbb60e01b815290821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156105b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105dd9190610d44565b506001600160a01b03858116600081815260066020908152604091829020548251938452909316928201929092529081018290527fa9eed8225d1d42bc90fd6003bcebea74da32c2f116847e2444eb830af11dc7989060600160405180910390a15050505b5050565b6001546001600160a01b031633146106705760405162461bcd60e51b815260040161030490610d9f565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156106bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e19190610d44565b505050565b336000908152600660205260409020546001600160a01b03161561074c5760405162461bcd60e51b815260206004820152601b60248201527f5265666572616c206164647265737320616c72656164792073657400000000006044820152606401610304565b6001600160a01b03811633036107a45760405162461bcd60e51b815260206004820152601760248201527f43616e206e6f7420736574206f776e20616464726573730000000000000000006044820152606401610304565b33600090815260066020818152604080842080546001600160a01b0319166001600160a01b038716908117909155845260059091528220908101805491926107eb83610de5565b90915550506005810154600160a01b900460ff1661080c5761080c82610aa5565b604080513381526001600160a01b03841660208201527fac884625b9d65794bd752b984a53f3fd02cb49c30fb41f6af829b37c1086c3ce910160405180910390a15050565b6001546001600160a01b0316331461087b5760405162461bcd60e51b815260040161030490610d9f565b60006004600085600281111561089357610893610c01565b60028111156108a4576108a4610c01565b81526020019081526020016000209050600083116109155760405162461bcd60e51b815260206004820152602860248201527f4d696e696d756d20726566657272616c73206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610304565b600082116109765760405162461bcd60e51b815260206004820152602860248201527f5265776172642070657263656e74616765206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610304565b91825560019091015550565b61098a6109fb565b6001600160a01b0381166109ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610304565b6109f881610a55565b50565b6000546001600160a01b031633146104435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610304565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600560209081526040822060068101546002845260049092527f91da3fd0782e51c6b3986e9e672fd566868e71f3dbc2d6c2cd6fbb3e361af2a7549092908210610b0057506002610b3e565b600160005260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe05548210610b3a57506001610b3e565b5060005b806002811115610b5057610b50610c01565b835460ff166002811115610b6657610b66610c01565b14610bbd5782548190849060ff19166001836002811115610b8957610b89610c01565b02179055506002816002811115610ba257610ba2610c01565b03610bbd5760058301805460ff60a01b1916600160a01b1790555b50505050565b80356001600160a01b0381168114610bda57600080fd5b919050565b600060208284031215610bf157600080fd5b610bfa82610bc3565b9392505050565b634e487b7160e01b600052602160045260246000fd5b610100810160038a10610c3a57634e487b7160e01b600052602160045260246000fd5b98815260208101979097526040870195909552606086019390935260808501919091526001600160a01b031660a0840152151560c083015260e09091015290565b803560038110610bda57600080fd5b600060208284031215610c9c57600080fd5b610bfa82610c7b565b60008060408385031215610cb857600080fd5b610cc183610bc3565b946020939093013593505050565b600080600060608486031215610ce457600080fd5b610ced84610c7b565b95602085013595506040909401359392505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610d2b57610d2b610d02565b92915050565b80820180821115610d2b57610d2b610d02565b600060208284031215610d5657600080fd5b81518015158114610bfa57600080fd5b8082028115828204841417610d2b57610d2b610d02565b600082610d9a57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526026908201527f4f776e61626c653a2063616c6c6572206973206e6f74207468652053757065726040820152651030b236b4b760d11b606082015260800190565b600060018201610df757610df7610d02565b506001019056fea264697066735822122040aaf4a5739fc749ffc40ead3e98271da7c98b3f00da2e633ebeeba181d8b37464736f6c63430008130033

Deployed Bytecode

0x60806040526004361061046c5760003560e01c806383b4ac681161024a578063c8836d3c11610139578063d51ed1c8116100b6578063f38e28e91161007a578063f38e28e914610d02578063f6718d1714610d64578063f887ea4014610d84578063f8b45b0514610da4578063ffb54a9914610dba57600080fd5b8063d51ed1c814610c3c578063dd62ed3e14610c5c578063e01bb68814610ca2578063e15beb8014610cc2578063f2fde38b14610ce257600080fd5b8063d00efb2f116100fd578063d00efb2f14610b8d578063d2a09c7114610ba3578063d2fcc00114610bc3578063d439979014610be3578063d4c989d314610c1c57600080fd5b8063c8836d3c14610b15578063cc32d17614610b35578063cf21e18e14610b4b578063cf4ff6dc14610b61578063cf68145314610b7757600080fd5b80639a0fd579116101c7578063a9059cbb1161018b578063a9059cbb14610a8f578063afb9cf6d14610aaf578063ba625bfe14610ac9578063c062dc5714610adf578063c3f70b5214610aff57600080fd5b80639a0fd57914610a0d5780639b2912cc14610a235780639b87676c14610a39578063a457c2d714610a4f578063a8aa1b3114610a6f57600080fd5b80638ed52bbf1161020e5780638ed52bbf1461097e578063910c67351461099e57806395d89b41146109b4578063979e9589146109e157806398118cb4146109f757600080fd5b806383b4ac68146108f5578063866e7cf5146109155780638a8c523c1461092b5780638aec2cb2146109405780638da5cb5b1461096057600080fd5b8063396b6f71116103665780636556fce5116102e3578063753d02a1116102a7578063753d02a11461087e57806378f5a73f14610893578063790ca413146108b35780638289aaa0146108c95780638346a6c2146108df57600080fd5b80636556fce5146107fc5780636ddd17131461081257806370a0823114610833578063715018a61461085357806374858e761461086857600080fd5b8063583d98401161032a578063583d9840146107635780635962b9d7146107835780635a604c52146107a45780635abcd5ff146107b957806361cf9265146107e657600080fd5b8063396b6f71146106b55780633eaaf86b146106d55780634d709adf146106eb57806353d6fd591461072357806356b0ab011461074357600080fd5b806323b872dd116103f4578063313ce567116103b8578063313ce5671461063157806332b756831461065357806333a581d21461066957806333e75aca1461067f578063395093511461069557600080fd5b806323b872dd146105af5780632b112e49146105cf5780632d1f0b40146105e45780632e0f2625146105fa5780632f34d2821461060f57600080fd5b806318160ddd1161043b57806318160ddd146105385780631c2d86ad1461054d5780631d407b2d146105635780631df4ccfc146105795780631f55f48d1461058f57600080fd5b806306273fc71461047857806306fdde03146104a1578063095ea7b3146104da578063122e97151461050a57600080fd5b3661047357005b600080fd5b34801561048457600080fd5b5061048e601a5481565b6040519081526020015b60405180910390f35b3480156104ad57600080fd5b506040805180820190915260078152665374616b69667960c81b60208201525b6040516104989190612d65565b3480156104e657600080fd5b506104fa6104f5366004612dc8565b610ddb565b6040519015158152602001610498565b34801561051657600080fd5b5060175461052b90600160a01b900460ff1681565b6040516104989190612e0a565b34801561054457600080fd5b5060295461048e565b34801561055957600080fd5b5061048e60105481565b34801561056f57600080fd5b5061048e601e5481565b34801561058557600080fd5b5061048e60095481565b34801561059b57600080fd5b5061048e6105aa366004612e32565b610e48565b3480156105bb57600080fd5b506104fa6105ca366004612e4b565b610fcd565b3480156105db57600080fd5b5061048e6110a7565b3480156105f057600080fd5b5061048e600d5481565b34801561060657600080fd5b5061048e601281565b34801561061b57600080fd5b5061062f61062a366004612e8c565b611127565b005b34801561063d57600080fd5b5060125b60405160ff9091168152602001610498565b34801561065f57600080fd5b5061048e60255481565b34801561067557600080fd5b5061048e60001981565b34801561068b57600080fd5b5061048e60115481565b3480156106a157600080fd5b506104fa6106b0366004612dc8565b611151565b3480156106c157600080fd5b5061062f6106d0366004612ea9565b6111d6565b3480156106e157600080fd5b5061048e60295481565b3480156106f757600080fd5b5060015461070b906001600160a01b031681565b6040516001600160a01b039091168152602001610498565b34801561072f57600080fd5b5061062f61073e366004612eea565b611262565b34801561074f57600080fd5b5061062f61075e366004612ea9565b611295565b34801561076f57600080fd5b5060165461070b906001600160a01b031681565b34801561078f57600080fd5b50601d546104fa90600160b01b900460ff1681565b3480156107b057600080fd5b50610641600b81565b3480156107c557600080fd5b5061048e6107d4366004612e32565b602d6020526000908152604090205481565b3480156107f257600080fd5b5061048e600f5481565b34801561080857600080fd5b5061048e600c5481565b34801561081e57600080fd5b506016546104fa90600160a01b900460ff1681565b34801561083f57600080fd5b5061048e61084e366004612e8c565b611316565b34801561085f57600080fd5b5061062f61133e565b34801561087457600080fd5b5061048e600b5481565b34801561088a57600080fd5b5061062f611352565b34801561089f57600080fd5b5060185461070b906001600160a01b031681565b3480156108bf57600080fd5b5061048e60285481565b3480156108d557600080fd5b5061048e601f5481565b3480156108eb57600080fd5b5061048e601b5481565b34801561090157600080fd5b50601d54600160a01b900460ff16156104fa565b34801561092157600080fd5b5061048e60205481565b34801561093757600080fd5b5061062f6113bc565b34801561094c57600080fd5b5061062f61095b366004612f2e565b611445565b34801561096c57600080fd5b506000546001600160a01b031661070b565b34801561098a57600080fd5b5061062f610999366004612e32565b6114a0565b3480156109aa57600080fd5b5061048e60225481565b3480156109c057600080fd5b506040805180820190915260048152635349465960e01b60208201526104cd565b3480156109ed57600080fd5b5061048e60195481565b348015610a0357600080fd5b5061048e60075481565b348015610a1957600080fd5b5061048e60065481565b348015610a2f57600080fd5b5061048e60265481565b348015610a4557600080fd5b5061048e60245481565b348015610a5b57600080fd5b506104fa610a6a366004612dc8565b6114ad565b348015610a7b57600080fd5b50601d5461070b906001600160a01b031681565b348015610a9b57600080fd5b506104fa610aaa366004612dc8565b611594565b348015610abb57600080fd5b506023546104fa9060ff1681565b348015610ad557600080fd5b5061048e60215481565b348015610aeb57600080fd5b5061062f610afa366004612ea9565b6115c0565b348015610b0b57600080fd5b5061048e602c5481565b348015610b2157600080fd5b5061062f610b30366004612eea565b611641565b348015610b4157600080fd5b5061048e60085481565b348015610b5757600080fd5b5061048e600e5481565b348015610b6d57600080fd5b5061048e60125481565b348015610b8357600080fd5b5061048e600a5481565b348015610b9957600080fd5b5061048e60275481565b348015610baf57600080fd5b5061062f610bbe366004612f70565b611674565b348015610bcf57600080fd5b5061062f610bde366004612eea565b61169a565b348015610bef57600080fd5b506104fa610bfe366004612e8c565b6001600160a01b031660009081526002602052604090205460ff1690565b348015610c2857600080fd5b5061062f610c37366004612eea565b6116cd565b348015610c4857600080fd5b5061048e610c57366004612e32565b611700565b348015610c6857600080fd5b5061048e610c77366004612f8b565b6001600160a01b039182166000908152602f6020908152604080832093909416825291909152205490565b348015610cae57600080fd5b5061062f610cbd366004612e8c565b611754565b348015610cce57600080fd5b5061062f610cdd366004612f70565b61177e565b348015610cee57600080fd5b5061062f610cfd366004612e8c565b6117b5565b348015610d0e57600080fd5b50610d44610d1d366004612fc4565b601c6020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610498565b348015610d7057600080fd5b5061062f610d7f366004612e32565b61182b565b348015610d9057600080fd5b5060175461070b906001600160a01b031681565b348015610db057600080fd5b5061048e602b5481565b348015610dc657600080fd5b50601d546104fa90600160a81b900460ff1681565b336000818152602f602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610e369086815260200190565b60405180910390a35060015b92915050565b604080516002808252606082018352600092839291906020830190803683375050601754604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610eb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eda9190612ff5565b81600081518110610eed57610eed613012565b6001600160a01b039283166020918202929092010152601554825191169082906001908110610f1e57610f1e613012565b6001600160a01b03928316602091820292909201015260175460405163d06ca61f60e01b8152600092919091169063d06ca61f90610f62908790869060040161306c565b600060405180830381865afa158015610f7f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fa7919081019061308d565b905080600181518110610fbc57610fbc613012565b602002602001015192505050919050565b6000826001600160a01b038116610fe357600080fd5b6001600160a01b0385166000908152602f6020908152604080832033845290915290205460001914611090576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b0388166000908152602f8252838120338252909152919091205461106b918590611882565b6001600160a01b0386166000908152602f602090815260408083203384529091529020555b61109b8585856118ae565b50600195945050505050565b602a546014546001600160a01b039081166000908152602e6020526040808220546013549093168252812054909261112292909161111c9190611116906110f06012600a613245565b6110fe906305f5e100613251565b61110a9060001961327e565b61111690600019613292565b90611e32565b90611e3e565b905090565b61112f611e4a565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152602f602090815260408083206001600160a01b038616845290915281205461117f9083611ea4565b336000818152602f602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610e36565b6111de611e4a565b600e839055600f8290556010819055806111f883856132a5565b61120291906132a5565b601155600d546014101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e203230250060448201526064015b60405180910390fd5b505050565b61126a611e4a565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b61129d611e4a565b600a839055600b829055600c819055806112b783856132a5565b6112c191906132a5565b600d819055601e101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e20333025006044820152606401611254565b602a546001600160a01b0382166000908152602e60205260408120549091610e429190611e3e565b611346611e4a565b6113506000611eb0565b565b601d60009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156113a257600080fd5b505af11580156113b6573d6000803e3d6000fd5b50505050565b6113c4611e4a565b601d54600160a81b900460ff16156114115760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e48115b9858985b195960821b6044820152606401611254565b601d805460ff60a81b1916600160a81b1790554360275542602881905560248190556025556023805460ff19166001179055565b61144d611e4a565b6000601c600087600481111561146557611465612df4565b600481111561147657611476612df4565b81526020810191909152604001600020948555506001840192909255600283015560039091015550565b6114a8611e4a565b601b55565b336000908152602f602090815260408083206001600160a01b038616845290915281205480831061150157336000908152602f602090815260408083206001600160a01b0388168452909152812055611530565b61150b8184611e32565b336000908152602f602090815260408083206001600160a01b03891684529091529020555b336000818152602f602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6000826001600160a01b0381166115aa57600080fd5b6115b53385856118ae565b506001949350505050565b6115c8611e4a565b600683905560078290556008819055806115e283856132a5565b6115ec91906132a5565b60098190556014101561125d5760405162461bcd60e51b815260206004820152601f60248201527f466565732063616e206e6f7420626520677261746572207468616e20323025006044820152606401611254565b611649611e4a565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b61167c611e4a565b60168054911515600160a01b0260ff60a01b19909216919091179055565b6116a2611e4a565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b6116d5611e4a565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b602a54601d546001600160a01b03166000908152602e60205260408120549091829161172b91611e3e565b905061174d6117386110a7565b61111c611746846002611f00565b8690611f00565b9392505050565b61175c611e4a565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b611786611e4a565b80156117a3576023805482151560ff199091161790554260255550565b6023805460ff19168215151790555b50565b6117bd611e4a565b6001600160a01b0381166118225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611254565b6117b281611eb0565b611833611e4a565b601e81111561187d5760405162461bcd60e51b81526020600482015260166024820152755461782063616e206e6f74206578636565642033302560501b6044820152606401611254565b601255565b600081848411156118a65760405162461bcd60e51b81526004016112549190612d65565b505050900390565b6001600160a01b03831660009081526003602052604081205460ff1661191e57601d54600160a81b900460ff1661191e5760405162461bcd60e51b8152602060048201526014602482015273151c98591a5b99c81b9bdd081bdc195b881e595d60621b6044820152606401611254565b601d54600160a01b900460ff168061194357506018546001600160a01b038581169116145b1561195a57611953848484611f0c565b905061174d565b6001600160a01b03831660009081526004602052604090205460ff161580156119915750601d546001600160a01b03848116911614155b80156119a65750601d54600160a81b900460ff165b15611a26576000826119b785611316565b6119c191906132a5565b90506064602b546029546119d59190613251565b6119df91906132b8565b811115611a245760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401611254565b505b6001600160a01b03841660009081526005602052604090205460ff16611ab1576064602c54602954611a589190613251565b611a6291906132b8565b821115611ab15760405162461bcd60e51b815260206004820152601860248201527f4d6178207472616e73616374696f6e20657863656564656400000000000000006044820152606401611254565b42601b54601954611ac291906132a5565b108015611ad95750601d54600160b01b900460ff16155b8015611aee5750601d54600160a81b900460ff165b15611be257601754604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611b3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b619190612ff5565b601d546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015611baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bce91906132cc565b9050611bd981610e48565b601a5550426019555b601d546001600160a01b0390811690851603611ce25760145460185460405163c676ea6560e01b81526001600160a01b038681166004830152928316929091169063c676ea6590602401602060405180830381865afa158015611c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6d9190612ff5565b6001600160a01b031614611ce25760185460405163b8f3ba8d60e01b81526001600160a01b038581166004830152602482018590529091169063b8f3ba8d90604401600060405180830381600087803b158015611cc957600080fd5b505af1158015611cdd573d6000803e3d6000fd5b505050505b601d54600160a81b900460ff1615611cfc57611cfc611f9e565b611d046124a4565b15611d1157611d1161250d565b611d19612761565b15611d2657611d266127a1565b6000611d3d602a5484611f0090919063ffffffff16565b6001600160a01b0386166000908152602e6020526040902054909150611d639082611e32565b6001600160a01b0386166000908152602e6020526040812091909155611d89868661288c565b611d935781611d9e565b611d9e8686846128e0565b6001600160a01b0386166000908152602e6020526040902054909150611dc49082611ea4565b6001600160a01b038087166000818152602e6020526040902092909255602a54908816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e15908590611e3e565b60405190815260200160405180910390a350600195945050505050565b600061174d8284613292565b600061174d82846132b8565b6000546001600160a01b031633146113505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611254565b600061174d82846132a5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061174d8284613251565b600080611f24602a5484611f0090919063ffffffff16565b6001600160a01b0386166000908152602e6020526040902054909150611f4a9082611e32565b6001600160a01b038087166000908152602e60205260408082209390935590861681522054611f799082611ea4565b6001600160a01b0385166000908152602e602052604090205550600190509392505050565b601754604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c46489160048083019260209291908290030181865afa158015611fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200c9190612ff5565b601d546040516370a0823160e01b81526001600160a01b0391821660048201529116906370a0823190602401602060405180830381865afa158015612055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061207991906132cc565b9050600061208682610e48565b60008052601c6020527fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f8495490915081108015906120ed575060008052601c6020527fb9c6de81004e18dedadca3e5eabaab449ca91dff6f58efc9461da635fe77f84a548111155b15612100576017805460ff60a01b191690555b6001600052601c6020527f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a0254811080159061216657506001600052601c6020527f6de76108811faf2f94afbe5ac6c98e8393206cd093932de1fbfd61bbeec43a03548111155b1561217f576017805460ff60a01b1916600160a01b1790555b6002600052601c6020527ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c875481108015906121e557506002600052601c6020527ff5b6e61a0c14f171ef1c86f003900ef0305e4159fff3317e4fb7c351f2050c88548111155b156121fe576017805460ff60a01b1916600160a11b1790555b6003600052601c6020527fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f754811080159061226457506003600052601c6020527fb0deb225ecd3a242ef7d55f0f81ae3b924e0b6f9da8bc33b306fb32ca5f287f8548111155b1561227d576017805460ff60a01b1916600360a01b1790555b6004600052601c6020527fadacb2ae086d090ae1cbb87d66774fa6d708dd14d5bdc5b6c1e455aa2020dfb75481106122c3576017805460ff60a01b1916600160a21b1790555b80601a541180156122de5750601d54600160b01b900460ff16155b1561242857600081601a546122f39190613292565b90506000601a54826127106123089190613251565b61231291906132b8565b9050601c6000601760149054906101000a900460ff16600481111561233957612339612df4565b600481111561234a5761234a612df4565b81526020019081526020016000206002015481111561242557601d805460ff60b01b1916600160b01b17905542601e819055602155601f83905560175461271090601c90600090600160a01b900460ff1660048111156123ac576123ac612df4565b60048111156123bd576123bd612df4565b815260200190815260200160002060030154846123da9190613251565b6123e491906132b8565b6123ee90846132a5565b60209081556040518481527f1c436e00c3e6a4c9fe8c4b06b059a2cc9039fb62142b6512adfe4fe9c4475858910160405180910390a15b50505b601d54600160b01b900460ff168015612442575060205481115b156124a057601d805460ff60b01b191690556000601e819055601f819055602090815542602255601a8290556040518281527f7a711ba0fefabae0255256a32733d1e8f7500ae03b42aca2a87876c9d38a2a30910160405180910390a15b5050565b60235460009060ff1680156124c45750601d546001600160a01b03163314155b80156124da5750601d54600160a01b900460ff16155b80156124ef5750601d54600160a81b900460ff165b80156111225750602554612505906103846132a5565b421015905090565b601d54600160a01b900460ff161561252157565b600080602454426125329190613292565b90506000602554426125449190613292565b9050600061255482610384611e3e565b9050620d2f0083116125925760008052602d6020527f6648a85983aca0407b603b260cacb25b5e5e8e5194522de3d8a800e71aa41bae5493506125ce565b62c5c1008310156125c45760006125ac620d2f00856132b8565b6000908152602d602052604090205494506125ce9050565b65f76b1f08e29793505b60005b818110156126665762c5c100841061261f576000612606670de0b6b3a764000061111c88602954611f0090919063ffffffff16565b6029549091506126169082611ea4565b60295550612654565b600061263f64174876e80061111c88602954611f0090919063ffffffff16565b60295490915061264f9082611ea4565b602955505b8061265e816132e5565b9150506125d1565b506029546126a09061267a6012600a613245565b612688906305f5e100613251565b6126949060001961327e565b61111c90600019613292565b602a556126bb6126b282610384611f00565b60255490611ea4565b6025556001546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561270757600080fd5b505af115801561271b573d6000803e3d6000fd5b50505050427f72725a3b1e5bd622d6bcd1339bb31279c351abe8f541ac7fd320f24e1b1641f260295460405161275391815260200190565b60405180910390a250505050565b601d54600090600160a01b900460ff161580156127895750601d546001600160a01b03163314155b8015611122575050601654600160a01b900460ff1690565b601d805460ff60a01b1916600160a01b17905560006127bf30611316565b9050801580156127cf5750600954155b156127da575061287d565b60006008546007546127ec91906132a5565b9050600081600854846127ff9190613251565b61280991906132b8565b905080156128555761281a81612b49565b6016546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015612853573d6000803e3d6000fd5b505b60006128618285613292565b1115612879576128796128748285613292565b612c8a565b5050505b601d805460ff60a01b19169055565b601d546000906001600160a01b03848116911614806128b85750601d546001600160a01b038381169116145b801561174d575050506001600160a01b031660009081526002602052604090205460ff161590565b601d5460009081908190600160b01b900460ff1661299f57601d546001600160a01b03908116908616036129695760275461291c9060026132a5565b43101561294057612939602d612933866064611e3e565b90611f00565b9150612a16565b60285461295090620151806132a5565b4210156129695760125461293990612933866064611e3e565b60095461297b90612933866064611e3e565b915061299860095461111c60065485611f0090919063ffffffff16565b9050612a16565b601d546001600160a01b03908116908616036129e457600d546129c790612933866064611e3e565b9150612998600d5461111c600a5485611f0090919063ffffffff16565b6011546129f690612933866064611e3e565b9150612a1360115461111c600e5485611f0090919063ffffffff16565b90505b612a208282611e32565b6013546001600160a01b03166000908152602e6020526040902054909250612a489082611ea4565b601380546001600160a01b039081166000908152602e602052604090209290925554602a54908216918816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612aa1908590611e3e565b60405190815260200160405180910390a3306000908152602e6020526040902054612acc9083611ea4565b306000818152602e6020526040902091909155602a546001600160a01b038816907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612b1a908690611e3e565b60405190815260200160405180910390a3612b3f612b3882846132a5565b8590611e32565b9695505050505050565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110612b7e57612b7e613012565b6001600160a01b03928316602091820292909201810191909152601754604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bfb9190612ff5565b81600181518110612c0e57612c0e613012565b6001600160a01b03928316602091820292909201015260175460405163791ac94760e01b815291169063791ac94790612c549085906000908690309042906004016132fe565b600060405180830381600087803b158015612c6e57600080fd5b505af1158015612c82573d6000803e3d6000fd5b505050505050565b6000612c97826002611e3e565b90506000612ca58383611e32565b905047612cb183612b49565b6000612cbd4783611e32565b9050612cc98382612cd0565b5050505050565b60175460135460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015612d40573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612cc9919061333a565b600060208083528351808285015260005b81811015612d9257858101830151858201604001528201612d76565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146117b257600080fd5b60008060408385031215612ddb57600080fd5b8235612de681612db3565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b6020810160058310612e2c57634e487b7160e01b600052602160045260246000fd5b91905290565b600060208284031215612e4457600080fd5b5035919050565b600080600060608486031215612e6057600080fd5b8335612e6b81612db3565b92506020840135612e7b81612db3565b929592945050506040919091013590565b600060208284031215612e9e57600080fd5b813561174d81612db3565b600080600060608486031215612ebe57600080fd5b505081359360208301359350604090920135919050565b80358015158114612ee557600080fd5b919050565b60008060408385031215612efd57600080fd5b8235612f0881612db3565b9150612f1660208401612ed5565b90509250929050565b803560058110612ee557600080fd5b600080600080600060a08688031215612f4657600080fd5b612f4f86612f1f565b97602087013597506040870135966060810135965060800135945092505050565b600060208284031215612f8257600080fd5b61174d82612ed5565b60008060408385031215612f9e57600080fd5b8235612fa981612db3565b91506020830135612fb981612db3565b809150509250929050565b600060208284031215612fd657600080fd5b61174d82612f1f565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561300757600080fd5b815161174d81612db3565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b838110156130615781516001600160a01b03168752958201959082019060010161303c565b509495945050505050565b8281526040602082015260006130856040830184613028565b949350505050565b600060208083850312156130a057600080fd5b825167ffffffffffffffff808211156130b857600080fd5b818501915085601f8301126130cc57600080fd5b8151818111156130de576130de612fdf565b8060051b604051601f19603f8301168101818110858211171561310357613103612fdf565b60405291825284820192508381018501918883111561312157600080fd5b938501935b8285101561313f57845184529385019392850192613126565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561319c5781600019048211156131825761318261314b565b8085161561318f57918102915b93841c9390800290613166565b509250929050565b6000826131b357506001610e42565b816131c057506000610e42565b81600181146131d657600281146131e0576131fc565b6001915050610e42565b60ff8411156131f1576131f161314b565b50506001821b610e42565b5060208310610133831016604e8410600b841016171561321f575081810a610e42565b6132298383613161565b806000190482111561323d5761323d61314b565b029392505050565b600061174d83836131a4565b8082028115828204841417610e4257610e4261314b565b634e487b7160e01b600052601260045260246000fd5b60008261328d5761328d613268565b500690565b81810381811115610e4257610e4261314b565b80820180821115610e4257610e4261314b565b6000826132c7576132c7613268565b500490565b6000602082840312156132de57600080fd5b5051919050565b6000600182016132f7576132f761314b565b5060010190565b85815284602082015260a06040820152600061331d60a0830186613028565b6001600160a01b0394909416606083015250608001529392505050565b60008060006060848603121561334f57600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220ab7f258e6ea977ab3f355daa77524b3f53faa983df3737504d59faa0d48015dc64736f6c63430008130033

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.