ETH Price: $4,002.69 (+3.18%)

Token

BlastHoge ($HOGE)
 

Overview

Max Total Supply

1,000,000,000,000 $HOGE

Holders

68,065

Total Transfers

-

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Blast Hoge is a community-driven project within the Blast Network, pioneering DeFi solutions through innovative tokenomics, governance, and strategic partnerships, fostering inclusivity and sustainable growth.

Contract Source Code Verified (Exact Match)

Contract Name:
BlastHoge

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.8.0;

import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { ERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import { IUniswapV2Router02 } from "../interfaces/uniswap/IUniswapV2Router02.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";

import { ITokenLauncherERC20 } from "../interfaces/ITokenLauncherERC20.sol";
import { IBuyBackHandler } from "../interfaces/IBuyBackHandler.sol";
import { IBlast } from "../interfaces/IBlast.sol";
import { IBlastPoints } from "../interfaces/IBlastPoints.sol";

contract BlastHoge is ERC20, AccessControl, Ownable {
    using EnumerableSet for EnumerableSet.AddressSet;
    using SafeERC20 for IERC20;

    IBlast public BLAST;

    bytes32 public constant FEE_MANAGER_ROLE = keccak256("FEE_MANAGER_ROLE");

    address public treasury;
    uint256 public maxSupply;
    string public logo;
    ITokenLauncherERC20.Fees public fees;
    address public buybackHandler;
    address public tokenLauncher;
    bool public isReflectionToken;
    uint8 private _decimals;

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
    uint256 public constant MULTIPLIER_BASIS = 1e4;

    /// @dev The set of addresses exempt from tax.
    EnumerableSet.AddressSet private _exemptedFromTax;

    /// @dev Set of exchange pool addresses.
    EnumerableSet.AddressSet internal _exchangePools;

    /// @dev Set of Reflection variables
    uint256 public constant MAX = type(uint256).max / 2;

    mapping(address => uint256) private _rOwned;
    mapping(address => uint256) private _tOwned;

    mapping(address => bool) private _isExcludedFromReflectionRewards;
    address[] private _excluded;

    struct TotalReflection {
        uint256 t;
        uint256 r;
        uint256 tFee;
    }
    TotalReflection public totalReflection;

    event ExemptedAdded(address indexed account);
    event ExemptedRemoved(address indexed account);
    event ExchangePoolAdded(address indexed pool);
    event ExchangePoolRemoved(address indexed pool);
    event TokenLauncherUpdated(address indexed newTokenLauncher);
    event TransferTax(address indexed account, address indexed receiver, uint256 amount, string indexed taxType);

    constructor() ERC20("BlastHoge", "$HOGE") {
        address address1 = 0x966000CA7bB508BffBF22d35997D5f40e2126dF7;
        treasury = address1;// address(this);
        maxSupply = 1_000_000_000_000 * 10 ** 18;
        logo = "ipfs://bafybeibxnzwo7kx4uv2tntatxjygbdo4c74wevjxrvbggnwfqojsub55qe/0.jpeg";
        _decimals = 18;

        // uint256 maxFee = _input.fees.transferFee.percentage + _input.fees.burn.percentage + _input.fees.reflection.percentage + _input.fees.buyback.percentage;
        // require(maxFee <= MULTIPLIER_BASIS, "BlastHoge: fees sum must be less than 100%");

        fees = ITokenLauncherERC20.Fees({
            transferFee: ITokenLauncherERC20.FeeDetails({ percentage: 0, onlyOnSwaps: true}),
            burn: ITokenLauncherERC20.FeeDetails({ percentage: 100, onlyOnSwaps: true}),
            reflection: ITokenLauncherERC20.FeeDetails({ percentage: 200, onlyOnSwaps: true}),
            buyback: ITokenLauncherERC20.FeeDetails({ percentage: 0, onlyOnSwaps: true})
        });

        buybackHandler = msg.sender;//_buybackHandler;

        uint256 initialSupply = maxSupply;
        if (fees.reflection.percentage > 0) {
            require(initialSupply > 0, "BlastHoge.constructor: initialSupply must be greater than 0");
            totalReflection.r = (MAX - (MAX % initialSupply));
            _rOwned[treasury] = totalReflection.r;
            totalReflection.t = initialSupply;
            _tOwned[treasury] = initialSupply;
            isReflectionToken = true;
            emit Transfer(address(0), treasury, initialSupply);
        } else {
            _mint(treasury, initialSupply);
        }

        // Exempt the buyback handler, treasury and burn address
        _exemptedFromTax.add(buybackHandler);

        tokenLauncher = msg.sender;
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(FEE_MANAGER_ROLE, tokenLauncher);
        _grantRole(DEFAULT_ADMIN_ROLE, address1);
        _grantRole(FEE_MANAGER_ROLE, address1);
        
        BLAST = IBlast(0x4300000000000000000000000000000000000002); // blast-testnet & mainnet
        BLAST.configureClaimableYield();
        BLAST.configureClaimableGas();
        // IBlastPoints(0x2fc95838c71e76ec69ff817983BFf17c710F34E0).configurePointsOperator(0x4453bCe884bDd271eb92C62337604590242227b0); // blast-testnet
        IBlastPoints(0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800).configurePointsOperator(0x4453bCe884bDd271eb92C62337604590242227b0); // blast-mainnet

        _transferOwnership(0x966000CA7bB508BffBF22d35997D5f40e2126dF7);
    }

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

    function addExchangePool(address pool) external onlyRole(FEE_MANAGER_ROLE) {
        require(pool != address(0), "BlastHoge: address cannot be empty");
        _exchangePools.add(pool);
        emit ExchangePoolAdded(pool);
    }

    function addExemptAddress(address account) external onlyRole(FEE_MANAGER_ROLE) {
        _exemptedFromTax.add(account);
        emit ExemptedAdded(account);
    }

    function updateFees(ITokenLauncherERC20.Fees memory _fees) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (isReflectionToken) {
            require(_fees.reflection.percentage > 0, "BlastHoge: reflection percentage must be non-zero");
        } else {
            require(_fees.reflection.percentage == 0, "BlastHoge: reflection percentage must be zero");
        }
        uint256 maxFee = _fees.transferFee.percentage + _fees.burn.percentage + _fees.reflection.percentage + _fees.buyback.percentage;
        require(maxFee <= MULTIPLIER_BASIS, "BlastHoge: fees sum must be less than 100%");
        fees = _fees;
    }

    function isExemptedFromTax(address account) external view returns (bool) {
        return _exemptedFromTax.contains(account);
    }

    function isExchangePool(address pool) external view returns (bool) {
        return _exchangePools.contains(pool);
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (isReflectionToken) {
            return _balanceOfReflection(account);
        }
        return super.balanceOf(account);
    }

    function totalSupply() public view override returns (uint256) {
        if (isReflectionToken) {
            return totalReflection.t;
        }
        return super.totalSupply();
    }

    /// @dev functions for Reflection

    function isExcludedFromReflectionRewards(address account) public view returns (bool) {
        return _isExcludedFromReflectionRewards[account] || account == address(this);
    }

    function reflect(uint256 tAmount) external onlyReflection {
        address sender = _msgSender();
        require(!isExcludedFromReflectionRewards(sender), "Excluded addresses cannot call this function");
        (uint256 rAmount, , , , ) = _getValues(tAmount, tAmount, false, true);
        _rOwned[sender] = _rOwned[sender] - rAmount;
        totalReflection.r = totalReflection.r - rAmount;
        totalReflection.tFee = totalReflection.tFee + tAmount;
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) {
        require(tAmount <= totalReflection.t, "Amount must be less than supply");
        if (!deductTransferFee) {
            (uint256 rAmount, , , , ) = _getValues(tAmount, tAmount, false, true);
            return rAmount;
        } else {
            (, uint256 rTransferAmount, , , ) = _getValues(tAmount, tAmount, false, true);
            return rTransferAmount;
        }
    }

    function tokenFromReflection(uint256 rAmount) public view returns (uint256) {
        require(rAmount <= totalReflection.r, "Amount must be less than total reflections");
        uint256 currentRate = _getRate();
        return rAmount / currentRate;
    }

    function excludeAccount(address account) external onlyReflection onlyFromAdminOrLauncher {
        require(!isExcludedFromReflectionRewards(account), "Account is already excluded");
        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcludedFromReflectionRewards[account] = true;
        _excluded.push(account);
    }

    function includeAccount(address account) external onlyReflection onlyFromAdminOrLauncher {
        require(isExcludedFromReflectionRewards(account), "Account is already included");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                uint256 currentRate = _getRate();
                totalReflection.r = totalReflection.r - _rOwned[account];
                _rOwned[account] = _tOwned[account] * currentRate;
                _tOwned[account] = 0;
                totalReflection.r = totalReflection.r + _rOwned[account];

                _isExcludedFromReflectionRewards[account] = false;
                _excluded[i] = _excluded[_excluded.length - 1];
                _excluded.pop();
                break;
            }
        }
    }

    function totalFees() public view returns (uint256) {
        return totalReflection.tFee;
    }

    function _balanceOfReflection(address account) private view returns (uint256) {
        if (isExcludedFromReflectionRewards(account)) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

    function _transferStandard(
        address sender,
        address recipient,
        // solhint-disable-next-line
        uint256 tAmount,
        // solhint-disable-next-line
        uint256 tTransferAmount,
        uint256 rAmount,
        uint256 rTransferAmount,
        bool shouldReflectFee
    ) private {
        _rOwned[sender] = _rOwned[sender] - rAmount;
        if (shouldReflectFee) {
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
        } else {
            _rOwned[recipient] = _rOwned[recipient] + rAmount;
        }
    }

    function _transferToExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        uint256 tTransferAmount,
        uint256 rAmount,
        uint256 rTransferAmount,
        bool shouldReflectFee
    ) private {
        _rOwned[sender] = _rOwned[sender] - rAmount;
        if (shouldReflectFee) {
            _tOwned[recipient] = _tOwned[recipient] + tTransferAmount;
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
        } else {
            _tOwned[recipient] = _tOwned[recipient] + tAmount;
            _rOwned[recipient] = _rOwned[recipient] + rAmount;
        }
    }

    function _transferFromExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        // solhint-disable-next-line
        uint256 tTransferAmount,
        uint256 rAmount,
        uint256 rTransferAmount,
        bool shouldReflectFee
    ) private {
        _tOwned[sender] = _tOwned[sender] - tAmount;
        _rOwned[sender] = _rOwned[sender] - rAmount;
        if (shouldReflectFee) {
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
        } else {
            _rOwned[recipient] = _rOwned[recipient] + rAmount;
        }
    }

    function _transferBothExcluded(
        address sender,
        address recipient,
        uint256 tAmount,
        uint256 tTransferAmount,
        uint256 rAmount,
        uint256 rTransferAmount,
        bool shouldReflectFee
    ) private {
        _tOwned[sender] = _tOwned[sender] - tAmount;
        _rOwned[sender] = _rOwned[sender] - rAmount;
        if (shouldReflectFee) {
            _tOwned[recipient] = _tOwned[recipient] + tTransferAmount;
            _rOwned[recipient] = _rOwned[recipient] + rTransferAmount;
        } else {
            _tOwned[recipient] = _tOwned[recipient] + tAmount;
            _rOwned[recipient] = _rOwned[recipient] + rAmount;
        }
    }

    function _reflectFee(uint256 rFee, uint256 tFee) private {
        totalReflection.r = totalReflection.r - rFee;
        totalReflection.tFee = totalReflection.tFee + tFee;
    }

    function _getValues(
        uint256 tAmount,
        uint256 tAmountOriginal,
        bool isSwap,
        bool shouldReflectFee
    ) private view returns (uint256, uint256, uint256, uint256, uint256) {
        (uint256 tTransferAmount, uint256 tFee) = _getTValues(tAmount, tAmountOriginal, isSwap, shouldReflectFee);

        uint256 currentRate = _getRate();
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, currentRate);
        return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee);
    }

    function _getTValues(uint256 tAmount, uint256 tAmountOriginal, bool isSwap, bool shouldReflectFee) private view returns (uint256, uint256) {
        bool shouldReflect = (!fees.reflection.onlyOnSwaps || isSwap);
        if (!shouldReflect || !shouldReflectFee) return (tAmount, 0);
        uint256 tFee = (tAmountOriginal * fees.reflection.percentage) / MULTIPLIER_BASIS;
        uint256 tTransferAmount = tAmount - tFee;
        return (tTransferAmount, tFee);
    }

    function _getRValues(uint256 tAmount, uint256 tFee, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
        uint256 rAmount = tAmount * currentRate;
        uint256 rFee = tFee * currentRate;
        uint256 rTransferAmount = rAmount - rFee;
        return (rAmount, rTransferAmount, rFee);
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply / tSupply;
    }

    function _getCurrentSupply() private view returns (uint256, uint256) {
        uint256 rSupply = totalReflection.r;
        uint256 tSupply = totalReflection.t;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (totalReflection.r, totalReflection.t);
            rSupply = rSupply - _rOwned[_excluded[i]];
            tSupply = tSupply - _tOwned[_excluded[i]];
        }
        if (rSupply < totalReflection.r / totalReflection.t) return (totalReflection.r, totalReflection.t);
        return (rSupply, tSupply);
    }

    function removeExchangePool(address pool) external onlyRole(FEE_MANAGER_ROLE) {
        _exchangePools.remove(pool);
        emit ExchangePoolRemoved(pool);
    }

    function removeExemptAddress(address account) external onlyRole(FEE_MANAGER_ROLE) {
        _exemptedFromTax.remove(account);
        emit ExemptedRemoved(account);
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual override {
        bool isSwap = _isSwap(sender, recipient);
        bool exemptedFromTax = _isExemptedFromTax(sender, recipient);
        uint256 originalAmount = amount;
        if (fees.transferFee.percentage > 0 && (!fees.transferFee.onlyOnSwaps || isSwap) && !exemptedFromTax) {
            uint256 transferFee = (originalAmount * fees.transferFee.percentage) / MULTIPLIER_BASIS;
            _transferInternal(sender, treasury, transferFee, originalAmount, false);
            amount -= transferFee;
            emit TransferTax(sender, treasury, transferFee, "transferFee");
        }
        if (fees.burn.percentage > 0 && (!fees.burn.onlyOnSwaps || isSwap) && !exemptedFromTax) {
            uint256 burnFee = (originalAmount * fees.burn.percentage) / MULTIPLIER_BASIS;
            _transferInternal(sender, BURN_ADDRESS, burnFee, originalAmount, false);
            amount -= burnFee;
            emit TransferTax(sender, BURN_ADDRESS, burnFee, "burnFee");
        }
        if (fees.buyback.percentage > 0 && (!fees.buyback.onlyOnSwaps || isSwap) && !exemptedFromTax) {
            uint256 buybackFee = (originalAmount * fees.buyback.percentage) / MULTIPLIER_BASIS;
            _transferInternal(sender, buybackHandler, buybackFee, originalAmount, false);
            
            amount -= buybackFee;
            emit TransferTax(sender, buybackHandler, buybackFee, "buybackFee");
        }

        _transferInternal(sender, recipient, amount, amount, true);
    }

    function _transferReflection(address sender, address recipient, uint256 tAmount, uint256 tAmountOriginal, bool shouldReflectFee) private {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(tAmount > 0, "Transfer amount must be greater than zero");
        bool isSwap = _isSwap(sender, recipient);
        
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee) = _getValues(
            tAmount,
            tAmountOriginal,
            isSwap,
            shouldReflectFee
        );

        if (isExcludedFromReflectionRewards(sender) && !isExcludedFromReflectionRewards(recipient)) {
            _transferFromExcluded(sender, recipient, tAmount, tTransferAmount, rAmount, rTransferAmount, shouldReflectFee);
        } else if (!isExcludedFromReflectionRewards(sender) && isExcludedFromReflectionRewards(recipient)) {
            _transferToExcluded(sender, recipient, tAmount, tTransferAmount, rAmount, rTransferAmount, shouldReflectFee);
        } else if (!isExcludedFromReflectionRewards(sender) && !isExcludedFromReflectionRewards(recipient)) {
            _transferStandard(sender, recipient, tAmount, tTransferAmount, rAmount, rTransferAmount, shouldReflectFee);
        } else if (isExcludedFromReflectionRewards(sender) && isExcludedFromReflectionRewards(recipient)) {
            _transferBothExcluded(sender, recipient, tAmount, tTransferAmount, rAmount, rTransferAmount, shouldReflectFee);
        }

        emit Transfer(sender, recipient, tTransferAmount);

        if (shouldReflectFee) {
            _reflectFee(rFee, tFee);
            emit TransferTax(sender, address(0), tFee, "reflectionFee");
        }
    }

    function _transferInternal(address sender, address recipient, uint256 amount, uint256 originalAmount, bool shouldReflectFee) private {
        if (isReflectionToken) {
            _transferReflection(sender, recipient, amount, originalAmount, shouldReflectFee);
        } else {
            super._transfer(sender, recipient, amount);
        }
    }

    function _isSwap(address sender, address recipient) internal view returns (bool) {
        return _exchangePools.contains(sender) || _exchangePools.contains(recipient);
    }

    function _isExemptedFromTax(address sender, address recipient) internal view returns (bool) {
        return _exemptedFromTax.contains(sender) || _exemptedFromTax.contains(recipient);
    }

    function updateTokenLauncher(address _newTokenLauncher) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _revokeRole(FEE_MANAGER_ROLE, tokenLauncher);
        tokenLauncher = _newTokenLauncher;

        _grantRole(FEE_MANAGER_ROLE, _newTokenLauncher);
        emit TokenLauncherUpdated(_newTokenLauncher);
    }

    modifier onlyFromAdminOrLauncher() {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender) || msg.sender == tokenLauncher, "BlastHoge: must be admin");
        _;
    }

    modifier onlyReflection() {
        require(isReflectionToken, "BlastHoge: reflection not enabled");
        _;
    }
    
    function claimYield(address recipient, uint256 amount) external onlyRole(DEFAULT_ADMIN_ROLE) {
        BLAST.claimYield(address(this), recipient, amount);
    }

    function claimAllYield(address recipient) external onlyRole(DEFAULT_ADMIN_ROLE) {
        BLAST.claimAllYield(address(this), recipient);
    }

    function claimMyContractsGas() external onlyRole(DEFAULT_ADMIN_ROLE) {
        BLAST.claimAllGas(address(this), msg.sender);
    }

    function claimMyContractsGasMax() external onlyRole(DEFAULT_ADMIN_ROLE) {
        BLAST.claimMaxGas(address(this), msg.sender);
    }
    
    function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
        address payable ownerAddress = payable(msg.sender);
        ownerAddress.transfer(address(this).balance);
    }

    function setAdminRole(address t) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _grantRole(DEFAULT_ADMIN_ROLE, t);
    }
    
    function setFeeManageRole(address t) external onlyRole(DEFAULT_ADMIN_ROLE) {        
        _grantRole(FEE_MANAGER_ROLE, t);
    }
}

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 25 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 4 of 25 : 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 5 of 25 : 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 6 of 25 : 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 7 of 25 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 8 of 25 : 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 9 of 25 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 10 of 25 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 25 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 12 of 25 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 13 of 25 : 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 14 of 25 : 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 15 of 25 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 16 of 25 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 17 of 25 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 18 of 25 : IBlast.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for Blast predeploy

pragma solidity >=0.8.0;

enum YieldMode {
    AUTOMATIC,
    VOID,
    CLAIMABLE
}

enum GasMode {
    VOID,
    CLAIMABLE
}

interface IBlast {
    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips)
        external
        returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume)
        external
        returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress)
        external
        view
        returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 19 of 25 : IBlastPoints.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.8.0;

interface IBlastPoints {
    function configurePointsOperator(address operator) external;
    function configurePointsOperatorOnBehalf(address contractAddress, address operator) external;
}

File 20 of 25 : IBuyBackHandler.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import { ITokenLauncherLiquidityPoolFactory } from "./ITokenLauncherLiquidityPoolFactory.sol";

interface IBuyBackHandler {
    // solhint-disable-next-line
    function BUYBACK_CALLER_ROLE() external view returns (bytes32);

    function buyback(address treasury, ITokenLauncherLiquidityPoolFactory.BuyBackDetails memory buybackDetails) external;

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;
}

File 21 of 25 : ITokenLauncherCommon.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface ITokenLauncherCommon {
    enum TokenType {
        ERC20,
        ERC721,
        ERC1155
    }

    enum PaymentMethod {
        NATIVE,
        USD,
        FLOKI
    }
}

File 22 of 25 : ITokenLauncherERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import { ITokenLauncherCommon } from "./ITokenLauncherCommon.sol";

interface ITokenLauncherERC20 is ITokenLauncherCommon {
    struct FeeDetails {
        uint256 percentage;
        bool onlyOnSwaps;
    }

    struct Fees {
        FeeDetails transferFee;
        FeeDetails burn;
        FeeDetails reflection;
        FeeDetails buyback;
    }

    struct CreateErc20Input {
        string name;
        string symbol;
        string logo;
        uint8 decimals;
        uint256 initialSupply;
        uint256 maxSupply;
        address treasury;
        address owner;
        address referrer;
        address tokenStore;
        Fees fees;
        address buybackHandler;
        PaymentMethod paymentMethod;
    }

    function tokenLauncherStore() external returns (address);

    function liquidityPoolFactory() external returns (address);

    function buybackHandler() external returns (address);

    function createErc20(CreateErc20Input memory input) external payable;
}

File 23 of 25 : ITokenLauncherLiquidityPoolFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

interface ITokenLauncherLiquidityPoolFactory {
    struct LiquidityPoolDetails {
        address sourceToken;
        address pairedToken;
        uint256 amountSourceToken;
        uint256 amountPairedToken;
        address routerAddress;
    }

    struct LockLPDetails {
        uint256 lockLPTokenPercentage;
        uint256 unlockTimestamp;
        address beneficiary;
        bool isVesting;
    }

    struct BuyBackDetails {
        address pairToken;
        address router;
        uint256 liquidityBasisPoints;
        uint256 priceImpactBasisPoints;
    }

    struct CreateV2Input {
        address owner;
        address treasury;
        LiquidityPoolDetails liquidityPoolDetails;
        LockLPDetails lockLPDetails;
        BuyBackDetails buybackDetails;
    }

    struct CreateV2Output {
        address liquidityPoolToken;
        uint256 liquidity;
    }

    function createV2LiquidityPool(CreateV2Input memory input) external payable returns (CreateV2Output memory);
}

File 24 of 25 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"}],"name":"ExchangePoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"}],"name":"ExchangePoolRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExemptedAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExemptedRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTokenLauncher","type":"address"}],"name":"TokenLauncherUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"string","name":"taxType","type":"string"}],"name":"TransferTax","type":"event"},{"inputs":[],"name":"BLAST","outputs":[{"internalType":"contract IBlast","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER_BASIS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"addExchangePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addExemptAddress","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":[],"name":"buybackHandler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"claimAllYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMyContractsGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMyContractsGasMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimYield","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":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fees","outputs":[{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"transferFee","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"burn","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"reflection","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"buyback","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"isExchangePool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReflectionRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExemptedFromTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isReflectionToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"logo","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","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":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"reflect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"removeExchangePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeExemptAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t","type":"address"}],"name":"setAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t","type":"address"}],"name":"setFeeManageRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenLauncher","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReflection","outputs":[{"internalType":"uint256","name":"t","type":"uint256"},{"internalType":"uint256","name":"r","type":"uint256"},{"internalType":"uint256","name":"tFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"transferFee","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"burn","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"reflection","type":"tuple"},{"components":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"bool","name":"onlyOnSwaps","type":"bool"}],"internalType":"struct ITokenLauncherERC20.FeeDetails","name":"buyback","type":"tuple"}],"internalType":"struct ITokenLauncherERC20.Fees","name":"_fees","type":"tuple"}],"name":"updateFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokenLauncher","type":"address"}],"name":"updateTokenLauncher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405180604001604052806009815260200168426c617374486f676560b81b8152506040518060400160405280600581526020016424484f474560d81b81525081600390816200006391906200082d565b5060046200007282826200082d565b5050506200008f620000896200056560201b60201c565b62000569565b600880546001600160a01b03191673966000ca7bb508bffbf22d35997d5f40e2126df79081179091556c0c9f2c9cd04674edea400000006009556040805160808101909152604980825262003c356020830139600a90620000f190826200082d565b5060148054600960a91b60ff60a81b199091161790556040805160c081018252600060808201818152600160a08401819052908352835180850185526064815260208181018390528085019182528551808701875260c8815280820184905285870190815286518088019097529386528581019283526060850186905293518051600b55840151600c805491151560ff1992831617905590518051600d55840151600e805491151591831691909117905591518051600f8190559301516010805491151591841691909117905592516011559151601280549115159190931617909155601380546001600160a01b0319163317905560095490156200032857600081116200026c5760405162461bcd60e51b815260206004820152603b60248201527f426c617374486f67652e636f6e7374727563746f723a20696e697469616c537560448201527f70706c79206d7573742062652067726561746572207468616e2030000000000060648201526084015b60405180910390fd5b806200027c600260001962000925565b6200028891906200093c565b62000297600260001962000925565b620002a3919062000953565b601e819055600880546001600160a01b03908116600090815260196020908152604080832095909555601d869055835483168252601a90528381208590556014805460ff60a01b1916600160a01b1790559154925192169160008051602062003c7e833981519152906200031a9085815260200190565b60405180910390a362000340565b60085462000340906001600160a01b031682620005bb565b60135462000366906015906001600160a01b03166200066e602090811b62001a3317901c565b50601480546001600160a01b031916339081179091556200038a906000906200068e565b601454620003b29060008051602062003c15833981519152906001600160a01b03166200068e565b620003bf6000836200068e565b620003da60008051602062003c15833981519152836200068e565b600780546001600160a01b0319167343000000000000000000000000000000000000029081179091556040805163784c3b3d60e11b8152905163f098767a9160048082019260009290919082900301818387803b1580156200043b57600080fd5b505af115801562000450573d6000803e3d6000fd5b50505050600760009054906101000a90046001600160a01b03166001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620004a557600080fd5b505af1158015620004ba573d6000803e3d6000fd5b50506040516336b91f2b60e01b8152734453bce884bdd271eb92c62337604590242227b06004820152732536fe9ab3f511540f2f9e2ec2a805005c3dd80092506336b91f2b9150602401600060405180830381600087803b1580156200051f57600080fd5b505af115801562000534573d6000803e3d6000fd5b505050506200055d73966000ca7bb508bffbf22d35997d5f40e2126df76200056960201b60201c565b50506200097f565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620006135760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000263565b806002600082825462000627919062000969565b90915550506001600160a01b0382166000818152602081815260408083208054860190555184815260008051602062003c7e833981519152910160405180910390a35b5050565b600062000685836001600160a01b03841662000737565b90505b92915050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff166200066a5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006ee3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b505050565b6000818152600183016020526040812054620007805750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000688565b50600062000688565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620007b457607f821691505b602082108103620007d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200073257600081815260208120601f850160051c81016020861015620008045750805b601f850160051c820191505b81811015620008255782815560010162000810565b505050505050565b81516001600160401b0381111562000849576200084962000789565b62000861816200085a84546200079f565b84620007db565b602080601f831160018114620008995760008415620008805750858301515b600019600386901b1c1916600185901b17855562000825565b600085815260208120601f198616915b82811015620008ca57888601518255948401946001909101908401620008a9565b5085821015620008e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082620009375762000937620008f9565b500490565b6000826200094e576200094e620008f9565b500690565b818103818111156200068857620006886200090f565b808201808211156200068857620006886200090f565b613286806200098f6000396000f3fe608060405234801561001057600080fd5b50600436106103785760003560e01c8063715018a6116101d3578063af7c13e311610104578063d5abeb01116100a2578063f2fde38b1161007c578063f2fde38b1461080f578063f84354f114610822578063fb7f21eb14610835578063fccc28131461083d57600080fd5b8063d5abeb01146107e0578063dd62ed3e146107e9578063f2cc0c18146107fc57600080fd5b8063c2510346116100de578063c25103461461079f578063c2d94aec146107b2578063d49d5181146107c5578063d547741f146107cd57600080fd5b8063af7c13e314610771578063b6044b6814610779578063bc02a1081461078c57600080fd5b806395d89b41116101715780639af1d35a1161014b5780639af1d35a14610679578063a217fddf14610743578063a457c2d71461074b578063a9059cbb1461075e57600080fd5b806395d89b411461064a57806397d7577614610652578063997d0feb1461066557600080fd5b80637b1c359c116101ad5780637b1c359c146106005780638b4dd060146106135780638da5cb5b1461062657806391d148541461063757600080fd5b8063715018a6146105dd57806377d5d2dc146105e5578063795c7ebe146105ed57600080fd5b80632d838119116102ad57806340a8d39f1161024b57806358dc10f21161022557806358dc10f2146105915780636078c0f9146105a457806361d027b3146105b757806370a08231146105ca57600080fd5b806340a8d39f146105625780634549b0391461056b5780634adc7cfd1461057e57600080fd5b806336568abe1161028757806336568abe14610521578063386ad96c1461053457806339509351146105475780633ccfd60b1461055a57600080fd5b80632d838119146104dc5780632f2ff15d146104ef578063313ce5671461050257600080fd5b806318160ddd1161031a57806322849720116102f4578063228497201461046657806322aafef21461049357806323b872dd146104a6578063248a9ca3146104b957600080fd5b806318160ddd146104385780631869ebda1461044057806318f60b691461045357600080fd5b806306fdde031161035657806306fdde03146103dd578063095ea7b3146103f257806311c565df1461040557806313114a9d1461043057600080fd5b806301ffc9a71461037d578063053ab182146103a557806305db2f41146103ba575b600080fd5b61039061038b366004612ce3565b610846565b60405190151581526020015b60405180910390f35b6103b86103b3366004612d0d565b61087d565b005b6103cf60008051602061321183398151915281565b60405190815260200161039c565b6103e5610996565b60405161039c9190612d4a565b610390610400366004612d99565b610a28565b601354610418906001600160a01b031681565b6040516001600160a01b03909116815260200161039c565b601f546103cf565b6103cf610a40565b6103b861044e366004612d99565b610a63565b610390610461366004612dc3565b610af1565b601d54601e54601f5461047892919083565b6040805193845260208401929092529082015260600161039c565b6103906104a1366004612dc3565b610afe565b6103906104b4366004612dde565b610b0b565b6103cf6104c7366004612d0d565b60009081526005602052604090206001015490565b6103cf6104ea366004612d0d565b610b2f565b6103b86104fd366004612e1a565b610bb4565b601454600160a81b900460ff1660405160ff909116815260200161039c565b6103b861052f366004612e1a565b610bde565b6103b8610542366004612dc3565b610c5c565b610390610555366004612d99565b610c7f565b6103b8610ca1565b6103cf61271081565b6103cf610579366004612e56565b610cda565b6103b861058c366004612dc3565b610d70565b601454610418906001600160a01b031681565b6103b86105b2366004612dc3565b610d86565b600854610418906001600160a01b031681565b6103cf6105d8366004612dc3565b610de2565b6103b8610e1e565b6103b8610e32565b6103b86105fb366004612ef4565b610eb2565b6103b861060e366004612dc3565b6110bc565b610390610621366004612dc3565b611118565b6006546001600160a01b0316610418565b610390610645366004612e1a565b61114c565b6103e5611177565b600754610418906001600160a01b031681565b60145461039090600160a01b900460ff1681565b604080518082018252600b548152600c5460ff908116151560208084019190915283518085018552600d548152600e54831615158183015284518086018652600f5481526010548416151581840152855180870190965260115486526012549093161515918501919091526106ee9390919084565b604080518551815260209586015115158682015284519181019190915292840151151560608401528151608084015290830151151560a0830152805160c083015290910151151560e08201526101000161039c565b6103cf600081565b610390610759366004612d99565b611186565b61039061076c366004612d99565b611201565b6103b861120f565b6103b8610787366004612dc3565b611250565b6103b861079a366004612dc3565b61130d565b6103b86107ad366004612dc3565b6113a8565b6103b86107c0366004612dc3565b611404565b6103cf611485565b6103b86107db366004612e1a565b611495565b6103cf60095481565b6103cf6107f7366004612f84565b6114ba565b6103b861080a366004612dc3565b6114e5565b6103b861081d366004612dc3565b61168b565b6103b8610830366004612dc3565b611704565b6103e56119a5565b61041861dead81565b60006001600160e01b03198216637965db0b60e01b148061087757506301ffc9a760e01b6001600160e01b03198316145b92915050565b601454600160a01b900460ff166108af5760405162461bcd60e51b81526004016108a690612fae565b60405180910390fd5b336108b981611118565b1561091b5760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016108a6565b600061092b838460006001611a48565b5050506001600160a01b03841660009081526019602052604090205491925061095691839150613005565b6001600160a01b038316600090815260196020526040902055601e5461097d908290613005565b601e55601f5461098e908490613018565b601f55505050565b6060600380546109a59061302b565b80601f01602080910402602001604051908101604052809291908181526020018280546109d19061302b565b8015610a1e5780601f106109f357610100808354040283529160200191610a1e565b820191906000526020600020905b815481529060010190602001808311610a0157829003601f168201915b5050505050905090565b600033610a36818585611a9b565b5060019392505050565b601454600090600160a01b900460ff1615610a5c5750601d5490565b5060025490565b6000610a6e81611bbf565b600754604051637cb8cb3160e11b81523060048201526001600160a01b038581166024830152604482018590529091169063f9719662906064016020604051808303816000875af1158015610ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aeb9190613065565b50505050565b6000610877601783611bc9565b6000610877601583611bc9565b600033610b19858285611beb565b610b24858585611c5f565b506001949350505050565b601e54600090821115610b975760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016108a6565b6000610ba1611ed4565b9050610bad818461307e565b9392505050565b600082815260056020526040902060010154610bcf81611bbf565b610bd98383611ef7565b505050565b6001600160a01b0381163314610c4e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108a6565b610c588282611f7d565b5050565b6000610c6781611bbf565b610c5860008051602061321183398151915283611ef7565b600033610a36818585610c9283836114ba565b610c9c9190613018565b611a9b565b6000610cac81611bbf565b604051339081904780156108fc02916000818181858888f19350505050158015610bd9573d6000803e3d6000fd5b601d54600090831115610d2f5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016108a6565b81610d52576000610d44848560006001611a48565b509294506108779350505050565b6000610d62848560006001611a48565b509194506108779350505050565b6000610d7b81611bbf565b610c58600083611ef7565b600080516020613211833981519152610d9e81611bbf565b610da9601583611a33565b506040516001600160a01b038316907f1a8d12c6c584c93207352b4fb4b4a1d352b1d54b5879f90a7a31ca8a70bcfed290600090a25050565b601454600090600160a01b900460ff1615610e005761087782611fe4565b6001600160a01b038216600090815260208190526040902054610877565b610e26612032565b610e30600061208c565b565b6000610e3d81611bbf565b600754604051634aa7d2f760e11b81523060048201523360248201526001600160a01b039091169063954fa5ee906044015b6020604051808303816000875af1158015610e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190613065565b6000610ebd81611bbf565b601454600160a01b900460ff1615610f4057604082015151610f3b5760405162461bcd60e51b815260206004820152603160248201527f426c617374486f67653a207265666c656374696f6e2070657263656e74616765604482015270206d757374206265206e6f6e2d7a65726f60781b60648201526084016108a6565b610fa9565b60408201515115610fa95760405162461bcd60e51b815260206004820152602d60248201527f426c617374486f67653a207265666c656374696f6e2070657263656e7461676560448201526c206d757374206265207a65726f60981b60648201526084016108a6565b6060820151516040830151516020840151518451516000939291610fcc91613018565b610fd69190613018565b610fe09190613018565b90506127108111156110475760405162461bcd60e51b815260206004820152602a60248201527f426c617374486f67653a20666565732073756d206d757374206265206c657373604482015269207468616e203130302560b01b60648201526084016108a6565b505080518051600b55602090810151600c805491151560ff19928316179055818301518051600d55820151600e805491151591831691909117905560408301518051600f5582015160108054911515918316919091179055606090920151805160115501516012805491151591909216179055565b6000805160206132118339815191526110d481611bbf565b6110df6015836120de565b506040516001600160a01b038316907ffaaeeffad2a7c67db50de0c0861de690ae617c059e77b13b96ee1bfea1463e8790600090a25050565b6001600160a01b0381166000908152601b602052604081205460ff168061087757506001600160a01b038216301492915050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109a59061302b565b6000338161119482866114ba565b9050838110156111f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108a6565b610b248286868403611a9b565b600033610a36818585611c5f565b600061121a81611bbf565b60075460405163662aa11d60e01b81523060048201523360248201526001600160a01b039091169063662aa11d90604401610e6f565b60008051602061321183398151915261126881611bbf565b6001600160a01b0382166112c95760405162461bcd60e51b815260206004820152602260248201527f426c617374486f67653a20616464726573732063616e6e6f7420626520656d70604482015261747960f01b60648201526084016108a6565b6112d4601783611a33565b506040516001600160a01b038316907f1caec4f1ef0e654f520edf2d95d3d035ea6382500dbdd179d37017442e53528490600090a25050565b600061131881611bbf565b60145461133d90600080516020613211833981519152906001600160a01b0316611f7d565b601480546001600160a01b0319166001600160a01b03841617905561137060008051602061321183398151915283611ef7565b6040516001600160a01b038316907fdba835207229fba1418844b6c6462472e5f6db972a6e9a8d0b7ebf6c7326da4d90600090a25050565b6000805160206132118339815191526113c081611bbf565b6113cb6017836120de565b506040516001600160a01b038316907f3186e21fde26faa448666270e7a0d53c887d8f040950e4330a2b622e34ed6f4490600090a25050565b600061140f81611bbf565b60075460405163430021db60e11b81523060048201526001600160a01b0384811660248301529091169063860043b6906044016020604051808303816000875af1158015611461573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd99190613065565b611492600260001961307e565b81565b6000828152600560205260409020600101546114b081611bbf565b610bd98383611f7d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601454600160a01b900460ff1661150e5760405162461bcd60e51b81526004016108a690612fae565b61151960003361114c565b8061152e57506014546001600160a01b031633145b6115755760405162461bcd60e51b8152602060048201526018602482015277213630b9ba2437b3b29d1036bab9ba1031329030b236b4b760411b60448201526064016108a6565b61157e81611118565b156115cb5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016108a6565b6001600160a01b03811660009081526019602052604090205415611625576001600160a01b03811660009081526019602052604090205461160b90610b2f565b6001600160a01b0382166000908152601a60205260409020555b6001600160a01b03166000818152601b60205260408120805460ff19166001908117909155601c805491820181559091527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2110180546001600160a01b0319169091179055565b611693612032565b6001600160a01b0381166116f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a6565b6117018161208c565b50565b601454600160a01b900460ff1661172d5760405162461bcd60e51b81526004016108a690612fae565b61173860003361114c565b8061174d57506014546001600160a01b031633145b6117945760405162461bcd60e51b8152602060048201526018602482015277213630b9ba2437b3b29d1036bab9ba1031329030b236b4b760411b60448201526064016108a6565b61179d81611118565b6117e95760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c75646564000000000060448201526064016108a6565b60005b601c54811015610c5857816001600160a01b0316601c8281548110611813576118136130a0565b6000918252602090912001546001600160a01b031603611993576000611837611ed4565b6001600160a01b038416600090815260196020526040902054601e5491925061185f91613005565b601e556001600160a01b0383166000908152601a60205260409020546118869082906130b6565b6001600160a01b0384166000908152601960208181526040808420948555601a8252832092909255905254601e546118be9190613018565b601e556001600160a01b0383166000908152601b60205260409020805460ff19169055601c80546118f190600190613005565b81548110611901576119016130a0565b600091825260209091200154601c80546001600160a01b03909216918490811061192d5761192d6130a0565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601c80548061196c5761196c6130cd565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b8061199d816130e3565b9150506117ec565b600a80546119b29061302b565b80601f01602080910402602001604051908101604052809291908181526020018280546119de9061302b565b8015611a2b5780601f10611a0057610100808354040283529160200191611a2b565b820191906000526020600020905b815481529060010190602001808311611a0e57829003601f168201915b505050505081565b6000610bad836001600160a01b0384166120f3565b6000806000806000806000611a5f8b8b8b8b612142565b915091506000611a6d611ed4565b90506000806000611a7f8f86866121b4565b919c509a50985094965092945050505050945094509450945094565b6001600160a01b038316611afd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108a6565b6001600160a01b038216611b5e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b61170181336121f0565b6001600160a01b03811660009081526001830160205260408120541515610bad565b6000611bf784846114ba565b90506000198114610aeb5781811015611c525760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108a6565b610aeb8484848403611a9b565b6000611c6b8484612249565b90506000611c798585612267565b600b54909150839015801590611c995750600c5460ff161580611c995750825b8015611ca3575081155b15611d4557600b5460009061271090611cbc90846130b6565b611cc6919061307e565b600854909150611ce49088906001600160a01b031683856000612285565b611cee8186613005565b6040516a7472616e7366657246656560a81b8152909550600b0160405190819003812060085483835290916001600160a01b03918216918a16906000805160206132318339815191529060200160405180910390a4505b600d5415801590611d605750600e5460ff161580611d605750825b8015611d6a575081155b15611df857600d5460009061271090611d8390846130b6565b611d8d919061307e565b9050611d9f8761dead83856000612285565b611da98186613005565b604051666275726e46656560c81b81529095506007016040519081900381208282529061dead906001600160a01b038a16906000805160206132318339815191529060200160405180910390a4505b60115415801590611e13575060125460ff161580611e135750825b8015611e1d575081155b15611ebe5760115460009061271090611e3690846130b6565b611e40919061307e565b601354909150611e5e9088906001600160a01b031683856000612285565b611e688186613005565b604051696275796261636b46656560b01b8152909550600a0160405190819003812060135483835290916001600160a01b03918216918a16906000805160206132318339815191529060200160405180910390a4505b611ecc868686876001612285565b505050505050565b6000806000611ee16122bb565b9092509050611ef0818361307e565b9250505090565b611f01828261114c565b610c585760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f87828261114c565b15610c585760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611fef82611118565b1561201057506001600160a01b03166000908152601a602052604090205490565b6001600160a01b03821660009081526019602052604090205461087790610b2f565b6006546001600160a01b03163314610e305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610bad836001600160a01b038416612440565b600081815260018301602052604081205461213a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610877565b506000610877565b6010546000908190819060ff1615806121585750845b9050801580612165575083155b156121775786600092509250506121ab565b600f546000906127109061218b90896130b6565b612195919061307e565b905060006121a3828a613005565b945090925050505b94509492505050565b60008080806121c385886130b6565b905060006121d186886130b6565b905060006121df8284613005565b929992985090965090945050505050565b6121fa828261114c565b610c585761220781612533565b612212836020612545565b6040516020016122239291906130fc565b60408051601f198184030181529082905262461bcd60e51b82526108a691600401612d4a565b6000612256601784611bc9565b80610bad5750610bad601783611bc9565b6000612274601584611bc9565b80610bad5750610bad601583611bc9565b601454600160a01b900460ff16156122a9576122a485858585856126e1565b6122b4565b6122b4858585612934565b5050505050565b601e54601d546000918291825b601c5481101561240e578260196000601c84815481106122ea576122ea6130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180612355575081601a6000601c848154811061232e5761232e6130a0565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561236c575050601e54601d549094909350915050565b60196000601c8381548110612383576123836130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020546123b29084613005565b9250601a6000601c83815481106123cb576123cb6130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020546123fa9083613005565b915080612406816130e3565b9150506122c8565b50601d54601e5461241f919061307e565b821015612437575050601e54601d5490939092509050565b90939092509050565b60008181526001830160205260408120548015612529576000612464600183613005565b855490915060009061247890600190613005565b90508181146124dd576000866000018281548110612498576124986130a0565b90600052602060002001549050808760000184815481106124bb576124bb6130a0565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806124ee576124ee6130cd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610877565b6000915050610877565b60606108776001600160a01b03831660145b606060006125548360026130b6565b61255f906002613018565b67ffffffffffffffff81111561257757612577612e79565b6040519080825280601f01601f1916602001820160405280156125a1576020820181803683370190505b509050600360fc1b816000815181106125bc576125bc6130a0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106125eb576125eb6130a0565b60200101906001600160f81b031916908160001a905350600061260f8460026130b6565b61261a906001613018565b90505b6001811115612692576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061264e5761264e6130a0565b1a60f81b828281518110612664576126646130a0565b60200101906001600160f81b031916908160001a90535060049490941c9361268b81613171565b905061261d565b508315610bad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a6565b6001600160a01b0385166127075760405162461bcd60e51b81526004016108a690613188565b6001600160a01b03841661272d5760405162461bcd60e51b81526004016108a6906131cd565b6000831161278f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016108a6565b600061279b8686612249565b905060008060008060006127b18989888a611a48565b945094509450945094506127c48b611118565b80156127d657506127d48a611118565b155b156127ef576127ea8b8b8b8589898d612a5e565b61287a565b6127f88b611118565b15801561280957506128098a611118565b1561281d576127ea8b8b8b8589898d612b5a565b6128268b611118565b15801561283957506128378a611118565b155b1561284d576127ea8b8b8b8589898d612c45565b6128568b611118565b801561286657506128668a611118565b1561287a5761287a8b8b8b8589898d612c69565b896001600160a01b03168b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128bf91815260200190565b60405180910390a38615612927576128d78382612cbd565b6040516c7265666c656374696f6e46656560981b8152600d01604051908190038120828252906000906001600160a01b038e16906000805160206132318339815191529060200160405180910390a45b5050505050505050505050565b6001600160a01b03831661295a5760405162461bcd60e51b81526004016108a690613188565b6001600160a01b0382166129805760405162461bcd60e51b81526004016108a6906131cd565b6001600160a01b038316600090815260208190526040902054818110156129f85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108a6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610aeb565b6001600160a01b0387166000908152601a6020526040902054612a82908690613005565b6001600160a01b0388166000908152601a6020908152604080832093909355601990522054612ab2908490613005565b6001600160a01b0388166000908152601960205260409020558015612b13576001600160a01b038616600090815260196020526040902054612af5908390613018565b6001600160a01b038716600090815260196020526040902055612b51565b6001600160a01b038616600090815260196020526040902054612b37908490613018565b6001600160a01b0387166000908152601960205260409020555b50505050505050565b6001600160a01b038716600090815260196020526040902054612b7e908490613005565b6001600160a01b0388166000908152601960205260409020558015612bf1576001600160a01b0386166000908152601a6020526040902054612bc1908590613018565b6001600160a01b0387166000908152601a6020908152604080832093909355601990522054612af5908390613018565b6001600160a01b0386166000908152601a6020526040902054612c15908690613018565b6001600160a01b0387166000908152601a6020908152604080832093909355601990522054612b37908490613018565b6001600160a01b038716600090815260196020526040902054612ab2908490613005565b6001600160a01b0387166000908152601a6020526040902054612c8d908690613005565b6001600160a01b0388166000908152601a6020908152604080832093909355601990522054612b7e908490613005565b601e54612ccb908390613005565b601e55601f54612cdc908290613018565b601f555050565b600060208284031215612cf557600080fd5b81356001600160e01b031981168114610bad57600080fd5b600060208284031215612d1f57600080fd5b5035919050565b60005b83811015612d41578181015183820152602001612d29565b50506000910152565b6020815260008251806020840152612d69816040850160208701612d26565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612d9457600080fd5b919050565b60008060408385031215612dac57600080fd5b612db583612d7d565b946020939093013593505050565b600060208284031215612dd557600080fd5b610bad82612d7d565b600080600060608486031215612df357600080fd5b612dfc84612d7d565b9250612e0a60208501612d7d565b9150604084013590509250925092565b60008060408385031215612e2d57600080fd5b82359150612e3d60208401612d7d565b90509250929050565b80358015158114612d9457600080fd5b60008060408385031215612e6957600080fd5b82359150612e3d60208401612e46565b634e487b7160e01b600052604160045260246000fd5b600060408284031215612ea157600080fd5b6040516040810181811067ffffffffffffffff82111715612ed257634e487b7160e01b600052604160045260246000fd5b60405282358152905080612ee860208401612e46565b60208201525092915050565b60006101008284031215612f0757600080fd5b6040516080810181811067ffffffffffffffff82111715612f3857634e487b7160e01b600052604160045260246000fd5b604052612f458484612e8f565b8152612f548460408501612e8f565b6020820152612f668460808501612e8f565b6040820152612f788460c08501612e8f565b60608201529392505050565b60008060408385031215612f9757600080fd5b612fa083612d7d565b9150612e3d60208401612d7d565b60208082526021908201527f426c617374486f67653a207265666c656374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561087757610877612fef565b8082018082111561087757610877612fef565b600181811c9082168061303f57607f821691505b60208210810361305f57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561307757600080fd5b5051919050565b60008261309b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761087757610877612fef565b634e487b7160e01b600052603160045260246000fd5b6000600182016130f5576130f5612fef565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613134816017850160208801612d26565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613165816028840160208801612d26565b01602801949350505050565b60008161318057613180612fef565b506000190190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b60608201526080019056fe6c0757dc3e6b28b2580c03fd9e96c274acf4f99d91fbec9b418fa1d70604ff1c2022773e2291f2fc9298b5ad7d60fae5174151fe00b975c5bdbbe737ba1bfc2fa26469706673582212206325d043df98809aac73815d398af11c0feedd0720b2b648bdabfcef91907c4c64736f6c634300081200336c0757dc3e6b28b2580c03fd9e96c274acf4f99d91fbec9b418fa1d70604ff1c697066733a2f2f6261667962656962786e7a776f376b7834757632746e746174786a796762646f346337347765766a7872766267676e7766716f6a737562353571652f302e6a706567ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103785760003560e01c8063715018a6116101d3578063af7c13e311610104578063d5abeb01116100a2578063f2fde38b1161007c578063f2fde38b1461080f578063f84354f114610822578063fb7f21eb14610835578063fccc28131461083d57600080fd5b8063d5abeb01146107e0578063dd62ed3e146107e9578063f2cc0c18146107fc57600080fd5b8063c2510346116100de578063c25103461461079f578063c2d94aec146107b2578063d49d5181146107c5578063d547741f146107cd57600080fd5b8063af7c13e314610771578063b6044b6814610779578063bc02a1081461078c57600080fd5b806395d89b41116101715780639af1d35a1161014b5780639af1d35a14610679578063a217fddf14610743578063a457c2d71461074b578063a9059cbb1461075e57600080fd5b806395d89b411461064a57806397d7577614610652578063997d0feb1461066557600080fd5b80637b1c359c116101ad5780637b1c359c146106005780638b4dd060146106135780638da5cb5b1461062657806391d148541461063757600080fd5b8063715018a6146105dd57806377d5d2dc146105e5578063795c7ebe146105ed57600080fd5b80632d838119116102ad57806340a8d39f1161024b57806358dc10f21161022557806358dc10f2146105915780636078c0f9146105a457806361d027b3146105b757806370a08231146105ca57600080fd5b806340a8d39f146105625780634549b0391461056b5780634adc7cfd1461057e57600080fd5b806336568abe1161028757806336568abe14610521578063386ad96c1461053457806339509351146105475780633ccfd60b1461055a57600080fd5b80632d838119146104dc5780632f2ff15d146104ef578063313ce5671461050257600080fd5b806318160ddd1161031a57806322849720116102f4578063228497201461046657806322aafef21461049357806323b872dd146104a6578063248a9ca3146104b957600080fd5b806318160ddd146104385780631869ebda1461044057806318f60b691461045357600080fd5b806306fdde031161035657806306fdde03146103dd578063095ea7b3146103f257806311c565df1461040557806313114a9d1461043057600080fd5b806301ffc9a71461037d578063053ab182146103a557806305db2f41146103ba575b600080fd5b61039061038b366004612ce3565b610846565b60405190151581526020015b60405180910390f35b6103b86103b3366004612d0d565b61087d565b005b6103cf60008051602061321183398151915281565b60405190815260200161039c565b6103e5610996565b60405161039c9190612d4a565b610390610400366004612d99565b610a28565b601354610418906001600160a01b031681565b6040516001600160a01b03909116815260200161039c565b601f546103cf565b6103cf610a40565b6103b861044e366004612d99565b610a63565b610390610461366004612dc3565b610af1565b601d54601e54601f5461047892919083565b6040805193845260208401929092529082015260600161039c565b6103906104a1366004612dc3565b610afe565b6103906104b4366004612dde565b610b0b565b6103cf6104c7366004612d0d565b60009081526005602052604090206001015490565b6103cf6104ea366004612d0d565b610b2f565b6103b86104fd366004612e1a565b610bb4565b601454600160a81b900460ff1660405160ff909116815260200161039c565b6103b861052f366004612e1a565b610bde565b6103b8610542366004612dc3565b610c5c565b610390610555366004612d99565b610c7f565b6103b8610ca1565b6103cf61271081565b6103cf610579366004612e56565b610cda565b6103b861058c366004612dc3565b610d70565b601454610418906001600160a01b031681565b6103b86105b2366004612dc3565b610d86565b600854610418906001600160a01b031681565b6103cf6105d8366004612dc3565b610de2565b6103b8610e1e565b6103b8610e32565b6103b86105fb366004612ef4565b610eb2565b6103b861060e366004612dc3565b6110bc565b610390610621366004612dc3565b611118565b6006546001600160a01b0316610418565b610390610645366004612e1a565b61114c565b6103e5611177565b600754610418906001600160a01b031681565b60145461039090600160a01b900460ff1681565b604080518082018252600b548152600c5460ff908116151560208084019190915283518085018552600d548152600e54831615158183015284518086018652600f5481526010548416151581840152855180870190965260115486526012549093161515918501919091526106ee9390919084565b604080518551815260209586015115158682015284519181019190915292840151151560608401528151608084015290830151151560a0830152805160c083015290910151151560e08201526101000161039c565b6103cf600081565b610390610759366004612d99565b611186565b61039061076c366004612d99565b611201565b6103b861120f565b6103b8610787366004612dc3565b611250565b6103b861079a366004612dc3565b61130d565b6103b86107ad366004612dc3565b6113a8565b6103b86107c0366004612dc3565b611404565b6103cf611485565b6103b86107db366004612e1a565b611495565b6103cf60095481565b6103cf6107f7366004612f84565b6114ba565b6103b861080a366004612dc3565b6114e5565b6103b861081d366004612dc3565b61168b565b6103b8610830366004612dc3565b611704565b6103e56119a5565b61041861dead81565b60006001600160e01b03198216637965db0b60e01b148061087757506301ffc9a760e01b6001600160e01b03198316145b92915050565b601454600160a01b900460ff166108af5760405162461bcd60e51b81526004016108a690612fae565b60405180910390fd5b336108b981611118565b1561091b5760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b60648201526084016108a6565b600061092b838460006001611a48565b5050506001600160a01b03841660009081526019602052604090205491925061095691839150613005565b6001600160a01b038316600090815260196020526040902055601e5461097d908290613005565b601e55601f5461098e908490613018565b601f55505050565b6060600380546109a59061302b565b80601f01602080910402602001604051908101604052809291908181526020018280546109d19061302b565b8015610a1e5780601f106109f357610100808354040283529160200191610a1e565b820191906000526020600020905b815481529060010190602001808311610a0157829003601f168201915b5050505050905090565b600033610a36818585611a9b565b5060019392505050565b601454600090600160a01b900460ff1615610a5c5750601d5490565b5060025490565b6000610a6e81611bbf565b600754604051637cb8cb3160e11b81523060048201526001600160a01b038581166024830152604482018590529091169063f9719662906064016020604051808303816000875af1158015610ac7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aeb9190613065565b50505050565b6000610877601783611bc9565b6000610877601583611bc9565b600033610b19858285611beb565b610b24858585611c5f565b506001949350505050565b601e54600090821115610b975760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016108a6565b6000610ba1611ed4565b9050610bad818461307e565b9392505050565b600082815260056020526040902060010154610bcf81611bbf565b610bd98383611ef7565b505050565b6001600160a01b0381163314610c4e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108a6565b610c588282611f7d565b5050565b6000610c6781611bbf565b610c5860008051602061321183398151915283611ef7565b600033610a36818585610c9283836114ba565b610c9c9190613018565b611a9b565b6000610cac81611bbf565b604051339081904780156108fc02916000818181858888f19350505050158015610bd9573d6000803e3d6000fd5b601d54600090831115610d2f5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016108a6565b81610d52576000610d44848560006001611a48565b509294506108779350505050565b6000610d62848560006001611a48565b509194506108779350505050565b6000610d7b81611bbf565b610c58600083611ef7565b600080516020613211833981519152610d9e81611bbf565b610da9601583611a33565b506040516001600160a01b038316907f1a8d12c6c584c93207352b4fb4b4a1d352b1d54b5879f90a7a31ca8a70bcfed290600090a25050565b601454600090600160a01b900460ff1615610e005761087782611fe4565b6001600160a01b038216600090815260208190526040902054610877565b610e26612032565b610e30600061208c565b565b6000610e3d81611bbf565b600754604051634aa7d2f760e11b81523060048201523360248201526001600160a01b039091169063954fa5ee906044015b6020604051808303816000875af1158015610e8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190613065565b6000610ebd81611bbf565b601454600160a01b900460ff1615610f4057604082015151610f3b5760405162461bcd60e51b815260206004820152603160248201527f426c617374486f67653a207265666c656374696f6e2070657263656e74616765604482015270206d757374206265206e6f6e2d7a65726f60781b60648201526084016108a6565b610fa9565b60408201515115610fa95760405162461bcd60e51b815260206004820152602d60248201527f426c617374486f67653a207265666c656374696f6e2070657263656e7461676560448201526c206d757374206265207a65726f60981b60648201526084016108a6565b6060820151516040830151516020840151518451516000939291610fcc91613018565b610fd69190613018565b610fe09190613018565b90506127108111156110475760405162461bcd60e51b815260206004820152602a60248201527f426c617374486f67653a20666565732073756d206d757374206265206c657373604482015269207468616e203130302560b01b60648201526084016108a6565b505080518051600b55602090810151600c805491151560ff19928316179055818301518051600d55820151600e805491151591831691909117905560408301518051600f5582015160108054911515918316919091179055606090920151805160115501516012805491151591909216179055565b6000805160206132118339815191526110d481611bbf565b6110df6015836120de565b506040516001600160a01b038316907ffaaeeffad2a7c67db50de0c0861de690ae617c059e77b13b96ee1bfea1463e8790600090a25050565b6001600160a01b0381166000908152601b602052604081205460ff168061087757506001600160a01b038216301492915050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546109a59061302b565b6000338161119482866114ba565b9050838110156111f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108a6565b610b248286868403611a9b565b600033610a36818585611c5f565b600061121a81611bbf565b60075460405163662aa11d60e01b81523060048201523360248201526001600160a01b039091169063662aa11d90604401610e6f565b60008051602061321183398151915261126881611bbf565b6001600160a01b0382166112c95760405162461bcd60e51b815260206004820152602260248201527f426c617374486f67653a20616464726573732063616e6e6f7420626520656d70604482015261747960f01b60648201526084016108a6565b6112d4601783611a33565b506040516001600160a01b038316907f1caec4f1ef0e654f520edf2d95d3d035ea6382500dbdd179d37017442e53528490600090a25050565b600061131881611bbf565b60145461133d90600080516020613211833981519152906001600160a01b0316611f7d565b601480546001600160a01b0319166001600160a01b03841617905561137060008051602061321183398151915283611ef7565b6040516001600160a01b038316907fdba835207229fba1418844b6c6462472e5f6db972a6e9a8d0b7ebf6c7326da4d90600090a25050565b6000805160206132118339815191526113c081611bbf565b6113cb6017836120de565b506040516001600160a01b038316907f3186e21fde26faa448666270e7a0d53c887d8f040950e4330a2b622e34ed6f4490600090a25050565b600061140f81611bbf565b60075460405163430021db60e11b81523060048201526001600160a01b0384811660248301529091169063860043b6906044016020604051808303816000875af1158015611461573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd99190613065565b611492600260001961307e565b81565b6000828152600560205260409020600101546114b081611bbf565b610bd98383611f7d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601454600160a01b900460ff1661150e5760405162461bcd60e51b81526004016108a690612fae565b61151960003361114c565b8061152e57506014546001600160a01b031633145b6115755760405162461bcd60e51b8152602060048201526018602482015277213630b9ba2437b3b29d1036bab9ba1031329030b236b4b760411b60448201526064016108a6565b61157e81611118565b156115cb5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064016108a6565b6001600160a01b03811660009081526019602052604090205415611625576001600160a01b03811660009081526019602052604090205461160b90610b2f565b6001600160a01b0382166000908152601a60205260409020555b6001600160a01b03166000818152601b60205260408120805460ff19166001908117909155601c805491820181559091527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a2110180546001600160a01b0319169091179055565b611693612032565b6001600160a01b0381166116f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a6565b6117018161208c565b50565b601454600160a01b900460ff1661172d5760405162461bcd60e51b81526004016108a690612fae565b61173860003361114c565b8061174d57506014546001600160a01b031633145b6117945760405162461bcd60e51b8152602060048201526018602482015277213630b9ba2437b3b29d1036bab9ba1031329030b236b4b760411b60448201526064016108a6565b61179d81611118565b6117e95760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c75646564000000000060448201526064016108a6565b60005b601c54811015610c5857816001600160a01b0316601c8281548110611813576118136130a0565b6000918252602090912001546001600160a01b031603611993576000611837611ed4565b6001600160a01b038416600090815260196020526040902054601e5491925061185f91613005565b601e556001600160a01b0383166000908152601a60205260409020546118869082906130b6565b6001600160a01b0384166000908152601960208181526040808420948555601a8252832092909255905254601e546118be9190613018565b601e556001600160a01b0383166000908152601b60205260409020805460ff19169055601c80546118f190600190613005565b81548110611901576119016130a0565b600091825260209091200154601c80546001600160a01b03909216918490811061192d5761192d6130a0565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601c80548061196c5761196c6130cd565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b8061199d816130e3565b9150506117ec565b600a80546119b29061302b565b80601f01602080910402602001604051908101604052809291908181526020018280546119de9061302b565b8015611a2b5780601f10611a0057610100808354040283529160200191611a2b565b820191906000526020600020905b815481529060010190602001808311611a0e57829003601f168201915b505050505081565b6000610bad836001600160a01b0384166120f3565b6000806000806000806000611a5f8b8b8b8b612142565b915091506000611a6d611ed4565b90506000806000611a7f8f86866121b4565b919c509a50985094965092945050505050945094509450945094565b6001600160a01b038316611afd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108a6565b6001600160a01b038216611b5e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b61170181336121f0565b6001600160a01b03811660009081526001830160205260408120541515610bad565b6000611bf784846114ba565b90506000198114610aeb5781811015611c525760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108a6565b610aeb8484848403611a9b565b6000611c6b8484612249565b90506000611c798585612267565b600b54909150839015801590611c995750600c5460ff161580611c995750825b8015611ca3575081155b15611d4557600b5460009061271090611cbc90846130b6565b611cc6919061307e565b600854909150611ce49088906001600160a01b031683856000612285565b611cee8186613005565b6040516a7472616e7366657246656560a81b8152909550600b0160405190819003812060085483835290916001600160a01b03918216918a16906000805160206132318339815191529060200160405180910390a4505b600d5415801590611d605750600e5460ff161580611d605750825b8015611d6a575081155b15611df857600d5460009061271090611d8390846130b6565b611d8d919061307e565b9050611d9f8761dead83856000612285565b611da98186613005565b604051666275726e46656560c81b81529095506007016040519081900381208282529061dead906001600160a01b038a16906000805160206132318339815191529060200160405180910390a4505b60115415801590611e13575060125460ff161580611e135750825b8015611e1d575081155b15611ebe5760115460009061271090611e3690846130b6565b611e40919061307e565b601354909150611e5e9088906001600160a01b031683856000612285565b611e688186613005565b604051696275796261636b46656560b01b8152909550600a0160405190819003812060135483835290916001600160a01b03918216918a16906000805160206132318339815191529060200160405180910390a4505b611ecc868686876001612285565b505050505050565b6000806000611ee16122bb565b9092509050611ef0818361307e565b9250505090565b611f01828261114c565b610c585760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f393390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f87828261114c565b15610c585760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611fef82611118565b1561201057506001600160a01b03166000908152601a602052604090205490565b6001600160a01b03821660009081526019602052604090205461087790610b2f565b6006546001600160a01b03163314610e305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610bad836001600160a01b038416612440565b600081815260018301602052604081205461213a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610877565b506000610877565b6010546000908190819060ff1615806121585750845b9050801580612165575083155b156121775786600092509250506121ab565b600f546000906127109061218b90896130b6565b612195919061307e565b905060006121a3828a613005565b945090925050505b94509492505050565b60008080806121c385886130b6565b905060006121d186886130b6565b905060006121df8284613005565b929992985090965090945050505050565b6121fa828261114c565b610c585761220781612533565b612212836020612545565b6040516020016122239291906130fc565b60408051601f198184030181529082905262461bcd60e51b82526108a691600401612d4a565b6000612256601784611bc9565b80610bad5750610bad601783611bc9565b6000612274601584611bc9565b80610bad5750610bad601583611bc9565b601454600160a01b900460ff16156122a9576122a485858585856126e1565b6122b4565b6122b4858585612934565b5050505050565b601e54601d546000918291825b601c5481101561240e578260196000601c84815481106122ea576122ea6130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180612355575081601a6000601c848154811061232e5761232e6130a0565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561236c575050601e54601d549094909350915050565b60196000601c8381548110612383576123836130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020546123b29084613005565b9250601a6000601c83815481106123cb576123cb6130a0565b60009182526020808320909101546001600160a01b031683528201929092526040019020546123fa9083613005565b915080612406816130e3565b9150506122c8565b50601d54601e5461241f919061307e565b821015612437575050601e54601d5490939092509050565b90939092509050565b60008181526001830160205260408120548015612529576000612464600183613005565b855490915060009061247890600190613005565b90508181146124dd576000866000018281548110612498576124986130a0565b90600052602060002001549050808760000184815481106124bb576124bb6130a0565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806124ee576124ee6130cd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610877565b6000915050610877565b60606108776001600160a01b03831660145b606060006125548360026130b6565b61255f906002613018565b67ffffffffffffffff81111561257757612577612e79565b6040519080825280601f01601f1916602001820160405280156125a1576020820181803683370190505b509050600360fc1b816000815181106125bc576125bc6130a0565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106125eb576125eb6130a0565b60200101906001600160f81b031916908160001a905350600061260f8460026130b6565b61261a906001613018565b90505b6001811115612692576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061264e5761264e6130a0565b1a60f81b828281518110612664576126646130a0565b60200101906001600160f81b031916908160001a90535060049490941c9361268b81613171565b905061261d565b508315610bad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a6565b6001600160a01b0385166127075760405162461bcd60e51b81526004016108a690613188565b6001600160a01b03841661272d5760405162461bcd60e51b81526004016108a6906131cd565b6000831161278f5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016108a6565b600061279b8686612249565b905060008060008060006127b18989888a611a48565b945094509450945094506127c48b611118565b80156127d657506127d48a611118565b155b156127ef576127ea8b8b8b8589898d612a5e565b61287a565b6127f88b611118565b15801561280957506128098a611118565b1561281d576127ea8b8b8b8589898d612b5a565b6128268b611118565b15801561283957506128378a611118565b155b1561284d576127ea8b8b8b8589898d612c45565b6128568b611118565b801561286657506128668a611118565b1561287a5761287a8b8b8b8589898d612c69565b896001600160a01b03168b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516128bf91815260200190565b60405180910390a38615612927576128d78382612cbd565b6040516c7265666c656374696f6e46656560981b8152600d01604051908190038120828252906000906001600160a01b038e16906000805160206132318339815191529060200160405180910390a45b5050505050505050505050565b6001600160a01b03831661295a5760405162461bcd60e51b81526004016108a690613188565b6001600160a01b0382166129805760405162461bcd60e51b81526004016108a6906131cd565b6001600160a01b038316600090815260208190526040902054818110156129f85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108a6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610aeb565b6001600160a01b0387166000908152601a6020526040902054612a82908690613005565b6001600160a01b0388166000908152601a6020908152604080832093909355601990522054612ab2908490613005565b6001600160a01b0388166000908152601960205260409020558015612b13576001600160a01b038616600090815260196020526040902054612af5908390613018565b6001600160a01b038716600090815260196020526040902055612b51565b6001600160a01b038616600090815260196020526040902054612b37908490613018565b6001600160a01b0387166000908152601960205260409020555b50505050505050565b6001600160a01b038716600090815260196020526040902054612b7e908490613005565b6001600160a01b0388166000908152601960205260409020558015612bf1576001600160a01b0386166000908152601a6020526040902054612bc1908590613018565b6001600160a01b0387166000908152601a6020908152604080832093909355601990522054612af5908390613018565b6001600160a01b0386166000908152601a6020526040902054612c15908690613018565b6001600160a01b0387166000908152601a6020908152604080832093909355601990522054612b37908490613018565b6001600160a01b038716600090815260196020526040902054612ab2908490613005565b6001600160a01b0387166000908152601a6020526040902054612c8d908690613005565b6001600160a01b0388166000908152601a6020908152604080832093909355601990522054612b7e908490613005565b601e54612ccb908390613005565b601e55601f54612cdc908290613018565b601f555050565b600060208284031215612cf557600080fd5b81356001600160e01b031981168114610bad57600080fd5b600060208284031215612d1f57600080fd5b5035919050565b60005b83811015612d41578181015183820152602001612d29565b50506000910152565b6020815260008251806020840152612d69816040850160208701612d26565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612d9457600080fd5b919050565b60008060408385031215612dac57600080fd5b612db583612d7d565b946020939093013593505050565b600060208284031215612dd557600080fd5b610bad82612d7d565b600080600060608486031215612df357600080fd5b612dfc84612d7d565b9250612e0a60208501612d7d565b9150604084013590509250925092565b60008060408385031215612e2d57600080fd5b82359150612e3d60208401612d7d565b90509250929050565b80358015158114612d9457600080fd5b60008060408385031215612e6957600080fd5b82359150612e3d60208401612e46565b634e487b7160e01b600052604160045260246000fd5b600060408284031215612ea157600080fd5b6040516040810181811067ffffffffffffffff82111715612ed257634e487b7160e01b600052604160045260246000fd5b60405282358152905080612ee860208401612e46565b60208201525092915050565b60006101008284031215612f0757600080fd5b6040516080810181811067ffffffffffffffff82111715612f3857634e487b7160e01b600052604160045260246000fd5b604052612f458484612e8f565b8152612f548460408501612e8f565b6020820152612f668460808501612e8f565b6040820152612f788460c08501612e8f565b60608201529392505050565b60008060408385031215612f9757600080fd5b612fa083612d7d565b9150612e3d60208401612d7d565b60208082526021908201527f426c617374486f67653a207265666c656374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561087757610877612fef565b8082018082111561087757610877612fef565b600181811c9082168061303f57607f821691505b60208210810361305f57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561307757600080fd5b5051919050565b60008261309b57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b808202811582820484141761087757610877612fef565b634e487b7160e01b600052603160045260246000fd5b6000600182016130f5576130f5612fef565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613134816017850160208801612d26565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613165816028840160208801612d26565b01602801949350505050565b60008161318057613180612fef565b506000190190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b60608201526080019056fe6c0757dc3e6b28b2580c03fd9e96c274acf4f99d91fbec9b418fa1d70604ff1c2022773e2291f2fc9298b5ad7d60fae5174151fe00b975c5bdbbe737ba1bfc2fa26469706673582212206325d043df98809aac73815d398af11c0feedd0720b2b648bdabfcef91907c4c64736f6c63430008120033

[ 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.