ETH Price: $2,662.96 (+2.30%)
Gas: 2.68 Gwei

Token

WENDEEZ (WENDEEZ)
 

Overview

Max Total Supply

100,000,000 WENDEEZ

Holders

123

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.556061847603698753 WENDEEZ

Value
$0.00
0x9d57a96a0497ce36df399f4691cac65bcf7f455a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
WENDEEZ

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : WENDEEZ.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

// All libraries are deliberately OpenZeppelin to maximize support for scanners
import "openzeppelin/token/ERC20/ERC20.sol";
import "openzeppelin/token/ERC20/IERC20.sol";
import "openzeppelin/token/ERC721/IERC721.sol";
import "openzeppelin/access/Ownable.sol";
import "openzeppelin/utils/math/Math.sol";
import "v2-core/interfaces/IUniswapV2Factory.sol";
import "v2-periphery/interfaces/IUniswapV2Router02.sol";

// This interface aligns with the airdrop contract at wentokens.xyz as of July 2023
interface IWentokens {
    function airdropERC20(
        IERC20 _token,
        address[] calldata _recipients,
        uint256[] calldata _amounts,
        uint256 _total
    ) external;
}

interface ITeamFinanceLocker {
    function getFeesInETH(
        address _tokenAddress
    ) external view returns (uint256);

    function lockToken(
        address _tokenAddress,
        address _withdrawalAddress,
        uint256 _amount,
        uint256 _unlockTime,
        bool _mintNFT,
        address _referrer
    ) external payable returns (uint256 _id);
}

contract WENDEEZ is ERC20, Ownable {
    error PresaleInactive();
    error PresaleActive();
    error PresaleMaxExceeded();
    error PresaleHardCap();
    error PresaleFailed();
    error PresaleInvalidUnlockTime();
    error InsufficientPayment();
    error TransfersLocked();
    error CapExceeded();
    error TransferFailed();
    error TaxOverflow();
    error AllocationOverflow();
    error PresaleOverflow();
    error ProtectedAddress(address _address);

    event PresaleOpened();
    event PresaleClosed();
    event TransfersActivated();
    event PresaleAidropped();
    event LiquidityCreated();
    event LiquidityLocked();
    event BuyTaxChanged(uint16 indexed _buyTax);
    event SellTaxChanged(uint16 indexed _sellTax);
    event PresaleHardCapSet(uint256 indexed _hardCap);
    event PresaleMaxBuySet(uint256 indexed _maxBuy);
    event PresalePayment(address indexed _sender, uint256 indexed _amount);
    event MaxWalletBalance(uint256 indexed _maxWalletBal);
    event CapExcluded(address indexed _excluded, bool indexed _status);
    event TaxExcluded(address indexed _excluded, bool indexed _status);
    event LimitsToggled(bool indexed _status);
    event TaxesToggled(bool indexed _status);
    event UniswapV2Pair(address indexed _uniswapV2Pair);

    // wentokens.xyz contract is being used for presale distribution for gas efficiency, gas bad!
    address private constant _WENTOKENSAIRDROP =
        0x2c952eE289BbDB3aEbA329a4c41AE4C836bcc231;
    // team.finance contract being used to lock LP tokens
    address private constant _TEAMFINANCELOCKER =
        0xE2fE530C047f2d85298b07D9333C05737f1435fB;
    // UniswapV2Factory on Ethereum Mainnet
    address private constant _UNISWAPV2FACTORY =
        0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
    // UniswapV2Router02 on Ethereum Mainnet
    address private constant _UNISWAPV2ROUTER =
        0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
    // WETH on Ethereum Mainnet
    address private constant _WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    struct PresalePayments {
        address payer;
        uint256 payment;
    }
    PresalePayments[] public presaleData;
    mapping(address => uint256) public presaleIndex; // +1 adjusted

    mapping(address => bool) public capExclusions;
    mapping(address => bool) public taxExclusions;
    uint256 public maxWalletBal;
    uint256 public liquidityAllocation;
    uint256 public presaleAllocation;
    uint256 public presaleMaxBuy;
    uint256 public presaleHardCap;
    uint256 public liquidityUnlockTime;
    uint256 public teamFinanceLockID;
    address public uniswapV2Pair;
    uint16 public buyTax;
    uint16 public sellTax;
    bool public transfersActivated;
    bool public presaleActive;
    bool public limitsEnabled;
    bool public taxesEnabled;

    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _totalAllocation,
        uint256 _maxWalletBal,
        uint256 _liquidityAllocation,
        uint256 _presaleAllocation,
        uint256 _presaleMaxBuy,
        uint256 _presaleHardCap,
        uint16 _buyTax,
        uint16 _sellTax
    ) ERC20(_name, _symbol) {
        // Prevent taxes from being set to over 100%
        if (_buyTax > 10000 || _sellTax > 10000) {
            revert TaxOverflow();
        }
        // Ensure allocations are set properly
        if (_presaleAllocation + _liquidityAllocation > _totalAllocation) {
            revert AllocationOverflow();
        }
        // Ensure presale hardcap max buy isnt set above hardcap
        if (_presaleMaxBuy > _presaleHardCap) {
            revert PresaleOverflow();
        }

        // NOTE: Make sure taxes are set with two decimals! 4.20% == 420
        buyTax = _buyTax;
        sellTax = _sellTax;
        // Initialize contract state values
        maxWalletBal = _maxWalletBal;
        liquidityAllocation = _liquidityAllocation;
        presaleAllocation = _presaleAllocation;
        presaleMaxBuy = _presaleMaxBuy;
        presaleHardCap = _presaleHardCap;

        // Mint presale and liquidity allocations to the ERC20 contract
        _mint(address(this), (_presaleAllocation + _liquidityAllocation));
        // Mint the remainder of the supply to the deployer
        _mint(msg.sender, (_totalAllocation - totalSupply()));

        // Create UniswapV2Pair
        address pair = IUniswapV2Factory(_UNISWAPV2FACTORY).createPair(
            address(this),
            _WETH
        );
        uniswapV2Pair = pair;
        emit UniswapV2Pair(pair);

        // Exclude relevant addresses from max wallet cap
        capExclusions[_WENTOKENSAIRDROP] = true;
        emit CapExcluded(_WENTOKENSAIRDROP, true);
        capExclusions[_UNISWAPV2ROUTER] = true;
        emit CapExcluded(_UNISWAPV2ROUTER, true);
        capExclusions[pair] = true;
        emit CapExcluded(pair, true);
        capExclusions[owner()] = true;
        emit CapExcluded(owner(), true);
        capExclusions[address(this)] = true;
        emit CapExcluded(address(this), true);
        capExclusions[address(0)] = true;
        emit CapExcluded(address(0), true);

        // Exclude relevant addresses from transaction taxes
        taxExclusions[address(this)] = true;
        emit TaxExcluded(address(this), true);
        taxExclusions[owner()] = true;
        emit TaxExcluded(owner(), true);
        taxExclusions[_UNISWAPV2ROUTER] = true;
        emit TaxExcluded(_UNISWAPV2ROUTER, true);

        // Configure transaction controls
        if (_maxWalletBal > 0 && _maxWalletBal != type(uint256).max) {
            toggleLimits();
        }
        if (_buyTax > 0 || _sellTax > 0) {
            toggleTaxes();
        }

        // Approve wentokens contract to spend presale allocation
        _approve(address(this), _WENTOKENSAIRDROP, _presaleAllocation);
        // Approve UniswapV2Pair to spend liquidity allocation
        _approve(address(this), _UNISWAPV2ROUTER, liquidityAllocation);
        // Approve team.finance locker to spend all LP tokens
        IERC20(pair).approve(_TEAMFINANCELOCKER, type(uint256).max);
    }

    // Check current team.finance locker fee
    // NOTE: They accept payment with 5% slippage, so feel free to copy and paste returned value
    function getLockerFee() public view returns (uint256) {
        return (
            ITeamFinanceLocker(_TEAMFINANCELOCKER).getFeesInETH(address(this))
        );
    }

    // This function processes payments for the presale
    function presalePayment() public payable {
        // Gas optimizations
        uint256 maxBuy = presaleMaxBuy;
        // Block presale payments if presale isn't active
        if (!presaleActive) {
            revert PresaleInactive();
        }
        // Prevent presale hard cap from being exceeded
        // NOTE: It is safe to check contract balance as withdrawals cannot happen until presale is over
        // NOTE: address(this).balance includes msg.value
        if (address(this).balance > presaleHardCap) {
            revert PresaleHardCap();
        }
        // Prevent all payments over presale max
        if (msg.value > maxBuy) {
            revert PresaleMaxExceeded();
        }
        // Retrieve num of presales and presale index for processing
        uint256 presaleNum = presaleData.length;
        uint256 index = presaleIndex[msg.sender];
        // If new presaler, process new payment
        if (index == 0) {
            PresalePayments memory payment;
            payment.payer = msg.sender;
            payment.payment = msg.value;
            presaleData.push(payment);
            presaleIndex[msg.sender] = ++presaleNum; // +1 adjusted to ensure zero == null
        }
        // If recurring presaler, confirm payment won't exceed cap before incrementing
        else {
            PresalePayments memory payment = presaleData[index - 1];
            if (payment.payment + msg.value > maxBuy) {
                revert PresaleMaxExceeded();
            }
            presaleData[index - 1].payment += msg.value;
        }
        emit PresalePayment(msg.sender, msg.value);
    }

    // Distributes presale payments using wentokens.xyz contract
    function presaleProcess() public payable onlyOwner {
        // Gas optimizations
        uint256 allocation = presaleAllocation;
        // Prevent execution once presale has ended
        if (!presaleActive) {
            revert PresaleInactive();
        }
        // Require msg.value is sufficient to pay team.finance locker fee
        if (
            msg.value <
            Math.mulDiv(
                ITeamFinanceLocker(_TEAMFINANCELOCKER).getFeesInETH(
                    address(this)
                ),
                9500,
                10000
            )
        ) {
            revert InsufficientPayment();
        }

        // Retrieve contract balance without msg.value as msg.value is used to pay for LP lock
        uint256 value = address(this).balance - msg.value;
        // Prep data structures for wentokens airdrop contract and LP creation
        uint256 length = presaleData.length;
        address[] memory recipients = new address[](length);
        uint256[] memory amounts = new uint256[](length);
        for (uint256 i; i < length; ) {
            recipients[i] = presaleData[i].payer;
            amounts[i] = Math.mulDiv(
                presaleData[i].payment,
                allocation,
                value
            );
            unchecked {
                ++i;
            }
        }

        // Send presale distribution via wentokens, gas bad!
        IWentokens(_WENTOKENSAIRDROP).airdropERC20(
            IERC20(address(this)),
            recipients,
            amounts,
            allocation
        );
        emit PresaleAidropped();

        // Add presale liquidity to UniswapV2Pair
        (, , uint256 liquidity) = IUniswapV2Router02(_UNISWAPV2ROUTER)
            .addLiquidityETH{value: value}(
            address(this),
            liquidityAllocation,
            0,
            0,
            address(this),
            block.timestamp + 5 minutes
        );
        emit LiquidityCreated();

        // Lock LP tokens via team.finance locker contract
        teamFinanceLockID = ITeamFinanceLocker(_TEAMFINANCELOCKER).lockToken{
            value: msg.value
        }(
            uniswapV2Pair,
            owner(),
            liquidity,
            liquidityUnlockTime,
            true,
            address(0)
        );
        emit LiquidityLocked();

        // Close presale
        presaleActive = false;
        emit PresaleClosed();
    }

    // Allow token burns
    function burn(uint256 _amount) external {
        _burn(msg.sender, _amount);
    }

    // Opens the presale
    function presaleOpen(uint256 _liquidityUnlockTime) public onlyOwner {
        // Prevent changing liquidity unlock time once presale is opened
        if (presaleActive) {
            revert PresaleActive();
        }
        // Ensure timelock is at least longer than 7 days
        if (_liquidityUnlockTime < block.timestamp + 7 days) {
            revert PresaleInvalidUnlockTime();
        }
        liquidityUnlockTime = _liquidityUnlockTime;
        presaleActive = true;
        emit PresaleOpened();
    }

    // Activate transfers (to be used after LP creation + airdrops when ready)
    function activateTransfers() public onlyOwner {
        // Prevent transfer activation until presale is fulfilled
        if (presaleActive) {
            revert PresaleActive();
        }
        transfersActivated = true;
        emit TransfersActivated();
    }

    // Change max wallet balance cap
    function changeMaxWalletBal(uint256 _maxWalletBal) public onlyOwner {
        maxWalletBal = _maxWalletBal;
        emit MaxWalletBalance(_maxWalletBal);
    }

    // Change presale max buy ONLY while presale isn't active
    function changePresaleMaxBuy(uint256 _presaleMaxBuy) public onlyOwner {
        if (presaleActive) {
            revert PresaleActive();
        }
        presaleMaxBuy = _presaleMaxBuy;
        emit PresaleMaxBuySet(_presaleMaxBuy);
    }

    // Change presale hard cap ONLY while presale isn't active
    function changePresaleHardCap(uint256 _presaleHardCap) public onlyOwner {
        if (presaleActive) {
            revert PresaleActive();
        }
        presaleHardCap = _presaleHardCap;
        emit PresaleHardCapSet(_presaleHardCap);
    }

    // Change buy tax
    function changeBuyTax(uint16 _buyTax) public onlyOwner {
        if (_buyTax > 10000) {
            revert TaxOverflow();
        }
        buyTax = _buyTax;
        emit BuyTaxChanged(_buyTax);
    }

    // Change sell tax
    function changeSellTax(uint16 _sellTax) public onlyOwner {
        if (_sellTax > 10000) {
            revert TaxOverflow();
        }
        sellTax = _sellTax;
        emit SellTaxChanged(_sellTax);
    }

    // Excludes wallet from max wallet balance cap
    function setCapExclusions(
        address[] memory _excluded,
        bool _status
    ) public onlyOwner {
        for (uint256 i; i < _excluded.length; ) {
            // Prevent altering exclusions for important addresses
            if (
                _excluded[i] == owner() ||
                _excluded[i] == address(this) ||
                _excluded[i] == address(0) ||
                _excluded[i] == uniswapV2Pair ||
                _excluded[i] == _UNISWAPV2ROUTER ||
                _excluded[i] == _WENTOKENSAIRDROP
            ) {
                revert ProtectedAddress(_excluded[i]);
            }
            capExclusions[_excluded[i]] = _status;
            emit CapExcluded(_excluded[i], _status);
            unchecked {
                ++i;
            }
        }
    }

    function setTaxExclusions(
        address[] memory _excluded,
        bool _status
    ) public onlyOwner {
        for (uint256 i; i < _excluded.length; ) {
            // Prevent altering exclusions for important addresses
            if (
                _excluded[i] == address(0) ||
                _excluded[i] == address(this) ||
                _excluded[i] == uniswapV2Pair ||
                _excluded[i] == _UNISWAPV2ROUTER
            ) {
                revert ProtectedAddress(_excluded[i]);
            }
            taxExclusions[_excluded[i]] = _status;
            emit TaxExcluded(_excluded[i], _status);
            unchecked {
                ++i;
            }
        }
    }

    // Toggle all transaction limits
    function toggleLimits() public onlyOwner {
        bool status = limitsEnabled;
        limitsEnabled = !status;
        emit LimitsToggled(!status);
    }

    // Toggle transaction taxes
    function toggleTaxes() public onlyOwner {
        bool status = taxesEnabled;
        taxesEnabled = !status;
        emit TaxesToggled(!status);
    }

    // _transfer() override to apply taxes on transactions involving UniswapV2Pair
    function _transfer(
        address _from,
        address _to,
        uint256 _amount
    ) internal override {
        uint256 tax = 0;

        // If taxes are enabled and the transaction is not excluded from tax, apply the appropriate tax
        if (
            taxesEnabled &&
            (_from == uniswapV2Pair || _to == uniswapV2Pair) &&
            !taxExclusions[_from] &&
            !taxExclusions[_to]
        ) {
            uint256 taxRate = _from == uniswapV2Pair ? buyTax : sellTax;
            tax = Math.mulDiv(_amount, taxRate, 10000);

            super._transfer(_from, address(this), tax);
            unchecked { _amount -= tax; }
        }

        super._transfer(_from, _to, _amount);
    }

    // Overriding pre-transfer hook to augment transfer logic
    function _beforeTokenTransfer(
        address _from,
        address _to,
        uint256 _amount
    ) internal view override {
        // Check if limits are enabled at all, skip all code if not
        if (limitsEnabled) {
            // Prevent transfers if not activated for everyone but owner
            if (
                !transfersActivated &&
                (_from != owner() && _to != owner()) &&
                (_from != address(this)) &&
                (_from != _WENTOKENSAIRDROP)
            ) {
                revert TransfersLocked();
            }
            // Prevent exceeding max wallet balance cap
            if (maxWalletBal != 0) {
                if (!capExclusions[_to]) {
                    if (_amount + balanceOf(_to) > maxWalletBal) {
                        revert CapExceeded();
                    }
                }
            }
        }
    }


    // Process all payments to contract as presale purchases as long as it is open
    receive() external payable {
        if (presaleActive) {
            presalePayment();
        }
    }

    fallback() external payable {
        if (presaleActive) {
            presalePayment();
        }
    }

    // Allow anyone to withdraw any contract-held funds after presale completion to hardcoded address
    // NOTE: Once presale is completed, presale funds and liq allocation have already been added to LP and locked
    function withdrawETH() public {
        // Block withdraw only while presale is active
        if (presaleActive) {
            revert PresaleActive();
        }
        (bool success, ) = payable(0x39bdd3bdEAf068Ed56912193eE75f7Bc9ddBaE9d)
            .call{value: address(this).balance}("");
        if (!success) {
            revert TransferFailed();
        }
    }

    function withdrawTokens() public {
        if (presaleActive) {
            revert PresaleActive();
        }
        transfer(
            0x39bdd3bdEAf068Ed56912193eE75f7Bc9ddBaE9d,
            balanceOf(address(this))
        );
    }
}

File 2 of 12 : 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 3 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 10 of 12 : 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 11 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 12 : 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);
}

Settings
{
  "remappings": [
    "ds-test/=lib/solmate/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "solmate/=lib/solmate/src/",
    "v2-core/=lib/v2-core/contracts/",
    "v2-periphery/=lib/v2-periphery/contracts/",
    "lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/",
    "lib/openzeppelin-contracts:ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/openzeppelin-contracts:erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/openzeppelin-contracts:forge-std/=lib/openzeppelin-contracts/lib/forge-std/src/",
    "lib/openzeppelin-contracts:openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "lib/solmate:ds-test/=lib/solmate/lib/ds-test/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalAllocation","type":"uint256"},{"internalType":"uint256","name":"_maxWalletBal","type":"uint256"},{"internalType":"uint256","name":"_liquidityAllocation","type":"uint256"},{"internalType":"uint256","name":"_presaleAllocation","type":"uint256"},{"internalType":"uint256","name":"_presaleMaxBuy","type":"uint256"},{"internalType":"uint256","name":"_presaleHardCap","type":"uint256"},{"internalType":"uint16","name":"_buyTax","type":"uint16"},{"internalType":"uint16","name":"_sellTax","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllocationOverflow","type":"error"},{"inputs":[],"name":"CapExceeded","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"PresaleActive","type":"error"},{"inputs":[],"name":"PresaleFailed","type":"error"},{"inputs":[],"name":"PresaleHardCap","type":"error"},{"inputs":[],"name":"PresaleInactive","type":"error"},{"inputs":[],"name":"PresaleInvalidUnlockTime","type":"error"},{"inputs":[],"name":"PresaleMaxExceeded","type":"error"},{"inputs":[],"name":"PresaleOverflow","type":"error"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"ProtectedAddress","type":"error"},{"inputs":[],"name":"TaxOverflow","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"TransfersLocked","type":"error"},{"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":"uint16","name":"_buyTax","type":"uint16"}],"name":"BuyTaxChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_excluded","type":"address"},{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"CapExcluded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"LimitsToggled","type":"event"},{"anonymous":false,"inputs":[],"name":"LiquidityCreated","type":"event"},{"anonymous":false,"inputs":[],"name":"LiquidityLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_maxWalletBal","type":"uint256"}],"name":"MaxWalletBalance","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":[],"name":"PresaleAidropped","type":"event"},{"anonymous":false,"inputs":[],"name":"PresaleClosed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_hardCap","type":"uint256"}],"name":"PresaleHardCapSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_maxBuy","type":"uint256"}],"name":"PresaleMaxBuySet","type":"event"},{"anonymous":false,"inputs":[],"name":"PresaleOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PresalePayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_sellTax","type":"uint16"}],"name":"SellTaxChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_excluded","type":"address"},{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"TaxExcluded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"TaxesToggled","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":[],"name":"TransfersActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_uniswapV2Pair","type":"address"}],"name":"UniswapV2Pair","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"activateTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"capExclusions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyTax","type":"uint16"}],"name":"changeBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletBal","type":"uint256"}],"name":"changeMaxWalletBal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleHardCap","type":"uint256"}],"name":"changePresaleHardCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleMaxBuy","type":"uint256"}],"name":"changePresaleMaxBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_sellTax","type":"uint16"}],"name":"changeSellTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLockerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"limitsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletBal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"presaleData","outputs":[{"internalType":"address","name":"payer","type":"address"},{"internalType":"uint256","name":"payment","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleHardCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityUnlockTime","type":"uint256"}],"name":"presaleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presalePayment","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleProcess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_excluded","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setCapExclusions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_excluded","type":"address[]"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setTaxExclusions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"taxExclusions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamFinanceLockID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleTaxes","outputs":[],"stateMutability":"nonpayable","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":"transfersActivated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b50604051620037db380380620037db833981016040819052620000349162000c19565b8989600362000044838262000d72565b50600462000053828262000d72565b505050620000706200006a620006ab60201b60201c565b620006af565b6127108261ffff1611806200008a57506127108161ffff16115b15620000a9576040516348a34b4760e01b815260040160405180910390fd5b87620000b6878762000e54565b1115620000d6576040516305fcdf1560e31b815260040160405180910390fd5b82841115620000f85760405163aaf30ff160e01b815260040160405180910390fd5b6011805461ffff838116600160b01b0261ffff60b01b19918616600160a01b029190911663ffffffff60a01b1990921691909117179055600a879055600b869055600c859055600d849055600e8390556200015f3062000159888862000e54565b62000701565b6200017a336200016e60025490565b62000159908b62000e70565b6040516364e329cb60e11b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26024820152600090735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063c9c65396906044016020604051808303816000875af1158015620001e9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020f919062000e86565b601180546001600160a01b0319166001600160a01b038316908117909155604051919250907f19c258778855456676f1f3f9b573065d95d06077c03c8642d097548a1c6314cb90600090a2732c952ee289bbdb3aeba329a4c41ae4c836bcc231600081815260086020527fedc479d62025e3ede42ad3d73794bb6c27ab651971eb8bc6b5aac8e8697ee27a805460ff191660019081179091556040519092916000805160206200379b83398151915291a3737a250d5630b4cf539739df2c5dacb4c659f2488d600081815260086020527f226e7c4e32ba0cd918c39b21526eb23f3f5958fcfd83d5cf69b9510bf01e2e17805460ff191660019081179091556040519092916000805160206200379b83398151915291a36001600160a01b038116600081815260086020526040808220805460ff1916600190811790915590519092916000805160206200379b83398151915291a36001600860006200037d6005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556001620003ba6005546001600160a01b031690565b6001600160a01b03166000805160206200379b83398151915260405160405180910390a330600081815260086020526040808220805460ff1916600190811790915590519092916000805160206200379b83398151915291a3600080805260086020527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7805460ff191660019081179091556040519091906000805160206200379b833981519152908290a330600081815260096020526040808220805460ff191660019081179091559051909291600080516020620037bb83398151915291a3600160096000620004b46005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556001620004f16005546001600160a01b031690565b6001600160a01b0316600080516020620037bb83398151915260405160405180910390a3737a250d5630b4cf539739df2c5dacb4c659f2488d600081815260096020527fbaa441ac52505693dd98c7dd2f5bbf8f9349b7da9de72f9d52e5cac70e7da8ce805460ff19166001908117909155604051909291600080516020620037bb83398151915291a36000881180156200058e57506000198814155b156200059e576200059e620007d6565b60008361ffff161180620005b6575060008261ffff16115b15620005c657620005c662000830565b620005e730732c952ee289bbdb3aeba329a4c41ae4c836bcc231886200088a565b6200061030737a250d5630b4cf539739df2c5dacb4c659f2488d600b546200088a60201b60201c565b60405163095ea7b360e01b815273e2fe530c047f2d85298b07d9333c05737f1435fb600482015260001960248201526001600160a01b0382169063095ea7b3906044016020604051808303816000875af115801562000673573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000699919062000eb8565b50505050505050505050505062000edc565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200075d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b6200076b60008383620009b2565b80600260008282546200077f919062000e54565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b620007e062000ade565b6011805460ff60d01b198116600160d01b9182900460ff168015928302919091179092556040517fbf2321f2e60a67a985992f927edcacdf59841fa1a43089ec49a1b61b5b2ae8d990600090a250565b6200083a62000ade565b6011805460ff60d81b198116600160d81b9182900460ff168015928302919091179092556040517fb1e37e6d4dbb17ff24eb85e1f6d18d7b4c22bc5e7e4caf409ebb1e39362b79bd90600090a250565b6001600160a01b038316620008ee5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840162000754565b6001600160a01b038216620009515760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000754565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b601154600160d01b900460ff161562000ad957601154600160c01b900460ff1615801562000a0857506005546001600160a01b0384811691161480159062000a0857506005546001600160a01b03838116911614155b801562000a1e57506001600160a01b0383163014155b801562000a4857506001600160a01b038316732c952ee289bbdb3aeba329a4c41ae4c836bcc23114155b1562000a67576040516336e278fd60e21b815260040160405180910390fd5b600a541562000ad9576001600160a01b03821660009081526008602052604090205460ff1662000ad957600a546001600160a01b03831660009081526020819052604090205462000ab9908362000e54565b111562000ad95760405163a4875a4960e01b815260040160405180910390fd5b505050565b6005546001600160a01b0316331462000b3a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000754565b565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262000b6457600080fd5b81516001600160401b038082111562000b815762000b8162000b3c565b604051601f8301601f19908116603f0116810190828211818310171562000bac5762000bac62000b3c565b8160405283815260209250868385880101111562000bc957600080fd5b600091505b8382101562000bed578582018301518183018401529082019062000bce565b600093810190920192909252949350505050565b805161ffff8116811462000c1457600080fd5b919050565b6000806000806000806000806000806101408b8d03121562000c3a57600080fd5b8a516001600160401b038082111562000c5257600080fd5b62000c608e838f0162000b52565b9b5060208d015191508082111562000c7757600080fd5b5062000c868d828e0162000b52565b99505060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b0151925062000cc26101008c0162000c01565b915062000cd36101208c0162000c01565b90509295989b9194979a5092959850565b600181811c9082168062000cf957607f821691505b60208210810362000d1a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000ad957600081815260208120601f850160051c8101602086101562000d495750805b601f850160051c820191505b8181101562000d6a5782815560010162000d55565b505050505050565b81516001600160401b0381111562000d8e5762000d8e62000b3c565b62000da68162000d9f845462000ce4565b8462000d20565b602080601f83116001811462000dde576000841562000dc55750858301515b600019600386901b1c1916600185901b17855562000d6a565b600085815260208120601f198616915b8281101562000e0f5788860151825594840194600190910190840162000dee565b508582101562000e2e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000e6a5762000e6a62000e3e565b92915050565b8181038181111562000e6a5762000e6a62000e3e565b60006020828403121562000e9957600080fd5b81516001600160a01b038116811462000eb157600080fd5b9392505050565b60006020828403121562000ecb57600080fd5b8151801515811462000eb157600080fd5b6128af8062000eec6000396000f3fe6080604052600436106102b25760003560e01c8063699d47a211610175578063a9059cbb116100dc578063cc1776d311610095578063e2a7a5d71161006f578063e2a7a5d714610876578063e5bd7c6314610896578063f2fde38b146108b6578063f3050d3a146108d6576102d3565b8063cc1776d31461081f578063dd62ed3e14610841578063e086e5ec14610861576102d3565b8063a9059cbb14610794578063abd653d7146107b4578063b97578fb146107ca578063bb13f722146107d2578063bff51ef8146107e8578063cbdbc1a714610809576102d3565b80638da5cb5b1161012e5780638da5cb5b146106e15780638ef927e7146106ff57806395d89b411461071f5780639c97616f14610734578063a3787e2214610754578063a457c2d714610774576102d3565b8063699d47a21461060c57806370a082311461064b578063715018a614610681578063734990c21461069657806381d136cb146106b65780638d8f2adb146106cc576102d3565b806339509351116102195780634f7041a5116101d25780634f7041a51461053357806352bf315a1461056857806353135ca0146105955780635ba9f59c146105b657806362b2c5af146105d65780636736bc9b146105eb576102d3565b806339509351146104885780633a3f716a146104a85780633a62244f146104be57806342966c68146104d3578063449e641d146104f357806349bd5a5e146104fb576102d3565b80631aec64201161026b5780631aec6420146103c657806323b872dd146103db5780632536602d146103fb578063313ce5671461042b5780633582ad231461044757806338e1b28c14610468576102d3565b806306fdde03146102ed578063095ea7b3146103185780630c1936b91461034857806314228b0b1461037857806317cf5d391461038d57806318160ddd146103b1576102d3565b366102d357601154600160c81b900460ff16156102d1576102d16108ec565b005b601154600160c81b900460ff16156102d1576102d16108ec565b3480156102f957600080fd5b50610302610b26565b60405161030f9190612483565b60405180910390f35b34801561032457600080fd5b506103386103333660046124ed565b610bb8565b604051901515815260200161030f565b34801561035457600080fd5b50610338610363366004612517565b60096020526000908152604090205460ff1681565b34801561038457600080fd5b506102d1610bd2565b34801561039957600080fd5b506103a3600e5481565b60405190815260200161030f565b3480156103bd57600080fd5b506002546103a3565b3480156103d257600080fd5b506103a3610c2a565b3480156103e757600080fd5b506103386103f6366004612532565b610ca5565b34801561040757600080fd5b50610338610416366004612517565b60086020526000908152604090205460ff1681565b34801561043757600080fd5b506040516012815260200161030f565b34801561045357600080fd5b5060115461033890600160d01b900460ff1681565b34801561047457600080fd5b506102d161048336600461256e565b610ccb565b34801561049457600080fd5b506103386104a33660046124ed565b610d46565b3480156104b457600080fd5b506103a3600d5481565b3480156104ca57600080fd5b506102d1610d68565b3480156104df57600080fd5b506102d16104ee366004612592565b610dd9565b6102d1610de6565b34801561050757600080fd5b5060115461051b906001600160a01b031681565b6040516001600160a01b03909116815260200161030f565b34801561053f57600080fd5b5060115461055590600160a01b900461ffff1681565b60405161ffff909116815260200161030f565b34801561057457600080fd5b506103a3610583366004612517565b60076020526000908152604090205481565b3480156105a157600080fd5b5060115461033890600160c81b900460ff1681565b3480156105c257600080fd5b506102d16105d1366004612592565b6112eb565b3480156105e257600080fd5b506102d1611326565b3480156105f757600080fd5b5060115461033890600160c01b900460ff1681565b34801561061857600080fd5b5061062c610627366004612592565b61137e565b604080516001600160a01b03909316835260208301919091520161030f565b34801561065757600080fd5b506103a3610666366004612517565b6001600160a01b031660009081526020819052604090205490565b34801561068d57600080fd5b506102d16113b6565b3480156106a257600080fd5b506102d16106b13660046125d1565b6113ca565b3480156106c257600080fd5b506103a3600c5481565b3480156106d857600080fd5b506102d1611656565b3480156106ed57600080fd5b506005546001600160a01b031661051b565b34801561070b57600080fd5b506102d161071a36600461256e565b6116b0565b34801561072b57600080fd5b5061030261172b565b34801561074057600080fd5b506102d161074f3660046125d1565b61173a565b34801561076057600080fd5b506102d161076f366004612592565b6118fe565b34801561078057600080fd5b5061033861078f3660046124ed565b6119a2565b3480156107a057600080fd5b506103386107af3660046124ed565b611a28565b3480156107c057600080fd5b506103a3600b5481565b6102d16108ec565b3480156107de57600080fd5b506103a360105481565b3480156107f457600080fd5b5060115461033890600160d81b900460ff1681565b34801561081557600080fd5b506103a3600f5481565b34801561082b57600080fd5b5060115461055590600160b01b900461ffff1681565b34801561084d57600080fd5b506103a361085c3660046126a8565b611a36565b34801561086d57600080fd5b506102d1611a61565b34801561088257600080fd5b506102d1610891366004612592565b611b09565b3480156108a257600080fd5b506102d16108b1366004612592565b611b6f565b3480156108c257600080fd5b506102d16108d1366004612517565b611bd5565b3480156108e257600080fd5b506103a3600a5481565b600d54601154600160c81b900460ff16610919576040516335c33e8160e01b815260040160405180910390fd5b600e5447111561093c57604051634de37bfb60e11b815260040160405180910390fd5b8034111561095d57604051632c9ef7c560e01b815260040160405180910390fd5b6006543360009081526007602052604081205490819003610a30576040805180820190915233815234602082019081526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600290920291820180546001600160a01b0319166001600160a01b0390921691909117905590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610a15836126f1565b3360009081526007602052604090208190559250610af49050565b60006006610a3f60018461270a565b81548110610a4f57610a4f61271d565b60009182526020918290206040805180820190915260029092020180546001600160a01b031682526001015491810182905291508490610a90903490612733565b1115610aaf57604051632c9ef7c560e01b815260040160405180910390fd5b346006610abd60018561270a565b81548110610acd57610acd61271d565b90600052602060002090600202016001016000828254610aed9190612733565b9091555050505b604051349033907f3208323b705d8e7ddf1095dd65cf618202d5cda0cc7cc6a612144f4fb0cfb95790600090a3505050565b606060038054610b3590612746565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6190612746565b8015610bae5780601f10610b8357610100808354040283529160200191610bae565b820191906000526020600020905b815481529060010190602001808311610b9157829003601f168201915b5050505050905090565b600033610bc6818585611c4b565b60019150505b92915050565b610bda611d6f565b6011805460ff60d01b198116600160d01b9182900460ff168015928302919091179092556040517fbf2321f2e60a67a985992f927edcacdf59841fa1a43089ec49a1b61b5b2ae8d990600090a250565b60405163feeb733d60e01b815230600482015260009073e2fe530c047f2d85298b07d9333c05737f1435fb9063feeb733d90602401602060405180830381865afa158015610c7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca09190612780565b905090565b600033610cb3858285611dc9565b610cbe858585611e43565b60019150505b9392505050565b610cd3611d6f565b6127108161ffff161115610cfa576040516348a34b4760e01b815260040160405180910390fd5b6011805461ffff60b01b1916600160b01b61ffff8416908102919091179091556040517fdca216fffa6162ce4b8937f75f40a53e7dbbae36ca572cc065658cf302fe49d490600090a250565b600033610bc6818585610d598383611a36565b610d639190612733565b611c4b565b610d70611d6f565b601154600160c81b900460ff1615610d9b57604051630dc5d0f360e31b815260040160405180910390fd5b6011805460ff60c01b1916600160c01b1790556040517fdfad699c3eec754fe525e067abafc921effd98ea1c7c7784623650fd0a709b3090600090a1565b610de33382611f3e565b50565b610dee611d6f565b600c54601154600160c81b900460ff16610e1b576040516335c33e8160e01b815260040160405180910390fd5b60405163feeb733d60e01b8152306004820152610e9d9073e2fe530c047f2d85298b07d9333c05737f1435fb9063feeb733d90602401602060405180830381865afa158015610e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e929190612780565b61251c61271061207c565b341015610ebd5760405163cd1c886760e01b815260040160405180910390fd5b6000610ec9344761270a565b60065490915060008167ffffffffffffffff811115610eea57610eea6125ab565b604051908082528060200260200182016040528015610f13578160200160208202803683370190505b50905060008267ffffffffffffffff811115610f3157610f316125ab565b604051908082528060200260200182016040528015610f5a578160200160208202803683370190505b50905060005b838110156110205760068181548110610f7b57610f7b61271d565b600091825260209091206002909102015483516001600160a01b0390911690849083908110610fac57610fac61271d565b60200260200101906001600160a01b031690816001600160a01b031681525050610ffb60068281548110610fe257610fe261271d565b906000526020600020906002020160010154878761207c565b82828151811061100d5761100d61271d565b6020908102919091010152600101610f60565b5060405163414a3d5f60e11b8152732c952ee289bbdb3aeba329a4c41ae4c836bcc231906382947abe9061105e903090869086908b90600401612799565b600060405180830381600087803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b50506040517f6e9b493d99c41e52587e316eb8bd631202ed9c81f1c87d8f828e7d383fec196a925060009150a16000737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7198630600b54600080304261012c6110f59190612733565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015611162573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906111879190612835565b6040519093507fea4679d9a6912b6ea106d01649717333063896922598083e481d97739a55d5cd925060009150a160115473e2fe530c047f2d85298b07d9333c05737f1435fb90635af06fed9034906001600160a01b03166111f16005546001600160a01b031690565b600f546040516001600160e01b031960e087901b1681526001600160a01b03938416600482015292909116602483015260448201869052606482015260016084820152600060a482015260c40160206040518083038185885af115801561125c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112819190612780565b6010556040517f8f4e75b2b71b51d3107f168f33d4f291c4ef089a69b1075bcbf4476c69e81d0690600090a16011805460ff60c81b191690556040517f178883df77bd1da8fe0f452c81786ec2daed0fe6bf06928f621f32239ff9e3fc90600090a1505050505050565b6112f3611d6f565b600a81905560405181907fb0931f5f40e3d0ffb5479cd61d2de12e3daaf2adc3dd3325aa9cc82609012ea590600090a250565b61132e611d6f565b6011805460ff60d81b198116600160d81b9182900460ff168015928302919091179092556040517fb1e37e6d4dbb17ff24eb85e1f6d18d7b4c22bc5e7e4caf409ebb1e39362b79bd90600090a250565b6006818154811061138e57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6113be611d6f565b6113c86000612166565b565b6113d2611d6f565b60005b8251811015611651576005546001600160a01b03166001600160a01b03168382815181106114055761140561271d565b60200260200101516001600160a01b0316148061144c5750306001600160a01b03168382815181106114395761143961271d565b60200260200101516001600160a01b0316145b80611482575060006001600160a01b031683828151811061146f5761146f61271d565b60200260200101516001600160a01b0316145b806114be575060115483516001600160a01b03909116908490839081106114ab576114ab61271d565b60200260200101516001600160a01b0316145b806115075750737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168382815181106114f4576114f461271d565b60200260200101516001600160a01b0316145b806115505750732c952ee289bbdb3aeba329a4c41ae4c836bcc2316001600160a01b031683828151811061153d5761153d61271d565b60200260200101516001600160a01b0316145b156115a1578281815181106115675761156761271d565b6020026020010151604051630130395d60e11b815260040161159891906001600160a01b0391909116815260200190565b60405180910390fd5b81600860008584815181106115b8576115b861271d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081151583828151811061160c5761160c61271d565b60200260200101516001600160a01b03167f76580fde28abfe69eb1219bea2e9fe5840c76ad9f02c662e66ee3efb19a9aed260405160405180910390a36001016113d5565b505050565b601154600160c81b900460ff161561168157604051630dc5d0f360e31b815260040160405180910390fd5b30600090815260208190526040902054610de3907339bdd3bdeaf068ed56912193ee75f7bc9ddbae9d90611a28565b6116b8611d6f565b6127108161ffff1611156116df576040516348a34b4760e01b815260040160405180910390fd5b6011805461ffff60a01b1916600160a01b61ffff8416908102919091179091556040517ff1907c125cf6fc86a3cae55c9788bbb4afa3037ec0769efd8095376d929a175190600090a250565b606060048054610b3590612746565b611742611d6f565b60005b82518110156116515760006001600160a01b031683828151811061176b5761176b61271d565b60200260200101516001600160a01b031614806117b25750306001600160a01b031683828151811061179f5761179f61271d565b60200260200101516001600160a01b0316145b806117ee575060115483516001600160a01b03909116908490839081106117db576117db61271d565b60200260200101516001600160a01b0316145b806118375750737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168382815181106118245761182461271d565b60200260200101516001600160a01b0316145b1561184e578281815181106115675761156761271d565b81600960008584815181106118655761186561271d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508115158382815181106118b9576118b961271d565b60200260200101516001600160a01b03167fbba011df9c4c262954cb5e374cac809204f120c0ae4a087e379661105721963060405160405180910390a3600101611745565b611906611d6f565b601154600160c81b900460ff161561193157604051630dc5d0f360e31b815260040160405180910390fd5b61193e4262093a80612733565b81101561195e57604051631bb3c2f560e21b815260040160405180910390fd5b600f8190556011805460ff60c81b1916600160c81b1790556040517fbac8edc4f6a45ce4a46327dbea4b1181366b50f7356984a5e1c92ebe3cb21c1290600090a150565b600033816119b08286611a36565b905083811015611a105760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401611598565b611a1d8286868403611c4b565b506001949350505050565b600033610bc6818585611e43565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601154600160c81b900460ff1615611a8c57604051630dc5d0f360e31b815260040160405180910390fd5b6040516000907339bdd3bdeaf068ed56912193ee75f7bc9ddbae9d9047908381818185875af1925050503d8060008114611ae2576040519150601f19603f3d011682016040523d82523d6000602084013e611ae7565b606091505b5050905080610de3576040516312171d8360e31b815260040160405180910390fd5b611b11611d6f565b601154600160c81b900460ff1615611b3c57604051630dc5d0f360e31b815260040160405180910390fd5b600e81905560405181907fc075a046098caebb5f085a554c66656ad70e9ece07fe584035d00779413244ee90600090a250565b611b77611d6f565b601154600160c81b900460ff1615611ba257604051630dc5d0f360e31b815260040160405180910390fd5b600d81905560405181907f7d84a439003d0973945cc6c58fc7fa211af06c549a21d653fecdee402cee801090600090a250565b611bdd611d6f565b6001600160a01b038116611c425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611598565b610de381612166565b6001600160a01b038316611cad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401611598565b6001600160a01b038216611d0e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401611598565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146113c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611598565b6000611dd58484611a36565b90506000198114611e3d5781811015611e305760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611598565b611e3d8484848403611c4b565b50505050565b601154600090600160d81b900460ff168015611e8357506011546001600160a01b0385811691161480611e8357506011546001600160a01b038481169116145b8015611ea857506001600160a01b03841660009081526009602052604090205460ff16155b8015611ecd57506001600160a01b03831660009081526009602052604090205460ff16155b15611f33576011546000906001600160a01b03868116911614611efd57601154600160b01b900461ffff16611f0c565b601154600160a01b900461ffff165b61ffff169050611f1f838261271061207c565b9150611f2c8530846121b8565b8183039250505b611e3d8484846121b8565b6001600160a01b038216611f9e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401611598565b611faa82600083612367565b6001600160a01b0382166000908152602081905260409020548181101561201e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401611598565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60008080600019858709858702925082811083820303915050806000036120b6578382816120ac576120ac612863565b0492505050610cc4565b8084116120fd5760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401611598565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661221c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401611598565b6001600160a01b03821661227e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401611598565b612289838383612367565b6001600160a01b038316600090815260208190526040902054818110156123015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401611598565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611e3d565b601154600160d01b900460ff161561165157601154600160c01b900460ff161580156123ba57506005546001600160a01b038481169116148015906123ba57506005546001600160a01b03838116911614155b80156123cf57506001600160a01b0383163014155b80156123f857506001600160a01b038316732c952ee289bbdb3aeba329a4c41ae4c836bcc23114155b15612416576040516336e278fd60e21b815260040160405180910390fd5b600a5415611651576001600160a01b03821660009081526008602052604090205460ff1661165157600a546001600160a01b0383166000908152602081905260409020546124649083612733565b11156116515760405163a4875a4960e01b815260040160405180910390fd5b600060208083528351808285015260005b818110156124b057858101830151858201604001528201612494565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146124e857600080fd5b919050565b6000806040838503121561250057600080fd5b612509836124d1565b946020939093013593505050565b60006020828403121561252957600080fd5b610cc4826124d1565b60008060006060848603121561254757600080fd5b612550846124d1565b925061255e602085016124d1565b9150604084013590509250925092565b60006020828403121561258057600080fd5b813561ffff81168114610cc457600080fd5b6000602082840312156125a457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b803580151581146124e857600080fd5b600080604083850312156125e457600080fd5b823567ffffffffffffffff808211156125fc57600080fd5b818501915085601f83011261261057600080fd5b8135602082821115612624576126246125ab565b8160051b604051601f19603f83011681018181108682111715612649576126496125ab565b60405292835281830193508481018201928984111561266757600080fd5b948201945b8386101561268c5761267d866124d1565b8552948201949382019361266c565b965061269b90508782016125c1565b9450505050509250929050565b600080604083850312156126bb57600080fd5b6126c4836124d1565b91506126d2602084016124d1565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600060018201612703576127036126db565b5060010190565b81810381811115610bcc57610bcc6126db565b634e487b7160e01b600052603260045260246000fd5b80820180821115610bcc57610bcc6126db565b600181811c9082168061275a57607f821691505b60208210810361277a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561279257600080fd5b5051919050565b6001600160a01b0385811682526080602080840182905286519184018290526000928782019290919060a0860190855b818110156127e75785518516835294830194918301916001016127c9565b5050858103604087015287518082529082019350915080870160005b8381101561281f57815185529382019390820190600101612803565b5050505060609290920192909252949350505050565b60008060006060848603121561284a57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220332ab90a2c41212ac030dbe7c7c170d1135064eda48301e47e8b6463cfbe60f064736f6c6343000814003376580fde28abfe69eb1219bea2e9fe5840c76ad9f02c662e66ee3efb19a9aed2bba011df9c4c262954cb5e374cac809204f120c0ae4a087e37966110572196300000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000004a1d89bb94865ec0000000000000000000000000000000000000000000000021165458500521280000000000000000000000000000000000000000000000001b4c0595a86aa1c1000000000000000000000000000000000000000000000000000000062967a5c8460000000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000757454e4445455a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757454e4445455a00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102b25760003560e01c8063699d47a211610175578063a9059cbb116100dc578063cc1776d311610095578063e2a7a5d71161006f578063e2a7a5d714610876578063e5bd7c6314610896578063f2fde38b146108b6578063f3050d3a146108d6576102d3565b8063cc1776d31461081f578063dd62ed3e14610841578063e086e5ec14610861576102d3565b8063a9059cbb14610794578063abd653d7146107b4578063b97578fb146107ca578063bb13f722146107d2578063bff51ef8146107e8578063cbdbc1a714610809576102d3565b80638da5cb5b1161012e5780638da5cb5b146106e15780638ef927e7146106ff57806395d89b411461071f5780639c97616f14610734578063a3787e2214610754578063a457c2d714610774576102d3565b8063699d47a21461060c57806370a082311461064b578063715018a614610681578063734990c21461069657806381d136cb146106b65780638d8f2adb146106cc576102d3565b806339509351116102195780634f7041a5116101d25780634f7041a51461053357806352bf315a1461056857806353135ca0146105955780635ba9f59c146105b657806362b2c5af146105d65780636736bc9b146105eb576102d3565b806339509351146104885780633a3f716a146104a85780633a62244f146104be57806342966c68146104d3578063449e641d146104f357806349bd5a5e146104fb576102d3565b80631aec64201161026b5780631aec6420146103c657806323b872dd146103db5780632536602d146103fb578063313ce5671461042b5780633582ad231461044757806338e1b28c14610468576102d3565b806306fdde03146102ed578063095ea7b3146103185780630c1936b91461034857806314228b0b1461037857806317cf5d391461038d57806318160ddd146103b1576102d3565b366102d357601154600160c81b900460ff16156102d1576102d16108ec565b005b601154600160c81b900460ff16156102d1576102d16108ec565b3480156102f957600080fd5b50610302610b26565b60405161030f9190612483565b60405180910390f35b34801561032457600080fd5b506103386103333660046124ed565b610bb8565b604051901515815260200161030f565b34801561035457600080fd5b50610338610363366004612517565b60096020526000908152604090205460ff1681565b34801561038457600080fd5b506102d1610bd2565b34801561039957600080fd5b506103a3600e5481565b60405190815260200161030f565b3480156103bd57600080fd5b506002546103a3565b3480156103d257600080fd5b506103a3610c2a565b3480156103e757600080fd5b506103386103f6366004612532565b610ca5565b34801561040757600080fd5b50610338610416366004612517565b60086020526000908152604090205460ff1681565b34801561043757600080fd5b506040516012815260200161030f565b34801561045357600080fd5b5060115461033890600160d01b900460ff1681565b34801561047457600080fd5b506102d161048336600461256e565b610ccb565b34801561049457600080fd5b506103386104a33660046124ed565b610d46565b3480156104b457600080fd5b506103a3600d5481565b3480156104ca57600080fd5b506102d1610d68565b3480156104df57600080fd5b506102d16104ee366004612592565b610dd9565b6102d1610de6565b34801561050757600080fd5b5060115461051b906001600160a01b031681565b6040516001600160a01b03909116815260200161030f565b34801561053f57600080fd5b5060115461055590600160a01b900461ffff1681565b60405161ffff909116815260200161030f565b34801561057457600080fd5b506103a3610583366004612517565b60076020526000908152604090205481565b3480156105a157600080fd5b5060115461033890600160c81b900460ff1681565b3480156105c257600080fd5b506102d16105d1366004612592565b6112eb565b3480156105e257600080fd5b506102d1611326565b3480156105f757600080fd5b5060115461033890600160c01b900460ff1681565b34801561061857600080fd5b5061062c610627366004612592565b61137e565b604080516001600160a01b03909316835260208301919091520161030f565b34801561065757600080fd5b506103a3610666366004612517565b6001600160a01b031660009081526020819052604090205490565b34801561068d57600080fd5b506102d16113b6565b3480156106a257600080fd5b506102d16106b13660046125d1565b6113ca565b3480156106c257600080fd5b506103a3600c5481565b3480156106d857600080fd5b506102d1611656565b3480156106ed57600080fd5b506005546001600160a01b031661051b565b34801561070b57600080fd5b506102d161071a36600461256e565b6116b0565b34801561072b57600080fd5b5061030261172b565b34801561074057600080fd5b506102d161074f3660046125d1565b61173a565b34801561076057600080fd5b506102d161076f366004612592565b6118fe565b34801561078057600080fd5b5061033861078f3660046124ed565b6119a2565b3480156107a057600080fd5b506103386107af3660046124ed565b611a28565b3480156107c057600080fd5b506103a3600b5481565b6102d16108ec565b3480156107de57600080fd5b506103a360105481565b3480156107f457600080fd5b5060115461033890600160d81b900460ff1681565b34801561081557600080fd5b506103a3600f5481565b34801561082b57600080fd5b5060115461055590600160b01b900461ffff1681565b34801561084d57600080fd5b506103a361085c3660046126a8565b611a36565b34801561086d57600080fd5b506102d1611a61565b34801561088257600080fd5b506102d1610891366004612592565b611b09565b3480156108a257600080fd5b506102d16108b1366004612592565b611b6f565b3480156108c257600080fd5b506102d16108d1366004612517565b611bd5565b3480156108e257600080fd5b506103a3600a5481565b600d54601154600160c81b900460ff16610919576040516335c33e8160e01b815260040160405180910390fd5b600e5447111561093c57604051634de37bfb60e11b815260040160405180910390fd5b8034111561095d57604051632c9ef7c560e01b815260040160405180910390fd5b6006543360009081526007602052604081205490819003610a30576040805180820190915233815234602082019081526006805460018101825560009190915282517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600290920291820180546001600160a01b0319166001600160a01b0390921691909117905590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090910155610a15836126f1565b3360009081526007602052604090208190559250610af49050565b60006006610a3f60018461270a565b81548110610a4f57610a4f61271d565b60009182526020918290206040805180820190915260029092020180546001600160a01b031682526001015491810182905291508490610a90903490612733565b1115610aaf57604051632c9ef7c560e01b815260040160405180910390fd5b346006610abd60018561270a565b81548110610acd57610acd61271d565b90600052602060002090600202016001016000828254610aed9190612733565b9091555050505b604051349033907f3208323b705d8e7ddf1095dd65cf618202d5cda0cc7cc6a612144f4fb0cfb95790600090a3505050565b606060038054610b3590612746565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6190612746565b8015610bae5780601f10610b8357610100808354040283529160200191610bae565b820191906000526020600020905b815481529060010190602001808311610b9157829003601f168201915b5050505050905090565b600033610bc6818585611c4b565b60019150505b92915050565b610bda611d6f565b6011805460ff60d01b198116600160d01b9182900460ff168015928302919091179092556040517fbf2321f2e60a67a985992f927edcacdf59841fa1a43089ec49a1b61b5b2ae8d990600090a250565b60405163feeb733d60e01b815230600482015260009073e2fe530c047f2d85298b07d9333c05737f1435fb9063feeb733d90602401602060405180830381865afa158015610c7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca09190612780565b905090565b600033610cb3858285611dc9565b610cbe858585611e43565b60019150505b9392505050565b610cd3611d6f565b6127108161ffff161115610cfa576040516348a34b4760e01b815260040160405180910390fd5b6011805461ffff60b01b1916600160b01b61ffff8416908102919091179091556040517fdca216fffa6162ce4b8937f75f40a53e7dbbae36ca572cc065658cf302fe49d490600090a250565b600033610bc6818585610d598383611a36565b610d639190612733565b611c4b565b610d70611d6f565b601154600160c81b900460ff1615610d9b57604051630dc5d0f360e31b815260040160405180910390fd5b6011805460ff60c01b1916600160c01b1790556040517fdfad699c3eec754fe525e067abafc921effd98ea1c7c7784623650fd0a709b3090600090a1565b610de33382611f3e565b50565b610dee611d6f565b600c54601154600160c81b900460ff16610e1b576040516335c33e8160e01b815260040160405180910390fd5b60405163feeb733d60e01b8152306004820152610e9d9073e2fe530c047f2d85298b07d9333c05737f1435fb9063feeb733d90602401602060405180830381865afa158015610e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e929190612780565b61251c61271061207c565b341015610ebd5760405163cd1c886760e01b815260040160405180910390fd5b6000610ec9344761270a565b60065490915060008167ffffffffffffffff811115610eea57610eea6125ab565b604051908082528060200260200182016040528015610f13578160200160208202803683370190505b50905060008267ffffffffffffffff811115610f3157610f316125ab565b604051908082528060200260200182016040528015610f5a578160200160208202803683370190505b50905060005b838110156110205760068181548110610f7b57610f7b61271d565b600091825260209091206002909102015483516001600160a01b0390911690849083908110610fac57610fac61271d565b60200260200101906001600160a01b031690816001600160a01b031681525050610ffb60068281548110610fe257610fe261271d565b906000526020600020906002020160010154878761207c565b82828151811061100d5761100d61271d565b6020908102919091010152600101610f60565b5060405163414a3d5f60e11b8152732c952ee289bbdb3aeba329a4c41ae4c836bcc231906382947abe9061105e903090869086908b90600401612799565b600060405180830381600087803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b50506040517f6e9b493d99c41e52587e316eb8bd631202ed9c81f1c87d8f828e7d383fec196a925060009150a16000737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7198630600b54600080304261012c6110f59190612733565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c40160606040518083038185885af1158015611162573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906111879190612835565b6040519093507fea4679d9a6912b6ea106d01649717333063896922598083e481d97739a55d5cd925060009150a160115473e2fe530c047f2d85298b07d9333c05737f1435fb90635af06fed9034906001600160a01b03166111f16005546001600160a01b031690565b600f546040516001600160e01b031960e087901b1681526001600160a01b03938416600482015292909116602483015260448201869052606482015260016084820152600060a482015260c40160206040518083038185885af115801561125c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112819190612780565b6010556040517f8f4e75b2b71b51d3107f168f33d4f291c4ef089a69b1075bcbf4476c69e81d0690600090a16011805460ff60c81b191690556040517f178883df77bd1da8fe0f452c81786ec2daed0fe6bf06928f621f32239ff9e3fc90600090a1505050505050565b6112f3611d6f565b600a81905560405181907fb0931f5f40e3d0ffb5479cd61d2de12e3daaf2adc3dd3325aa9cc82609012ea590600090a250565b61132e611d6f565b6011805460ff60d81b198116600160d81b9182900460ff168015928302919091179092556040517fb1e37e6d4dbb17ff24eb85e1f6d18d7b4c22bc5e7e4caf409ebb1e39362b79bd90600090a250565b6006818154811061138e57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6113be611d6f565b6113c86000612166565b565b6113d2611d6f565b60005b8251811015611651576005546001600160a01b03166001600160a01b03168382815181106114055761140561271d565b60200260200101516001600160a01b0316148061144c5750306001600160a01b03168382815181106114395761143961271d565b60200260200101516001600160a01b0316145b80611482575060006001600160a01b031683828151811061146f5761146f61271d565b60200260200101516001600160a01b0316145b806114be575060115483516001600160a01b03909116908490839081106114ab576114ab61271d565b60200260200101516001600160a01b0316145b806115075750737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168382815181106114f4576114f461271d565b60200260200101516001600160a01b0316145b806115505750732c952ee289bbdb3aeba329a4c41ae4c836bcc2316001600160a01b031683828151811061153d5761153d61271d565b60200260200101516001600160a01b0316145b156115a1578281815181106115675761156761271d565b6020026020010151604051630130395d60e11b815260040161159891906001600160a01b0391909116815260200190565b60405180910390fd5b81600860008584815181106115b8576115b861271d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081151583828151811061160c5761160c61271d565b60200260200101516001600160a01b03167f76580fde28abfe69eb1219bea2e9fe5840c76ad9f02c662e66ee3efb19a9aed260405160405180910390a36001016113d5565b505050565b601154600160c81b900460ff161561168157604051630dc5d0f360e31b815260040160405180910390fd5b30600090815260208190526040902054610de3907339bdd3bdeaf068ed56912193ee75f7bc9ddbae9d90611a28565b6116b8611d6f565b6127108161ffff1611156116df576040516348a34b4760e01b815260040160405180910390fd5b6011805461ffff60a01b1916600160a01b61ffff8416908102919091179091556040517ff1907c125cf6fc86a3cae55c9788bbb4afa3037ec0769efd8095376d929a175190600090a250565b606060048054610b3590612746565b611742611d6f565b60005b82518110156116515760006001600160a01b031683828151811061176b5761176b61271d565b60200260200101516001600160a01b031614806117b25750306001600160a01b031683828151811061179f5761179f61271d565b60200260200101516001600160a01b0316145b806117ee575060115483516001600160a01b03909116908490839081106117db576117db61271d565b60200260200101516001600160a01b0316145b806118375750737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03168382815181106118245761182461271d565b60200260200101516001600160a01b0316145b1561184e578281815181106115675761156761271d565b81600960008584815181106118655761186561271d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055508115158382815181106118b9576118b961271d565b60200260200101516001600160a01b03167fbba011df9c4c262954cb5e374cac809204f120c0ae4a087e379661105721963060405160405180910390a3600101611745565b611906611d6f565b601154600160c81b900460ff161561193157604051630dc5d0f360e31b815260040160405180910390fd5b61193e4262093a80612733565b81101561195e57604051631bb3c2f560e21b815260040160405180910390fd5b600f8190556011805460ff60c81b1916600160c81b1790556040517fbac8edc4f6a45ce4a46327dbea4b1181366b50f7356984a5e1c92ebe3cb21c1290600090a150565b600033816119b08286611a36565b905083811015611a105760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401611598565b611a1d8286868403611c4b565b506001949350505050565b600033610bc6818585611e43565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601154600160c81b900460ff1615611a8c57604051630dc5d0f360e31b815260040160405180910390fd5b6040516000907339bdd3bdeaf068ed56912193ee75f7bc9ddbae9d9047908381818185875af1925050503d8060008114611ae2576040519150601f19603f3d011682016040523d82523d6000602084013e611ae7565b606091505b5050905080610de3576040516312171d8360e31b815260040160405180910390fd5b611b11611d6f565b601154600160c81b900460ff1615611b3c57604051630dc5d0f360e31b815260040160405180910390fd5b600e81905560405181907fc075a046098caebb5f085a554c66656ad70e9ece07fe584035d00779413244ee90600090a250565b611b77611d6f565b601154600160c81b900460ff1615611ba257604051630dc5d0f360e31b815260040160405180910390fd5b600d81905560405181907f7d84a439003d0973945cc6c58fc7fa211af06c549a21d653fecdee402cee801090600090a250565b611bdd611d6f565b6001600160a01b038116611c425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611598565b610de381612166565b6001600160a01b038316611cad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401611598565b6001600160a01b038216611d0e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401611598565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146113c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611598565b6000611dd58484611a36565b90506000198114611e3d5781811015611e305760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401611598565b611e3d8484848403611c4b565b50505050565b601154600090600160d81b900460ff168015611e8357506011546001600160a01b0385811691161480611e8357506011546001600160a01b038481169116145b8015611ea857506001600160a01b03841660009081526009602052604090205460ff16155b8015611ecd57506001600160a01b03831660009081526009602052604090205460ff16155b15611f33576011546000906001600160a01b03868116911614611efd57601154600160b01b900461ffff16611f0c565b601154600160a01b900461ffff165b61ffff169050611f1f838261271061207c565b9150611f2c8530846121b8565b8183039250505b611e3d8484846121b8565b6001600160a01b038216611f9e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401611598565b611faa82600083612367565b6001600160a01b0382166000908152602081905260409020548181101561201e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401611598565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b60008080600019858709858702925082811083820303915050806000036120b6578382816120ac576120ac612863565b0492505050610cc4565b8084116120fd5760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b6044820152606401611598565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661221c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401611598565b6001600160a01b03821661227e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401611598565b612289838383612367565b6001600160a01b038316600090815260208190526040902054818110156123015760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401611598565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611e3d565b601154600160d01b900460ff161561165157601154600160c01b900460ff161580156123ba57506005546001600160a01b038481169116148015906123ba57506005546001600160a01b03838116911614155b80156123cf57506001600160a01b0383163014155b80156123f857506001600160a01b038316732c952ee289bbdb3aeba329a4c41ae4c836bcc23114155b15612416576040516336e278fd60e21b815260040160405180910390fd5b600a5415611651576001600160a01b03821660009081526008602052604090205460ff1661165157600a546001600160a01b0383166000908152602081905260409020546124649083612733565b11156116515760405163a4875a4960e01b815260040160405180910390fd5b600060208083528351808285015260005b818110156124b057858101830151858201604001528201612494565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146124e857600080fd5b919050565b6000806040838503121561250057600080fd5b612509836124d1565b946020939093013593505050565b60006020828403121561252957600080fd5b610cc4826124d1565b60008060006060848603121561254757600080fd5b612550846124d1565b925061255e602085016124d1565b9150604084013590509250925092565b60006020828403121561258057600080fd5b813561ffff81168114610cc457600080fd5b6000602082840312156125a457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b803580151581146124e857600080fd5b600080604083850312156125e457600080fd5b823567ffffffffffffffff808211156125fc57600080fd5b818501915085601f83011261261057600080fd5b8135602082821115612624576126246125ab565b8160051b604051601f19603f83011681018181108682111715612649576126496125ab565b60405292835281830193508481018201928984111561266757600080fd5b948201945b8386101561268c5761267d866124d1565b8552948201949382019361266c565b965061269b90508782016125c1565b9450505050509250929050565b600080604083850312156126bb57600080fd5b6126c4836124d1565b91506126d2602084016124d1565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600060018201612703576127036126db565b5060010190565b81810381811115610bcc57610bcc6126db565b634e487b7160e01b600052603260045260246000fd5b80820180821115610bcc57610bcc6126db565b600181811c9082168061275a57607f821691505b60208210810361277a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561279257600080fd5b5051919050565b6001600160a01b0385811682526080602080840182905286519184018290526000928782019290919060a0860190855b818110156127e75785518516835294830194918301916001016127c9565b5050858103604087015287518082529082019350915080870160005b8381101561281f57815185529382019390820190600101612803565b5050505060609290920192909252949350505050565b60008060006060848603121561284a57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220332ab90a2c41212ac030dbe7c7c170d1135064eda48301e47e8b6463cfbe60f064736f6c63430008140033

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

0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000004a1d89bb94865ec0000000000000000000000000000000000000000000000021165458500521280000000000000000000000000000000000000000000000001b4c0595a86aa1c1000000000000000000000000000000000000000000000000000000062967a5c8460000000000000000000000000000000000000000000000000000d02ab486cedc000000000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000757454e4445455a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757454e4445455a00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): WENDEEZ
Arg [1] : _symbol (string): WENDEEZ
Arg [2] : _totalAllocation (uint256): 100000000000000000000000000
Arg [3] : _maxWalletBal (uint256): 350000000000000000000000
Arg [4] : _liquidityAllocation (uint256): 40000000000000000000000000
Arg [5] : _presaleAllocation (uint256): 33000000000000000000000000
Arg [6] : _presaleMaxBuy (uint256): 444000000000000000
Arg [7] : _presaleHardCap (uint256): 15000000000000000000
Arg [8] : _buyTax (uint16): 2000
Arg [9] : _sellTax (uint16): 1000

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [3] : 000000000000000000000000000000000000000000004a1d89bb94865ec00000
Arg [4] : 0000000000000000000000000000000000000000002116545850052128000000
Arg [5] : 0000000000000000000000000000000000000000001b4c0595a86aa1c1000000
Arg [6] : 000000000000000000000000000000000000000000000000062967a5c8460000
Arg [7] : 000000000000000000000000000000000000000000000000d02ab486cedc0000
Arg [8] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [9] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [11] : 57454e4445455a00000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [13] : 57454e4445455a00000000000000000000000000000000000000000000000000


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.