ETH Price: $3,294.03 (-1.12%)

Contract

0x918dDd2285B362Ba7905662e52c59107e04C2889
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve208010442024-09-21 19:28:5992 days ago1726946939IN
0x918dDd22...7e04C2889
0 ETH0.0002658810.93077567
Transfer198297392024-05-09 3:14:59228 days ago1715224499IN
0x918dDd22...7e04C2889
0 ETH0.000338394.38053277
Approve182637502023-10-02 15:29:35448 days ago1696260575IN
0x918dDd22...7e04C2889
0 ETH0.0004630419.03634368
Approve179587812023-08-20 21:57:23490 days ago1692568643IN
0x918dDd22...7e04C2889
0 ETH0.0003689515.20575567
Approve179216322023-08-15 17:09:11495 days ago1692119351IN
0x918dDd22...7e04C2889
0 ETH0.0018926940.66124292
Approve178344402023-08-03 12:21:59508 days ago1691065319IN
0x918dDd22...7e04C2889
0 ETH0.0009369420.12866615
Approve178302852023-08-02 22:25:35508 days ago1691015135IN
0x918dDd22...7e04C2889
0 ETH0.0008829219.07614938
Approve177825552023-07-27 6:15:47515 days ago1690438547IN
0x918dDd22...7e04C2889
0 ETH0.0009517720.44714048
Approve177703222023-07-25 13:11:23517 days ago1690290683IN
0x918dDd22...7e04C2889
0 ETH0.0015365132.96686823
Approve177587112023-07-23 22:11:47518 days ago1690150307IN
0x918dDd22...7e04C2889
0 ETH0.0008437618.23025049
Approve176996162023-07-15 15:18:59527 days ago1689434339IN
0x918dDd22...7e04C2889
0 ETH0.0019607342.06853925
Approve176942922023-07-14 21:13:23527 days ago1689369203IN
0x918dDd22...7e04C2889
0 ETH0.0007067115.26911768
Approve176617192023-07-10 7:14:47532 days ago1688973287IN
0x918dDd22...7e04C2889
0 ETH0.0006704914.40437652
Approve176245002023-07-05 1:45:47537 days ago1688521547IN
0x918dDd22...7e04C2889
0 ETH0.0026414556.7469245
Approve176047012023-07-02 6:59:23540 days ago1688281163IN
0x918dDd22...7e04C2889
0 ETH0.0006620514.20470491
Approve175877062023-06-29 21:42:59542 days ago1688074979IN
0x918dDd22...7e04C2889
0 ETH0.001778238.20146
Approve175870202023-06-29 19:24:59542 days ago1688066699IN
0x918dDd22...7e04C2889
0 ETH0.0018445769.91274607
Approve175870192023-06-29 19:24:47542 days ago1688066687IN
0x918dDd22...7e04C2889
0 ETH0.0031185867.37923491
Approve175857662023-06-29 15:11:23543 days ago1688051483IN
0x918dDd22...7e04C2889
0 ETH0.002418351.9529813
Approve175808542023-06-28 22:39:59543 days ago1687991999IN
0x918dDd22...7e04C2889
0 ETH0.000557219.09287497
Approve175766052023-06-28 8:23:35544 days ago1687940615IN
0x918dDd22...7e04C2889
0 ETH0.0007046115.22374615
Approve175730062023-06-27 20:17:23544 days ago1687897043IN
0x918dDd22...7e04C2889
0 ETH0.0012825227.51736844
Approve175705062023-06-27 11:50:11545 days ago1687866611IN
0x918dDd22...7e04C2889
0 ETH0.0006726314.45041279
Approve175649842023-06-26 17:08:59545 days ago1687799339IN
0x918dDd22...7e04C2889
0 ETH0.0009907721.42313509
Approve175648742023-06-26 16:46:23545 days ago1687797983IN
0x918dDd22...7e04C2889
0 ETH0.0012541327.11757157
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
175446592023-06-23 20:30:47548 days ago1687552247
0x918dDd22...7e04C2889
0.051544 ETH
175446592023-06-23 20:30:47548 days ago1687552247
0x918dDd22...7e04C2889
0.051544 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.0320764 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.0320764 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.0320764 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.0320764 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.04611464 ETH
175446552023-06-23 20:29:59548 days ago1687552199
0x918dDd22...7e04C2889
0.04611464 ETH
175446542023-06-23 20:29:47548 days ago1687552187
0x918dDd22...7e04C2889
0.03812102 ETH
175446542023-06-23 20:29:47548 days ago1687552187
0x918dDd22...7e04C2889
0.03812102 ETH
175446442023-06-23 20:27:47548 days ago1687552067
0x918dDd22...7e04C2889
0.04471377 ETH
175446442023-06-23 20:27:47548 days ago1687552067
0x918dDd22...7e04C2889
0.04471377 ETH
175446382023-06-23 20:26:35548 days ago1687551995
0x918dDd22...7e04C2889
0.05289319 ETH
175446382023-06-23 20:26:35548 days ago1687551995
0x918dDd22...7e04C2889
0.05289319 ETH
175446352023-06-23 20:25:59548 days ago1687551959
0x918dDd22...7e04C2889
0.04554864 ETH
175446352023-06-23 20:25:59548 days ago1687551959
0x918dDd22...7e04C2889
0.04554864 ETH
175446352023-06-23 20:25:59548 days ago1687551959
0x918dDd22...7e04C2889
0.0471788 ETH
175446352023-06-23 20:25:59548 days ago1687551959
0x918dDd22...7e04C2889
0.0471788 ETH
175446332023-06-23 20:25:35548 days ago1687551935
0x918dDd22...7e04C2889
0.05722844 ETH
175446332023-06-23 20:25:35548 days ago1687551935
0x918dDd22...7e04C2889
0.05722844 ETH
175446322023-06-23 20:25:23548 days ago1687551923
0x918dDd22...7e04C2889
0.05722844 ETH
175446322023-06-23 20:25:23548 days ago1687551923
0x918dDd22...7e04C2889
0.05722844 ETH
175446322023-06-23 20:25:23548 days ago1687551923
0x918dDd22...7e04C2889
0.05722844 ETH
175446322023-06-23 20:25:23548 days ago1687551923
0x918dDd22...7e04C2889
0.05722844 ETH
175446292023-06-23 20:24:47548 days ago1687551887
0x918dDd22...7e04C2889
0.07648398 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Moon

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.20;

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

contract Moon is Context, ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 private _uniswapV2Router02;

    mapping(address => bool) private _excludedFromFees;
    mapping(address => bool) private _excludedFromMaxTxAmount;

    bool public tradingOpen = false;
    bool private _swapping = false;
    bool public swapEnabled = false;
    bool public feesEnabled = true;
    bool public transferFeesEnabled = false;

    uint256 public maxBuyAmount;
    uint256 public maxSellAmount;
    uint256 public maxWalletAmount;

    uint256 private _totalFees;
    uint256 private _marketingFee;

    uint256 public buyMarketingFee = 10;
    uint256 private _previousBuyMarketingFee = buyMarketingFee;

    uint256 public sellMarketingFee = 10;
    uint256 private _previousSellMarketingFee = sellMarketingFee;

    uint256 public transferMarketingFee = 10;
    uint256 private _previousTransferMarketingFee = transferMarketingFee;

    uint256 private _tokensForMarketing;
    uint256 private _swapTokensAtAmount = 0;

    address payable public marketingWalletAddress =
        payable(0x06AE8571Dd5124EdE5f634A6422dDB9F5b5c68D6);

    address private _uniswapV2Pair;

    enum TransactionType {
        BUY,
        SELL,
        TRANSFER
    }

    modifier lockSwapping() {
        _swapping = true;
        _;
        _swapping = false;
    }

    event OpenTrading();
    event SetMaxBuyAmount(uint256 newMaxBuyAmount);
    event SetMaxSellAmount(uint256 newMaxSellAmount);
    event SetMaxWalletAmount(uint256 newMaxWalletAmount);
    event SetSwapTokensAtAmount(uint256 newSwapTokensAtAmount);
    event SetBuyFee(uint256 buyMarketingFee);
    event SetSellFee(uint256 sellMarketingFee);
    event SetTransferFee(uint256 transferMarketingFee);

    constructor() ERC20("Moon Coin", "MOON") {
        uint256 _totalSupply = 100_000_000 ether;

        if (block.chainid == 1 || block.chainid == 5)
            _uniswapV2Router02 = IUniswapV2Router02(
                0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
            ); // ETH: Uniswap V2
        else if (block.chainid == 56)
            _uniswapV2Router02 = IUniswapV2Router02(
                0x10ED43C718714eb63d5aA57B78B54704E256024E
            ); // BSC Chain: PCS V2
        else if (block.chainid == 42161)
            _uniswapV2Router02 = IUniswapV2Router02(
                0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506
            ); // ARB Chain: SushiSwap
        else revert("Chain not set.");

        _approve(address(this), address(_uniswapV2Router02), totalSupply());
        _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router02.factory())
            .createPair(address(this), _uniswapV2Router02.WETH());
        IERC20(_uniswapV2Pair).approve(
            address(_uniswapV2Router02),
            type(uint256).max
        );

        maxBuyAmount = _totalSupply;
        maxSellAmount = _totalSupply;
        maxWalletAmount = _totalSupply;

        _excludedFromFees[owner()] = true;
        _excludedFromFees[address(this)] = true;
        _excludedFromFees[address(0xdead)] = true;
        _excludedFromFees[marketingWalletAddress] = true;

        _excludedFromMaxTxAmount[owner()] = true;
        _excludedFromMaxTxAmount[address(this)] = true;
        _excludedFromMaxTxAmount[address(0xdead)] = true;
        _excludedFromMaxTxAmount[marketingWalletAddress] = true;

        _mint(owner(), _totalSupply);
    }

    receive() external payable {}

    fallback() external payable {}

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0x0), "ERC20: transfer from the zero address");
        require(to != address(0x0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        bool takeFee = true;
        TransactionType txType = (from == _uniswapV2Pair)
            ? TransactionType.BUY
            : (to == _uniswapV2Pair)
            ? TransactionType.SELL
            : TransactionType.TRANSFER;
        if (
            from != owner() &&
            to != owner() &&
            to != address(0x0) &&
            to != address(0xdead) &&
            !_swapping
        ) {
            if (!tradingOpen)
                require(
                    _excludedFromFees[from] || _excludedFromFees[to],
                    "Trading is not allowed yet."
                );

            if (
                txType == TransactionType.BUY &&
                to != address(_uniswapV2Router02) &&
                !_excludedFromMaxTxAmount[to]
            ) {
                require(
                    amount <= maxBuyAmount,
                    "Transfer amount exceeds the maxBuyAmount."
                );
                require(
                    balanceOf(to).add(amount) <= maxWalletAmount,
                    "Exceeds maximum wallet token amount."
                );
            }

            if (
                txType == TransactionType.SELL &&
                from != address(_uniswapV2Router02) &&
                !_excludedFromMaxTxAmount[from]
            )
                require(
                    amount <= maxSellAmount,
                    "Transfer amount exceeds the maxSellAmount."
                );
        }

        if (
            _excludedFromFees[from] ||
            _excludedFromFees[to] ||
            !feesEnabled ||
            (!transferFeesEnabled && txType == TransactionType.TRANSFER)
        ) takeFee = false;

        uint256 contractBalance = balanceOf(address(this));
        bool canSwap = (contractBalance > _swapTokensAtAmount) &&
            (txType == TransactionType.SELL);

        if (
            canSwap &&
            swapEnabled &&
            !_swapping &&
            !_excludedFromFees[from] &&
            !_excludedFromFees[to]
        ) {
            _swapBack(contractBalance);
        }

        _tokenTransfer(from, to, amount, takeFee, txType);
    }

    function _swapBack(uint256 contractBalance) internal lockSwapping {
        bool success;

        if (contractBalance == 0 || _tokensForMarketing == 0) return;

        if (contractBalance > _swapTokensAtAmount.mul(5))
            contractBalance = _swapTokensAtAmount.mul(5);

        _swapTokensForETH(contractBalance);

        _tokensForMarketing = 0;

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

    function _swapTokensForETH(uint256 tokenAmount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _uniswapV2Router02.WETH();
        _approve(address(this), address(_uniswapV2Router02), tokenAmount);
        _uniswapV2Router02.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function _sendETHToFee(uint256 amount) internal {
        marketingWalletAddress.transfer(amount);
    }

    function openTrading() public onlyOwner {
        require(!tradingOpen, "Trading is already open");
        maxBuyAmount = totalSupply().mul(1).div(100);
        maxSellAmount = totalSupply().mul(1).div(100);
        maxWalletAmount = totalSupply().mul(1).div(100);
        _swapTokensAtAmount = totalSupply().mul(5).div(10000);
        swapEnabled = true;
        tradingOpen = true;
        emit OpenTrading();
    }

    function setSwapEnabled(bool onoff) public onlyOwner {
        swapEnabled = onoff;
    }

    function setFeesEnabled(bool onoff) public onlyOwner {
        feesEnabled = onoff;
    }

    function setTransferFeesEnabled(bool onoff) public onlyOwner {
        transferFeesEnabled = onoff;
    }

    function setMaxBuyAmount(uint256 _maxBuyAmount) public onlyOwner {
        require(
            _maxBuyAmount >= (totalSupply().mul(1).div(1000)),
            "Max buy amount cannot be lower than 0.1% total supply."
        );
        maxBuyAmount = _maxBuyAmount;
        emit SetMaxBuyAmount(maxBuyAmount);
    }

    function setMaxSellAmount(uint256 _maxSellAmount) public onlyOwner {
        require(
            _maxSellAmount >= (totalSupply().mul(1).div(1000)),
            "Max sell amount cannot be lower than 0.1% total supply."
        );
        maxSellAmount = _maxSellAmount;
        emit SetMaxSellAmount(maxSellAmount);
    }

    function setMaxWalletAmount(uint256 _maxWalletAmount) public onlyOwner {
        require(
            _maxWalletAmount >= (totalSupply().mul(1).div(1000)),
            "Max wallet amount cannot be lower than 0.1% total supply."
        );
        maxWalletAmount = _maxWalletAmount;
        emit SetMaxWalletAmount(maxWalletAmount);
    }

    function setSwapTokensAtAmount(uint256 swapTokensAtAmount)
        public
        onlyOwner
    {
        require(
            swapTokensAtAmount >= (totalSupply().mul(1).div(1000000)),
            "Swap amount cannot be lower than 0.0001% total supply."
        );
        require(
            swapTokensAtAmount <= (totalSupply().mul(5).div(1000)),
            "Swap amount cannot be higher than 0.5% total supply."
        );
        _swapTokensAtAmount = swapTokensAtAmount;
        emit SetSwapTokensAtAmount(_swapTokensAtAmount);
    }

    function setMarketingWalletAddress(address _marketingWalletAddress)
        public
        onlyOwner
    {
        require(
            _marketingWalletAddress != address(0x0),
            "marketingWalletAddress cannot be 0"
        );
        _excludedFromFees[marketingWalletAddress] = false;
        _excludedFromMaxTxAmount[marketingWalletAddress] = false;
        marketingWalletAddress = payable(_marketingWalletAddress);
        _excludedFromFees[marketingWalletAddress] = true;
        _excludedFromMaxTxAmount[marketingWalletAddress] = true;
    }

    function excludeFromFees(address[] memory accounts, bool isEx)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < accounts.length; i++)
            _excludedFromFees[accounts[i]] = isEx;
    }

    function excludeFromMaxTxAmount(address[] memory accounts, bool isEx)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < accounts.length; i++)
            _excludedFromMaxTxAmount[accounts[i]] = isEx;
    }

    function setBuyFee(uint256 _buyMarketingFee) public onlyOwner {
        require(_buyMarketingFee <= 12, "Must keep buy taxes below 12%");
        buyMarketingFee = _buyMarketingFee;
        emit SetBuyFee(buyMarketingFee);
    }

    function setSellFee(uint256 _sellMarketingFee) public onlyOwner {
        require(_sellMarketingFee <= 12, "Must keep sell taxes below 12%");
        sellMarketingFee = _sellMarketingFee;
        emit SetSellFee(sellMarketingFee);
    }

    function setTransferFee(uint256 _transferMarketingFee) public onlyOwner {
        require(
            _transferMarketingFee <= 12,
            "Must keep transfer taxes below 12%"
        );
        transferMarketingFee = _transferMarketingFee;
        emit SetTransferFee(transferMarketingFee);
    }

    function _removeAllFee() internal {
        if (
            buyMarketingFee == 0 &&
            sellMarketingFee == 0 &&
            transferMarketingFee == 0
        ) return;

        _previousBuyMarketingFee = buyMarketingFee;
        _previousSellMarketingFee = sellMarketingFee;
        _previousTransferMarketingFee = transferMarketingFee;

        buyMarketingFee = 0;
        sellMarketingFee = 0;
        transferMarketingFee = 0;
    }

    function _restoreAllFee() internal {
        buyMarketingFee = _previousBuyMarketingFee;
        sellMarketingFee = _previousSellMarketingFee;
        transferMarketingFee = _previousTransferMarketingFee;
    }

    function _tokenTransfer(
        address sender,
        address recipient,
        uint256 amount,
        bool takeFee,
        TransactionType txType
    ) internal {
        if (!takeFee) _removeAllFee();
        else amount = _takeFees(sender, amount, txType);

        super._transfer(sender, recipient, amount);

        if (!takeFee) _restoreAllFee();
    }

    function _takeFees(
        address sender,
        uint256 amount,
        TransactionType txType
    ) internal returns (uint256) {
        if (txType == TransactionType.SELL) _sell();
        else if (txType == TransactionType.BUY) _buy();
        else if (txType == TransactionType.TRANSFER) _transfer();
        else revert("Invalid transaction type.");

        uint256 fees;
        if (_totalFees > 0) {
            fees = amount.mul(_totalFees).div(100);
            _tokensForMarketing += (fees.mul(_marketingFee)).div(_totalFees);
        }

        if (fees > 0) super._transfer(sender, address(this), fees);

        return amount -= fees;
    }

    function _sell() internal {
        _marketingFee = sellMarketingFee;
        _totalFees = _marketingFee;
    }

    function _buy() internal {
        _marketingFee = buyMarketingFee;
        _totalFees = _marketingFee;
    }

    function _transfer() internal {
        _marketingFee = transferMarketingFee;
        _totalFees = _marketingFee;
    }

    function fixClog() public onlyOwner lockSwapping {
        _swapTokensForETH(balanceOf(address(this)));
        _tokensForMarketing = 0;
        bool success;
        (success, ) = address(marketingWalletAddress).call{
            value: address(this).balance
        }("");
    }

    function rescueStuckTokens(address tkn) public onlyOwner {
        bool success;
        if (tkn == address(0))
            (success, ) = address(msg.sender).call{
                value: address(this).balance
            }("");
        else {
            require(tkn != address(this), "Cannot withdraw own token");
            require(IERC20(tkn).balanceOf(address(this)) > 0, "No tokens");
            uint256 amount = IERC20(tkn).balanceOf(address(this));
            IERC20(tkn).transfer(msg.sender, amount);
        }
    }

    function removeLimits() public onlyOwner {
        maxBuyAmount = totalSupply();
        maxSellAmount = totalSupply();
        maxWalletAmount = totalSupply();
    }
}

File 2 of 10 : 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 3 of 10 : 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 4 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

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":[],"name":"OpenTrading","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":"buyMarketingFee","type":"uint256"}],"name":"SetBuyFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxBuyAmount","type":"uint256"}],"name":"SetMaxBuyAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxSellAmount","type":"uint256"}],"name":"SetMaxSellAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxWalletAmount","type":"uint256"}],"name":"SetMaxWalletAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"sellMarketingFee","type":"uint256"}],"name":"SetSellFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newSwapTokensAtAmount","type":"uint256"}],"name":"SetSwapTokensAtAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transferMarketingFee","type":"uint256"}],"name":"SetTransferFee","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fixClog","outputs":[],"stateMutability":"nonpayable","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":"marketingWalletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tkn","type":"address"}],"name":"rescueStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyMarketingFee","type":"uint256"}],"name":"setBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setFeesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketingWalletAddress","type":"address"}],"name":"setMarketingWalletAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBuyAmount","type":"uint256"}],"name":"setMaxBuyAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSellAmount","type":"uint256"}],"name":"setMaxSellAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletAmount","type":"uint256"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellMarketingFee","type":"uint256"}],"name":"setSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapTokensAtAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_transferMarketingFee","type":"uint256"}],"name":"setTransferFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onoff","type":"bool"}],"name":"setTransferFeesEnabled","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":"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":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFeesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526009805464ffffffffff19166301000000179055600a600f81905560108190556011819055601281905560138190556014555f601655601780546001600160a01b0319167306ae8571dd5124ede5f634a6422ddb9f5b5c68d61790553480156200006c575f80fd5b506040518060400160405280600981526020016826b7b7b71021b7b4b760b91b8152506040518060400160405280600481526020016326a7a7a760e11b8152508160039081620000bd919062000840565b506004620000cc828262000840565b505050620000e9620000e36200055f60201b60201c565b62000563565b6a52b7d2dcc80cd2e40000006001461480620001055750466005145b156200013757600680546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055620001e0565b466038036200016c57600680546001600160a01b0319167310ed43c718714eb63d5aa57b78b54704e256024e179055620001e0565b4661a4b103620001a257600680546001600160a01b031916731b02da8cb0d097eb8d57a175b88c7d8b47997506179055620001e0565b60405162461bcd60e51b815260206004820152600e60248201526d21b430b4b7103737ba1039b2ba1760911b60448201526064015b60405180910390fd5b600654620002039030906001600160a01b0316620001fd60025490565b620005b4565b60065f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000254573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200027a919062000908565b6001600160a01b031663c9c653963060065f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002da573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000300919062000908565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156200034b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000371919062000908565b601880546001600160a01b0319166001600160a01b0392831690811790915560065460405163095ea7b360e01b8152921660048301525f1960248301529063095ea7b3906044016020604051808303815f875af1158015620003d5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620003fb919062000937565b50600a819055600b819055600c819055600160075f620004236005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff1996871617905530815260079093528183208054851660019081179091557fb0c2646e02af70b79e3fe9277b98373379f54150e4e26b2b5650139f7a75a65d8054861682179055601754909116835290822080549093168117909255600890620004bb6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff1996871617905530815260089093528183208054851660019081179091557f046fee3d77c34a6c5e10c3be6dc4b132c30449dbf4f0bc07684896dd09334299805486168217905560175490911683529120805490921617905562000558620005516005546001600160a01b031690565b82620006db565b506200097e565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038316620006185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620001d7565b6001600160a01b0382166200067b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620001d7565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216620007335760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620001d7565b8060025f82825462000746919062000958565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620007ca57607f821691505b602082108103620007e957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200079c575f81815260208120601f850160051c81016020861015620008175750805b601f850160051c820191505b81811015620008385782815560010162000823565b505050505050565b81516001600160401b038111156200085c576200085c620007a1565b62000874816200086d8454620007b5565b84620007ef565b602080601f831160018114620008aa575f8415620008925750858301515b5f19600386901b1c1916600185901b17855562000838565b5f85815260208120601f198616915b82811015620008da57888601518255948401946001909101908401620008b9565b5085821015620008f857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f6020828403121562000919575f80fd5b81516001600160a01b038116811462000930575f80fd5b9392505050565b5f6020828403121562000948575f80fd5b8151801515811462000930575f80fd5b808201808211156200097857634e487b7160e01b5f52601160045260245ffd5b92915050565b612651806200098c5f395ff3fe60806040526004361061023c575f3560e01c80638da5cb5b1161012c578063afa4f3b2116100af578063e01af92c11610076578063e01af92c1461066c578063e99c9d091461068b578063effb3c53146106aa578063f2fde38b146106cb578063f34eb0b8146106ea578063ffb54a991461070957005b8063afa4f3b2146105dc578063c9567bf9146105fb578063d158272d1461060f578063dd62ed3e1461062e578063dd77b7e61461064d57005b8063a64e4f8a116100f3578063a64e4f8a1461054a578063a901dd921461056a578063a9059cbb14610589578063aa4bde28146105a8578063ad29ffde146105bd57005b80638da5cb5b146104b25780638f02bb5b146104e3578063921369131461050257806395d89b4114610517578063a457c2d71461052b57005b80635286e770116101bf578063751039fc11610186578063751039fc1461042c5780637bce5a04146104405780637f73f70b1461045557806385c5b3191461046957806388e765ff1461047e5780638b4cee081461049357005b80635286e7701461039157806366d602ae146103b05780636ddd1713146103c557806370a08231146103e4578063715018a61461041857005b806323b872dd1161020357806323b872dd146102fa57806327a14fc214610319578063313ce5671461033857806339509351146103535780634cb80fd51461037257005b806306fdde0314610245578063095ea7b31461026f5780630c1fe80c1461029e5780630cc835a3146102bd57806318160ddd146102dc57005b3661024357005b005b348015610250575f80fd5b50610259610722565b6040516102669190612196565b60405180910390f35b34801561027a575f80fd5b5061028e610289366004612205565b6107b2565b6040519015158152602001610266565b3480156102a9575f80fd5b506102436102b836600461222f565b6107cb565b3480156102c8575f80fd5b506102436102d736600461224a565b610a08565b3480156102e7575f80fd5b506002545b604051908152602001610266565b348015610305575f80fd5b5061028e610314366004612261565b610a9d565b348015610324575f80fd5b5061024361033336600461224a565b610ac0565b348015610343575f80fd5b5060405160128152602001610266565b34801561035e575f80fd5b5061028e61036d366004612205565b610b92565b34801561037d575f80fd5b5061024361038c36600461222f565b610bb3565b34801561039c575f80fd5b506102436103ab3660046122cb565b610c99565b3480156103bb575f80fd5b506102ec600b5481565b3480156103d0575f80fd5b5060095461028e9062010000900460ff1681565b3480156103ef575f80fd5b506102ec6103fe36600461222f565b6001600160a01b03165f9081526020819052604090205490565b348015610423575f80fd5b50610243610d0a565b348015610437575f80fd5b50610243610d1d565b34801561044b575f80fd5b506102ec600f5481565b348015610460575f80fd5b50610243610d39565b348015610474575f80fd5b506102ec60135481565b348015610489575f80fd5b506102ec600a5481565b34801561049e575f80fd5b506102436104ad36600461224a565b610ddc565b3480156104bd575f80fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610266565b3480156104ee575f80fd5b506102436104fd36600461224a565b610e6a565b34801561050d575f80fd5b506102ec60115481565b348015610522575f80fd5b50610259610f03565b348015610536575f80fd5b5061028e610545366004612205565b610f12565b348015610555575f80fd5b5060095461028e906301000000900460ff1681565b348015610575575f80fd5b5061024361058436600461239d565b610f8c565b348015610594575f80fd5b5061028e6105a3366004612205565b610fb2565b3480156105b3575f80fd5b506102ec600c5481565b3480156105c8575f80fd5b506102436105d73660046122cb565b610fbf565b3480156105e7575f80fd5b506102436105f636600461224a565b61102b565b348015610606575f80fd5b5061024361116b565b34801561061a575f80fd5b506017546104cb906001600160a01b031681565b348015610639575f80fd5b506102ec6106483660046123b8565b61125a565b348015610658575f80fd5b5061024361066736600461239d565b611284565b348015610677575f80fd5b5061024361068636600461239d565b6112ac565b348015610696575f80fd5b506102436106a536600461224a565b6112d0565b3480156106b5575f80fd5b5060095461028e90640100000000900460ff1681565b3480156106d6575f80fd5b506102436106e536600461222f565b611396565b3480156106f5575f80fd5b5061024361070436600461224a565b61140f565b348015610714575f80fd5b5060095461028e9060ff1681565b606060038054610731906123ef565b80601f016020809104026020016040519081016040528092919081815260200182805461075d906123ef565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b5050505050905090565b5f336107bf8185856114ce565b60019150505b92915050565b6107d36115f1565b5f6001600160a01b03821661082b57604051339047905f81818185875af1925050503d805f811461081f576040519150601f19603f3d011682016040523d82523d5f602084013e610824565b606091505b5050505050565b306001600160a01b038316036108885760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177206f776e20746f6b656e0000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156108cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f09190612427565b116109295760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b604482015260640161087f565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa15801561096d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109919190612427565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0384169063a9059cbb906044016020604051808303815f875af11580156109de573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a02919061243e565b50505050565b610a106115f1565b600c811115610a615760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206275792074617865732062656c6f7720313225000000604482015260640161087f565b600f8190556040518181527f4164afd9904b0eee72326020b7f2a0de2e3f5b8998738fbacf09229b66e5fd80906020015b60405180910390a150565b5f33610aaa85828561164b565b610ab58585856116bd565b506001949350505050565b610ac86115f1565b610ae86103e8610ae26001610adc60025490565b90611c18565b90611c2a565b811015610b5d5760405162461bcd60e51b815260206004820152603960248201527f4d61782077616c6c657420616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20302e312520746f74616c20737570706c792e00000000000000606482015260840161087f565b600c8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e790602001610a92565b5f336107bf818585610ba4838361125a565b610bae919061246d565b6114ce565b610bbb6115f1565b6001600160a01b038116610c1c5760405162461bcd60e51b815260206004820152602260248201527f6d61726b6574696e6757616c6c6574416464726573732063616e6e6f74206265604482015261020360f41b606482015260840161087f565b601780546001600160a01b039081165f908152600760208181526040808420805460ff19908116909155865486168552600880845282862080548316905587546001600160a01b03191698871698891788559785529282528084208054841660019081179091559554909416835294909452208054909216179055565b610ca16115f1565b5f5b8251811015610d05578160085f858481518110610cc257610cc2612480565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff191691151591909117905580610cfd81612494565b915050610ca3565b505050565b610d126115f1565b610d1b5f611c35565b565b610d256115f1565b600254600a55600254600b55600254600c55565b610d416115f1565b6009805461ff001916610100179055610d76610d71306001600160a01b03165f9081526020819052604090205490565b611c86565b5f60158190556017546040516001600160a01b039091169047908381818185875af1925050503d805f8114610dc6576040519150601f19603f3d011682016040523d82523d5f602084013e610dcb565b606091505b50506009805461ff00191690555050565b610de46115f1565b600c811115610e355760405162461bcd60e51b815260206004820152601e60248201527f4d757374206b6565702073656c6c2074617865732062656c6f77203132250000604482015260640161087f565b60118190556040518181527f74ee7e999ca1ca5e528cb19e41c5e12b09ef7ec7f52723b917fec754ce95047290602001610a92565b610e726115f1565b600c811115610ece5760405162461bcd60e51b815260206004820152602260248201527f4d757374206b656570207472616e736665722074617865732062656c6f772031604482015261322560f01b606482015260840161087f565b60138190556040518181527f7a85e8a0c3f3d4bafa6ac516212f769dfdb9bbf7c6f058d391aa03b05962124390602001610a92565b606060048054610731906123ef565b5f3381610f1f828661125a565b905083811015610f7f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161087f565b610ab582868684036114ce565b610f946115f1565b6009805491151563010000000263ff00000019909216919091179055565b5f336107bf8185856116bd565b610fc76115f1565b5f5b8251811015610d05578160075f858481518110610fe857610fe8612480565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff19169115159190911790558061102381612494565b915050610fc9565b6110336115f1565b611048620f4240610ae26001610adc60025490565b8110156110b65760405162461bcd60e51b815260206004820152603660248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e6044820152751018171818181892903a37ba30b61039bab838363c9760511b606482015260840161087f565b6110ca6103e8610ae26005610adc60025490565b8111156111365760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161087f565b60168190556040518181527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f190602001610a92565b6111736115f1565b60095460ff16156111c65760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161087f565b6111d96064610ae26001610adc60025490565b600a556111ef6064610ae26001610adc60025490565b600b556112056064610ae26001610adc60025490565b600c5561121c612710610ae26005610adc60025490565b6016556009805462ff00ff1916620100011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e679905f90a1565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61128c6115f1565b600980549115156401000000000264ff0000000019909216919091179055565b6112b46115f1565b60098054911515620100000262ff000019909216919091179055565b6112d86115f1565b6112ec6103e8610ae26001610adc60025490565b8110156113615760405162461bcd60e51b815260206004820152603760248201527f4d61782073656c6c20616d6f756e742063616e6e6f74206265206c6f7765722060448201527f7468616e20302e312520746f74616c20737570706c792e000000000000000000606482015260840161087f565b600b8190556040518181527fa37090cc2feed4f3799a43ad59e5dab1cb6e70a7c1be92b72dbf9610550d5ac890602001610a92565b61139e6115f1565b6001600160a01b0381166114035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087f565b61140c81611c35565b50565b6114176115f1565b61142b6103e8610ae26001610adc60025490565b8110156114995760405162461bcd60e51b815260206004820152603660248201527f4d61782062757920616d6f756e742063616e6e6f74206265206c6f77657220746044820152753430b71018171892903a37ba30b61039bab838363c9760511b606482015260840161087f565b600a8190556040518181527f3a0b1f960db2351f13a6a83576ad81b35de3396cf92b9150216f2a6eea641d9a90602001610a92565b6001600160a01b0383166115305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161087f565b6001600160a01b0382166115915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161087f565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610d1b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087f565b5f611656848461125a565b90505f198114610a0257818110156116b05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161087f565b610a0284848484036114ce565b6001600160a01b0383166116e35760405162461bcd60e51b815260040161087f906124ac565b6001600160a01b0382166117095760405162461bcd60e51b815260040161087f906124f1565b5f811161176a5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161087f565b6018546001905f906001600160a01b038681169116146117a7576018546001600160a01b038581169116146117a05760026117a9565b60016117a9565b5f5b90506117bd6005546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156117ec57506005546001600160a01b03858116911614155b801561180057506001600160a01b03841615155b801561181757506001600160a01b03841661dead14155b801561182b5750600954610100900460ff16155b15611ac05760095460ff166118c3576001600160a01b0385165f9081526007602052604090205460ff168061187757506001600160a01b0384165f9081526007602052604090205460ff165b6118c35760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420616c6c6f776564207965742e0000000000604482015260640161087f565b5f8160028111156118d6576118d6612534565b1480156118f157506006546001600160a01b03858116911614155b801561191557506001600160a01b0384165f9081526008602052604090205460ff16155b15611a0357600a5483111561197e5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178426044820152683abca0b6b7bab73a1760b91b606482015260840161087f565b600c546119a9846119a3876001600160a01b03165f9081526020819052604090205490565b90611dd6565b1115611a035760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f6044820152633ab73a1760e11b606482015260840161087f565b6001816002811115611a1757611a17612534565b148015611a3257506006546001600160a01b03868116911614155b8015611a5657506001600160a01b0385165f9081526008602052604090205460ff16155b15611ac057600b54831115611ac05760405162461bcd60e51b815260206004820152602a60248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785360448201526932b63620b6b7bab73a1760b11b606482015260840161087f565b6001600160a01b0385165f9081526007602052604090205460ff1680611afd57506001600160a01b0384165f9081526007602052604090205460ff165b80611b1257506009546301000000900460ff16155b80611b445750600954640100000000900460ff16158015611b4457506002816002811115611b4257611b42612534565b145b15611b4d575f91505b305f9081526020819052604081205490505f60165482118015611b8157506001836002811115611b7f57611b7f612534565b145b9050808015611b98575060095462010000900460ff165b8015611bac5750600954610100900460ff16155b8015611bd057506001600160a01b0387165f9081526007602052604090205460ff16155b8015611bf457506001600160a01b0386165f9081526007602052604090205460ff16155b15611c0257611c0282611de1565b611c0f8787878787611ea0565b50505050505050565b5f611c238284612548565b9392505050565b5f611c23828461255f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611cb957611cb9612480565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d34919061257e565b81600181518110611d4757611d47612480565b6001600160a01b039283166020918202929092010152600654611d6d91309116846114ce565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790611da59085905f90869030904290600401612599565b5f604051808303815f87803b158015611dbc575f80fd5b505af1158015611dce573d5f803e3d5ffd5b505050505050565b5f611c23828461246d565b6009805461ff0019166101001790555f811580611dfe5750601554155b15611e095750611e92565b601654611e17906005611c18565b821115611e2f57601654611e2c906005611c18565b91505b611e3882611c86565b5f60158190556017546040516001600160a01b039091169147919081818185875af1925050503d805f8114611e88576040519150601f19603f3d011682016040523d82523d5f602084013e611e8d565b606091505b505050505b506009805461ff0019169055565b81611eb257611ead611ee7565b611ec0565b611ebd858483611f2b565b92505b611ecb85858561206e565b8161082457610824601054600f55601254601155601454601355565b600f54158015611ef75750601154155b8015611f035750601354155b15611f0a57565b600f805460105560118054601255601380546014555f928390559082905555565b5f6001826002811115611f4057611f40612534565b03611f5a57611f55601154600e819055600d55565b611ff3565b5f826002811115611f6d57611f6d612534565b03611f8257611f55600f54600e819055600d55565b6002826002811115611f9657611f96612534565b03611fab57611f55601354600e819055600d55565b60405162461bcd60e51b815260206004820152601960248201527f496e76616c6964207472616e73616374696f6e20747970652e00000000000000604482015260640161087f565b600d545f901561204a576120176064610ae2600d5487611c1890919063ffffffff16565b9050612034600d54610ae2600e5484611c1890919063ffffffff16565b60155f828254612044919061246d565b90915550505b801561205b5761205b85308361206e565b6120658185612608565b95945050505050565b6001600160a01b0383166120945760405162461bcd60e51b815260040161087f906124ac565b6001600160a01b0382166120ba5760405162461bcd60e51b815260040161087f906124f1565b6001600160a01b0383165f90815260208190526040902054818110156121315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161087f565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a02565b5f6020808352835180828501525f5b818110156121c1578581018301518582016040015282016121a5565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461140c575f80fd5b8035612200816121e1565b919050565b5f8060408385031215612216575f80fd5b8235612221816121e1565b946020939093013593505050565b5f6020828403121561223f575f80fd5b8135611c23816121e1565b5f6020828403121561225a575f80fd5b5035919050565b5f805f60608486031215612273575f80fd5b833561227e816121e1565b9250602084013561228e816121e1565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b801515811461140c575f80fd5b8035612200816122b3565b5f80604083850312156122dc575f80fd5b823567ffffffffffffffff808211156122f3575f80fd5b818501915085601f830112612306575f80fd5b813560208282111561231a5761231a61229f565b8160051b604051601f19603f8301168101818110868211171561233f5761233f61229f565b60405292835281830193508481018201928984111561235c575f80fd5b948201945b8386101561238157612372866121f5565b85529482019493820193612361565b965061239090508782016122c0565b9450505050509250929050565b5f602082840312156123ad575f80fd5b8135611c23816122b3565b5f80604083850312156123c9575f80fd5b82356123d4816121e1565b915060208301356123e4816121e1565b809150509250929050565b600181811c9082168061240357607f821691505b60208210810361242157634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215612437575f80fd5b5051919050565b5f6020828403121561244e575f80fd5b8151611c23816122b3565b634e487b7160e01b5f52601160045260245ffd5b808201808211156107c5576107c5612459565b634e487b7160e01b5f52603260045260245ffd5b5f600182016124a5576124a5612459565b5060010190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b5f52602160045260245ffd5b80820281158282048414176107c5576107c5612459565b5f8261257957634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561258e575f80fd5b8151611c23816121e1565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156125e75784516001600160a01b0316835293830193918301916001016125c2565b50506001600160a01b03969096166060850152505050608001529392505050565b818103818111156107c5576107c561245956fea26469706673582212200cdec4e298d4a63c6af8733ff84bfb863070780f8ae93d37ac2d169f114a0f6064736f6c63430008140033

Deployed Bytecode

0x60806040526004361061023c575f3560e01c80638da5cb5b1161012c578063afa4f3b2116100af578063e01af92c11610076578063e01af92c1461066c578063e99c9d091461068b578063effb3c53146106aa578063f2fde38b146106cb578063f34eb0b8146106ea578063ffb54a991461070957005b8063afa4f3b2146105dc578063c9567bf9146105fb578063d158272d1461060f578063dd62ed3e1461062e578063dd77b7e61461064d57005b8063a64e4f8a116100f3578063a64e4f8a1461054a578063a901dd921461056a578063a9059cbb14610589578063aa4bde28146105a8578063ad29ffde146105bd57005b80638da5cb5b146104b25780638f02bb5b146104e3578063921369131461050257806395d89b4114610517578063a457c2d71461052b57005b80635286e770116101bf578063751039fc11610186578063751039fc1461042c5780637bce5a04146104405780637f73f70b1461045557806385c5b3191461046957806388e765ff1461047e5780638b4cee081461049357005b80635286e7701461039157806366d602ae146103b05780636ddd1713146103c557806370a08231146103e4578063715018a61461041857005b806323b872dd1161020357806323b872dd146102fa57806327a14fc214610319578063313ce5671461033857806339509351146103535780634cb80fd51461037257005b806306fdde0314610245578063095ea7b31461026f5780630c1fe80c1461029e5780630cc835a3146102bd57806318160ddd146102dc57005b3661024357005b005b348015610250575f80fd5b50610259610722565b6040516102669190612196565b60405180910390f35b34801561027a575f80fd5b5061028e610289366004612205565b6107b2565b6040519015158152602001610266565b3480156102a9575f80fd5b506102436102b836600461222f565b6107cb565b3480156102c8575f80fd5b506102436102d736600461224a565b610a08565b3480156102e7575f80fd5b506002545b604051908152602001610266565b348015610305575f80fd5b5061028e610314366004612261565b610a9d565b348015610324575f80fd5b5061024361033336600461224a565b610ac0565b348015610343575f80fd5b5060405160128152602001610266565b34801561035e575f80fd5b5061028e61036d366004612205565b610b92565b34801561037d575f80fd5b5061024361038c36600461222f565b610bb3565b34801561039c575f80fd5b506102436103ab3660046122cb565b610c99565b3480156103bb575f80fd5b506102ec600b5481565b3480156103d0575f80fd5b5060095461028e9062010000900460ff1681565b3480156103ef575f80fd5b506102ec6103fe36600461222f565b6001600160a01b03165f9081526020819052604090205490565b348015610423575f80fd5b50610243610d0a565b348015610437575f80fd5b50610243610d1d565b34801561044b575f80fd5b506102ec600f5481565b348015610460575f80fd5b50610243610d39565b348015610474575f80fd5b506102ec60135481565b348015610489575f80fd5b506102ec600a5481565b34801561049e575f80fd5b506102436104ad36600461224a565b610ddc565b3480156104bd575f80fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610266565b3480156104ee575f80fd5b506102436104fd36600461224a565b610e6a565b34801561050d575f80fd5b506102ec60115481565b348015610522575f80fd5b50610259610f03565b348015610536575f80fd5b5061028e610545366004612205565b610f12565b348015610555575f80fd5b5060095461028e906301000000900460ff1681565b348015610575575f80fd5b5061024361058436600461239d565b610f8c565b348015610594575f80fd5b5061028e6105a3366004612205565b610fb2565b3480156105b3575f80fd5b506102ec600c5481565b3480156105c8575f80fd5b506102436105d73660046122cb565b610fbf565b3480156105e7575f80fd5b506102436105f636600461224a565b61102b565b348015610606575f80fd5b5061024361116b565b34801561061a575f80fd5b506017546104cb906001600160a01b031681565b348015610639575f80fd5b506102ec6106483660046123b8565b61125a565b348015610658575f80fd5b5061024361066736600461239d565b611284565b348015610677575f80fd5b5061024361068636600461239d565b6112ac565b348015610696575f80fd5b506102436106a536600461224a565b6112d0565b3480156106b5575f80fd5b5060095461028e90640100000000900460ff1681565b3480156106d6575f80fd5b506102436106e536600461222f565b611396565b3480156106f5575f80fd5b5061024361070436600461224a565b61140f565b348015610714575f80fd5b5060095461028e9060ff1681565b606060038054610731906123ef565b80601f016020809104026020016040519081016040528092919081815260200182805461075d906123ef565b80156107a85780601f1061077f576101008083540402835291602001916107a8565b820191905f5260205f20905b81548152906001019060200180831161078b57829003601f168201915b5050505050905090565b5f336107bf8185856114ce565b60019150505b92915050565b6107d36115f1565b5f6001600160a01b03821661082b57604051339047905f81818185875af1925050503d805f811461081f576040519150601f19603f3d011682016040523d82523d5f602084013e610824565b606091505b5050505050565b306001600160a01b038316036108885760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74207769746864726177206f776e20746f6b656e0000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156108cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f09190612427565b116109295760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b604482015260640161087f565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa15801561096d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109919190612427565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0384169063a9059cbb906044016020604051808303815f875af11580156109de573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a02919061243e565b50505050565b610a106115f1565b600c811115610a615760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206275792074617865732062656c6f7720313225000000604482015260640161087f565b600f8190556040518181527f4164afd9904b0eee72326020b7f2a0de2e3f5b8998738fbacf09229b66e5fd80906020015b60405180910390a150565b5f33610aaa85828561164b565b610ab58585856116bd565b506001949350505050565b610ac86115f1565b610ae86103e8610ae26001610adc60025490565b90611c18565b90611c2a565b811015610b5d5760405162461bcd60e51b815260206004820152603960248201527f4d61782077616c6c657420616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20302e312520746f74616c20737570706c792e00000000000000606482015260840161087f565b600c8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e790602001610a92565b5f336107bf818585610ba4838361125a565b610bae919061246d565b6114ce565b610bbb6115f1565b6001600160a01b038116610c1c5760405162461bcd60e51b815260206004820152602260248201527f6d61726b6574696e6757616c6c6574416464726573732063616e6e6f74206265604482015261020360f41b606482015260840161087f565b601780546001600160a01b039081165f908152600760208181526040808420805460ff19908116909155865486168552600880845282862080548316905587546001600160a01b03191698871698891788559785529282528084208054841660019081179091559554909416835294909452208054909216179055565b610ca16115f1565b5f5b8251811015610d05578160085f858481518110610cc257610cc2612480565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff191691151591909117905580610cfd81612494565b915050610ca3565b505050565b610d126115f1565b610d1b5f611c35565b565b610d256115f1565b600254600a55600254600b55600254600c55565b610d416115f1565b6009805461ff001916610100179055610d76610d71306001600160a01b03165f9081526020819052604090205490565b611c86565b5f60158190556017546040516001600160a01b039091169047908381818185875af1925050503d805f8114610dc6576040519150601f19603f3d011682016040523d82523d5f602084013e610dcb565b606091505b50506009805461ff00191690555050565b610de46115f1565b600c811115610e355760405162461bcd60e51b815260206004820152601e60248201527f4d757374206b6565702073656c6c2074617865732062656c6f77203132250000604482015260640161087f565b60118190556040518181527f74ee7e999ca1ca5e528cb19e41c5e12b09ef7ec7f52723b917fec754ce95047290602001610a92565b610e726115f1565b600c811115610ece5760405162461bcd60e51b815260206004820152602260248201527f4d757374206b656570207472616e736665722074617865732062656c6f772031604482015261322560f01b606482015260840161087f565b60138190556040518181527f7a85e8a0c3f3d4bafa6ac516212f769dfdb9bbf7c6f058d391aa03b05962124390602001610a92565b606060048054610731906123ef565b5f3381610f1f828661125a565b905083811015610f7f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161087f565b610ab582868684036114ce565b610f946115f1565b6009805491151563010000000263ff00000019909216919091179055565b5f336107bf8185856116bd565b610fc76115f1565b5f5b8251811015610d05578160075f858481518110610fe857610fe8612480565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff19169115159190911790558061102381612494565b915050610fc9565b6110336115f1565b611048620f4240610ae26001610adc60025490565b8110156110b65760405162461bcd60e51b815260206004820152603660248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e6044820152751018171818181892903a37ba30b61039bab838363c9760511b606482015260840161087f565b6110ca6103e8610ae26005610adc60025490565b8111156111365760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161087f565b60168190556040518181527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f190602001610a92565b6111736115f1565b60095460ff16156111c65760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161087f565b6111d96064610ae26001610adc60025490565b600a556111ef6064610ae26001610adc60025490565b600b556112056064610ae26001610adc60025490565b600c5561121c612710610ae26005610adc60025490565b6016556009805462ff00ff1916620100011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e679905f90a1565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b61128c6115f1565b600980549115156401000000000264ff0000000019909216919091179055565b6112b46115f1565b60098054911515620100000262ff000019909216919091179055565b6112d86115f1565b6112ec6103e8610ae26001610adc60025490565b8110156113615760405162461bcd60e51b815260206004820152603760248201527f4d61782073656c6c20616d6f756e742063616e6e6f74206265206c6f7765722060448201527f7468616e20302e312520746f74616c20737570706c792e000000000000000000606482015260840161087f565b600b8190556040518181527fa37090cc2feed4f3799a43ad59e5dab1cb6e70a7c1be92b72dbf9610550d5ac890602001610a92565b61139e6115f1565b6001600160a01b0381166114035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087f565b61140c81611c35565b50565b6114176115f1565b61142b6103e8610ae26001610adc60025490565b8110156114995760405162461bcd60e51b815260206004820152603660248201527f4d61782062757920616d6f756e742063616e6e6f74206265206c6f77657220746044820152753430b71018171892903a37ba30b61039bab838363c9760511b606482015260840161087f565b600a8190556040518181527f3a0b1f960db2351f13a6a83576ad81b35de3396cf92b9150216f2a6eea641d9a90602001610a92565b6001600160a01b0383166115305760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161087f565b6001600160a01b0382166115915760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161087f565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610d1b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087f565b5f611656848461125a565b90505f198114610a0257818110156116b05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161087f565b610a0284848484036114ce565b6001600160a01b0383166116e35760405162461bcd60e51b815260040161087f906124ac565b6001600160a01b0382166117095760405162461bcd60e51b815260040161087f906124f1565b5f811161176a5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161087f565b6018546001905f906001600160a01b038681169116146117a7576018546001600160a01b038581169116146117a05760026117a9565b60016117a9565b5f5b90506117bd6005546001600160a01b031690565b6001600160a01b0316856001600160a01b0316141580156117ec57506005546001600160a01b03858116911614155b801561180057506001600160a01b03841615155b801561181757506001600160a01b03841661dead14155b801561182b5750600954610100900460ff16155b15611ac05760095460ff166118c3576001600160a01b0385165f9081526007602052604090205460ff168061187757506001600160a01b0384165f9081526007602052604090205460ff165b6118c35760405162461bcd60e51b815260206004820152601b60248201527f54726164696e67206973206e6f7420616c6c6f776564207965742e0000000000604482015260640161087f565b5f8160028111156118d6576118d6612534565b1480156118f157506006546001600160a01b03858116911614155b801561191557506001600160a01b0384165f9081526008602052604090205460ff16155b15611a0357600a5483111561197e5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178426044820152683abca0b6b7bab73a1760b91b606482015260840161087f565b600c546119a9846119a3876001600160a01b03165f9081526020819052604090205490565b90611dd6565b1115611a035760405162461bcd60e51b8152602060048201526024808201527f45786365656473206d6178696d756d2077616c6c657420746f6b656e20616d6f6044820152633ab73a1760e11b606482015260840161087f565b6001816002811115611a1757611a17612534565b148015611a3257506006546001600160a01b03868116911614155b8015611a5657506001600160a01b0385165f9081526008602052604090205460ff16155b15611ac057600b54831115611ac05760405162461bcd60e51b815260206004820152602a60248201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785360448201526932b63620b6b7bab73a1760b11b606482015260840161087f565b6001600160a01b0385165f9081526007602052604090205460ff1680611afd57506001600160a01b0384165f9081526007602052604090205460ff165b80611b1257506009546301000000900460ff16155b80611b445750600954640100000000900460ff16158015611b4457506002816002811115611b4257611b42612534565b145b15611b4d575f91505b305f9081526020819052604081205490505f60165482118015611b8157506001836002811115611b7f57611b7f612534565b145b9050808015611b98575060095462010000900460ff165b8015611bac5750600954610100900460ff16155b8015611bd057506001600160a01b0387165f9081526007602052604090205460ff16155b8015611bf457506001600160a01b0386165f9081526007602052604090205460ff16155b15611c0257611c0282611de1565b611c0f8787878787611ea0565b50505050505050565b5f611c238284612548565b9392505050565b5f611c23828461255f565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611cb957611cb9612480565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611d10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d34919061257e565b81600181518110611d4757611d47612480565b6001600160a01b039283166020918202929092010152600654611d6d91309116846114ce565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790611da59085905f90869030904290600401612599565b5f604051808303815f87803b158015611dbc575f80fd5b505af1158015611dce573d5f803e3d5ffd5b505050505050565b5f611c23828461246d565b6009805461ff0019166101001790555f811580611dfe5750601554155b15611e095750611e92565b601654611e17906005611c18565b821115611e2f57601654611e2c906005611c18565b91505b611e3882611c86565b5f60158190556017546040516001600160a01b039091169147919081818185875af1925050503d805f8114611e88576040519150601f19603f3d011682016040523d82523d5f602084013e611e8d565b606091505b505050505b506009805461ff0019169055565b81611eb257611ead611ee7565b611ec0565b611ebd858483611f2b565b92505b611ecb85858561206e565b8161082457610824601054600f55601254601155601454601355565b600f54158015611ef75750601154155b8015611f035750601354155b15611f0a57565b600f805460105560118054601255601380546014555f928390559082905555565b5f6001826002811115611f4057611f40612534565b03611f5a57611f55601154600e819055600d55565b611ff3565b5f826002811115611f6d57611f6d612534565b03611f8257611f55600f54600e819055600d55565b6002826002811115611f9657611f96612534565b03611fab57611f55601354600e819055600d55565b60405162461bcd60e51b815260206004820152601960248201527f496e76616c6964207472616e73616374696f6e20747970652e00000000000000604482015260640161087f565b600d545f901561204a576120176064610ae2600d5487611c1890919063ffffffff16565b9050612034600d54610ae2600e5484611c1890919063ffffffff16565b60155f828254612044919061246d565b90915550505b801561205b5761205b85308361206e565b6120658185612608565b95945050505050565b6001600160a01b0383166120945760405162461bcd60e51b815260040161087f906124ac565b6001600160a01b0382166120ba5760405162461bcd60e51b815260040161087f906124f1565b6001600160a01b0383165f90815260208190526040902054818110156121315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161087f565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a02565b5f6020808352835180828501525f5b818110156121c1578581018301518582016040015282016121a5565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461140c575f80fd5b8035612200816121e1565b919050565b5f8060408385031215612216575f80fd5b8235612221816121e1565b946020939093013593505050565b5f6020828403121561223f575f80fd5b8135611c23816121e1565b5f6020828403121561225a575f80fd5b5035919050565b5f805f60608486031215612273575f80fd5b833561227e816121e1565b9250602084013561228e816121e1565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b801515811461140c575f80fd5b8035612200816122b3565b5f80604083850312156122dc575f80fd5b823567ffffffffffffffff808211156122f3575f80fd5b818501915085601f830112612306575f80fd5b813560208282111561231a5761231a61229f565b8160051b604051601f19603f8301168101818110868211171561233f5761233f61229f565b60405292835281830193508481018201928984111561235c575f80fd5b948201945b8386101561238157612372866121f5565b85529482019493820193612361565b965061239090508782016122c0565b9450505050509250929050565b5f602082840312156123ad575f80fd5b8135611c23816122b3565b5f80604083850312156123c9575f80fd5b82356123d4816121e1565b915060208301356123e4816121e1565b809150509250929050565b600181811c9082168061240357607f821691505b60208210810361242157634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215612437575f80fd5b5051919050565b5f6020828403121561244e575f80fd5b8151611c23816122b3565b634e487b7160e01b5f52601160045260245ffd5b808201808211156107c5576107c5612459565b634e487b7160e01b5f52603260045260245ffd5b5f600182016124a5576124a5612459565b5060010190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b634e487b7160e01b5f52602160045260245ffd5b80820281158282048414176107c5576107c5612459565b5f8261257957634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561258e575f80fd5b8151611c23816121e1565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156125e75784516001600160a01b0316835293830193918301916001016125c2565b50506001600160a01b03969096166060850152505050608001529392505050565b818103818111156107c5576107c561245956fea26469706673582212200cdec4e298d4a63c6af8733ff84bfb863070780f8ae93d37ac2d169f114a0f6064736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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