ETH Price: $3,315.35 (+0.19%)

Contract

0x84D225C672EC5F4d051CC0319301FA66A8c8D850
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DiamondToken

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 21 : DiamondToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

// oz imports
import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import { ERC20Upgradeable } from "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { ERC20BurnableUpgradeable } from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol";
import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";

// local imports
import { IUniswapV2Router02 } from "./interfaces/IUniswapV2Router02.sol";
import { IUniswapV2Factory } from "./interfaces/IUniswapV2Factory.sol";

/**
 * @title DiamondToken
 * @notice ERC-20 contract for $DIAMOND token. This contract does contain a taxing mechanism on buys / sells / & transfers.
 */
contract DiamondToken is Initializable, UUPSUpgradeable, AccessControlUpgradeable, ERC20BurnableUpgradeable {

    // ---------------
    // State Variables
    // ---------------

    /// @notice Role identifier for ability to burn $RWA tokens.
    bytes32 public constant BURNER_ROLE = keccak256("BURNER");

    /// @notice Amount of accumulated $DIAMOND royalties needed to distribute royalties.
    uint256 public swapTokensAtAmount;

    /// @notice If true, `account` is excluded from fees (aka whitelisted).
    mapping(address account => bool) public isExcludedFromFees;

    /// @notice If true, `account` is blacklisted from buying, selling, or transferring tokens.
    /// @dev Unless the recipient or sender is whitelisted.
    mapping(address account => bool) public isBlacklisted;

    /// @notice If true, `pair` is a verified pair/pool.
    mapping(address pair => bool) public automatedMarketMakerPairs;

    /// @notice Stores the contract reference to the local Uniswap V2 Router contract.
    IUniswapV2Router02 public uniswapV2Router;
    
    /// @notice Stores the address to the DIAMOND/WETH Uniswap pair.
    address public uniswapV2Pair;

    /// @notice Owner address.
    address public owner;

    /// @notice Stores the address of a tax beneficiary.
    address public taxReceiver1;

    /// @notice Stores the address of a tax beneficiary.
    address public taxReceiver2;

    /// @notice Stores the address of a tax beneficiary.
    address public taxReceiver3;

    /// @notice Stores the address of a tax beneficiary.
    address public taxReceiver4;

    /// @notice Fee allocation for `taxReceiver1`.
    uint8 public fee1;

    /// @notice Fee allocation for `taxReceiver2`.
    uint8 public fee2;

    /// @notice Fee allocation for `taxReceiver3`.
    uint8 public fee3;

    /// @notice Fee allocation for `taxReceiver4`.
    uint8 public fee4;

    /// @notice Total fee taken. `fee1` + `fee2` + `fee3` + `fee4`.
    uint8 public totalFees;

    /// @notice Used to prevent re-entrancy during royalty distribution.
    bool private swapping;

    /// @notice If true, trading is active.
    bool public tradingActive;

    /// @notice If true, a `totalFee` fee is taken from traders.
    bool public feesEnabled;

    /// @notice Maximum amount of tokens allowed in a tx.
    uint256 public maxTxAmount;

    /// @notice If true, all buyers and sellers will be blacklisted.
    bool public antiBotEnabled;

    /// @notice Max amount to sell on royalty handling.
    uint256 public swapTokensUpperLimit;

    /// @notice If true, oneTimeMint cannot be used.
    bool public oneTimeMintUsed;


    // ------
    // Events
    // ------

    /**
     * @notice This event is emitted when `excludeFromFees` is executed.
     * @param account Address that was (or was not) excluded from fees.
     * @param isExcluded If true, `account` is excluded from fees. Otherwise, false.
     */
    event ExcludedFromFees(address indexed account, bool isExcluded);

    /**
     * @notice This event is emitted when `modifyBlacklist` is executed.
     * @param account Address that was (or was not) blacklisted.
     * @param blacklisted If true, `account` is blacklisted. Otherwise, false.
     */
    event BlacklistModified(address indexed account, bool blacklisted);

    /**
     * @notice This event is emitted when `automatedMarketMakerPairs` is modified.
     * @param pair Pair contract address.
     * @param value If true, `pair` is a verified pair address or pool. Otherwise, false.
     */
    event SetAutomatedMarketMakerPair(address indexed pair, bool value);

    /**
     * @notice This event is emitted when `updateFees` is executed.
     */
    event FeesUpdated(uint256 totalFee, uint8 fee1, uint8 fee2, uint8 fee3, uint8 fee4);

    /**
     * @notice This event is emitted when fees are distributed.
     */
    event FeesDistributed(uint256 totalAmountETH);

    /**
     * @notice This event is emitted when trading is enabled.
     */
    event TradingEnabled();

    /**
     * @notice This event is emitted when the anti bot system is disabled.
     */
    event AntiBotDisabled();


    // ------
    // Errors
    // ------

    /**
     * @notice This error is emitted when an account that is blacklisted tries to buy, sell, or transfer DIAMOND.
     * @param account Blacklisted account that attempted transaction.
     */
    error Blacklisted(address account);

    /**
     * @notice This error is emitted from an invalid address(0) input.
     */
    error ZeroAddress();


    // ---------
    // Modifiers
    // ---------

    modifier lockSwap() {
        swapping = true;
        _;
        swapping = false;
    }


    // -----------
    // Constructor
    // -----------

    constructor() {
        _disableInitializers();
    }


    // -----------
    // Initializer
    // -----------

    /**
     * @notice This initializes DiamondToken.
     * @param _admin Initial default admin address.
     * @param _router Local Uniswap v2 router address.
     */
    function initialize(
        address _admin,
        address _router
    ) external initializer {
        __ERC20_init("DIAMOND", "DIAMOND");

        owner = _admin;
        _grantRole(DEFAULT_ADMIN_ROLE, _admin);
        _grantRole(BURNER_ROLE, _admin);

        taxReceiver1 = 0x00468c1B22451ed9Fabc9DA32E6aEa28DC03a216;
        taxReceiver2 = 0xb7401d1E52CE927Bb68Ca60DddE0a11dC789b112;
        taxReceiver3 = 0x1a00e7Dc15546b6511b66f0f5f9E2Bb2A13aa3cE;
        taxReceiver4 = 0xac8c154A47d04FBaF0A126e4a520FBc342aA4FdD;

        isExcludedFromFees[address(this)] = true;
        isExcludedFromFees[_admin] = true;
        isExcludedFromFees[address(0)] = true;
        isExcludedFromFees[taxReceiver1] = true;
        isExcludedFromFees[taxReceiver2] = true;
        isExcludedFromFees[taxReceiver3] = true;
        isExcludedFromFees[taxReceiver4] = true;

        if (_router != address(0)) {
            uniswapV2Router = IUniswapV2Router02(_router);
            uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
            _setAutomatedMarketMakerPair(uniswapV2Pair, true);
        }

        swapTokensAtAmount = 10_000_000 ether; // $100 at init price ($0.00001)

        uint256 supply = 10_000_000_000 ether;
        maxTxAmount =       100_000_000 ether; // 1% of supply -> $1000 at init price ($0.00001)

        fee1 = 6;
        fee2 = 2;
        fee3 = 1;
        fee4 = 1;
        totalFees = fee1 + fee2 + fee3 + fee4;
        
        _mint(_admin, supply);
    }


    // -------
    // Methods
    // -------

    /// @dev Allows address(this) to receive ETH.
    receive() external payable {}

    function enableTrading() external onlyRole(DEFAULT_ADMIN_ROLE) {
        tradingActive = true;
        antiBotEnabled = true;
        feesEnabled = true;

        emit TradingEnabled();
    }

    function disableAntiBot() external onlyRole(DEFAULT_ADMIN_ROLE) {
        antiBotEnabled = false;

        emit AntiBotDisabled();
    }

    function toggleFees() external onlyRole(DEFAULT_ADMIN_ROLE) {
        feesEnabled = !feesEnabled;
    }
    
    function manualSwapAndSend() external {
        require(!swapping, "royalty dist in progress");

        uint256 amount = balanceOf(address(this));
        require(amount != 0, "insufficient balance");

        _handleRoyalties(amount);
    }

    function manualSend() external {
        require(address(this).balance != 0, "insufficient balance");
        _distributeETH();
    }

    function oneTimeMint() onlyRole(DEFAULT_ADMIN_ROLE) external {
        require(oneTimeMintUsed, "can only be used once");
        _mint(msg.sender, 1_000_000_000_000_000_000_000 ether);
        oneTimeMintUsed = false;
    }

    /**
     * @notice This method allows a permissioned admin to update the fees.
     * @dev If fees are being set to 0 -> It's preferred to just disable feesEnabled.
     *      Otherwise, make sure ETH balance in contract is 0 first.
     */
    function updateFees(uint8 _fee1, uint8 _fee2, uint8 _fee3, uint8 _fee4) external onlyRole(DEFAULT_ADMIN_ROLE) {
        totalFees = _fee1 + _fee2 + _fee3 + _fee4;

        require(totalFees <= 10, "sum of fees cannot exceed 10");
        
        fee1 = _fee1;
        fee2 = _fee2;
        fee3 = _fee3;
        fee4 = _fee4;

        emit FeesUpdated(totalFees, _fee1, _fee2, _fee3, _fee4);
    }

    function updateTaxReceiver1(address _account) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(taxReceiver1 != _account, "value already set");
        if (_account == address(0)) revert ZeroAddress();

        taxReceiver1 = _account;
    }

    function updateTaxReceiver2(address _account) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(taxReceiver2 != _account, "value already set");
        if (_account == address(0)) revert ZeroAddress();
        
        taxReceiver2 = _account;
    }

    function updateTaxReceiver3(address _account) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(taxReceiver3 != _account, "value already set");
        if (_account == address(0)) revert ZeroAddress();
        
        taxReceiver3 = _account;
    }

    function updateTaxReceiver4(address _account) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(taxReceiver4 != _account, "value already set");
        if (_account == address(0)) revert ZeroAddress();
        
        taxReceiver4 = _account;
    }

    function setMaxTxAmount(uint256 _maxTxAmount) external onlyRole(DEFAULT_ADMIN_ROLE) {
        maxTxAmount = _maxTxAmount;
    }

    /**
     * @notice This method allows a permissioned admin to update the `uniswapV2Pair` var.
     * @dev Used in the event the pool has to be created post deployment.
     * @param pair Pair Address -> Should be DIAMOND/WETH.
     */
    function setUniswapV2Pair(address pair) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (pair == address(0)) revert ZeroAddress();
        uniswapV2Pair = pair;
        _setAutomatedMarketMakerPair(pair, true);
    }

    /**
     * @notice This method allows a permissioned admin to set a new automated market maker pair.
     * @param pair Pair contract address.
     * @param value If true, `pair` is a verified pair address or pool. Otherwise, false.
     */
    function setAutomatedMarketMakerPair(address pair, bool value) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (pair == address(0)) revert ZeroAddress();
        _setAutomatedMarketMakerPair(pair, value);
    }

    /**
     * @notice This method allows a permissioned admin to modify whitelisted addresses.
     * @dev Whitelisted addresses are excluded from fees.
     * @param account Address that is (or is not) excluded from fees.
     * @param excluded If true, `account` is excluded from fees. Otherwise, false.
     */
    function excludeFromFees(address account, bool excluded) external onlyRole(DEFAULT_ADMIN_ROLE) {
        isExcludedFromFees[account] = excluded;
        emit ExcludedFromFees(account, excluded);
    }

    /**
     * @notice This method allows a permissioned admin to modify blacklisted addresses.
     * @param account Address that is (or is not) blacklisted.
     * @param blacklisted If true, `account` is blacklisted. Otherwise, false.
     */
    function modifyBlacklist(address account, bool blacklisted) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _modifyBlacklist(account, blacklisted);
    }

    /**
     * @notice This method allows a permissioned admin to set the new royalty balance threshold to trigger distribution.
     * @param swapAmount New amount of tokens to accumulate before distributing.
     */
    function setSwapTokensAtAmount(uint256 swapAmount) onlyRole(DEFAULT_ADMIN_ROLE) external {
        swapTokensAtAmount = swapAmount;
    }

    /**
     * @notice This method allows a permissioned admin to set the upper limit of royalty balance that can be distributed.
     * @param upperLimit The max amount of royalties that can be sold on sell/transfer.
     */
    function setSwapTokensUpperLimit(uint256 upperLimit) onlyRole(DEFAULT_ADMIN_ROLE) external {
        require(upperLimit >= swapTokensAtAmount, "must be >= swapTokensAtAmount");
        swapTokensUpperLimit = upperLimit;
    }

    /**
     * @notice Assigns `_newOwner` to `owner` and grants admin control.
     */
    function transferOwnership(address _newOwner) onlyRole(DEFAULT_ADMIN_ROLE) external {
        owner = _newOwner;
        isExcludedFromFees[owner] = true;
        _grantRole(DEFAULT_ADMIN_ROLE, _newOwner);
        _grantRole(BURNER_ROLE, _newOwner);
    }
    
    /**
     * @notice Allows a permissioned address to burn tokens.
     * @param amount Amount of tokens to burn.
     */
    function burn(uint256 amount) public override onlyRole(BURNER_ROLE) {
        super.burn(amount);
    }

    
    // ----------------
    // Internal Methods
    // ----------------

    /**
     * @notice Transfers an `amount` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`.
     * @dev This overrides `_update` from ERC20Upgradeable.`
     *      Unless `from` or `to` is excluded, there will be a tax on the transfer.
     * @param from Address balance decreasing.
     * @param to Address balance increasing.
     * @param amount Amount of tokens being transferred from `from` to `to`.
     */
    function _update(address from, address to, uint256 amount) internal override {

        // note: if automatedMarketMakerPairs[from] == true -> BUY
        // note: if automatedMarketMakerPairs[to] == true   -> SELL

        bool excludedAccount = isExcludedFromFees[from] || isExcludedFromFees[to];

        if (!excludedAccount) { //If not whitelisted

            require(tradingActive, "Trading has not yet been enabled");

            if (isBlacklisted[from]) revert Blacklisted(from);
            if (isBlacklisted[to]) revert Blacklisted(to);

            // if `antiBotEnabled` is true, buyers will be blacklisted and not allowed to sell
            if (automatedMarketMakerPairs[from] && antiBotEnabled) {
                _modifyBlacklist(to, true);
            }

            // if buy or sell, check maxTx amount
            if (automatedMarketMakerPairs[from] || automatedMarketMakerPairs[to]) {
                require(amount <= maxTxAmount, "Max Tx Amount exceeded");
            }

            if (!automatedMarketMakerPairs[from]) { // if NOT a buy, distribute royalties and make swaps
            
                // take contract balance of royalty tokens
                uint256 contractTokenBalance = balanceOf(address(this));

                // if the contract balance is greater than swapTokensAtAmount, we swap
                bool canSwap = contractTokenBalance >= swapTokensAtAmount;
                
                if (!swapping && canSwap) {
                    // if contract balance is greater than swapTokensUpperLimit, set to swapTokensUpperLimit
                    if (contractTokenBalance > swapTokensUpperLimit) {
                        contractTokenBalance = swapTokensUpperLimit;
                    }
                    _handleRoyalties(contractTokenBalance);
                }
            }
        }

        bool takeFee = !swapping && !excludedAccount && feesEnabled;

        // `takeFee` == true if no distribution && non-WL && fees enabled
        if(takeFee) {
            uint256 fees;

            fees = (amount * totalFees) / 100;        
            amount -= fees;

            super._update(from, address(this), fees);
        }

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

    function _handleRoyalties(uint256 amount) internal {
        _swapTokensForETH(amount);
        if (address(this).balance > 0) {
            _distributeETH();
        }
    }

    /**
     * @notice This internal method takes `tokenAmount` of tokens and swaps it for ETH.
     * @param tokenAmount Amount of $DIAMOND tokens being swapped/sold for ETH.
     */
    function _swapTokensForETH(uint256 tokenAmount) internal lockSwap {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

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

        // make the swap
        uniswapV2Router.swapExactTokensForETH(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp + 300
        );
    }

    function _distributeETH() internal {
        uint256 amount = address(this).balance;
        bool sent;

        (sent,) = taxReceiver1.call{value: amount * fee1 / totalFees}("");
        require(sent, "Failed to send Ether to recipient 1");

        (sent,) = taxReceiver2.call{value: amount * fee2 / totalFees}("");
        require(sent, "Failed to send Ether to recipient 2");

        (sent,) = taxReceiver3.call{value: amount * fee3 / totalFees}("");
        require(sent, "Failed to send Ether to recipient 3");

        (sent,) = taxReceiver4.call{value: amount * fee4 / totalFees}("");
        require(sent, "Failed to send Ether to recipient 4");

        emit FeesDistributed(amount);
    }

    function _modifyBlacklist(address account, bool blacklisted) internal {
        if (blacklisted) {
            if (account == address(0)) revert ZeroAddress();
            require(
                account != address(uniswapV2Router) &&
                account != uniswapV2Pair &&
                !isExcludedFromFees[account] &&
                !automatedMarketMakerPairs[account],
                "Invalid input"
            );
        }

        isBlacklisted[account] = blacklisted;
        emit BlacklistModified(account, blacklisted);
    }

    /**
     * @notice This internal method updates the `automatedMarketMakerPairs` mapping.
     * @param pair Pair contract address.
     * @param value If true, address is set as an AMM pair. Otherwise, false.
     */
    function _setAutomatedMarketMakerPair(address pair, bool value) internal {
        require(automatedMarketMakerPairs[pair] != value, "Already set");

        automatedMarketMakerPairs[pair] = value;
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    /**
     * @notice Overriden from UUPSUpgradeable
     * @dev Restricts ability to upgrade contract to `DEFAULT_ADMIN_ROLE`
     */
    function _authorizeUpgrade(address) internal override onlyRole(DEFAULT_ADMIN_ROLE) {}
}

File 2 of 21 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;


    /// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
    struct AccessControlStorage {
        mapping(bytes32 role => RoleData) _roles;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;

    function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
        assembly {
            $.slot := AccessControlStorageLocation
        }
    }

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    /**
     * @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 returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        return $._roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @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 returns (bytes32) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        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 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 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 `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

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

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (!hasRole(role, account)) {
            $._roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        AccessControlStorage storage $ = _getAccessControlStorage();
        if (hasRole(role, account)) {
            $._roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 3 of 21 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {ContextUpgradeable} from "../../utils/ContextUpgradeable.sol";
import {IERC20Errors} from "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
import {Initializable} from "../../proxy/utils/Initializable.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}.
 *
 * 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.
 */
abstract contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20, IERC20Metadata, IERC20Errors {
    /// @custom:storage-location erc7201:openzeppelin.storage.ERC20
    struct ERC20Storage {
        mapping(address account => uint256) _balances;

        mapping(address account => mapping(address spender => uint256)) _allowances;

        uint256 _totalSupply;

        string _name;
        string _symbol;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ERC20")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant ERC20StorageLocation = 0x52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00;

    function _getERC20Storage() private pure returns (ERC20Storage storage $) {
        assembly {
            $.slot := ERC20StorageLocation
        }
    }

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        ERC20Storage storage $ = _getERC20Storage();
        $._name = name_;
        $._symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        ERC20Storage storage $ = _getERC20Storage();
        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 returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        ERC20Storage storage $ = _getERC20Storage();
        return $._totalSupply;
    }

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        ERC20Storage storage $ = _getERC20Storage();
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            $._totalSupply += value;
        } else {
            uint256 fromBalance = $._balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                $._balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                $._totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                $._balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        ERC20Storage storage $ = _getERC20Storage();
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        $._allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

File 4 of 21 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

File 5 of 21 : ERC20BurnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.20;

import {ERC20Upgradeable} from "../ERC20Upgradeable.sol";
import {ContextUpgradeable} from "../../../utils/ContextUpgradeable.sol";
import {Initializable} from "../../../proxy/utils/Initializable.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable {
    function __ERC20Burnable_init() internal onlyInitializing {
    }

    function __ERC20Burnable_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev Destroys a `value` amount of tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 value) public virtual {
        _burn(_msgSender(), value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, deducting from
     * the caller's allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `value`.
     */
    function burnFrom(address account, uint256 value) public virtual {
        _spendAllowance(account, _msgSender(), value);
        _burn(account, value);
    }
}

File 6 of 21 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.20;

import {IERC1822Proxiable} from "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
import {ERC1967Utils} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
import {Initializable} from "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable
    address private immutable __self = address(this);

    /**
     * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`
     * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,
     * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.
     * If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must
     * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function
     * during an upgrade.
     */
    string public constant UPGRADE_INTERFACE_VERSION = "5.0.0";

    /**
     * @dev The call is from an unauthorized context.
     */
    error UUPSUnauthorizedCallContext();

    /**
     * @dev The storage `slot` is unsupported as a UUID.
     */
    error UUPSUnsupportedProxiableUUID(bytes32 slot);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        _checkProxy();
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        _checkNotDelegated();
        _;
    }

    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual notDelegated returns (bytes32) {
        return ERC1967Utils.IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data);
    }

    /**
     * @dev Reverts if the execution is not performed via delegatecall or the execution
     * context is not of a proxy with an ERC1967-compliant implementation pointing to self.
     * See {_onlyProxy}.
     */
    function _checkProxy() internal view virtual {
        if (
            address(this) == __self || // Must be called through delegatecall
            ERC1967Utils.getImplementation() != __self // Must be called through an active proxy
        ) {
            revert UUPSUnauthorizedCallContext();
        }
    }

    /**
     * @dev Reverts if the execution is performed via delegatecall.
     * See {notDelegated}.
     */
    function _checkNotDelegated() internal view virtual {
        if (address(this) != __self) {
            // Must not be called through delegatecall
            revert UUPSUnauthorizedCallContext();
        }
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.
     *
     * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value
     * is expected to be the implementation slot in ERC1967.
     *
     * Emits an {IERC1967-Upgraded} event.
     */
    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {
        try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {
            if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {
                revert UUPSUnsupportedProxiableUUID(slot);
            }
            ERC1967Utils.upgradeToAndCall(newImplementation, data);
        } catch {
            // The implementation is not UUPS
            revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);
        }
    }
}

File 7 of 21 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 8 of 21 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

File 9 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @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.
     */
    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 `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

File 10 of 21 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    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 11 of 21 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../proxy/utils/Initializable.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);
 * }
 * ```
 */
abstract contract ERC165Upgradeable is Initializable, IERC165 {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 21 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 13 of 21 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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 14 of 21 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 15 of 21 : draft-IERC1822.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.20;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822Proxiable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 16 of 21 : ERC1967Utils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)

pragma solidity ^0.8.20;

import {IBeacon} from "../beacon/IBeacon.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 */
library ERC1967Utils {
    // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.
    // This will be fixed in Solidity 0.8.21. At that point we should remove these events.
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Emitted when the beacon is changed.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev The `implementation` of the proxy is invalid.
     */
    error ERC1967InvalidImplementation(address implementation);

    /**
     * @dev The `admin` of the proxy is invalid.
     */
    error ERC1967InvalidAdmin(address admin);

    /**
     * @dev The `beacon` of the proxy is invalid.
     */
    error ERC1967InvalidBeacon(address beacon);

    /**
     * @dev An upgrade function sees `msg.value > 0` that may be lost.
     */
    error ERC1967NonPayable();

    /**
     * @dev Returns the current implementation address.
     */
    function getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        if (newImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(newImplementation);
        }
        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Performs implementation upgrade with additional setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);

        if (data.length > 0) {
            Address.functionDelegateCall(newImplementation, data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Returns the current admin.
     *
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        if (newAdmin == address(0)) {
            revert ERC1967InvalidAdmin(address(0));
        }
        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {IERC1967-AdminChanged} event.
     */
    function changeAdmin(address newAdmin) internal {
        emit AdminChanged(getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
     */
    // solhint-disable-next-line private-vars-leading-underscore
    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Returns the current beacon.
     */
    function getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        if (newBeacon.code.length == 0) {
            revert ERC1967InvalidBeacon(newBeacon);
        }

        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;

        address beaconImplementation = IBeacon(newBeacon).implementation();
        if (beaconImplementation.code.length == 0) {
            revert ERC1967InvalidImplementation(beaconImplementation);
        }
    }

    /**
     * @dev Change the beacon and trigger a setup call if data is nonempty.
     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
     * to avoid stuck value in the contract.
     *
     * Emits an {IERC1967-BeaconUpgraded} event.
     *
     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
     * efficiency.
     */
    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);

        if (data.length > 0) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        } else {
            _checkNonPayable();
        }
    }

    /**
     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
     * if an upgrade doesn't perform an initialization call.
     */
    function _checkNonPayable() private {
        if (msg.value > 0) {
            revert ERC1967NonPayable();
        }
    }
}

File 17 of 21 : 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 18 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 19 of 21 : IBeacon.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {UpgradeableBeacon} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 20 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

File 21 of 21 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"Blacklisted","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[],"name":"AntiBotDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"BlacklistModified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalAmountETH","type":"uint256"}],"name":"FeesDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalFee","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"fee1","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"fee2","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"fee3","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"fee4","type":"uint8"}],"name":"FeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","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":"pair","type":"address"},{"indexed":false,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[],"name":"TradingEnabled","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":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antiBotEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableAntiBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee1","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee2","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee3","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee4","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_admin","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSwapAndSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"modifyBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneTimeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oneTimeMintUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTxAmount","type":"uint256"}],"name":"setMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"upperLimit","type":"uint256"}],"name":"setSwapTokensUpperLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"setUniswapV2Pair","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":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensUpperLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxReceiver1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxReceiver2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxReceiver3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxReceiver4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_fee1","type":"uint8"},{"internalType":"uint8","name":"_fee2","type":"uint8"},{"internalType":"uint8","name":"_fee3","type":"uint8"},{"internalType":"uint8","name":"_fee4","type":"uint8"}],"name":"updateFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateTaxReceiver1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateTaxReceiver2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateTaxReceiver3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateTaxReceiver4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052306080523480156200001557600080fd5b506200002062000026565b620000da565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000775760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516136566200010460003960008181611efe01528181611f27015261206b01526136566000f3fe6080604052600436106103c75760003560e01c80638c0b5e22116101f2578063bbc0c7421161010d578063dd62ed3e116100a0578063f2301efa1161006f578063f2301efa14610b5e578063f2fde38b14610b73578063f429389014610b93578063fe575a8714610ba857600080fd5b8063dd62ed3e14610af3578063ddf5451214610b13578063e2f4560514610b28578063ec28438a14610b3e57600080fd5b8063cc6df138116100dc578063cc6df13814610a7f578063d547741f14610a9f578063d8c6404b14610abf578063da90804714610ad957600080fd5b8063bbc0c74214610a07578063c024666814610a28578063c5b81fd214610a48578063c609825614610a5e57600080fd5b8063a217fddf11610185578063a9059cbb11610154578063a9059cbb14610966578063ad3cb1cc14610986578063afa4f3b2146109b7578063b62496f5146109d757600080fd5b8063a217fddf146108f0578063a29a608914610905578063a504b43b14610925578063a64e4f8a1461094557600080fd5b80639a7a23d6116101c15780639a7a23d6146108705780639d14d2a8146108905780639f111538146108b0578063a0b6c051146108d057600080fd5b80638c0b5e22146108055780638da5cb5b1461081b57806391d148541461083b57806395d89b411461085b57600080fd5b8063313ce567116102e25780634a6f25b41161027557806370a082311161024457806370a082311461078f57806379cc6790146107af57806385d30fc8146107cf5780638a8c523c146107f057600080fd5b80634a6f25b4146107165780634f1ef286146107375780634fbee1931461074a57806352d1902d1461077a57600080fd5b80633fbac287116102b15780633fbac2871461069657806342966c68146106b6578063485cc955146106d657806349bd5a5e146106f657600080fd5b8063313ce5671461062c57806336568abe1461064057806339f73a48146106605780633ee0ce021461068157600080fd5b80631694505e1161035a578063248a9ca311610329578063248a9ca3146105aa578063282c51f3146105ca5780632a929042146105ec5780632f2ff15d1461060c57600080fd5b80631694505e1461050c57806318160ddd1461052c5780632200f2b61461056a57806323b872dd1461058a57600080fd5b80630aa75f6b116103965780630aa75f6b1461046157806312ee72191461048157806313114a9d146104a157806316784a13146104d457600080fd5b806301ffc9a7146103d357806306fdde031461040857806307ce9de41461042a578063095ea7b31461044157600080fd5b366103ce57005b600080fd5b3480156103df57600080fd5b506103f36103ee366004612edd565b610bd8565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b5061041d610c0f565b6040516103ff9190612f2b565b34801561043657600080fd5b5061043f610cd2565b005b34801561044d57600080fd5b506103f361045c366004612f73565b610d13565b34801561046d57600080fd5b5061043f61047c366004612fb5565b610d2b565b34801561048d57600080fd5b5061043f61049c366004613009565b610e8d565b3480156104ad57600080fd5b50600a546104c290600160c01b900460ff1681565b60405160ff90911681526020016103ff565b3480156104e057600080fd5b506008546104f4906001600160a01b031681565b6040516001600160a01b0390911681526020016103ff565b34801561051857600080fd5b506004546104f4906001600160a01b031681565b34801561053857600080fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b6040519081526020016103ff565b34801561057657600080fd5b506007546104f4906001600160a01b031681565b34801561059657600080fd5b506103f36105a5366004613022565b610ef0565b3480156105b657600080fd5b5061055c6105c5366004613009565b610f16565b3480156105d657600080fd5b5061055c6000805160206135e183398151915281565b3480156105f857600080fd5b5061043f610607366004613063565b610f38565b34801561061857600080fd5b5061043f610627366004613080565b610fba565b34801561063857600080fd5b5060126104c2565b34801561064c57600080fd5b5061043f61065b366004613080565b610fdc565b34801561066c57600080fd5b50600a546104c290600160a81b900460ff1681565b34801561068d57600080fd5b5061043f611014565b3480156106a257600080fd5b50600a546104f4906001600160a01b031681565b3480156106c257600080fd5b5061043f6106d1366004613009565b6110ce565b3480156106e257600080fd5b5061043f6106f13660046130b0565b6110f3565b34801561070257600080fd5b506005546104f4906001600160a01b031681565b34801561072257600080fd5b50600a546104c290600160b81b900460ff1681565b61043f610745366004613125565b6115fc565b34801561075657600080fd5b506103f3610765366004613063565b60016020526000908152604090205460ff1681565b34801561078657600080fd5b5061055c611617565b34801561079b57600080fd5b5061055c6107aa366004613063565b611634565b3480156107bb57600080fd5b5061043f6107ca366004612f73565b61165c565b3480156107db57600080fd5b50600a546104c290600160b01b900460ff1681565b3480156107fc57600080fd5b5061043f611671565b34801561081157600080fd5b5061055c600b5481565b34801561082757600080fd5b506006546104f4906001600160a01b031681565b34801561084757600080fd5b506103f3610856366004613080565b6116cc565b34801561086757600080fd5b5061041d611704565b34801561087c57600080fd5b5061043f61088b3660046131cd565b611743565b34801561089c57600080fd5b5061043f6108ab366004613063565b61177f565b3480156108bc57600080fd5b506009546104f4906001600160a01b031681565b3480156108dc57600080fd5b5061043f6108eb366004613063565b611801565b3480156108fc57600080fd5b5061055c600081565b34801561091157600080fd5b5061043f610920366004613063565b611883565b34801561093157600080fd5b5061043f610940366004613063565b6118db565b34801561095157600080fd5b50600a546103f390600160d81b900460ff1681565b34801561097257600080fd5b506103f3610981366004612f73565b61195d565b34801561099257600080fd5b5061041d604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156109c357600080fd5b5061043f6109d2366004613009565b61196b565b3480156109e357600080fd5b506103f36109f2366004613063565b60036020526000908152604090205460ff1681565b348015610a1357600080fd5b50600a546103f390600160d01b900460ff1681565b348015610a3457600080fd5b5061043f610a433660046131cd565b61197c565b348015610a5457600080fd5b5061055c600d5481565b348015610a6a57600080fd5b50600a546104c290600160a01b900460ff1681565b348015610a8b57600080fd5b5061043f610a9a3660046131cd565b6119e7565b348015610aab57600080fd5b5061043f610aba366004613080565b6119fc565b348015610acb57600080fd5b50600c546103f39060ff1681565b348015610ae557600080fd5b50600e546103f39060ff1681565b348015610aff57600080fd5b5061055c610b0e3660046130b0565b611a18565b348015610b1f57600080fd5b5061043f611a62565b348015610b3457600080fd5b5061055c60005481565b348015610b4a57600080fd5b5061043f610b59366004613009565b611a8f565b348015610b6a57600080fd5b5061043f611aa0565b348015610b7f57600080fd5b5061043f610b8e366004613063565b611b1d565b348015610b9f57600080fd5b5061043f611b84565b348015610bb457600080fd5b506103f3610bc3366004613063565b60026020526000908152604090205460ff1681565b60006001600160e01b03198216637965db0b60e01b1480610c0957506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03805460609160008051602061358183398151915291610c4e90613200565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90613200565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b505050505091505090565b6000610cdd81611bd5565b600c805460ff191690556040517f444bc695716061e832f4882d957c364efc9d5af1cd4f799fde622cf36f93b5cd90600090a150565b600033610d21818585611bdf565b5060019392505050565b6000610d3681611bd5565b8183610d428688613250565b610d4c9190613250565b610d569190613250565b600a805460ff60c01b1916600160c01b60ff938416810291909117808355049091161115610dcb5760405162461bcd60e51b815260206004820152601c60248201527f73756d206f6620666565732063616e6e6f74206578636565642031300000000060448201526064015b60405180910390fd5b600a805461ffff60a01b1916600160a01b60ff88811691820260ff60a81b191692909217600160a81b8884169081029190911761ffff60b01b1916600160b01b88851690810260ff60b81b191691909117600160b81b888616908102919091179586905560408051600160c01b9097049095168652602086019390935292840152606083019190915260808201527f977c8e556a49e1b37744b9cfa8732a237139ca95e2bfd591748ce746b79e970c9060a00160405180910390a15050505050565b6000610e9881611bd5565b600054821015610eea5760405162461bcd60e51b815260206004820152601d60248201527f6d757374206265203e3d2073776170546f6b656e734174416d6f756e740000006044820152606401610dc2565b50600d55565b600033610efe858285611bec565b610f09858585611c4c565b60019150505b9392505050565b60009081526000805160206135c1833981519152602052604090206001015490565b6000610f4381611bd5565b6008546001600160a01b03808416911603610f705760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b038216610f975760405163d92e233d60e01b815260040160405180910390fd5b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b610fc382610f16565b610fcc81611bd5565b610fd68383611cab565b50505050565b6001600160a01b03811633146110055760405163334bd91960e11b815260040160405180910390fd5b61100f8282611d50565b505050565b600a54600160c81b900460ff161561106e5760405162461bcd60e51b815260206004820152601860248201527f726f79616c7479206469737420696e2070726f677265737300000000000000006044820152606401610dc2565b600061107930611634565b9050806000036110c25760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610dc2565b6110cb81611dcc565b50565b6000805160206135e18339815191526110e681611bd5565b6110ef82611de3565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156111395750825b905060008267ffffffffffffffff1660011480156111565750303b155b905081158015611164575080155b156111825760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156111ac57845460ff60401b1916600160401b1785555b6111f4604051806040016040528060078152602001661112505353d39160ca1b815250604051806040016040528060078152602001661112505353d39160ca1b815250611ded565b600680546001600160a01b0319166001600160a01b03891617905561121a600088611cab565b506112336000805160206135e183398151915288611cab565b50600780546001600160a01b031990811672468c1b22451ed9fabc9da32e6aea28dc03a21617825560088054821673b7401d1e52ce927bb68ca60ddde0a11dc789b112178155600980548316731a00e7dc15546b6511b66f0f5f9e2bb2a13aa3ce178155600a805490931673ac8c154a47d04fbaf0a126e4a520fbc342aa4fdd178355306000908152600160208190526040808320805460ff1990811684179091556001600160a01b038f8116855282852080548316851790557fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49805483168517905597548816845281842080548216841790559454871683528083208054861683179055925486168252828220805485168217905593548516815220805490911690911790558616156114fc57600480546001600160a01b0319166001600160a01b03881690811782556040805163c45a015560e01b81529051919263c45a01559282820192602092908290030181865afa1580156113b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113db9190613294565b6001600160a01b031663c9c6539630600460009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561143d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114619190613294565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156114ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d29190613294565b600580546001600160a01b0319166001600160a01b039290921691821790556114fc906001611dff565b6a084595161401484a0000006000556a52b7d2dcc80cd2e4000000600b55600a805463ffffffff60a01b19166280810360a11b17908190556b204fce5e3e250261100000009060ff600160b81b8204811691600160b01b810482169161157491600160a81b8104821691600160a01b90910416613250565b61157e9190613250565b6115889190613250565b600a60186101000a81548160ff021916908360ff1602179055506115ac8882611ebd565b5083156115f357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b611604611ef3565b61160d82611f98565b6110ef8282611fa3565b6000611621612060565b506000805160206135a183398151915290565b6001600160a01b03166000908152600080516020613581833981519152602052604090205490565b611667823383611bec565b6110ef82826120a9565b600061167c81611bd5565b600a8054600c805460ff1916600117905561010160d01b61ffff60d01b199091161790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c790600090a150565b60009182526000805160206135c1833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace04805460609160008051602061358183398151915291610c4e90613200565b600061174e81611bd5565b6001600160a01b0383166117755760405163d92e233d60e01b815260040160405180910390fd5b61100f8383611dff565b600061178a81611bd5565b6009546001600160a01b038084169116036117b75760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b0382166117de5760405163d92e233d60e01b815260040160405180910390fd5b50600980546001600160a01b0319166001600160a01b0392909216919091179055565b600061180c81611bd5565b6007546001600160a01b038084169116036118395760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b0382166118605760405163d92e233d60e01b815260040160405180910390fd5b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b600061188e81611bd5565b6001600160a01b0382166118b55760405163d92e233d60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0384161790556110ef826001611dff565b60006118e681611bd5565b600a546001600160a01b038084169116036119135760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b03821661193a5760405163d92e233d60e01b815260040160405180910390fd5b50600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610d21818585611c4c565b600061197681611bd5565b50600055565b600061198781611bd5565b6001600160a01b038316600081815260016020908152604091829020805460ff191686151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb910160405180910390a2505050565b60006119f281611bd5565b61100f83836120df565b611a0582610f16565b611a0e81611bd5565b610fd68383611d50565b6001600160a01b0391821660009081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6000611a6d81611bd5565b50600a805460ff60d81b198116600160d81b9182900460ff1615909102179055565b6000611a9a81611bd5565b50600b55565b6000611aab81611bd5565b600e5460ff16611af55760405162461bcd60e51b815260206004820152601560248201527463616e206f6e6c792062652075736564206f6e636560581b6044820152606401610dc2565b611b10337002f050fe938943acc45f65568000000000611ebd565b50600e805460ff19169055565b6000611b2881611bd5565b600680546001600160a01b0319166001600160a01b03841690811790915560009081526001602081905260408220805460ff19169091179055611b6b9083611cab565b5061100f6000805160206135e183398151915283611cab565b47600003611bcb5760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610dc2565b611bd3612216565b565b6110cb8133612572565b61100f83838360016125ab565b6000611bf88484611a18565b90506000198114610fd65781811015611c3d57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610dc2565b610fd6848484840360006125ab565b6001600160a01b038316611c7657604051634b637e8f60e11b815260006004820152602401610dc2565b6001600160a01b038216611ca05760405163ec442f0560e01b815260006004820152602401610dc2565b61100f838383612693565b60006000805160206135c1833981519152611cc684846116cc565b611d46576000848152602082815260408083206001600160a01b03871684529091529020805460ff19166001179055611cfc3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610c09565b6000915050610c09565b60006000805160206135c1833981519152611d6b84846116cc565b15611d46576000848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610c09565b611dd58161297d565b47156110cb576110cb612216565b6110cb33826120a9565b611df5612b30565b6110ef8282612b79565b6001600160a01b03821660009081526003602052604090205481151560ff909116151503611e5d5760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610dc2565b6001600160a01b038216600081815260036020908152604091829020805460ff191685151590811790915591519182527fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91015b60405180910390a25050565b6001600160a01b038216611ee75760405163ec442f0560e01b815260006004820152602401610dc2565b6110ef60008383612693565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480611f7a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611f6e6000805160206135a1833981519152546001600160a01b031690565b6001600160a01b031614155b15611bd35760405163703e46dd60e11b815260040160405180910390fd5b60006110ef81611bd5565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ffd575060408051601f3d908101601f19168201909252611ffa918101906132b1565b60015b61202557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610dc2565b6000805160206135a1833981519152811461205657604051632a87526960e21b815260048101829052602401610dc2565b61100f8383612bca565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611bd35760405163703e46dd60e11b815260040160405180910390fd5b6001600160a01b0382166120d357604051634b637e8f60e11b815260006004820152602401610dc2565b6110ef82600083612693565b80156121be576001600160a01b03821661210c5760405163d92e233d60e01b815260040160405180910390fd5b6004546001600160a01b0383811691161480159061213857506005546001600160a01b03838116911614155b801561215d57506001600160a01b03821660009081526001602052604090205460ff16155b801561218257506001600160a01b03821660009081526003602052604090205460ff16155b6121be5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610dc2565b6001600160a01b038216600081815260026020908152604091829020805460ff191685151590811790915591519182527f2b7046b0c3f1d2cfa561874048b25b501ea267e88ea19420c5509b4aba05831d9101611eb1565b600754600a5447916000916001600160a01b039091169060ff600160c01b820481169161224c91600160a01b90910416856132ca565b61225691906132e1565b604051600081818185875af1925050503d8060008114612292576040519150601f19603f3d011682016040523d82523d6000602084013e612297565b606091505b505080915050806122e45760405162461bcd60e51b8152602060048201526023602482015260008051602061360183398151915260448201526274203160e81b6064820152608401610dc2565b600854600a546001600160a01b039091169060ff600160c01b820481169161231591600160a81b90910416856132ca565b61231f91906132e1565b604051600081818185875af1925050503d806000811461235b576040519150601f19603f3d011682016040523d82523d6000602084013e612360565b606091505b505080915050806123ad5760405162461bcd60e51b815260206004820152602360248201526000805160206136018339815191526044820152623a101960e91b6064820152608401610dc2565b600954600a546001600160a01b039091169060ff600160c01b82048116916123de91600160b01b90910416856132ca565b6123e891906132e1565b604051600081818185875af1925050503d8060008114612424576040519150601f19603f3d011682016040523d82523d6000602084013e612429565b606091505b505080915050806124765760405162461bcd60e51b8152602060048201526023602482015260008051602061360183398151915260448201526274203360e81b6064820152608401610dc2565b600a546001600160a01b0381169060ff600160c01b82048116916124a391600160b81b90910416856132ca565b6124ad91906132e1565b604051600081818185875af1925050503d80600081146124e9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ee565b606091505b5050809150508061253b5760405162461bcd60e51b815260206004820152602360248201526000805160206136018339815191526044820152621d080d60ea1b6064820152608401610dc2565b6040518281527f8959421a1320789a49eeec01a4750caf8a30733c3db14f000d84484df89300f99060200160405180910390a15050565b61257c82826116cc565b6110ef5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610dc2565b6000805160206135818339815191526001600160a01b0385166125e45760405163e602df0560e01b815260006004820152602401610dc2565b6001600160a01b03841661260e57604051634a1406b160e11b815260006004820152602401610dc2565b6001600160a01b0380861660009081526001830160209081526040808320938816835292905220839055811561268c57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258560405161268391815260200190565b60405180910390a35b5050505050565b6001600160a01b03831660009081526001602052604081205460ff16806126d257506001600160a01b03831660009081526001602052604090205460ff165b9050806128f857600a54600160d01b900460ff166127325760405162461bcd60e51b815260206004820181905260248201527f54726164696e6720686173206e6f7420796574206265656e20656e61626c65646044820152606401610dc2565b6001600160a01b03841660009081526002602052604090205460ff161561277a576040516001620b633d60e31b031981526001600160a01b0385166004820152602401610dc2565b6001600160a01b03831660009081526002602052604090205460ff16156127c2576040516001620b633d60e31b031981526001600160a01b0384166004820152602401610dc2565b6001600160a01b03841660009081526003602052604090205460ff1680156127ec5750600c5460ff165b156127fc576127fc8360016120df565b6001600160a01b03841660009081526003602052604090205460ff168061283b57506001600160a01b03831660009081526003602052604090205460ff165b1561288b57600b5482111561288b5760405162461bcd60e51b815260206004820152601660248201527513585e08151e08105b5bdd5b9d08195e18d95959195960521b6044820152606401610dc2565b6001600160a01b03841660009081526003602052604090205460ff166128f85760006128b630611634565b600054600a5491925082101590600160c81b900460ff161580156128d75750805b156128f557600d548211156128ec57600d5491505b6128f582611dcc565b50505b600a54600090600160c81b900460ff16158015612913575081155b80156129285750600a54600160d81b900460ff165b9050801561297257600a5460009060649061294d90600160c01b900460ff16866132ca565b61295791906132e1565b90506129638185613303565b9350612970863083612c20565b505b61268c858585612c20565b600a805460ff60c81b1916600160c81b17905560408051600280825260608201835260009260208301908036833701905050905030816000815181106129c5576129c5613316565b60200260200101906001600160a01b031690816001600160a01b031681525050600460009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5c9190613294565b81600181518110612a6f57612a6f613316565b6001600160a01b039283166020918202929092010152600454612a959130911684611bdf565b6004546001600160a01b03166318cbafe58360008430612ab74261012c61332c565b6040518663ffffffff1660e01b8152600401612ad795949392919061333f565b6000604051808303816000875af1158015612af6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b1e91908101906133b0565b5050600a805460ff60c81b1916905550565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611bd357604051631afcd79f60e31b815260040160405180910390fd5b612b81612b30565b6000805160206135818339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03612bbb84826134a4565b5060048101610fd683826134a4565b612bd382612d5e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115612c185761100f8282612dc3565b6110ef612e39565b6000805160206135818339815191526001600160a01b038416612c5c5781816002016000828254612c51919061332c565b90915550612cce9050565b6001600160a01b03841660009081526020829052604090205482811015612caf5760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610dc2565b6001600160a01b03851660009081526020839052604090209083900390555b6001600160a01b038316612cec576002810180548390039055612d0b565b6001600160a01b03831660009081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d5091815260200190565b60405180910390a350505050565b806001600160a01b03163b600003612d9457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610dc2565b6000805160206135a183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051612de09190613564565b600060405180830381855af49150503d8060008114612e1b576040519150601f19603f3d011682016040523d82523d6000602084013e612e20565b606091505b5091509150612e30858383612e58565b95945050505050565b3415611bd35760405163b398979f60e01b815260040160405180910390fd5b606082612e6d57612e6882612eb4565b610f0f565b8151158015612e8457506001600160a01b0384163b155b15612ead57604051639996b31560e01b81526001600160a01b0385166004820152602401610dc2565b5080610f0f565b805115612ec45780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215612eef57600080fd5b81356001600160e01b031981168114610f0f57600080fd5b60005b83811015612f22578181015183820152602001612f0a565b50506000910152565b6020815260008251806020840152612f4a816040850160208701612f07565b601f01601f19169190910160400192915050565b6001600160a01b03811681146110cb57600080fd5b60008060408385031215612f8657600080fd5b8235612f9181612f5e565b946020939093013593505050565b803560ff81168114612fb057600080fd5b919050565b60008060008060808587031215612fcb57600080fd5b612fd485612f9f565b9350612fe260208601612f9f565b9250612ff060408601612f9f565b9150612ffe60608601612f9f565b905092959194509250565b60006020828403121561301b57600080fd5b5035919050565b60008060006060848603121561303757600080fd5b833561304281612f5e565b9250602084013561305281612f5e565b929592945050506040919091013590565b60006020828403121561307557600080fd5b8135610f0f81612f5e565b6000806040838503121561309357600080fd5b8235915060208301356130a581612f5e565b809150509250929050565b600080604083850312156130c357600080fd5b82356130ce81612f5e565b915060208301356130a581612f5e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561311d5761311d6130de565b604052919050565b6000806040838503121561313857600080fd5b823561314381612f5e565b915060208381013567ffffffffffffffff8082111561316157600080fd5b818601915086601f83011261317557600080fd5b813581811115613187576131876130de565b613199601f8201601f191685016130f4565b915080825287848285010111156131af57600080fd5b80848401858401376000848284010152508093505050509250929050565b600080604083850312156131e057600080fd5b82356131eb81612f5e565b9150602083013580151581146130a557600080fd5b600181811c9082168061321457607f821691505b60208210810361323457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610c0957610c0961323a565b6020808252601190820152701d985b1d5948185b1c9958591e481cd95d607a1b604082015260600190565b6000602082840312156132a657600080fd5b8151610f0f81612f5e565b6000602082840312156132c357600080fd5b5051919050565b8082028115828204841417610c0957610c0961323a565b6000826132fe57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c0957610c0961323a565b634e487b7160e01b600052603260045260246000fd5b80820180821115610c0957610c0961323a565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561338f5784516001600160a01b03168352938301939183019160010161336a565b50506001600160a01b03969096166060850152505050608001529392505050565b600060208083850312156133c357600080fd5b825167ffffffffffffffff808211156133db57600080fd5b818501915085601f8301126133ef57600080fd5b815181811115613401576134016130de565b8060051b91506134128483016130f4565b818152918301840191848101908884111561342c57600080fd5b938501935b8385101561344a57845182529385019390850190613431565b98975050505050505050565b601f82111561100f57600081815260208120601f850160051c8101602086101561347d5750805b601f850160051c820191505b8181101561349c57828155600101613489565b505050505050565b815167ffffffffffffffff8111156134be576134be6130de565b6134d2816134cc8454613200565b84613456565b602080601f83116001811461350757600084156134ef5750858301515b600019600386901b1c1916600185901b17855561349c565b600085815260208120601f198616915b8281101561353657888601518255948401946001909101908401613517565b50858210156135545787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251613576818460208701612f07565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268009667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c84661696c656420746f2073656e6420457468657220746f20726563697069656ea2646970667358221220e8a906b96b86fe47fb6c6835edf4df2e9a6fdf31442fb2da6a7f38e8a83f512764736f6c63430008140033

Deployed Bytecode

0x6080604052600436106103c75760003560e01c80638c0b5e22116101f2578063bbc0c7421161010d578063dd62ed3e116100a0578063f2301efa1161006f578063f2301efa14610b5e578063f2fde38b14610b73578063f429389014610b93578063fe575a8714610ba857600080fd5b8063dd62ed3e14610af3578063ddf5451214610b13578063e2f4560514610b28578063ec28438a14610b3e57600080fd5b8063cc6df138116100dc578063cc6df13814610a7f578063d547741f14610a9f578063d8c6404b14610abf578063da90804714610ad957600080fd5b8063bbc0c74214610a07578063c024666814610a28578063c5b81fd214610a48578063c609825614610a5e57600080fd5b8063a217fddf11610185578063a9059cbb11610154578063a9059cbb14610966578063ad3cb1cc14610986578063afa4f3b2146109b7578063b62496f5146109d757600080fd5b8063a217fddf146108f0578063a29a608914610905578063a504b43b14610925578063a64e4f8a1461094557600080fd5b80639a7a23d6116101c15780639a7a23d6146108705780639d14d2a8146108905780639f111538146108b0578063a0b6c051146108d057600080fd5b80638c0b5e22146108055780638da5cb5b1461081b57806391d148541461083b57806395d89b411461085b57600080fd5b8063313ce567116102e25780634a6f25b41161027557806370a082311161024457806370a082311461078f57806379cc6790146107af57806385d30fc8146107cf5780638a8c523c146107f057600080fd5b80634a6f25b4146107165780634f1ef286146107375780634fbee1931461074a57806352d1902d1461077a57600080fd5b80633fbac287116102b15780633fbac2871461069657806342966c68146106b6578063485cc955146106d657806349bd5a5e146106f657600080fd5b8063313ce5671461062c57806336568abe1461064057806339f73a48146106605780633ee0ce021461068157600080fd5b80631694505e1161035a578063248a9ca311610329578063248a9ca3146105aa578063282c51f3146105ca5780632a929042146105ec5780632f2ff15d1461060c57600080fd5b80631694505e1461050c57806318160ddd1461052c5780632200f2b61461056a57806323b872dd1461058a57600080fd5b80630aa75f6b116103965780630aa75f6b1461046157806312ee72191461048157806313114a9d146104a157806316784a13146104d457600080fd5b806301ffc9a7146103d357806306fdde031461040857806307ce9de41461042a578063095ea7b31461044157600080fd5b366103ce57005b600080fd5b3480156103df57600080fd5b506103f36103ee366004612edd565b610bd8565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b5061041d610c0f565b6040516103ff9190612f2b565b34801561043657600080fd5b5061043f610cd2565b005b34801561044d57600080fd5b506103f361045c366004612f73565b610d13565b34801561046d57600080fd5b5061043f61047c366004612fb5565b610d2b565b34801561048d57600080fd5b5061043f61049c366004613009565b610e8d565b3480156104ad57600080fd5b50600a546104c290600160c01b900460ff1681565b60405160ff90911681526020016103ff565b3480156104e057600080fd5b506008546104f4906001600160a01b031681565b6040516001600160a01b0390911681526020016103ff565b34801561051857600080fd5b506004546104f4906001600160a01b031681565b34801561053857600080fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b6040519081526020016103ff565b34801561057657600080fd5b506007546104f4906001600160a01b031681565b34801561059657600080fd5b506103f36105a5366004613022565b610ef0565b3480156105b657600080fd5b5061055c6105c5366004613009565b610f16565b3480156105d657600080fd5b5061055c6000805160206135e183398151915281565b3480156105f857600080fd5b5061043f610607366004613063565b610f38565b34801561061857600080fd5b5061043f610627366004613080565b610fba565b34801561063857600080fd5b5060126104c2565b34801561064c57600080fd5b5061043f61065b366004613080565b610fdc565b34801561066c57600080fd5b50600a546104c290600160a81b900460ff1681565b34801561068d57600080fd5b5061043f611014565b3480156106a257600080fd5b50600a546104f4906001600160a01b031681565b3480156106c257600080fd5b5061043f6106d1366004613009565b6110ce565b3480156106e257600080fd5b5061043f6106f13660046130b0565b6110f3565b34801561070257600080fd5b506005546104f4906001600160a01b031681565b34801561072257600080fd5b50600a546104c290600160b81b900460ff1681565b61043f610745366004613125565b6115fc565b34801561075657600080fd5b506103f3610765366004613063565b60016020526000908152604090205460ff1681565b34801561078657600080fd5b5061055c611617565b34801561079b57600080fd5b5061055c6107aa366004613063565b611634565b3480156107bb57600080fd5b5061043f6107ca366004612f73565b61165c565b3480156107db57600080fd5b50600a546104c290600160b01b900460ff1681565b3480156107fc57600080fd5b5061043f611671565b34801561081157600080fd5b5061055c600b5481565b34801561082757600080fd5b506006546104f4906001600160a01b031681565b34801561084757600080fd5b506103f3610856366004613080565b6116cc565b34801561086757600080fd5b5061041d611704565b34801561087c57600080fd5b5061043f61088b3660046131cd565b611743565b34801561089c57600080fd5b5061043f6108ab366004613063565b61177f565b3480156108bc57600080fd5b506009546104f4906001600160a01b031681565b3480156108dc57600080fd5b5061043f6108eb366004613063565b611801565b3480156108fc57600080fd5b5061055c600081565b34801561091157600080fd5b5061043f610920366004613063565b611883565b34801561093157600080fd5b5061043f610940366004613063565b6118db565b34801561095157600080fd5b50600a546103f390600160d81b900460ff1681565b34801561097257600080fd5b506103f3610981366004612f73565b61195d565b34801561099257600080fd5b5061041d604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156109c357600080fd5b5061043f6109d2366004613009565b61196b565b3480156109e357600080fd5b506103f36109f2366004613063565b60036020526000908152604090205460ff1681565b348015610a1357600080fd5b50600a546103f390600160d01b900460ff1681565b348015610a3457600080fd5b5061043f610a433660046131cd565b61197c565b348015610a5457600080fd5b5061055c600d5481565b348015610a6a57600080fd5b50600a546104c290600160a01b900460ff1681565b348015610a8b57600080fd5b5061043f610a9a3660046131cd565b6119e7565b348015610aab57600080fd5b5061043f610aba366004613080565b6119fc565b348015610acb57600080fd5b50600c546103f39060ff1681565b348015610ae557600080fd5b50600e546103f39060ff1681565b348015610aff57600080fd5b5061055c610b0e3660046130b0565b611a18565b348015610b1f57600080fd5b5061043f611a62565b348015610b3457600080fd5b5061055c60005481565b348015610b4a57600080fd5b5061043f610b59366004613009565b611a8f565b348015610b6a57600080fd5b5061043f611aa0565b348015610b7f57600080fd5b5061043f610b8e366004613063565b611b1d565b348015610b9f57600080fd5b5061043f611b84565b348015610bb457600080fd5b506103f3610bc3366004613063565b60026020526000908152604090205460ff1681565b60006001600160e01b03198216637965db0b60e01b1480610c0957506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03805460609160008051602061358183398151915291610c4e90613200565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7a90613200565b8015610cc75780601f10610c9c57610100808354040283529160200191610cc7565b820191906000526020600020905b815481529060010190602001808311610caa57829003601f168201915b505050505091505090565b6000610cdd81611bd5565b600c805460ff191690556040517f444bc695716061e832f4882d957c364efc9d5af1cd4f799fde622cf36f93b5cd90600090a150565b600033610d21818585611bdf565b5060019392505050565b6000610d3681611bd5565b8183610d428688613250565b610d4c9190613250565b610d569190613250565b600a805460ff60c01b1916600160c01b60ff938416810291909117808355049091161115610dcb5760405162461bcd60e51b815260206004820152601c60248201527f73756d206f6620666565732063616e6e6f74206578636565642031300000000060448201526064015b60405180910390fd5b600a805461ffff60a01b1916600160a01b60ff88811691820260ff60a81b191692909217600160a81b8884169081029190911761ffff60b01b1916600160b01b88851690810260ff60b81b191691909117600160b81b888616908102919091179586905560408051600160c01b9097049095168652602086019390935292840152606083019190915260808201527f977c8e556a49e1b37744b9cfa8732a237139ca95e2bfd591748ce746b79e970c9060a00160405180910390a15050505050565b6000610e9881611bd5565b600054821015610eea5760405162461bcd60e51b815260206004820152601d60248201527f6d757374206265203e3d2073776170546f6b656e734174416d6f756e740000006044820152606401610dc2565b50600d55565b600033610efe858285611bec565b610f09858585611c4c565b60019150505b9392505050565b60009081526000805160206135c1833981519152602052604090206001015490565b6000610f4381611bd5565b6008546001600160a01b03808416911603610f705760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b038216610f975760405163d92e233d60e01b815260040160405180910390fd5b50600880546001600160a01b0319166001600160a01b0392909216919091179055565b610fc382610f16565b610fcc81611bd5565b610fd68383611cab565b50505050565b6001600160a01b03811633146110055760405163334bd91960e11b815260040160405180910390fd5b61100f8282611d50565b505050565b600a54600160c81b900460ff161561106e5760405162461bcd60e51b815260206004820152601860248201527f726f79616c7479206469737420696e2070726f677265737300000000000000006044820152606401610dc2565b600061107930611634565b9050806000036110c25760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610dc2565b6110cb81611dcc565b50565b6000805160206135e18339815191526110e681611bd5565b6110ef82611de3565b5050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156111395750825b905060008267ffffffffffffffff1660011480156111565750303b155b905081158015611164575080155b156111825760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156111ac57845460ff60401b1916600160401b1785555b6111f4604051806040016040528060078152602001661112505353d39160ca1b815250604051806040016040528060078152602001661112505353d39160ca1b815250611ded565b600680546001600160a01b0319166001600160a01b03891617905561121a600088611cab565b506112336000805160206135e183398151915288611cab565b50600780546001600160a01b031990811672468c1b22451ed9fabc9da32e6aea28dc03a21617825560088054821673b7401d1e52ce927bb68ca60ddde0a11dc789b112178155600980548316731a00e7dc15546b6511b66f0f5f9e2bb2a13aa3ce178155600a805490931673ac8c154a47d04fbaf0a126e4a520fbc342aa4fdd178355306000908152600160208190526040808320805460ff1990811684179091556001600160a01b038f8116855282852080548316851790557fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb49805483168517905597548816845281842080548216841790559454871683528083208054861683179055925486168252828220805485168217905593548516815220805490911690911790558616156114fc57600480546001600160a01b0319166001600160a01b03881690811782556040805163c45a015560e01b81529051919263c45a01559282820192602092908290030181865afa1580156113b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113db9190613294565b6001600160a01b031663c9c6539630600460009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561143d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114619190613294565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156114ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d29190613294565b600580546001600160a01b0319166001600160a01b039290921691821790556114fc906001611dff565b6a084595161401484a0000006000556a52b7d2dcc80cd2e4000000600b55600a805463ffffffff60a01b19166280810360a11b17908190556b204fce5e3e250261100000009060ff600160b81b8204811691600160b01b810482169161157491600160a81b8104821691600160a01b90910416613250565b61157e9190613250565b6115889190613250565b600a60186101000a81548160ff021916908360ff1602179055506115ac8882611ebd565b5083156115f357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b611604611ef3565b61160d82611f98565b6110ef8282611fa3565b6000611621612060565b506000805160206135a183398151915290565b6001600160a01b03166000908152600080516020613581833981519152602052604090205490565b611667823383611bec565b6110ef82826120a9565b600061167c81611bd5565b600a8054600c805460ff1916600117905561010160d01b61ffff60d01b199091161790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c790600090a150565b60009182526000805160206135c1833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace04805460609160008051602061358183398151915291610c4e90613200565b600061174e81611bd5565b6001600160a01b0383166117755760405163d92e233d60e01b815260040160405180910390fd5b61100f8383611dff565b600061178a81611bd5565b6009546001600160a01b038084169116036117b75760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b0382166117de5760405163d92e233d60e01b815260040160405180910390fd5b50600980546001600160a01b0319166001600160a01b0392909216919091179055565b600061180c81611bd5565b6007546001600160a01b038084169116036118395760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b0382166118605760405163d92e233d60e01b815260040160405180910390fd5b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b600061188e81611bd5565b6001600160a01b0382166118b55760405163d92e233d60e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0384161790556110ef826001611dff565b60006118e681611bd5565b600a546001600160a01b038084169116036119135760405162461bcd60e51b8152600401610dc290613269565b6001600160a01b03821661193a5760405163d92e233d60e01b815260040160405180910390fd5b50600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610d21818585611c4c565b600061197681611bd5565b50600055565b600061198781611bd5565b6001600160a01b038316600081815260016020908152604091829020805460ff191686151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb910160405180910390a2505050565b60006119f281611bd5565b61100f83836120df565b611a0582610f16565b611a0e81611bd5565b610fd68383611d50565b6001600160a01b0391821660009081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6000611a6d81611bd5565b50600a805460ff60d81b198116600160d81b9182900460ff1615909102179055565b6000611a9a81611bd5565b50600b55565b6000611aab81611bd5565b600e5460ff16611af55760405162461bcd60e51b815260206004820152601560248201527463616e206f6e6c792062652075736564206f6e636560581b6044820152606401610dc2565b611b10337002f050fe938943acc45f65568000000000611ebd565b50600e805460ff19169055565b6000611b2881611bd5565b600680546001600160a01b0319166001600160a01b03841690811790915560009081526001602081905260408220805460ff19169091179055611b6b9083611cab565b5061100f6000805160206135e183398151915283611cab565b47600003611bcb5760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b6044820152606401610dc2565b611bd3612216565b565b6110cb8133612572565b61100f83838360016125ab565b6000611bf88484611a18565b90506000198114610fd65781811015611c3d57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610dc2565b610fd6848484840360006125ab565b6001600160a01b038316611c7657604051634b637e8f60e11b815260006004820152602401610dc2565b6001600160a01b038216611ca05760405163ec442f0560e01b815260006004820152602401610dc2565b61100f838383612693565b60006000805160206135c1833981519152611cc684846116cc565b611d46576000848152602082815260408083206001600160a01b03871684529091529020805460ff19166001179055611cfc3390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610c09565b6000915050610c09565b60006000805160206135c1833981519152611d6b84846116cc565b15611d46576000848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610c09565b611dd58161297d565b47156110cb576110cb612216565b6110cb33826120a9565b611df5612b30565b6110ef8282612b79565b6001600160a01b03821660009081526003602052604090205481151560ff909116151503611e5d5760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610dc2565b6001600160a01b038216600081815260036020908152604091829020805460ff191685151590811790915591519182527fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91015b60405180910390a25050565b6001600160a01b038216611ee75760405163ec442f0560e01b815260006004820152602401610dc2565b6110ef60008383612693565b306001600160a01b037f00000000000000000000000084d225c672ec5f4d051cc0319301fa66a8c8d850161480611f7a57507f00000000000000000000000084d225c672ec5f4d051cc0319301fa66a8c8d8506001600160a01b0316611f6e6000805160206135a1833981519152546001600160a01b031690565b6001600160a01b031614155b15611bd35760405163703e46dd60e11b815260040160405180910390fd5b60006110ef81611bd5565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611ffd575060408051601f3d908101601f19168201909252611ffa918101906132b1565b60015b61202557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610dc2565b6000805160206135a1833981519152811461205657604051632a87526960e21b815260048101829052602401610dc2565b61100f8383612bca565b306001600160a01b037f00000000000000000000000084d225c672ec5f4d051cc0319301fa66a8c8d8501614611bd35760405163703e46dd60e11b815260040160405180910390fd5b6001600160a01b0382166120d357604051634b637e8f60e11b815260006004820152602401610dc2565b6110ef82600083612693565b80156121be576001600160a01b03821661210c5760405163d92e233d60e01b815260040160405180910390fd5b6004546001600160a01b0383811691161480159061213857506005546001600160a01b03838116911614155b801561215d57506001600160a01b03821660009081526001602052604090205460ff16155b801561218257506001600160a01b03821660009081526003602052604090205460ff16155b6121be5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610dc2565b6001600160a01b038216600081815260026020908152604091829020805460ff191685151590811790915591519182527f2b7046b0c3f1d2cfa561874048b25b501ea267e88ea19420c5509b4aba05831d9101611eb1565b600754600a5447916000916001600160a01b039091169060ff600160c01b820481169161224c91600160a01b90910416856132ca565b61225691906132e1565b604051600081818185875af1925050503d8060008114612292576040519150601f19603f3d011682016040523d82523d6000602084013e612297565b606091505b505080915050806122e45760405162461bcd60e51b8152602060048201526023602482015260008051602061360183398151915260448201526274203160e81b6064820152608401610dc2565b600854600a546001600160a01b039091169060ff600160c01b820481169161231591600160a81b90910416856132ca565b61231f91906132e1565b604051600081818185875af1925050503d806000811461235b576040519150601f19603f3d011682016040523d82523d6000602084013e612360565b606091505b505080915050806123ad5760405162461bcd60e51b815260206004820152602360248201526000805160206136018339815191526044820152623a101960e91b6064820152608401610dc2565b600954600a546001600160a01b039091169060ff600160c01b82048116916123de91600160b01b90910416856132ca565b6123e891906132e1565b604051600081818185875af1925050503d8060008114612424576040519150601f19603f3d011682016040523d82523d6000602084013e612429565b606091505b505080915050806124765760405162461bcd60e51b8152602060048201526023602482015260008051602061360183398151915260448201526274203360e81b6064820152608401610dc2565b600a546001600160a01b0381169060ff600160c01b82048116916124a391600160b81b90910416856132ca565b6124ad91906132e1565b604051600081818185875af1925050503d80600081146124e9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ee565b606091505b5050809150508061253b5760405162461bcd60e51b815260206004820152602360248201526000805160206136018339815191526044820152621d080d60ea1b6064820152608401610dc2565b6040518281527f8959421a1320789a49eeec01a4750caf8a30733c3db14f000d84484df89300f99060200160405180910390a15050565b61257c82826116cc565b6110ef5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610dc2565b6000805160206135818339815191526001600160a01b0385166125e45760405163e602df0560e01b815260006004820152602401610dc2565b6001600160a01b03841661260e57604051634a1406b160e11b815260006004820152602401610dc2565b6001600160a01b0380861660009081526001830160209081526040808320938816835292905220839055811561268c57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258560405161268391815260200190565b60405180910390a35b5050505050565b6001600160a01b03831660009081526001602052604081205460ff16806126d257506001600160a01b03831660009081526001602052604090205460ff165b9050806128f857600a54600160d01b900460ff166127325760405162461bcd60e51b815260206004820181905260248201527f54726164696e6720686173206e6f7420796574206265656e20656e61626c65646044820152606401610dc2565b6001600160a01b03841660009081526002602052604090205460ff161561277a576040516001620b633d60e31b031981526001600160a01b0385166004820152602401610dc2565b6001600160a01b03831660009081526002602052604090205460ff16156127c2576040516001620b633d60e31b031981526001600160a01b0384166004820152602401610dc2565b6001600160a01b03841660009081526003602052604090205460ff1680156127ec5750600c5460ff165b156127fc576127fc8360016120df565b6001600160a01b03841660009081526003602052604090205460ff168061283b57506001600160a01b03831660009081526003602052604090205460ff165b1561288b57600b5482111561288b5760405162461bcd60e51b815260206004820152601660248201527513585e08151e08105b5bdd5b9d08195e18d95959195960521b6044820152606401610dc2565b6001600160a01b03841660009081526003602052604090205460ff166128f85760006128b630611634565b600054600a5491925082101590600160c81b900460ff161580156128d75750805b156128f557600d548211156128ec57600d5491505b6128f582611dcc565b50505b600a54600090600160c81b900460ff16158015612913575081155b80156129285750600a54600160d81b900460ff165b9050801561297257600a5460009060649061294d90600160c01b900460ff16866132ca565b61295791906132e1565b90506129638185613303565b9350612970863083612c20565b505b61268c858585612c20565b600a805460ff60c81b1916600160c81b17905560408051600280825260608201835260009260208301908036833701905050905030816000815181106129c5576129c5613316565b60200260200101906001600160a01b031690816001600160a01b031681525050600460009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5c9190613294565b81600181518110612a6f57612a6f613316565b6001600160a01b039283166020918202929092010152600454612a959130911684611bdf565b6004546001600160a01b03166318cbafe58360008430612ab74261012c61332c565b6040518663ffffffff1660e01b8152600401612ad795949392919061333f565b6000604051808303816000875af1158015612af6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b1e91908101906133b0565b5050600a805460ff60c81b1916905550565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611bd357604051631afcd79f60e31b815260040160405180910390fd5b612b81612b30565b6000805160206135818339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03612bbb84826134a4565b5060048101610fd683826134a4565b612bd382612d5e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115612c185761100f8282612dc3565b6110ef612e39565b6000805160206135818339815191526001600160a01b038416612c5c5781816002016000828254612c51919061332c565b90915550612cce9050565b6001600160a01b03841660009081526020829052604090205482811015612caf5760405163391434e360e21b81526001600160a01b03861660048201526024810182905260448101849052606401610dc2565b6001600160a01b03851660009081526020839052604090209083900390555b6001600160a01b038316612cec576002810180548390039055612d0b565b6001600160a01b03831660009081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d5091815260200190565b60405180910390a350505050565b806001600160a01b03163b600003612d9457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610dc2565b6000805160206135a183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051612de09190613564565b600060405180830381855af49150503d8060008114612e1b576040519150601f19603f3d011682016040523d82523d6000602084013e612e20565b606091505b5091509150612e30858383612e58565b95945050505050565b3415611bd35760405163b398979f60e01b815260040160405180910390fd5b606082612e6d57612e6882612eb4565b610f0f565b8151158015612e8457506001600160a01b0384163b155b15612ead57604051639996b31560e01b81526001600160a01b0385166004820152602401610dc2565b5080610f0f565b805115612ec45780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b600060208284031215612eef57600080fd5b81356001600160e01b031981168114610f0f57600080fd5b60005b83811015612f22578181015183820152602001612f0a565b50506000910152565b6020815260008251806020840152612f4a816040850160208701612f07565b601f01601f19169190910160400192915050565b6001600160a01b03811681146110cb57600080fd5b60008060408385031215612f8657600080fd5b8235612f9181612f5e565b946020939093013593505050565b803560ff81168114612fb057600080fd5b919050565b60008060008060808587031215612fcb57600080fd5b612fd485612f9f565b9350612fe260208601612f9f565b9250612ff060408601612f9f565b9150612ffe60608601612f9f565b905092959194509250565b60006020828403121561301b57600080fd5b5035919050565b60008060006060848603121561303757600080fd5b833561304281612f5e565b9250602084013561305281612f5e565b929592945050506040919091013590565b60006020828403121561307557600080fd5b8135610f0f81612f5e565b6000806040838503121561309357600080fd5b8235915060208301356130a581612f5e565b809150509250929050565b600080604083850312156130c357600080fd5b82356130ce81612f5e565b915060208301356130a581612f5e565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561311d5761311d6130de565b604052919050565b6000806040838503121561313857600080fd5b823561314381612f5e565b915060208381013567ffffffffffffffff8082111561316157600080fd5b818601915086601f83011261317557600080fd5b813581811115613187576131876130de565b613199601f8201601f191685016130f4565b915080825287848285010111156131af57600080fd5b80848401858401376000848284010152508093505050509250929050565b600080604083850312156131e057600080fd5b82356131eb81612f5e565b9150602083013580151581146130a557600080fd5b600181811c9082168061321457607f821691505b60208210810361323457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610c0957610c0961323a565b6020808252601190820152701d985b1d5948185b1c9958591e481cd95d607a1b604082015260600190565b6000602082840312156132a657600080fd5b8151610f0f81612f5e565b6000602082840312156132c357600080fd5b5051919050565b8082028115828204841417610c0957610c0961323a565b6000826132fe57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610c0957610c0961323a565b634e487b7160e01b600052603260045260246000fd5b80820180821115610c0957610c0961323a565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561338f5784516001600160a01b03168352938301939183019160010161336a565b50506001600160a01b03969096166060850152505050608001529392505050565b600060208083850312156133c357600080fd5b825167ffffffffffffffff808211156133db57600080fd5b818501915085601f8301126133ef57600080fd5b815181811115613401576134016130de565b8060051b91506134128483016130f4565b818152918301840191848101908884111561342c57600080fd5b938501935b8385101561344a57845182529385019390850190613431565b98975050505050505050565b601f82111561100f57600081815260208120601f850160051c8101602086101561347d5750805b601f850160051c820191505b8181101561349c57828155600101613489565b505050505050565b815167ffffffffffffffff8111156134be576134be6130de565b6134d2816134cc8454613200565b84613456565b602080601f83116001811461350757600084156134ef5750858301515b600019600386901b1c1916600185901b17855561349c565b600085815260208120601f198616915b8281101561353657888601518255948401946001909101908401613517565b50858210156135545787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008251613576818460208701612f07565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b6268009667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c84661696c656420746f2073656e6420457468657220746f20726563697069656ea2646970667358221220e8a906b96b86fe47fb6c6835edf4df2e9a6fdf31442fb2da6a7f38e8a83f512764736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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