ETH Price: $2,631.96 (+1.02%)

Token

Lends (LENDS)
 

Overview

Max Total Supply

625,000,000 LENDS

Holders

2,368 (0.00%)

Market

Price

$0.01 @ 0.000002 ETH (-0.79%)

Onchain Market Cap

$3,664,712.50

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
5,033 LENDS

Value
$29.51 ( ~0.0112121796486415 Eth) [0.0008%]
0x7b6658948aa80f9122454ee88a13598a8f1508aa
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Lends is a decentralized lending interface in the THORChain ecosystem. Notable for its on-chain operations, it provides loans with unique features: 0% interest, no liquidation, and no expiration.

Market

Volume (24H):$131,850.00
Market Capitalization:$0.00
Circulating Supply:0.00 LENDS
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LendsToken

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 14 : LendsToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.21;

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

interface IUniswapV3Router is ISwapRouter {
    function factory() external pure returns (address);
}

contract LendsToken is ERC20, Ownable, IToken {
    using SafeMath for uint256;

    /* ///////////////////////////////////////////////////////////
                            CONSTANTS
    //////////////////////////////////////////////////////////////
    */
    address public constant ZERO_ADDRESS = address(0);
    address public constant DEAD_ADDRESS = address(0xdead);

    /* ///////////////////////////////////////////////////////////
                            STATE VARIABLES
    //////////////////////////////////////////////////////////////
    */
    IUniswapV2Router02 public immutable uniswapV2Router;
    IUniswapV3Router public immutable uniswapV3Router;
    address public immutable uniswapUniversalRouter;

    address public uniswapV2Pair;
    address public uniswapV3Pair;

    address public taxWallet;

    bool private _swapping;
    bool private _v3LPProtectionEnabled;

    bool public swapEnabled;
    bool public taxesEnabled;
    bool public launched;

    uint256 public launchBlock;
    uint256 public launchTime;

    uint256 public buyTax;
    uint256 public sellTax;

    uint256 public swapBackTreshold;

    mapping(address => bool) private _isExcludedFromTaxes;
    mapping(address => bool) private _ammPairs;

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

    /* ///////////////////////////////////////////////////////////
                            CONSTRUCTOR
    //////////////////////////////////////////////////////////////
    */
    constructor() ERC20("Lends", "LENDS") {
        uint256 totalSupply = 625_000_000 ether;

        uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        uniswapV3Router = IUniswapV3Router(
            0xE592427A0AEce92De3Edee1F18E0157C05861564
        );
        uniswapUniversalRouter = 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD;

        _approve(address(this), address(uniswapV2Router), type(uint256).max);

        buyTax = 10;
        sellTax = 10;
        swapBackTreshold = 1000 ether;

        taxWallet = owner();

        _v3LPProtectionEnabled = true;

        _excludeFromTaxes(address(this), true);
        _excludeFromTaxes(DEAD_ADDRESS, true);
        _excludeFromTaxes(taxWallet, true);

        _mint(0x93eeDD7bD39AE01Ca70DBE1c83Becb4edb183F19, totalSupply.mul(672).div(10000));
        _mint(0xd3E3fea8aB5b15D7518Aae04E4011b5eCd9fc102, totalSupply.mul(672).div(10000));
        _mint(0x29D82FE41C0bED5EC6194bD2a1c0e7E10f99e08A, totalSupply.mul(672).div(10000));
        _mint(0x3d48F3c2428E203C49127059A1FA1F0ce176910c, totalSupply.mul(672).div(10000));
        _mint(0x7e88F13F8B83e8574109675e02e59c9A9937f377, totalSupply.mul(672).div(10000));
        _mint(0x0919f02BE673B261A0bb496C9d546B76EF86A8Da, totalSupply.mul(672).div(10000));
        _mint(0x6d6e242e51F5285332fCD25F7F367E44AF9BAa23, totalSupply.mul(672).div(10000));
        _mint(0x3fbC174Eb1Dbc409CA2C3645BA6495C64102d42c, totalSupply.mul(672).div(10000));
        _mint(0x5396037E85184aE7F05D5d2238132316be375997, totalSupply.mul(267).div(10000));
        _mint(0xd663a350E661bb17A7cF6A2062B0c72a6a073FfD, totalSupply.mul(267).div(10000));
        _mint(0x56D60F732949E4592c016C9271883d2779eF385F, totalSupply.mul(267).div(10000));
        _mint(0x26B39d684c0d50c8eFA9B8B1Cdf518E96fFbf339, totalSupply.mul(160).div(10000));
        _mint(0xf1112CE591A22e54199Ff9e0Ac3ed130a7Cac083, totalSupply.mul(863).div(10000));
        _mint(0xc93a8Ea37FE474C4e0885FE498382E79D48cecA3, totalSupply.mul(160).div(10000));
        _mint(0xD4482C319101f76BbFb84668385f5D008cA25c3d, totalSupply.mul(250).div(10000));
        _mint(0x4F746C1844B15D8B31B9156c08A67d6970149EC9, totalSupply.mul(250).div(10000));
        _mint(0x56a54c59Bb09715b51E692D50536c2751eFcF9F4, totalSupply.mul(10).div(10000));
        _mint(0x5Eb9e728DEf0b9aA7ADf14d58E920FDeA72fACe0, totalSupply.mul(142).div(10000));
        _mint(0x4D64CEB8B90Ab76F103663f2bDDa403E47106838, totalSupply.mul(142).div(10000));
        _mint(0x90cdbD2e17B25E346046689e493efd887400bfff, totalSupply.mul(142).div(10000));
        _mint(0x5882e509b64eA399F7F5aF603e918B11bF46dDC8, totalSupply.mul(142).div(10000));
        _mint(0x5D7040CFf7FB596405192c4d934821e789Af900A, totalSupply.mul(142).div(10000));
        _mint(0x6B24fc2B374e0D6D54c84E30b938de5d0241b091, totalSupply.mul(142).div(10000));
        _mint(0xd55f2253805999f28a6B2BA5860e8CA4eA41e5d6, totalSupply.mul(142).div(10000));
        _mint(0xf791f5B16e39903a9f9E1261E5D65C856B5068f2, totalSupply.mul(142).div(10000));
        _mint(0x9124b3E632761c9f9E2Cd320315633D9C1439EB7, totalSupply.mul(142).div(10000));
        _mint(0xA6D35D849Eb053B9F9e165Cc46c74eF3cb7781Ad, totalSupply.mul(142).div(10000));
        _mint(0x566E0D8dC3BCD83508b59a2D4A7Bf069d709420E, totalSupply.mul(142).div(10000));
        _mint(0x7bB8427897B2237C9d1FF9dDbe443A65a2D123DE, totalSupply.mul(142).div(10000));
        _mint(0x1b0853Ee67Ca33206B55BB30B8111E6519Ca6079, totalSupply.mul(142).div(10000));
        _mint(0x92B963e84c586993f624e489f0c0aa0820Ead859, totalSupply.mul(142).div(10000));
        _mint(0x1aaE81943aAd50527913070ABd86C3a64DE2D774, totalSupply.mul(142).div(10000));
    }

    /* ///////////////////////////////////////////////////////////
                            PUBLIC FUNCTIONS
    //////////////////////////////////////////////////////////////
    */
    function launch() public onlyOwner {
        require(!launched, "ERC20: Already launched.");

        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).getPair(
            address(this),
            uniswapV2Router.WETH()
        );

        if (uniswapV2Pair == ZERO_ADDRESS) {
            uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
                .createPair(address(this), uniswapV2Router.WETH());
        }

        uniswapV3Pair = IUniswapV3Factory(uniswapV3Router.factory()).createPool(
                address(this),
                uniswapV2Router.WETH(),
                10000
            );

        _approve(address(this), address(uniswapV2Pair), type(uint256).max);
        _approve(address(this), address(uniswapV3Pair), type(uint256).max);

        IERC20(uniswapV2Pair).approve(
            address(uniswapV2Router),
            type(uint256).max
        );

        _setAMMPair(address(uniswapV2Pair), true);
        _setAMMPair(address(uniswapV3Pair), true);

        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );

        swapEnabled = true;
        taxesEnabled = true;
        launched = true;

        launchBlock = block.number;
        launchTime = block.timestamp;

        emit Launch(launchBlock, launchTime);
    }

    function prepareForMigration() public onlyOwner {
        swapEnabled = false;
        taxesEnabled = false;
        _v3LPProtectionEnabled = false;

        buyTax = 0;
        sellTax = 0;

        swapBackTreshold = totalSupply();

        if (balanceOf(address(this)) > 0) {
            super._transfer(
                address(this),
                msg.sender,
                balanceOf(address(this))
            );
        }

        emit PrepareForMigration(block.number, block.timestamp);
    }

    function burn(uint256 amount) public {
        _burn(msg.sender, amount);
    }

    function withdrawStuckTokens(address _token) public onlyOwner {
        uint256 amount;
        if (_token == ZERO_ADDRESS) {
            bool success;
            amount = address(this).balance;
            (success, ) = address(msg.sender).call{value: amount}("");
        } else {
            require(IERC20(_token).balanceOf(address(this)) > 0, "No tokens");
            amount = IERC20(_token).balanceOf(address(this));
            IERC20(_token).transfer(msg.sender, amount);
        }
        emit WithdrawStuckTokens(_token, amount);
    }

    /* ///////////////////////////////////////////////////////////
                            SETTERS
    //////////////////////////////////////////////////////////////
    */
    function setBuyTax(uint256 _tax) public onlyOwner {
        require(_tax <= 20, "setBuyTax: Must keep tax at 20% or less");
        uint256 oldValue = buyTax;
        buyTax = _tax;
        emit SetBuyTaxes(oldValue, buyTax);
    }

    function setSellTax(uint256 _tax) public onlyOwner {
        require(_tax <= 20, "setSellTax: Must keep tax at 20% or less");
        uint256 oldValue = sellTax;
        sellTax = _tax;
        emit SetSellTaxes(oldValue, sellTax);
    }

    function setTaxWallet(address _taxWallet) public onlyOwner {
        require(_taxWallet != ZERO_ADDRESS, "ERC20: Address 0");
        address oldWallet = taxWallet;
        taxWallet = _taxWallet;
        _excludeFromTaxes(_taxWallet, true);
        emit SetTaxWallet(oldWallet, taxWallet);
    }

    function setSwapEnabled(bool _value) public onlyOwner {
        swapEnabled = _value;
        emit SetSwapEnabled(swapEnabled);
    }

    function setTaxesEnabled(bool _value) public onlyOwner {
        taxesEnabled = _value;
        emit SetTaxesEnabled(taxesEnabled);
    }

    function setSwapBackTreshold(uint256 _amount) public onlyOwner {
        uint256 oldValue = swapBackTreshold;
        swapBackTreshold = _amount;
        emit SetSwapBackTreshold(oldValue, swapBackTreshold);
    }

    function excludeFromTaxes(
        address[] calldata _wallets,
        bool _value
    ) public onlyOwner {
        for (uint256 i = 0; i < _wallets.length; i++) {
            _excludeFromTaxes(_wallets[i], _value);
        }
    }

    /* ///////////////////////////////////////////////////////////
                            GETTERS
    //////////////////////////////////////////////////////////////
    */
    function isExcludedFromTaxes(
        address _wallet
    ) public view returns (bool _isExcluded) {
        return _isExcludedFromTaxes[_wallet];
    }

    /* ///////////////////////////////////////////////////////////
                            INTERNAL FUNCTIONS
    //////////////////////////////////////////////////////////////
    */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        require(from != ZERO_ADDRESS, "ERC20: transfer from the zero address");
        require(to != ZERO_ADDRESS, "ERC20: transfer to the zero address");

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

        if (
            _v3LPProtectionEnabled &&
            (from == uniswapV3Pair || to == uniswapV3Pair)
        ) {
            require(
                _isExcludedFromTaxes[from] || _isExcludedFromTaxes[to],
                "ERC20: Not authorized to add LP to Uniswap V3 Pool"
            );
        }

        if (
            from != owner() &&
            to != owner() &&
            to != ZERO_ADDRESS &&
            to != DEAD_ADDRESS &&
            !_swapping
        ) {
            if (!launched) {
                require(
                    _isExcludedFromTaxes[from] || _isExcludedFromTaxes[to],
                    "ERC20: Not launched."
                );
            }
        }

        if (swapEnabled) {
            uint256 balance = balanceOf(address(this));

            bool canSwap = balance >= swapBackTreshold;

            if (
                canSwap &&
                !_swapping &&
                !_ammPairs[from] &&
                !_isExcludedFromTaxes[from] &&
                !_isExcludedFromTaxes[to]
            ) {
                _swapBack(balance);
            }
        }

        if (taxesEnabled) {
            bool takeTax = !_swapping;

            if (_isExcludedFromTaxes[from] || _isExcludedFromTaxes[to]) {
                takeTax = false;
            }

            uint256 taxes = 0;
            uint256 totalTaxes = 0;

            if (takeTax) {
                if (_ammPairs[to] && sellTax > 0) {
                    if (block.number > launchBlock.add(1000)) {
                        totalTaxes = sellTax;
                    } else if (block.number > launchBlock.add(30)) {
                        totalTaxes = 20;
                    } else if (block.number > launchBlock.add(10)) {
                        totalTaxes = 33;
                    } else if (block.number > launchBlock.add(2)) {
                        totalTaxes = 40;
                    } else {
                        totalTaxes = 50;
                    }
                    taxes = amount.mul(totalTaxes).div(100);
                } else if (_ammPairs[from] && buyTax > 0) {
                    if (block.number > launchBlock.add(1000)) {
                        totalTaxes = buyTax;
                    } else if (block.number > launchBlock.add(30)) {
                        totalTaxes = 20;
                    } else if (block.number > launchBlock.add(10)) {
                        totalTaxes = 33;
                    } else if (block.number > launchBlock.add(2)) {
                        totalTaxes = 40;
                    } else {
                        totalTaxes = 50;
                    }
                    taxes = amount.mul(totalTaxes).div(100);
                }

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

                amount -= taxes;
            }
        }

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

    function _swapTokensForETH(uint256 _amount) internal virtual {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

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

        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            _amount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function _swapBack(uint256 _amount) internal virtual lockSwapping {
        bool success;

        if (_amount == 0) return;

        _swapTokensForETH(_amount);

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

    function _excludeFromTaxes(address _wallet, bool _value) internal virtual {
        _isExcludedFromTaxes[_wallet] = _value;
        emit ExcludeFromTaxes(_wallet, _value);
    }

    function _setAMMPair(address _wallet, bool _value) internal virtual {
        _ammPairs[_wallet] = _value;
        emit SetAMMPair(_wallet, _value);
    }

    receive() external payable {}
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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}.
     *
     * 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 default value returned by this function, unless
     * it's 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 4 of 14 : 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 5 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 14 : 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 7 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : 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 9 of 14 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

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

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

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

import './IUniswapV2Router01.sol';

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

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

File 11 of 14 : IUniswapV3SwapCallback.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

File 12 of 14 : IUniswapV3Factory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title The interface for the Uniswap V3 Factory
/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees
interface IUniswapV3Factory {
    /// @notice Emitted when the owner of the factory is changed
    /// @param oldOwner The owner before the owner was changed
    /// @param newOwner The owner after the owner was changed
    event OwnerChanged(address indexed oldOwner, address indexed newOwner);

    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory
    /// @param fee The enabled fee, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee
    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);

    /// @notice Returns the current owner of the factory
    /// @dev Can be changed by the current owner via setOwner
    /// @return The address of the factory owner
    function owner() external view returns (address);

    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled
    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context
    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee
    /// @return The tick spacing
    function feeAmountTickSpacing(uint24 fee) external view returns (int24);

    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @return pool The pool address
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    /// @notice Creates a pool for the given two tokens and fee
    /// @param tokenA One of the two tokens in the desired pool
    /// @param tokenB The other of the two tokens in the desired pool
    /// @param fee The desired fee for the pool
    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
    /// are invalid.
    /// @return pool The address of the newly created pool
    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    /// @notice Updates the owner of the factory
    /// @dev Must be called by the current owner
    /// @param _owner The new owner of the factory
    function setOwner(address _owner) external;

    /// @notice Enables a fee amount with the given tickSpacing
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}

File 13 of 14 : ISwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 14 of 14 : IToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.21;
pragma experimental ABIEncoderV2;

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

/// @title IToken Interface
/// @dev Interface for the Token contract
interface IToken is IERC20 {
    /// @dev Emitted when the contract is launched
    event Launch(uint256 blockNumber, uint256 timestamp);
    /// @dev Emitted when preparing for migration
    event PrepareForMigration(uint256 blockNumber, uint256 timestamp);
    /// @dev Emitted when swap status is updated
    event SetSwapEnabled(bool status);
    /// @dev Emitted when taxes status is updated
    event SetTaxesEnabled(bool status);
    /// @dev Emitted when swap tokens at amount is updated
    event SetSwapBackTreshold(uint256 oldValue, uint256 newValue);
    /// @dev Emitted when buy taxes are updated
    event SetBuyTaxes(uint256 oldValue, uint256 newValue);
    /// @dev Emitted when sell taxes are updated
    event SetSellTaxes(uint256 oldValue, uint256 newValue);
    /// @dev Emitted when the tax wallet is updated
    event SetTaxWallet(address indexed oldWallet, address indexed newWallet);
    /// @dev Emitted when withdrawing stuck tokens
    event WithdrawStuckTokens(address token, uint256 amount);
    /// @dev Emitted when an account is excluded from taxes
    event ExcludeFromTaxes(address indexed account, bool isExcluded);
    /// @dev Emitted when an AMM pair is set
    event SetAMMPair(address indexed pair, bool indexed value);

    /// @dev Function to launch the contract
    function launch() external;

    /// @dev Function to prepare for migration
    function prepareForMigration() external;

    /// @dev Function to burn a specified amount of tokens
    /// @param amount The amount of tokens to burn
    function burn(uint256 amount) external;

    /// @dev Function to set buy taxes
    /// @param _tax The new buy tax value
    function setBuyTax(uint256 _tax) external;

    /// @dev Function to set sell taxes
    /// @param _tax The new sell tax value
    function setSellTax(uint256 _tax) external;

    /// @dev Function to set the tax wallet address
    /// @param _taxWallet The new tax wallet address
    function setTaxWallet(address _taxWallet) external;

    /// @dev Function to set the swap status
    /// @param _value The new swap status value
    function setSwapEnabled(bool _value) external;

    /// @dev Function to set the taxes status
    /// @param _value The new taxes status value
    function setTaxesEnabled(bool _value) external;

    /// @dev Function to exclude or include multiple addresses from taxes
    /// @param _wallets Array of addresses to be excluded or included
    /// @param _value Boolean indicating whether to exclude or include
    function excludeFromTaxes(
        address[] calldata _wallets,
        bool _value
    ) external;

    /// @dev Function to check if an address is excluded from taxes
    /// @param _wallet The address to check
    /// @return _isExcluded Boolean indicating whether the address is excluded
    function isExcludedFromTaxes(address _wallet) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Launch","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":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PrepareForMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAMMPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetBuyTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetSellTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetSwapBackTreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SetSwapEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"},{"indexed":true,"internalType":"address","name":"newWallet","type":"address"}],"name":"SetTaxWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SetTaxesEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawStuckTokens","type":"event"},{"inputs":[],"name":"DEAD_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyTax","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":"_wallets","type":"address[]"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"excludeFromTaxes","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":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"isExcludedFromTaxes","outputs":[{"internalType":"bool","name":"_isExcluded","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareForMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tax","type":"uint256"}],"name":"setBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tax","type":"uint256"}],"name":"setSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapBackTreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxWallet","type":"address"}],"name":"setTaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setTaxesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapBackTreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"taxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapUniversalRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3Router","outputs":[{"internalType":"contract IUniswapV3Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b50604051806040016040528060058152602001644c656e647360d81b815250604051806040016040528060058152602001644c454e445360d81b81525081600390816200005f919062000aa4565b5060046200006e828262000aa4565b5050506200008b620000856200073260201b60201c565b62000736565b737a250d5630b4cf539739df2c5dacb4c659f2488d608081905273e592427a0aece92de3edee1f18e0157c0586156460a052733fc91a3afd70395cd496c647d5a6cc9d4b2b7fad60c0526b0204fce5e3e250261100000090620000f390309060001962000788565b600a600b819055600c55683635c9adc5dea00000600d556005546001600160a01b031660088054600161ff0160a01b0319166001600160a01b039290921691909117600160a81b1790556200014a306001620008b4565b6200015961dead6001620008b4565b60085462000172906001600160a01b03166001620008b4565b620001ad7393eedd7bd39ae01ca70dbe1c83becb4edb183f19620001a7612710620001a0856102a062000913565b906200092a565b62000938565b620001db73d3e3fea8ab5b15d7518aae04e4011b5ecd9fc102620001a7612710620001a0856102a062000913565b620002097329d82fe41c0bed5ec6194bd2a1c0e7e10f99e08a620001a7612710620001a0856102a062000913565b62000237733d48f3c2428e203c49127059a1fa1f0ce176910c620001a7612710620001a0856102a062000913565b62000265737e88f13f8b83e8574109675e02e59c9a9937f377620001a7612710620001a0856102a062000913565b62000293730919f02be673b261a0bb496c9d546b76ef86a8da620001a7612710620001a0856102a062000913565b620002c1736d6e242e51f5285332fcd25f7f367e44af9baa23620001a7612710620001a0856102a062000913565b620002ef733fbc174eb1dbc409ca2c3645ba6495c64102d42c620001a7612710620001a0856102a062000913565b6200031d735396037e85184ae7f05d5d2238132316be375997620001a7612710620001a08561010b62000913565b6200034b73d663a350e661bb17a7cf6a2062b0c72a6a073ffd620001a7612710620001a08561010b62000913565b620003797356d60f732949e4592c016c9271883d2779ef385f620001a7612710620001a08561010b62000913565b620003a67326b39d684c0d50c8efa9b8b1cdf518e96ffbf339620001a7612710620001a08560a062000913565b620003d473f1112ce591a22e54199ff9e0ac3ed130a7cac083620001a7612710620001a08561035f62000913565b6200040173c93a8ea37fe474c4e0885fe498382e79d48ceca3620001a7612710620001a08560a062000913565b6200042e73d4482c319101f76bbfb84668385f5d008ca25c3d620001a7612710620001a08560fa62000913565b6200045b734f746c1844b15d8b31b9156c08a67d6970149ec9620001a7612710620001a08560fa62000913565b620004887356a54c59bb09715b51e692d50536c2751efcf9f4620001a7612710620001a085600a62000913565b620004b5735eb9e728def0b9aa7adf14d58e920fdea72face0620001a7612710620001a085608e62000913565b620004e2734d64ceb8b90ab76f103663f2bdda403e47106838620001a7612710620001a085608e62000913565b6200050f7390cdbd2e17b25e346046689e493efd887400bfff620001a7612710620001a085608e62000913565b6200053c735882e509b64ea399f7f5af603e918b11bf46ddc8620001a7612710620001a085608e62000913565b62000569735d7040cff7fb596405192c4d934821e789af900a620001a7612710620001a085608e62000913565b62000596736b24fc2b374e0d6d54c84e30b938de5d0241b091620001a7612710620001a085608e62000913565b620005c373d55f2253805999f28a6b2ba5860e8ca4ea41e5d6620001a7612710620001a085608e62000913565b620005f073f791f5b16e39903a9f9e1261e5d65c856b5068f2620001a7612710620001a085608e62000913565b6200061d739124b3e632761c9f9e2cd320315633d9c1439eb7620001a7612710620001a085608e62000913565b6200064a73a6d35d849eb053b9f9e165cc46c74ef3cb7781ad620001a7612710620001a085608e62000913565b6200067773566e0d8dc3bcd83508b59a2d4a7bf069d709420e620001a7612710620001a085608e62000913565b620006a4737bb8427897b2237c9d1ff9ddbe443a65a2d123de620001a7612710620001a085608e62000913565b620006d1731b0853ee67ca33206b55bb30b8111e6519ca6079620001a7612710620001a085608e62000913565b620006fe7392b963e84c586993f624e489f0c0aa0820ead859620001a7612710620001a085608e62000913565b6200072b731aae81943aad50527913070abd86c3a64de2d774620001a7612710620001a085608e62000913565b5062000bd9565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316620007f05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620008535760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620007e7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166000818152600e6020908152604091829020805460ff191685151590811790915591519182527fd371c6889ff9ad7371053463dc978366919ead66819324c51f6ac3ab76353506910160405180910390a25050565b600062000921828462000b86565b90505b92915050565b600062000921828462000ba0565b6001600160a01b038216620009905760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620007e7565b8060026000828254620009a4919062000bc3565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a2b57607f821691505b60208210810362000a4c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620009fb57600081815260208120601f850160051c8101602086101562000a7b5750805b601f850160051c820191505b8181101562000a9c5782815560010162000a87565b505050505050565b81516001600160401b0381111562000ac05762000ac062000a00565b62000ad88162000ad1845462000a16565b8462000a52565b602080601f83116001811462000b10576000841562000af75750858301515b600019600386901b1c1916600185901b17855562000a9c565b600085815260208120601f198616915b8281101562000b415788860151825594840194600190910190840162000b20565b508582101562000b605787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000924576200092462000b70565b60008262000bbe57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111562000924576200092462000b70565b60805160a05160c05161296262000c5660003960006106450152600081816103a90152610b7d0152600081816102e501528181610833015281816108c4015281816109d801528181610a6901528181610c0e01528181610d6901528181610e180152818161237b01528181612434015261247001526129626000f3fe6080604052600436106102555760003560e01c806373d01ead11610139578063bff51ef8116100b6578063dc1052e21161007a578063dc1052e214610714578063dcae3e5814610734578063dd62ed3e1461074a578063e01af92c1461076a578063ea414b281461078a578063f2fde38b146107aa57600080fd5b8063bff51ef814610687578063cb963728146106a8578063cc1776d3146106c8578063ceccc3fc146106de578063d00efb2f146106fe57600080fd5b80638da5cb5b116100fd5780638da5cb5b146105e057806395d89b41146105fe578063a457c2d714610613578063a5c414a614610633578063a9059cbb1461066757600080fd5b806373d01ead14610554578063790ca413146105695780638091f3bf1461057f57806388522998146105a05780638cd09d50146105c057600080fd5b8063365a04ba116101d25780634f7041a5116101965780634f7041a51461049d578063538ba4f9146104b357806359512ab0146104c85780636ddd1713146104e857806370a0823114610509578063715018a61461053f57600080fd5b8063365a04ba14610407578063395093511461042757806342966c681461044757806349bd5a5e146104675780634e6fd6c41461048757600080fd5b806323b872dd1161021957806323b872dd1461033e57806327b07d751461035e5780632c76d7a6146103975780632dc0562d146103cb578063313ce567146103eb57600080fd5b806301339c211461026157806306fdde0314610278578063095ea7b3146102a35780631694505e146102d357806318160ddd1461031f57600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b506102766107ca565b005b34801561028457600080fd5b5061028d610f6b565b60405161029a91906124e4565b60405180910390f35b3480156102af57600080fd5b506102c36102be366004612547565b610ffd565b604051901515815260200161029a565b3480156102df57600080fd5b506103077f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161029a565b34801561032b57600080fd5b506002545b60405190815260200161029a565b34801561034a57600080fd5b506102c3610359366004612573565b611017565b34801561036a57600080fd5b506102c36103793660046125b4565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156103a357600080fd5b506103077f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d757600080fd5b50600854610307906001600160a01b031681565b3480156103f757600080fd5b506040516012815260200161029a565b34801561041357600080fd5b506102766104223660046125df565b61103b565b34801561043357600080fd5b506102c3610442366004612547565b611096565b34801561045357600080fd5b50610276610462366004612665565b6110b8565b34801561047357600080fd5b50600654610307906001600160a01b031681565b34801561049357600080fd5b5061030761dead81565b3480156104a957600080fd5b50610330600b5481565b3480156104bf57600080fd5b50610307600081565b3480156104d457600080fd5b506102766104e336600461267e565b6110c5565b3480156104f457600080fd5b506008546102c390600160b01b900460ff1681565b34801561051557600080fd5b506103306105243660046125b4565b6001600160a01b031660009081526020819052604090205490565b34801561054b57600080fd5b50610276611129565b34801561056057600080fd5b5061027661113d565b34801561057557600080fd5b50610330600a5481565b34801561058b57600080fd5b506008546102c390600160c01b900460ff1681565b3480156105ac57600080fd5b50600754610307906001600160a01b031681565b3480156105cc57600080fd5b506102766105db366004612665565b6111c9565b3480156105ec57600080fd5b506005546001600160a01b0316610307565b34801561060a57600080fd5b5061028d611279565b34801561061f57600080fd5b506102c361062e366004612547565b611288565b34801561063f57600080fd5b506103077f000000000000000000000000000000000000000000000000000000000000000081565b34801561067357600080fd5b506102c3610682366004612547565b611303565b34801561069357600080fd5b506008546102c390600160b81b900460ff1681565b3480156106b457600080fd5b506102766106c33660046125b4565b611311565b3480156106d457600080fd5b50610330600c5481565b3480156106ea57600080fd5b506102766106f9366004612665565b61153e565b34801561070a57600080fd5b5061033060095481565b34801561072057600080fd5b5061027661072f366004612665565b611584565b34801561074057600080fd5b50610330600d5481565b34801561075657600080fd5b5061033061076536600461269b565b61162b565b34801561077657600080fd5b5061027661078536600461267e565b611656565b34801561079657600080fd5b506102766107a53660046125b4565b6116b3565b3480156107b657600080fd5b506102766107c53660046125b4565b61176d565b6107d26117e3565b600854600160c01b900460ff16156108315760405162461bcd60e51b815260206004820152601860248201527f45524332303a20416c7265616479206c61756e636865642e000000000000000060448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906126d4565b6001600160a01b031663e6a43905307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610920573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094491906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b391906126d4565b600680546001600160a01b0319166001600160a01b03929092169182179055610b7b577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5891906126d4565b6001600160a01b031663c9c65396307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae991906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5a91906126d4565b600680546001600160a01b0319166001600160a01b03929092169190911790555b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfd91906126d4565b6001600160a01b031663a1671295307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e91906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015261271060448201526064016020604051808303816000875af1158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0791906126d4565b600780546001600160a01b0319166001600160a01b03928316179055600654610d359130911660001961183d565b600754610d4f9030906001600160a01b031660001961183d565b60065460405163095ea7b360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260001960248301529091169063095ea7b3906044016020604051808303816000875af1158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de791906126f1565b50600654610dff906001600160a01b03166001611961565b600754610e16906001600160a01b03166001611961565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7194730610e66306001600160a01b031660009081526020819052604090205490565b600080610e7b6005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610ee3573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f08919061270e565b50506008805462ffffff60b01b19166201010160b01b1790555043600981905542600a8190556040805192835260208301919091527fa4eda92a9703eeccb36fbed43c5cfce0e180464bf695e806d3bd0e439743fd5691015b60405180910390a1565b606060038054610f7a9061273c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa69061273c565b8015610ff35780601f10610fc857610100808354040283529160200191610ff3565b820191906000526020600020905b815481529060010190602001808311610fd657829003601f168201915b5050505050905090565b60003361100b81858561183d565b60019150505b92915050565b6000336110258582856119b5565b611030858585611a29565b506001949350505050565b6110436117e3565b60005b828110156110905761107e84848381811061106357611063612776565b905060200201602081019061107891906125b4565b83611f5a565b80611088816127a2565b915050611046565b50505050565b60003361100b8185856110a9838361162b565b6110b391906127bb565b61183d565b6110c23382611fb9565b50565b6110cd6117e3565b6008805460ff60b81b1916600160b81b8315158102919091179182905560405160ff9190920416151581527f06cf69227e5c2b5a71319bc3784f6a5355ea0ba2a69bc4c39d64413dfa5a012b906020015b60405180910390a150565b6111316117e3565b61113b60006120eb565b565b6111456117e3565b6008805462ffffff60a81b191690556000600b819055600c819055600254600d55308152602081905260409020541561119457306000818152602081905260409020546111949190339061213d565b604080514381524260208201527f4aee4a7ed8634b54edfc1176ee662b04884b0b8d9fcb732530404873ef13f3879101610f61565b6111d16117e3565b60148111156112335760405162461bcd60e51b815260206004820152602860248201527f73657453656c6c5461783a204d757374206b6565702074617820617420323025604482015267206f72206c65737360c01b6064820152608401610828565b600c80549082905560408051828152602081018490527ff52be97c6a8d51eb9eb45839dfc039c05546b7e61986eb558e5e870722992d2b91015b60405180910390a15050565b606060048054610f7a9061273c565b60003381611296828661162b565b9050838110156112f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610828565b611030828686840361183d565b60003361100b818585611a29565b6113196117e3565b60006001600160a01b03821661137d57506040514790600090339083908381818185875af1925050503d806000811461136e576040519150601f19603f3d011682016040523d82523d6000602084013e611373565b606091505b506114ff92505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e891906127ce565b116114215760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b6044820152606401610828565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906127ce565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156114d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fd91906126f1565b505b604080516001600160a01b0384168152602081018390527f07c81a5e6d155913a9ed2ce53630058179c89fc94bb5de130620b0245c9f6a0b910161126d565b6115466117e3565b600d80549082905560408051828152602081018490527fbf016d73321639afd76ae04495e7c6607986d58441a60b2bcfd43a3616fec424910161126d565b61158c6117e3565b60148111156115ed5760405162461bcd60e51b815260206004820152602760248201527f7365744275795461783a204d757374206b6565702074617820617420323025206044820152666f72206c65737360c81b6064820152608401610828565b600b80549082905560408051828152602081018490527ff64534a765cfd53f0b7915962c5b374cbedd9c7fcb353a5e03fbfd254ec7a109910161126d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61165e6117e3565b6008805460ff60b01b1916600160b01b8315158102919091179182905560405160ff9190920416151581527f8bcc108c7d867d0a70433f71ecba3056c4dcc48eaabe4ca987f9fb1f836091d59060200161111e565b6116bb6117e3565b6001600160a01b0381166117045760405162461bcd60e51b815260206004820152601060248201526f045524332303a204164647265737320360841b6044820152606401610828565b600880546001600160a01b038381166001600160a01b03198316179092551661172e826001611f5a565b6008546040516001600160a01b03918216918316907f1199ab2eb8a6343b0f30e5a4c98fead995333df14aa3589f35222e15c2e13a6e90600090a35050565b6117756117e3565b6001600160a01b0381166117da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610828565b6110c2816120eb565b6005546001600160a01b0316331461113b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610828565b6001600160a01b03831661189f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610828565b6001600160a01b0382166119005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610828565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166000818152600f6020526040808220805460ff191685151590811790915590519092917fee6ce3a11a74f9a94b8a0152fc219acc6645b25bc298e2cae8ec6a520bd83da991a35050565b60006119c1848461162b565b905060001981146110905781811015611a1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610828565b611090848484840361183d565b6001600160a01b038316611a4f5760405162461bcd60e51b8152600401610828906127e7565b6001600160a01b038216611a755760405162461bcd60e51b81526004016108289061282c565b80600003611a8e57611a898383600061213d565b505050565b600854600160a81b900460ff168015611acb57506007546001600160a01b0384811691161480611acb57506007546001600160a01b038381169116145b15611b76576001600160a01b0383166000908152600e602052604090205460ff1680611b0f57506001600160a01b0382166000908152600e602052604090205460ff165b611b765760405162461bcd60e51b815260206004820152603260248201527f45524332303a204e6f7420617574686f72697a656420746f20616464204c50206044820152711d1bc8155b9a5cddd85c08158cc8141bdbdb60721b6064820152608401610828565b6005546001600160a01b03848116911614801590611ba257506005546001600160a01b03838116911614155b8015611bb657506001600160a01b03821615155b8015611bcd57506001600160a01b03821661dead14155b8015611be35750600854600160a01b900460ff16155b15611c7b57600854600160c01b900460ff16611c7b576001600160a01b0383166000908152600e602052604090205460ff1680611c3857506001600160a01b0382166000908152600e602052604090205460ff165b611c7b5760405162461bcd60e51b815260206004820152601460248201527322a92199181d102737ba103630bab731b432b21760611b6044820152606401610828565b600854600160b01b900460ff1615611d3b5730600090815260208190526040902054600d5481108015908190611cbb5750600854600160a01b900460ff16155b8015611ce057506001600160a01b0385166000908152600f602052604090205460ff16155b8015611d0557506001600160a01b0385166000908152600e602052604090205460ff16155b8015611d2a57506001600160a01b0384166000908152600e602052604090205460ff16155b15611d3857611d3882612267565b50505b600854600160b81b900460ff1615611f4f576008546001600160a01b0384166000908152600e602052604090205460ff600160a01b909204821615911680611d9b57506001600160a01b0383166000908152600e602052604090205460ff165b15611da4575060005b6000808215611f4b576001600160a01b0385166000908152600f602052604090205460ff168015611dd757506000600c54115b15611e7257600954611deb906103e86122f9565b431115611dfb5750600c54611e56565b600954611e0990601e6122f9565b431115611e1857506014611e56565b600954611e2690600a6122f9565b431115611e3557506021611e56565b600954611e439060026122f9565b431115611e5257506028611e56565b5060325b611e6b6064611e65868461230c565b90612318565b9150611f2d565b6001600160a01b0386166000908152600f602052604090205460ff168015611e9c57506000600b54115b15611f2d57600954611eb0906103e86122f9565b431115611ec05750600b54611f1b565b600954611ece90601e6122f9565b431115611edd57506014611f1b565b600954611eeb90600a6122f9565b431115611efa57506021611f1b565b600954611f089060026122f9565b431115611f1757506028611f1b565b5060325b611f2a6064611e65868461230c565b91505b8115611f3e57611f3e86308461213d565b611f48828561286f565b93505b5050505b611a8983838361213d565b6001600160a01b0382166000818152600e6020908152604091829020805460ff191685151590811790915591519182527fd371c6889ff9ad7371053463dc978366919ead66819324c51f6ac3ab76353506910160405180910390a25050565b6001600160a01b0382166120195760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610828565b6001600160a01b0382166000908152602081905260409020548181101561208d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610828565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121635760405162461bcd60e51b8152600401610828906127e7565b6001600160a01b0382166121895760405162461bcd60e51b81526004016108289061282c565b6001600160a01b038316600090815260208190526040902054818110156122015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610828565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611090565b6008805460ff60a01b1916600160a01b179055600081810361228957506122e9565b61229282612324565b6008546040516001600160a01b03909116904790600081818185875af1925050503d80600081146122df576040519150601f19603f3d011682016040523d82523d6000602084013e6122e4565b606091505b505050505b506008805460ff60a01b19169055565b600061230582846127bb565b9392505050565b60006123058284612882565b60006123058284612899565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061235957612359612776565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fb91906126d4565b8160018151811061240e5761240e612776565b60200260200101906001600160a01b031690816001600160a01b031681525050612459307f00000000000000000000000000000000000000000000000000000000000000008461183d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906124ae9085906000908690309042906004016128bb565b600060405180830381600087803b1580156124c857600080fd5b505af11580156124dc573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015612511578581018301518582016040015282016124f5565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146110c257600080fd5b6000806040838503121561255a57600080fd5b823561256581612532565b946020939093013593505050565b60008060006060848603121561258857600080fd5b833561259381612532565b925060208401356125a381612532565b929592945050506040919091013590565b6000602082840312156125c657600080fd5b813561230581612532565b80151581146110c257600080fd5b6000806000604084860312156125f457600080fd5b833567ffffffffffffffff8082111561260c57600080fd5b818601915086601f83011261262057600080fd5b81358181111561262f57600080fd5b8760208260051b850101111561264457600080fd5b6020928301955093505084013561265a816125d1565b809150509250925092565b60006020828403121561267757600080fd5b5035919050565b60006020828403121561269057600080fd5b8135612305816125d1565b600080604083850312156126ae57600080fd5b82356126b981612532565b915060208301356126c981612532565b809150509250929050565b6000602082840312156126e657600080fd5b815161230581612532565b60006020828403121561270357600080fd5b8151612305816125d1565b60008060006060848603121561272357600080fd5b8351925060208401519150604084015190509250925092565b600181811c9082168061275057607f821691505b60208210810361277057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016127b4576127b461278c565b5060010190565b808201808211156110115761101161278c565b6000602082840312156127e057600080fd5b5051919050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b818103818111156110115761101161278c565b80820281158282048414176110115761101161278c565b6000826128b657634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561290b5784516001600160a01b0316835293830193918301916001016128e6565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122083b67d52cd25f1c9f15787c35dc7b2dda69dfefdc8bb5f0ef6a83bdb365dee6e64736f6c63430008150033

Deployed Bytecode

0x6080604052600436106102555760003560e01c806373d01ead11610139578063bff51ef8116100b6578063dc1052e21161007a578063dc1052e214610714578063dcae3e5814610734578063dd62ed3e1461074a578063e01af92c1461076a578063ea414b281461078a578063f2fde38b146107aa57600080fd5b8063bff51ef814610687578063cb963728146106a8578063cc1776d3146106c8578063ceccc3fc146106de578063d00efb2f146106fe57600080fd5b80638da5cb5b116100fd5780638da5cb5b146105e057806395d89b41146105fe578063a457c2d714610613578063a5c414a614610633578063a9059cbb1461066757600080fd5b806373d01ead14610554578063790ca413146105695780638091f3bf1461057f57806388522998146105a05780638cd09d50146105c057600080fd5b8063365a04ba116101d25780634f7041a5116101965780634f7041a51461049d578063538ba4f9146104b357806359512ab0146104c85780636ddd1713146104e857806370a0823114610509578063715018a61461053f57600080fd5b8063365a04ba14610407578063395093511461042757806342966c681461044757806349bd5a5e146104675780634e6fd6c41461048757600080fd5b806323b872dd1161021957806323b872dd1461033e57806327b07d751461035e5780632c76d7a6146103975780632dc0562d146103cb578063313ce567146103eb57600080fd5b806301339c211461026157806306fdde0314610278578063095ea7b3146102a35780631694505e146102d357806318160ddd1461031f57600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b506102766107ca565b005b34801561028457600080fd5b5061028d610f6b565b60405161029a91906124e4565b60405180910390f35b3480156102af57600080fd5b506102c36102be366004612547565b610ffd565b604051901515815260200161029a565b3480156102df57600080fd5b506103077f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161029a565b34801561032b57600080fd5b506002545b60405190815260200161029a565b34801561034a57600080fd5b506102c3610359366004612573565b611017565b34801561036a57600080fd5b506102c36103793660046125b4565b6001600160a01b03166000908152600e602052604090205460ff1690565b3480156103a357600080fd5b506103077f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481565b3480156103d757600080fd5b50600854610307906001600160a01b031681565b3480156103f757600080fd5b506040516012815260200161029a565b34801561041357600080fd5b506102766104223660046125df565b61103b565b34801561043357600080fd5b506102c3610442366004612547565b611096565b34801561045357600080fd5b50610276610462366004612665565b6110b8565b34801561047357600080fd5b50600654610307906001600160a01b031681565b34801561049357600080fd5b5061030761dead81565b3480156104a957600080fd5b50610330600b5481565b3480156104bf57600080fd5b50610307600081565b3480156104d457600080fd5b506102766104e336600461267e565b6110c5565b3480156104f457600080fd5b506008546102c390600160b01b900460ff1681565b34801561051557600080fd5b506103306105243660046125b4565b6001600160a01b031660009081526020819052604090205490565b34801561054b57600080fd5b50610276611129565b34801561056057600080fd5b5061027661113d565b34801561057557600080fd5b50610330600a5481565b34801561058b57600080fd5b506008546102c390600160c01b900460ff1681565b3480156105ac57600080fd5b50600754610307906001600160a01b031681565b3480156105cc57600080fd5b506102766105db366004612665565b6111c9565b3480156105ec57600080fd5b506005546001600160a01b0316610307565b34801561060a57600080fd5b5061028d611279565b34801561061f57600080fd5b506102c361062e366004612547565b611288565b34801561063f57600080fd5b506103077f0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad81565b34801561067357600080fd5b506102c3610682366004612547565b611303565b34801561069357600080fd5b506008546102c390600160b81b900460ff1681565b3480156106b457600080fd5b506102766106c33660046125b4565b611311565b3480156106d457600080fd5b50610330600c5481565b3480156106ea57600080fd5b506102766106f9366004612665565b61153e565b34801561070a57600080fd5b5061033060095481565b34801561072057600080fd5b5061027661072f366004612665565b611584565b34801561074057600080fd5b50610330600d5481565b34801561075657600080fd5b5061033061076536600461269b565b61162b565b34801561077657600080fd5b5061027661078536600461267e565b611656565b34801561079657600080fd5b506102766107a53660046125b4565b6116b3565b3480156107b657600080fd5b506102766107c53660046125b4565b61176d565b6107d26117e3565b600854600160c01b900460ff16156108315760405162461bcd60e51b815260206004820152601860248201527f45524332303a20416c7265616479206c61756e636865642e000000000000000060448201526064015b60405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906126d4565b6001600160a01b031663e6a43905307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610920573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094491906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa15801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b391906126d4565b600680546001600160a01b0319166001600160a01b03929092169182179055610b7b577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5891906126d4565b6001600160a01b031663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae991906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5a91906126d4565b600680546001600160a01b0319166001600160a01b03929092169190911790555b7f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615646001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfd91906126d4565b6001600160a01b031663a1671295307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e91906126d4565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015261271060448201526064016020604051808303816000875af1158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0791906126d4565b600780546001600160a01b0319166001600160a01b03928316179055600654610d359130911660001961183d565b600754610d4f9030906001600160a01b031660001961183d565b60065460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116600483015260001960248301529091169063095ea7b3906044016020604051808303816000875af1158015610dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de791906126f1565b50600654610dff906001600160a01b03166001611961565b600754610e16906001600160a01b03166001611961565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7194730610e66306001600160a01b031660009081526020819052604090205490565b600080610e7b6005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610ee3573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f08919061270e565b50506008805462ffffff60b01b19166201010160b01b1790555043600981905542600a8190556040805192835260208301919091527fa4eda92a9703eeccb36fbed43c5cfce0e180464bf695e806d3bd0e439743fd5691015b60405180910390a1565b606060038054610f7a9061273c565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa69061273c565b8015610ff35780601f10610fc857610100808354040283529160200191610ff3565b820191906000526020600020905b815481529060010190602001808311610fd657829003601f168201915b5050505050905090565b60003361100b81858561183d565b60019150505b92915050565b6000336110258582856119b5565b611030858585611a29565b506001949350505050565b6110436117e3565b60005b828110156110905761107e84848381811061106357611063612776565b905060200201602081019061107891906125b4565b83611f5a565b80611088816127a2565b915050611046565b50505050565b60003361100b8185856110a9838361162b565b6110b391906127bb565b61183d565b6110c23382611fb9565b50565b6110cd6117e3565b6008805460ff60b81b1916600160b81b8315158102919091179182905560405160ff9190920416151581527f06cf69227e5c2b5a71319bc3784f6a5355ea0ba2a69bc4c39d64413dfa5a012b906020015b60405180910390a150565b6111316117e3565b61113b60006120eb565b565b6111456117e3565b6008805462ffffff60a81b191690556000600b819055600c819055600254600d55308152602081905260409020541561119457306000818152602081905260409020546111949190339061213d565b604080514381524260208201527f4aee4a7ed8634b54edfc1176ee662b04884b0b8d9fcb732530404873ef13f3879101610f61565b6111d16117e3565b60148111156112335760405162461bcd60e51b815260206004820152602860248201527f73657453656c6c5461783a204d757374206b6565702074617820617420323025604482015267206f72206c65737360c01b6064820152608401610828565b600c80549082905560408051828152602081018490527ff52be97c6a8d51eb9eb45839dfc039c05546b7e61986eb558e5e870722992d2b91015b60405180910390a15050565b606060048054610f7a9061273c565b60003381611296828661162b565b9050838110156112f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610828565b611030828686840361183d565b60003361100b818585611a29565b6113196117e3565b60006001600160a01b03821661137d57506040514790600090339083908381818185875af1925050503d806000811461136e576040519150601f19603f3d011682016040523d82523d6000602084013e611373565b606091505b506114ff92505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e891906127ce565b116114215760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b6044820152606401610828565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906127ce565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156114d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fd91906126f1565b505b604080516001600160a01b0384168152602081018390527f07c81a5e6d155913a9ed2ce53630058179c89fc94bb5de130620b0245c9f6a0b910161126d565b6115466117e3565b600d80549082905560408051828152602081018490527fbf016d73321639afd76ae04495e7c6607986d58441a60b2bcfd43a3616fec424910161126d565b61158c6117e3565b60148111156115ed5760405162461bcd60e51b815260206004820152602760248201527f7365744275795461783a204d757374206b6565702074617820617420323025206044820152666f72206c65737360c81b6064820152608401610828565b600b80549082905560408051828152602081018490527ff64534a765cfd53f0b7915962c5b374cbedd9c7fcb353a5e03fbfd254ec7a109910161126d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61165e6117e3565b6008805460ff60b01b1916600160b01b8315158102919091179182905560405160ff9190920416151581527f8bcc108c7d867d0a70433f71ecba3056c4dcc48eaabe4ca987f9fb1f836091d59060200161111e565b6116bb6117e3565b6001600160a01b0381166117045760405162461bcd60e51b815260206004820152601060248201526f045524332303a204164647265737320360841b6044820152606401610828565b600880546001600160a01b038381166001600160a01b03198316179092551661172e826001611f5a565b6008546040516001600160a01b03918216918316907f1199ab2eb8a6343b0f30e5a4c98fead995333df14aa3589f35222e15c2e13a6e90600090a35050565b6117756117e3565b6001600160a01b0381166117da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610828565b6110c2816120eb565b6005546001600160a01b0316331461113b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610828565b6001600160a01b03831661189f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610828565b6001600160a01b0382166119005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610828565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166000818152600f6020526040808220805460ff191685151590811790915590519092917fee6ce3a11a74f9a94b8a0152fc219acc6645b25bc298e2cae8ec6a520bd83da991a35050565b60006119c1848461162b565b905060001981146110905781811015611a1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610828565b611090848484840361183d565b6001600160a01b038316611a4f5760405162461bcd60e51b8152600401610828906127e7565b6001600160a01b038216611a755760405162461bcd60e51b81526004016108289061282c565b80600003611a8e57611a898383600061213d565b505050565b600854600160a81b900460ff168015611acb57506007546001600160a01b0384811691161480611acb57506007546001600160a01b038381169116145b15611b76576001600160a01b0383166000908152600e602052604090205460ff1680611b0f57506001600160a01b0382166000908152600e602052604090205460ff165b611b765760405162461bcd60e51b815260206004820152603260248201527f45524332303a204e6f7420617574686f72697a656420746f20616464204c50206044820152711d1bc8155b9a5cddd85c08158cc8141bdbdb60721b6064820152608401610828565b6005546001600160a01b03848116911614801590611ba257506005546001600160a01b03838116911614155b8015611bb657506001600160a01b03821615155b8015611bcd57506001600160a01b03821661dead14155b8015611be35750600854600160a01b900460ff16155b15611c7b57600854600160c01b900460ff16611c7b576001600160a01b0383166000908152600e602052604090205460ff1680611c3857506001600160a01b0382166000908152600e602052604090205460ff165b611c7b5760405162461bcd60e51b815260206004820152601460248201527322a92199181d102737ba103630bab731b432b21760611b6044820152606401610828565b600854600160b01b900460ff1615611d3b5730600090815260208190526040902054600d5481108015908190611cbb5750600854600160a01b900460ff16155b8015611ce057506001600160a01b0385166000908152600f602052604090205460ff16155b8015611d0557506001600160a01b0385166000908152600e602052604090205460ff16155b8015611d2a57506001600160a01b0384166000908152600e602052604090205460ff16155b15611d3857611d3882612267565b50505b600854600160b81b900460ff1615611f4f576008546001600160a01b0384166000908152600e602052604090205460ff600160a01b909204821615911680611d9b57506001600160a01b0383166000908152600e602052604090205460ff165b15611da4575060005b6000808215611f4b576001600160a01b0385166000908152600f602052604090205460ff168015611dd757506000600c54115b15611e7257600954611deb906103e86122f9565b431115611dfb5750600c54611e56565b600954611e0990601e6122f9565b431115611e1857506014611e56565b600954611e2690600a6122f9565b431115611e3557506021611e56565b600954611e439060026122f9565b431115611e5257506028611e56565b5060325b611e6b6064611e65868461230c565b90612318565b9150611f2d565b6001600160a01b0386166000908152600f602052604090205460ff168015611e9c57506000600b54115b15611f2d57600954611eb0906103e86122f9565b431115611ec05750600b54611f1b565b600954611ece90601e6122f9565b431115611edd57506014611f1b565b600954611eeb90600a6122f9565b431115611efa57506021611f1b565b600954611f089060026122f9565b431115611f1757506028611f1b565b5060325b611f2a6064611e65868461230c565b91505b8115611f3e57611f3e86308461213d565b611f48828561286f565b93505b5050505b611a8983838361213d565b6001600160a01b0382166000818152600e6020908152604091829020805460ff191685151590811790915591519182527fd371c6889ff9ad7371053463dc978366919ead66819324c51f6ac3ab76353506910160405180910390a25050565b6001600160a01b0382166120195760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610828565b6001600160a01b0382166000908152602081905260409020548181101561208d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610828565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121635760405162461bcd60e51b8152600401610828906127e7565b6001600160a01b0382166121895760405162461bcd60e51b81526004016108289061282c565b6001600160a01b038316600090815260208190526040902054818110156122015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610828565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611090565b6008805460ff60a01b1916600160a01b179055600081810361228957506122e9565b61229282612324565b6008546040516001600160a01b03909116904790600081818185875af1925050503d80600081146122df576040519150601f19603f3d011682016040523d82523d6000602084013e6122e4565b606091505b505050505b506008805460ff60a01b19169055565b600061230582846127bb565b9392505050565b60006123058284612882565b60006123058284612899565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061235957612359612776565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fb91906126d4565b8160018151811061240e5761240e612776565b60200260200101906001600160a01b031690816001600160a01b031681525050612459307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461183d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906124ae9085906000908690309042906004016128bb565b600060405180830381600087803b1580156124c857600080fd5b505af11580156124dc573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015612511578581018301518582016040015282016124f5565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146110c257600080fd5b6000806040838503121561255a57600080fd5b823561256581612532565b946020939093013593505050565b60008060006060848603121561258857600080fd5b833561259381612532565b925060208401356125a381612532565b929592945050506040919091013590565b6000602082840312156125c657600080fd5b813561230581612532565b80151581146110c257600080fd5b6000806000604084860312156125f457600080fd5b833567ffffffffffffffff8082111561260c57600080fd5b818601915086601f83011261262057600080fd5b81358181111561262f57600080fd5b8760208260051b850101111561264457600080fd5b6020928301955093505084013561265a816125d1565b809150509250925092565b60006020828403121561267757600080fd5b5035919050565b60006020828403121561269057600080fd5b8135612305816125d1565b600080604083850312156126ae57600080fd5b82356126b981612532565b915060208301356126c981612532565b809150509250929050565b6000602082840312156126e657600080fd5b815161230581612532565b60006020828403121561270357600080fd5b8151612305816125d1565b60008060006060848603121561272357600080fd5b8351925060208401519150604084015190509250925092565b600181811c9082168061275057607f821691505b60208210810361277057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016127b4576127b461278c565b5060010190565b808201808211156110115761101161278c565b6000602082840312156127e057600080fd5b5051919050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b818103818111156110115761101161278c565b80820281158282048414176110115761101161278c565b6000826128b657634e487b7160e01b600052601260045260246000fd5b500490565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561290b5784516001600160a01b0316835293830193918301916001016128e6565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122083b67d52cd25f1c9f15787c35dc7b2dda69dfefdc8bb5f0ef6a83bdb365dee6e64736f6c63430008150033

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

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