Token

SGtest (SGtest)

Overview

Max Total Supply

10,000,000,000,000,000,000,000,000 SGtest

Holders

1

Market

Price

-

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 SGtest

Value
$0.00
0x0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
SGtest5

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

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

//███████╗ ██████╗ ███╗   ██╗██╗ ██████╗ ██████╗ ███████╗ █████╗ ██████╗ 
//██╔════╝██╔═══██╗████╗  ██║██║██╔════╝██╔════╝ ██╔════╝██╔══██╗██╔══██╗
//███████╗██║   ██║██╔██╗ ██║██║██║     ██║  ███╗█████╗  ███████║██████╔╝
//╚════██║██║   ██║██║╚██╗██║██║██║     ██║   ██║██╔══╝  ██╔══██║██╔══██╗
//███████║╚██████╔╝██║ ╚████║██║╚██████╗╚██████╔╝███████╗██║  ██║██║  ██║
//╚══════╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝
pragma solidity ^0.8.20;

import "./Context.sol"; 

abstract contract Taxable is Context {
    /// @dev Events defined for any contract changes.

    event TaxOn(address account); // Emits event "Tax On" when tax is enabled, returning the address of the Governor.
    event TaxOff(address account); // Emits event "Tax Off" when tax is disabled, returning the address of the Governor.
    event TaxChanged(address account); // Emits event "Tax Changed" when tax amount is updated, returning the address of the Governor.
    event TaxDestinationChanged(address account); // Emits event "Tax Destination Changed" when tax destination is changed, returning the address of the President.

    /// @dev Name and type of constants defined.

    bool private _taxed; // Stores whether tax is enabled/disabled in a boolean.
    uint private _thetax; // Stores tax amount as a uint256 integer.
    uint private _maxtax; // Stores maximum tax amount as a uint256 integer.
    uint private _mintax; // Stores minimum tax amount as a uint256 integer.
    address private _taxdestination; // Stores tax destination as a blockchain address type.

    /// @dev Constructor adds values to constants by passing arguments from token constructor.

    constructor(
        bool __taxed,
        uint __thetax,
        uint __maxtax,
        uint __mintax,
        address __taxdestination
    ) {
        _taxed = __taxed; // Recommended: false
        _thetax = __thetax; // Recommended: 100 ; 100 = 1%
        _maxtax = __maxtax; // Recommended: 3000 ; 3000 = 30%
        _mintax = __mintax; // Recommended: 10 ; 10 = 0.1%
        _taxdestination = __taxdestination; // Recommend a fresh, dedicated secure treasury hot or cold wallet that is not the deployer.
    }

    /// @dev Modifiers throw errors if conditions are not met.

    modifier whenNotTaxed() {
        // Modifier for requiring the tax be off in order for the caller function to work.
        _requireNotTaxed(); // Function requires tax be off.
        _;
    }

    modifier whenTaxed() {
        // Modifier for requiring the tax be on in order for the caller function to work.
        _requireTaxed(); // Function requires tax be on.
        _;
    }

    /// @dev Public view functions allow privately stored constants to be interfaced.

    function taxed() public view virtual returns (bool) {
        // Function enables public interface for tax enabled/disabled boolean.
        return _taxed; // Returns true if tax is enabled, false if it is disabled.
    }

    function thetax() public view virtual returns (uint) {
        // Function enables public interface for tax amount in points.
        return _thetax; // Returns the current tax amount in points.
    }

    function taxdestination() public view virtual returns (address) {
        // Function enables public interface for tax destination address.
        return _taxdestination; // Returns the destination address for the tax.
    }

    /// @dev Internal view functions contain the require() statements for the modifiers to use.

    function _requireNotTaxed() internal view virtual {
        // Function is used in the whenNotTaxed() modifier.
        require(!taxed(), "Taxable: taxed"); // Throws the call if the tax is disabled.
    }

    function _requireTaxed() internal view virtual {
        // Function is used in the whenTaxed() modifier.
        require(taxed(), "Taxable: not taxed"); // Throws the call if the tax is enabled.
    }

    /// @dev Internal virtual functions perform the requested contract updates and emit the events to the blockchain.

    function _taxon() internal virtual whenNotTaxed {
        // Function turns on the tax if it was disabled and emits "Tax On" event.
        _taxed = true; // Sets the tax enabled boolean to true, enabling the tax.
        emit TaxOn(_msgSender()); // Emits the "Tax On" event to the blockchain.
    }

    function _taxoff() internal virtual whenTaxed {
        // Function turns off the tax if it was enabled and emits "Tax Off" event.
        _taxed = false; // Sets the tax enabled boolean to false, disabling the tax.
        emit TaxOff(_msgSender()); // Emits the "Tax Off" event to the blockchain.
    }

    function _updatetax(uint newtax) internal virtual {
        // Function updates the tax amount if in allowable range and emits "Tax Changed" event.
        require(newtax <= _maxtax, "Taxable: tax is too high"); // Throws the call if the new tax is above the maximum tax.
        require(newtax >= _mintax, "Taxable: tax is too low"); // Throws the call if the new tax is below the minimum tax.
        _thetax = newtax; // Sets the tax amount integer to the new value, updating the tax amount.
        emit TaxChanged(_msgSender()); // Emits the "Tax Changed" event to the blockchain.
    }

    function _updatetaxdestination(address newdestination) internal virtual {
        // Function updates the tax destination address and emits "Tax Destination Changed" event.
        _taxdestination = newdestination; // Sets the tax destination address to the new value, updating the tax destination address.
        emit TaxDestinationChanged(_msgSender()); // Emits the "Tax Destination Changed" event to the blockchain.
    }
}



pragma solidity ^0.8.20;

import "./ReentrancyGuard.sol";
import "./ERC20.sol";
import "./AccessControl.sol";

contract SGtest5 is ReentrancyGuard, ERC20, AccessControl, Taxable {
    bytes32 public constant NOT_TAXED_FROM = keccak256("NOT_TAXED_FROM");
    bytes32 public constant NOT_TAXED_TO = keccak256("NOT_TAXED_TO");
    bytes32 public constant ALWAYS_TAXED_FROM = keccak256("ALWAYS_TAXED_FROM");
    bytes32 public constant ALWAYS_TAXED_TO = keccak256("ALWAYS_TAXED_TO");

    constructor(
        string memory __name,
        string memory __symbol,
        uint256 __totalSupply, // Allow the user to set the total supply
        uint __thetax, // Allow user to set initial tax
        address __taxReceiver // Tax receiver passed by user
    ) 
        ERC20(__name, __symbol)
        Taxable(true, __thetax, 3000, 10, __taxReceiver)
    {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); // Assign the deployer as the admin
        _grantRole(NOT_TAXED_FROM, msg.sender);
        _grantRole(NOT_TAXED_TO, msg.sender);
        _grantRole(NOT_TAXED_FROM, address(this));
        _grantRole(NOT_TAXED_TO, address(this));
        
        // Initial mint to the deployer's address, taking into account the decimals.
        _mint(msg.sender, __totalSupply * 10 ** 18);

        // Tax is off by default because we only want some addresses to be taxed.
        _taxoff();
    }



    function enableTax() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _taxon();
    }

    function disableTax() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _taxoff();
    }

    function updateTax(uint newtax) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _updatetax(newtax);
    }

    function updateTaxDestination(
        address newdestination
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _updatetaxdestination(newdestination);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(ERC20) nonReentrant {
        if (hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) {
            super._transfer(from, to, amount);
        } else {
            if (
                (hasRole(NOT_TAXED_FROM, from) ||
                    hasRole(NOT_TAXED_TO, to) ||
                    !taxed()) &&
                !hasRole(ALWAYS_TAXED_FROM, from) &&
                !hasRole(ALWAYS_TAXED_TO, to)
            ) {
                super._transfer(from, to, amount);
            } else {
                require(
                    balanceOf(from) >= amount,
                    "Error: transfer amount exceeds balance"
                );
                super._transfer(
                    from,
                    taxdestination(),
                    (amount * thetax()) / 10000
                );
                super._transfer(
                    from,
                    to,
                    (amount * (10000 - thetax())) / 10000
                );
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * 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}:
 *
 * ```
 * 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.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 3 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";

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

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

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

File 10 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

import "./Math.sol";

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"uint256","name":"__totalSupply","type":"uint256"},{"internalType":"uint256","name":"__thetax","type":"uint256"},{"internalType":"address","name":"__taxReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"TaxChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"TaxDestinationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"TaxOff","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"TaxOn","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"},{"inputs":[],"name":"ALWAYS_TAXED_FROM","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALWAYS_TAXED_TO","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":"NOT_TAXED_FROM","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOT_TAXED_TO","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTax","outputs":[],"stateMutability":"nonpayable","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxdestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thetax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newtax","type":"uint256"}],"name":"updateTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newdestination","type":"address"}],"name":"updateTaxDestination","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003848380380620038488339818101604052810190620000379190620007f4565b600182610bb8600a848989600160008190555081600490816200005b919062000afb565b5080600590816200006d919062000afb565b50505084600760006101000a81548160ff021916908315150217905550836008819055508260098190555081600a8190555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620000fa6000801b336200020460201b60201c565b6200012c7f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed2443461237336200020460201b60201c565b6200015e7f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff336200020460201b60201c565b620001907f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed2443461237306200020460201b60201c565b620001c27f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff306200020460201b60201c565b620001e933670de0b6b3a764000085620001dd919062000c11565b620002f660201b60201c565b620001f96200046460201b60201c565b505050505062000de8565b620002168282620004d960201b60201c565b620002f25760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002976200054460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000368576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200035f9062000cbd565b60405180910390fd5b6200037c600083836200054c60201b60201c565b806003600082825462000390919062000cdf565b9250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000444919062000d2b565b60405180910390a362000460600083836200055160201b60201c565b5050565b620004746200055660201b60201c565b6000600760006101000a81548160ff0219169083151502179055507f8b99205429b09a5a41d0d69839e5129b5f813b29a8e9924b45131170948d88a8620004c06200054460201b60201c565b604051620004cf919062000d59565b60405180910390a1565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b505050565b505050565b62000566620005aa60201b60201c565b620005a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200059f9062000dc6565b60405180910390fd5b565b6000600760009054906101000a900460ff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200062a82620005df565b810181811067ffffffffffffffff821117156200064c576200064b620005f0565b5b80604052505050565b600062000661620005c1565b90506200066f82826200061f565b919050565b600067ffffffffffffffff821115620006925762000691620005f0565b5b6200069d82620005df565b9050602081019050919050565b60005b83811015620006ca578082015181840152602081019050620006ad565b60008484015250505050565b6000620006ed620006e78462000674565b62000655565b9050828152602081018484840111156200070c576200070b620005da565b5b62000719848285620006aa565b509392505050565b600082601f830112620007395762000738620005d5565b5b81516200074b848260208601620006d6565b91505092915050565b6000819050919050565b620007698162000754565b81146200077557600080fd5b50565b60008151905062000789816200075e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007bc826200078f565b9050919050565b620007ce81620007af565b8114620007da57600080fd5b50565b600081519050620007ee81620007c3565b92915050565b600080600080600060a08688031215620008135762000812620005cb565b5b600086015167ffffffffffffffff811115620008345762000833620005d0565b5b620008428882890162000721565b955050602086015167ffffffffffffffff811115620008665762000865620005d0565b5b620008748882890162000721565b9450506040620008878882890162000778565b93505060606200089a8882890162000778565b9250506080620008ad88828901620007dd565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200090d57607f821691505b602082108103620009235762000922620008c5565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200098d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200094e565b6200099986836200094e565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620009dc620009d6620009d08462000754565b620009b1565b62000754565b9050919050565b6000819050919050565b620009f883620009bb565b62000a1062000a0782620009e3565b8484546200095b565b825550505050565b600090565b62000a2762000a18565b62000a34818484620009ed565b505050565b5b8181101562000a5c5762000a5060008262000a1d565b60018101905062000a3a565b5050565b601f82111562000aab5762000a758162000929565b62000a80846200093e565b8101602085101562000a90578190505b62000aa862000a9f856200093e565b83018262000a39565b50505b505050565b600082821c905092915050565b600062000ad06000198460080262000ab0565b1980831691505092915050565b600062000aeb838362000abd565b9150826002028217905092915050565b62000b0682620008ba565b67ffffffffffffffff81111562000b225762000b21620005f0565b5b62000b2e8254620008f4565b62000b3b82828562000a60565b600060209050601f83116001811462000b73576000841562000b5e578287015190505b62000b6a858262000add565b86555062000bda565b601f19841662000b838662000929565b60005b8281101562000bad5784890151825560018201915060208501945060208101905062000b86565b8683101562000bcd578489015162000bc9601f89168262000abd565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000c1e8262000754565b915062000c2b8362000754565b925082820262000c3b8162000754565b9150828204841483151762000c555762000c5462000be2565b5b5092915050565b600082825260208201905092915050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600062000ca5601f8362000c5c565b915062000cb28262000c6d565b602082019050919050565b6000602082019050818103600083015262000cd88162000c96565b9050919050565b600062000cec8262000754565b915062000cf98362000754565b925082820190508082111562000d145762000d1362000be2565b5b92915050565b62000d258162000754565b82525050565b600060208201905062000d42600083018462000d1a565b92915050565b62000d5381620007af565b82525050565b600060208201905062000d70600083018462000d48565b92915050565b7f54617861626c653a206e6f742074617865640000000000000000000000000000600082015250565b600062000dae60128362000c5c565b915062000dbb8262000d76565b602082019050919050565b6000602082019050818103600083015262000de18162000d9f565b9050919050565b612a508062000df86000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806353eb3bcf11610104578063a217fddf116100a2578063cca0feb611610071578063cca0feb61461054a578063ced695a414610566578063d547741f14610570578063dd62ed3e1461058c576101cf565b8063a217fddf146104ae578063a457c2d7146104cc578063a9059cbb146104fc578063c498f3761461052c576101cf565b80638a2b66d1116100de5780638a2b66d11461042457806391d148541461044257806395d89b41146104725780639e01392f14610490576101cf565b806353eb3bcf146103cc5780635f64d730146103d657806370a08231146103f4576101cf565b80632f2ff15d1161017157806336568abe1161014b57806336568abe1461034457806339509351146103605780633b9b03141461039057806346a85aa4146103ae576101cf565b80632f2ff15d146102ee578063313ce5671461030a57806332c9402114610328576101cf565b806318160ddd116101ad57806318160ddd1461025257806323b872dd14610270578063248a9ca3146102a05780632713c21e146102d0576101cf565b806301ffc9a7146101d457806306fdde0314610204578063095ea7b314610222575b600080fd5b6101ee60048036038101906101e99190611b3a565b6105bc565b6040516101fb9190611b82565b60405180910390f35b61020c610636565b6040516102199190611c2d565b60405180910390f35b61023c60048036038101906102379190611ce3565b6106c8565b6040516102499190611b82565b60405180910390f35b61025a6106eb565b6040516102679190611d32565b60405180910390f35b61028a60048036038101906102859190611d4d565b6106f5565b6040516102979190611b82565b60405180910390f35b6102ba60048036038101906102b59190611dd6565b610724565b6040516102c79190611e12565b60405180910390f35b6102d8610744565b6040516102e59190611e12565b60405180910390f35b61030860048036038101906103039190611e2d565b610768565b005b610312610789565b60405161031f9190611e89565b60405180910390f35b610342600480360381019061033d9190611ea4565b610792565b005b61035e60048036038101906103599190611e2d565b6107ac565b005b61037a60048036038101906103759190611ce3565b61082f565b6040516103879190611b82565b60405180910390f35b610398610866565b6040516103a59190611d32565b60405180910390f35b6103b6610870565b6040516103c39190611e12565b60405180910390f35b6103d4610894565b005b6103de6108ac565b6040516103eb9190611e12565b60405180910390f35b61040e60048036038101906104099190611ea4565b6108d0565b60405161041b9190611d32565b60405180910390f35b61042c610919565b6040516104399190611ee0565b60405180910390f35b61045c60048036038101906104579190611e2d565b610943565b6040516104699190611b82565b60405180910390f35b61047a6109ae565b6040516104879190611c2d565b60405180910390f35b610498610a40565b6040516104a59190611b82565b60405180910390f35b6104b6610a57565b6040516104c39190611e12565b60405180910390f35b6104e660048036038101906104e19190611ce3565b610a5e565b6040516104f39190611b82565b60405180910390f35b61051660048036038101906105119190611ce3565b610ad5565b6040516105239190611b82565b60405180910390f35b610534610af8565b6040516105419190611e12565b60405180910390f35b610564600480360381019061055f9190611efb565b610b1c565b005b61056e610b36565b005b61058a60048036038101906105859190611e2d565b610b4e565b005b6105a660048036038101906105a19190611f28565b610b6f565b6040516105b39190611d32565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061062f575061062e82610bf6565b5b9050919050565b60606004805461064590611f97565b80601f016020809104026020016040519081016040528092919081815260200182805461067190611f97565b80156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b5050505050905090565b6000806106d3610c60565b90506106e0818585610c68565b600191505092915050565b6000600354905090565b600080610700610c60565b905061070d858285610e31565b610718858585610ebd565b60019150509392505050565b600060066000838152602001908152602001600020600101549050919050565b7f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed244346123781565b61077182610724565b61077a8161108f565b61078483836110a3565b505050565b60006012905090565b6000801b61079f8161108f565b6107a882611184565b5050565b6107b4610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610821576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108189061203a565b60405180910390fd5b61082b8282611206565b5050565b60008061083a610c60565b905061085b81858561084c8589610b6f565b6108569190612089565b610c68565b600191505092915050565b6000600854905090565b7fdb1f6cc858f64c436f0ba814bf59b72262e27f9b82ae65442c00c7cfad070f3581565b6000801b6108a18161108f565b6108a96112e8565b50565b7f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff81565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600580546109bd90611f97565b80601f01602080910402602001604051908101604052809291908181526020018280546109e990611f97565b8015610a365780601f10610a0b57610100808354040283529160200191610a36565b820191906000526020600020905b815481529060010190602001808311610a1957829003601f168201915b5050505050905090565b6000600760009054906101000a900460ff16905090565b6000801b81565b600080610a69610c60565b90506000610a778286610b6f565b905083811015610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab39061212f565b60405180910390fd5b610ac98286868403610c68565b60019250505092915050565b600080610ae0610c60565b9050610aed818585610ebd565b600191505092915050565b7f3c9053d8d897bea84f1a2e8814845cc40f47b0a508dc93e56bc37c81c21a3b7881565b6000801b610b298161108f565b610b328261134b565b5050565b6000801b610b438161108f565b610b4b61141d565b50565b610b5782610724565b610b608161108f565b610b6a8383611206565b505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cce906121c1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3d90612253565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610e249190611d32565b60405180910390a3505050565b6000610e3d8484610b6f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610eb75781811015610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906122bf565b60405180910390fd5b610eb68484848403610c68565b5b50505050565b610ec5611480565b610ed26000801b33610943565b15610ee757610ee28383836114cf565b611082565b610f117f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed244346123784610943565b80610f425750610f417f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff83610943565b5b80610f525750610f50610a40565b155b8015610f855750610f837f3c9053d8d897bea84f1a2e8814845cc40f47b0a508dc93e56bc37c81c21a3b7884610943565b155b8015610fb85750610fb67fdb1f6cc858f64c436f0ba814bf59b72262e27f9b82ae65442c00c7cfad070f3583610943565b155b15610fcd57610fc88383836114cf565b611081565b80610fd7846108d0565b1015611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90612351565b60405180910390fd5b61104983611024610919565b61271061102f610866565b8561103a9190612371565b61104491906123e2565b6114cf565b6110808383612710611059610866565b6127106110669190612413565b856110719190612371565b61107b91906123e2565b6114cf565b5b5b61108a611748565b505050565b6110a08161109b610c60565b611752565b50565b6110ad8282610943565b6111805760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611125610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f09eee28d8d70bfad809ce8acadd46ce657b1fa64646b1e4b414e6bbb2eb2c8fa6111ee610c60565b6040516111fb9190611ee0565b60405180910390a150565b6112108282610943565b156112e45760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611289610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6112f06117d7565b6001600760006101000a81548160ff0219169083151502179055507fcca130fdd52ce6e5eedb160c5f635a53883abcfe2b46453038a1516d7d5380b9611334610c60565b6040516113419190611ee0565b60405180910390a1565b600954811115611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790612493565b60405180910390fd5b600a548110156113d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cc906124ff565b60405180910390fd5b806008819055507fc8eab30ec12770242ba7c205b239d632db8d3f54b3392aa8692893c8fd07abc3611405610c60565b6040516114129190611ee0565b60405180910390a150565b611425611821565b6000600760006101000a81548160ff0219169083151502179055507f8b99205429b09a5a41d0d69839e5129b5f813b29a8e9924b45131170948d88a8611469610c60565b6040516114769190611ee0565b60405180910390a1565b6002600054036114c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bc9061256b565b60405180910390fd5b6002600081905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361153e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611535906125fd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a49061268f565b60405180910390fd5b6115b883838361186a565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561163f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163690612721565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161172f9190611d32565b60405180910390a361174284848461186f565b50505050565b6001600081905550565b61175c8282610943565b6117d35761176981611874565b6117778360001c60206118a1565b604051602001611788929190612815565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ca9190611c2d565b60405180910390fd5b5050565b6117df610a40565b1561181f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118169061289b565b60405180910390fd5b565b611829610a40565b611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185f90612907565b60405180910390fd5b565b505050565b505050565b606061189a8273ffffffffffffffffffffffffffffffffffffffff16601460ff166118a1565b9050919050565b6060600060028360026118b49190612371565b6118be9190612089565b67ffffffffffffffff8111156118d7576118d6612927565b5b6040519080825280601f01601f1916602001820160405280156119095781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061194157611940612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106119a5576119a4612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026119e59190612371565b6119ef9190612089565b90505b6001811115611a8f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611a3157611a30612956565b5b1a60f81b828281518110611a4857611a47612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611a8890612985565b90506119f2565b5060008414611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca906129fa565b60405180910390fd5b8091505092915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b1781611ae2565b8114611b2257600080fd5b50565b600081359050611b3481611b0e565b92915050565b600060208284031215611b5057611b4f611add565b5b6000611b5e84828501611b25565b91505092915050565b60008115159050919050565b611b7c81611b67565b82525050565b6000602082019050611b976000830184611b73565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bd7578082015181840152602081019050611bbc565b60008484015250505050565b6000601f19601f8301169050919050565b6000611bff82611b9d565b611c098185611ba8565b9350611c19818560208601611bb9565b611c2281611be3565b840191505092915050565b60006020820190508181036000830152611c478184611bf4565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c7a82611c4f565b9050919050565b611c8a81611c6f565b8114611c9557600080fd5b50565b600081359050611ca781611c81565b92915050565b6000819050919050565b611cc081611cad565b8114611ccb57600080fd5b50565b600081359050611cdd81611cb7565b92915050565b60008060408385031215611cfa57611cf9611add565b5b6000611d0885828601611c98565b9250506020611d1985828601611cce565b9150509250929050565b611d2c81611cad565b82525050565b6000602082019050611d476000830184611d23565b92915050565b600080600060608486031215611d6657611d65611add565b5b6000611d7486828701611c98565b9350506020611d8586828701611c98565b9250506040611d9686828701611cce565b9150509250925092565b6000819050919050565b611db381611da0565b8114611dbe57600080fd5b50565b600081359050611dd081611daa565b92915050565b600060208284031215611dec57611deb611add565b5b6000611dfa84828501611dc1565b91505092915050565b611e0c81611da0565b82525050565b6000602082019050611e276000830184611e03565b92915050565b60008060408385031215611e4457611e43611add565b5b6000611e5285828601611dc1565b9250506020611e6385828601611c98565b9150509250929050565b600060ff82169050919050565b611e8381611e6d565b82525050565b6000602082019050611e9e6000830184611e7a565b92915050565b600060208284031215611eba57611eb9611add565b5b6000611ec884828501611c98565b91505092915050565b611eda81611c6f565b82525050565b6000602082019050611ef56000830184611ed1565b92915050565b600060208284031215611f1157611f10611add565b5b6000611f1f84828501611cce565b91505092915050565b60008060408385031215611f3f57611f3e611add565b5b6000611f4d85828601611c98565b9250506020611f5e85828601611c98565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611faf57607f821691505b602082108103611fc257611fc1611f68565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612024602f83611ba8565b915061202f82611fc8565b604082019050919050565b6000602082019050818103600083015261205381612017565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061209482611cad565b915061209f83611cad565b92508282019050808211156120b7576120b661205a565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612119602583611ba8565b9150612124826120bd565b604082019050919050565b600060208201905081810360008301526121488161210c565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006121ab602483611ba8565b91506121b68261214f565b604082019050919050565b600060208201905081810360008301526121da8161219e565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061223d602283611ba8565b9150612248826121e1565b604082019050919050565b6000602082019050818103600083015261226c81612230565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006122a9601d83611ba8565b91506122b482612273565b602082019050919050565b600060208201905081810360008301526122d88161229c565b9050919050565b7f4572726f723a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061233b602683611ba8565b9150612346826122df565b604082019050919050565b6000602082019050818103600083015261236a8161232e565b9050919050565b600061237c82611cad565b915061238783611cad565b925082820261239581611cad565b915082820484148315176123ac576123ab61205a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006123ed82611cad565b91506123f883611cad565b925082612408576124076123b3565b5b828204905092915050565b600061241e82611cad565b915061242983611cad565b92508282039050818111156124415761244061205a565b5b92915050565b7f54617861626c653a2074617820697320746f6f20686967680000000000000000600082015250565b600061247d601883611ba8565b915061248882612447565b602082019050919050565b600060208201905081810360008301526124ac81612470565b9050919050565b7f54617861626c653a2074617820697320746f6f206c6f77000000000000000000600082015250565b60006124e9601783611ba8565b91506124f4826124b3565b602082019050919050565b60006020820190508181036000830152612518816124dc565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612555601f83611ba8565b91506125608261251f565b602082019050919050565b6000602082019050818103600083015261258481612548565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006125e7602583611ba8565b91506125f28261258b565b604082019050919050565b60006020820190508181036000830152612616816125da565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612679602383611ba8565b91506126848261261d565b604082019050919050565b600060208201905081810360008301526126a88161266c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061270b602683611ba8565b9150612716826126af565b604082019050919050565b6000602082019050818103600083015261273a816126fe565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612782601783612741565b915061278d8261274c565b601782019050919050565b60006127a382611b9d565b6127ad8185612741565b93506127bd818560208601611bb9565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006127ff601183612741565b915061280a826127c9565b601182019050919050565b600061282082612775565b915061282c8285612798565b9150612837826127f2565b91506128438284612798565b91508190509392505050565b7f54617861626c653a207461786564000000000000000000000000000000000000600082015250565b6000612885600e83611ba8565b91506128908261284f565b602082019050919050565b600060208201905081810360008301526128b481612878565b9050919050565b7f54617861626c653a206e6f742074617865640000000000000000000000000000600082015250565b60006128f1601283611ba8565b91506128fc826128bb565b602082019050919050565b60006020820190508181036000830152612920816128e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061299082611cad565b9150600082036129a3576129a261205a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006129e4602083611ba8565b91506129ef826129ae565b602082019050919050565b60006020820190508181036000830152612a13816129d7565b905091905056fea2646970667358221220630a5dad954067bc49674bbe92c24d5a6837345a480f40d70a0d08e05944428564736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ea0a90a58865bb1ac365e00ed68792265a34ac860000000000000000000000000000000000000000000000000000000000000006534774657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065347746573740000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806353eb3bcf11610104578063a217fddf116100a2578063cca0feb611610071578063cca0feb61461054a578063ced695a414610566578063d547741f14610570578063dd62ed3e1461058c576101cf565b8063a217fddf146104ae578063a457c2d7146104cc578063a9059cbb146104fc578063c498f3761461052c576101cf565b80638a2b66d1116100de5780638a2b66d11461042457806391d148541461044257806395d89b41146104725780639e01392f14610490576101cf565b806353eb3bcf146103cc5780635f64d730146103d657806370a08231146103f4576101cf565b80632f2ff15d1161017157806336568abe1161014b57806336568abe1461034457806339509351146103605780633b9b03141461039057806346a85aa4146103ae576101cf565b80632f2ff15d146102ee578063313ce5671461030a57806332c9402114610328576101cf565b806318160ddd116101ad57806318160ddd1461025257806323b872dd14610270578063248a9ca3146102a05780632713c21e146102d0576101cf565b806301ffc9a7146101d457806306fdde0314610204578063095ea7b314610222575b600080fd5b6101ee60048036038101906101e99190611b3a565b6105bc565b6040516101fb9190611b82565b60405180910390f35b61020c610636565b6040516102199190611c2d565b60405180910390f35b61023c60048036038101906102379190611ce3565b6106c8565b6040516102499190611b82565b60405180910390f35b61025a6106eb565b6040516102679190611d32565b60405180910390f35b61028a60048036038101906102859190611d4d565b6106f5565b6040516102979190611b82565b60405180910390f35b6102ba60048036038101906102b59190611dd6565b610724565b6040516102c79190611e12565b60405180910390f35b6102d8610744565b6040516102e59190611e12565b60405180910390f35b61030860048036038101906103039190611e2d565b610768565b005b610312610789565b60405161031f9190611e89565b60405180910390f35b610342600480360381019061033d9190611ea4565b610792565b005b61035e60048036038101906103599190611e2d565b6107ac565b005b61037a60048036038101906103759190611ce3565b61082f565b6040516103879190611b82565b60405180910390f35b610398610866565b6040516103a59190611d32565b60405180910390f35b6103b6610870565b6040516103c39190611e12565b60405180910390f35b6103d4610894565b005b6103de6108ac565b6040516103eb9190611e12565b60405180910390f35b61040e60048036038101906104099190611ea4565b6108d0565b60405161041b9190611d32565b60405180910390f35b61042c610919565b6040516104399190611ee0565b60405180910390f35b61045c60048036038101906104579190611e2d565b610943565b6040516104699190611b82565b60405180910390f35b61047a6109ae565b6040516104879190611c2d565b60405180910390f35b610498610a40565b6040516104a59190611b82565b60405180910390f35b6104b6610a57565b6040516104c39190611e12565b60405180910390f35b6104e660048036038101906104e19190611ce3565b610a5e565b6040516104f39190611b82565b60405180910390f35b61051660048036038101906105119190611ce3565b610ad5565b6040516105239190611b82565b60405180910390f35b610534610af8565b6040516105419190611e12565b60405180910390f35b610564600480360381019061055f9190611efb565b610b1c565b005b61056e610b36565b005b61058a60048036038101906105859190611e2d565b610b4e565b005b6105a660048036038101906105a19190611f28565b610b6f565b6040516105b39190611d32565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061062f575061062e82610bf6565b5b9050919050565b60606004805461064590611f97565b80601f016020809104026020016040519081016040528092919081815260200182805461067190611f97565b80156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b5050505050905090565b6000806106d3610c60565b90506106e0818585610c68565b600191505092915050565b6000600354905090565b600080610700610c60565b905061070d858285610e31565b610718858585610ebd565b60019150509392505050565b600060066000838152602001908152602001600020600101549050919050565b7f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed244346123781565b61077182610724565b61077a8161108f565b61078483836110a3565b505050565b60006012905090565b6000801b61079f8161108f565b6107a882611184565b5050565b6107b4610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610821576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108189061203a565b60405180910390fd5b61082b8282611206565b5050565b60008061083a610c60565b905061085b81858561084c8589610b6f565b6108569190612089565b610c68565b600191505092915050565b6000600854905090565b7fdb1f6cc858f64c436f0ba814bf59b72262e27f9b82ae65442c00c7cfad070f3581565b6000801b6108a18161108f565b6108a96112e8565b50565b7f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff81565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600580546109bd90611f97565b80601f01602080910402602001604051908101604052809291908181526020018280546109e990611f97565b8015610a365780601f10610a0b57610100808354040283529160200191610a36565b820191906000526020600020905b815481529060010190602001808311610a1957829003601f168201915b5050505050905090565b6000600760009054906101000a900460ff16905090565b6000801b81565b600080610a69610c60565b90506000610a778286610b6f565b905083811015610abc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab39061212f565b60405180910390fd5b610ac98286868403610c68565b60019250505092915050565b600080610ae0610c60565b9050610aed818585610ebd565b600191505092915050565b7f3c9053d8d897bea84f1a2e8814845cc40f47b0a508dc93e56bc37c81c21a3b7881565b6000801b610b298161108f565b610b328261134b565b5050565b6000801b610b438161108f565b610b4b61141d565b50565b610b5782610724565b610b608161108f565b610b6a8383611206565b505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cce906121c1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3d90612253565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610e249190611d32565b60405180910390a3505050565b6000610e3d8484610b6f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610eb75781811015610ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea0906122bf565b60405180910390fd5b610eb68484848403610c68565b5b50505050565b610ec5611480565b610ed26000801b33610943565b15610ee757610ee28383836114cf565b611082565b610f117f5a8e93afc88a8f41c32a59ead48949c995bbbd1ca15b8a3f9b53ed244346123784610943565b80610f425750610f417f651dbafbf0066bfdd2c717cccc977cff67bf8877ed830ce641731c2e8837c0ff83610943565b5b80610f525750610f50610a40565b155b8015610f855750610f837f3c9053d8d897bea84f1a2e8814845cc40f47b0a508dc93e56bc37c81c21a3b7884610943565b155b8015610fb85750610fb67fdb1f6cc858f64c436f0ba814bf59b72262e27f9b82ae65442c00c7cfad070f3583610943565b155b15610fcd57610fc88383836114cf565b611081565b80610fd7846108d0565b1015611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90612351565b60405180910390fd5b61104983611024610919565b61271061102f610866565b8561103a9190612371565b61104491906123e2565b6114cf565b6110808383612710611059610866565b6127106110669190612413565b856110719190612371565b61107b91906123e2565b6114cf565b5b5b61108a611748565b505050565b6110a08161109b610c60565b611752565b50565b6110ad8282610943565b6111805760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611125610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f09eee28d8d70bfad809ce8acadd46ce657b1fa64646b1e4b414e6bbb2eb2c8fa6111ee610c60565b6040516111fb9190611ee0565b60405180910390a150565b6112108282610943565b156112e45760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611289610c60565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6112f06117d7565b6001600760006101000a81548160ff0219169083151502179055507fcca130fdd52ce6e5eedb160c5f635a53883abcfe2b46453038a1516d7d5380b9611334610c60565b6040516113419190611ee0565b60405180910390a1565b600954811115611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790612493565b60405180910390fd5b600a548110156113d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cc906124ff565b60405180910390fd5b806008819055507fc8eab30ec12770242ba7c205b239d632db8d3f54b3392aa8692893c8fd07abc3611405610c60565b6040516114129190611ee0565b60405180910390a150565b611425611821565b6000600760006101000a81548160ff0219169083151502179055507f8b99205429b09a5a41d0d69839e5129b5f813b29a8e9924b45131170948d88a8611469610c60565b6040516114769190611ee0565b60405180910390a1565b6002600054036114c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bc9061256b565b60405180910390fd5b6002600081905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361153e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611535906125fd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a49061268f565b60405180910390fd5b6115b883838361186a565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561163f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163690612721565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161172f9190611d32565b60405180910390a361174284848461186f565b50505050565b6001600081905550565b61175c8282610943565b6117d35761176981611874565b6117778360001c60206118a1565b604051602001611788929190612815565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ca9190611c2d565b60405180910390fd5b5050565b6117df610a40565b1561181f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118169061289b565b60405180910390fd5b565b611829610a40565b611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185f90612907565b60405180910390fd5b565b505050565b505050565b606061189a8273ffffffffffffffffffffffffffffffffffffffff16601460ff166118a1565b9050919050565b6060600060028360026118b49190612371565b6118be9190612089565b67ffffffffffffffff8111156118d7576118d6612927565b5b6040519080825280601f01601f1916602001820160405280156119095781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061194157611940612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106119a5576119a4612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026119e59190612371565b6119ef9190612089565b90505b6001811115611a8f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611a3157611a30612956565b5b1a60f81b828281518110611a4857611a47612956565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611a8890612985565b90506119f2565b5060008414611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca906129fa565b60405180910390fd5b8091505092915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611b1781611ae2565b8114611b2257600080fd5b50565b600081359050611b3481611b0e565b92915050565b600060208284031215611b5057611b4f611add565b5b6000611b5e84828501611b25565b91505092915050565b60008115159050919050565b611b7c81611b67565b82525050565b6000602082019050611b976000830184611b73565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bd7578082015181840152602081019050611bbc565b60008484015250505050565b6000601f19601f8301169050919050565b6000611bff82611b9d565b611c098185611ba8565b9350611c19818560208601611bb9565b611c2281611be3565b840191505092915050565b60006020820190508181036000830152611c478184611bf4565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c7a82611c4f565b9050919050565b611c8a81611c6f565b8114611c9557600080fd5b50565b600081359050611ca781611c81565b92915050565b6000819050919050565b611cc081611cad565b8114611ccb57600080fd5b50565b600081359050611cdd81611cb7565b92915050565b60008060408385031215611cfa57611cf9611add565b5b6000611d0885828601611c98565b9250506020611d1985828601611cce565b9150509250929050565b611d2c81611cad565b82525050565b6000602082019050611d476000830184611d23565b92915050565b600080600060608486031215611d6657611d65611add565b5b6000611d7486828701611c98565b9350506020611d8586828701611c98565b9250506040611d9686828701611cce565b9150509250925092565b6000819050919050565b611db381611da0565b8114611dbe57600080fd5b50565b600081359050611dd081611daa565b92915050565b600060208284031215611dec57611deb611add565b5b6000611dfa84828501611dc1565b91505092915050565b611e0c81611da0565b82525050565b6000602082019050611e276000830184611e03565b92915050565b60008060408385031215611e4457611e43611add565b5b6000611e5285828601611dc1565b9250506020611e6385828601611c98565b9150509250929050565b600060ff82169050919050565b611e8381611e6d565b82525050565b6000602082019050611e9e6000830184611e7a565b92915050565b600060208284031215611eba57611eb9611add565b5b6000611ec884828501611c98565b91505092915050565b611eda81611c6f565b82525050565b6000602082019050611ef56000830184611ed1565b92915050565b600060208284031215611f1157611f10611add565b5b6000611f1f84828501611cce565b91505092915050565b60008060408385031215611f3f57611f3e611add565b5b6000611f4d85828601611c98565b9250506020611f5e85828601611c98565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611faf57607f821691505b602082108103611fc257611fc1611f68565b5b50919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612024602f83611ba8565b915061202f82611fc8565b604082019050919050565b6000602082019050818103600083015261205381612017565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061209482611cad565b915061209f83611cad565b92508282019050808211156120b7576120b661205a565b5b92915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000612119602583611ba8565b9150612124826120bd565b604082019050919050565b600060208201905081810360008301526121488161210c565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006121ab602483611ba8565b91506121b68261214f565b604082019050919050565b600060208201905081810360008301526121da8161219e565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061223d602283611ba8565b9150612248826121e1565b604082019050919050565b6000602082019050818103600083015261226c81612230565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006122a9601d83611ba8565b91506122b482612273565b602082019050919050565b600060208201905081810360008301526122d88161229c565b9050919050565b7f4572726f723a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061233b602683611ba8565b9150612346826122df565b604082019050919050565b6000602082019050818103600083015261236a8161232e565b9050919050565b600061237c82611cad565b915061238783611cad565b925082820261239581611cad565b915082820484148315176123ac576123ab61205a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006123ed82611cad565b91506123f883611cad565b925082612408576124076123b3565b5b828204905092915050565b600061241e82611cad565b915061242983611cad565b92508282039050818111156124415761244061205a565b5b92915050565b7f54617861626c653a2074617820697320746f6f20686967680000000000000000600082015250565b600061247d601883611ba8565b915061248882612447565b602082019050919050565b600060208201905081810360008301526124ac81612470565b9050919050565b7f54617861626c653a2074617820697320746f6f206c6f77000000000000000000600082015250565b60006124e9601783611ba8565b91506124f4826124b3565b602082019050919050565b60006020820190508181036000830152612518816124dc565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612555601f83611ba8565b91506125608261251f565b602082019050919050565b6000602082019050818103600083015261258481612548565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006125e7602583611ba8565b91506125f28261258b565b604082019050919050565b60006020820190508181036000830152612616816125da565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000612679602383611ba8565b91506126848261261d565b604082019050919050565b600060208201905081810360008301526126a88161266c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b600061270b602683611ba8565b9150612716826126af565b604082019050919050565b6000602082019050818103600083015261273a816126fe565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000612782601783612741565b915061278d8261274c565b601782019050919050565b60006127a382611b9d565b6127ad8185612741565b93506127bd818560208601611bb9565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006127ff601183612741565b915061280a826127c9565b601182019050919050565b600061282082612775565b915061282c8285612798565b9150612837826127f2565b91506128438284612798565b91508190509392505050565b7f54617861626c653a207461786564000000000000000000000000000000000000600082015250565b6000612885600e83611ba8565b91506128908261284f565b602082019050919050565b600060208201905081810360008301526128b481612878565b9050919050565b7f54617861626c653a206e6f742074617865640000000000000000000000000000600082015250565b60006128f1601283611ba8565b91506128fc826128bb565b602082019050919050565b60006020820190508181036000830152612920816128e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061299082611cad565b9150600082036129a3576129a261205a565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006129e4602083611ba8565b91506129ef826129ae565b602082019050919050565b60006020820190508181036000830152612a13816129d7565b905091905056fea2646970667358221220630a5dad954067bc49674bbe92c24d5a6837345a480f40d70a0d08e05944428564736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000084595161401484a0000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ea0a90a58865bb1ac365e00ed68792265a34ac860000000000000000000000000000000000000000000000000000000000000006534774657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065347746573740000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __name (string): SGtest
Arg [1] : __symbol (string): SGtest
Arg [2] : __totalSupply (uint256): 10000000000000000000000000
Arg [3] : __thetax (uint256): 3
Arg [4] : __taxReceiver (address): 0xea0a90A58865bb1AC365E00ED68792265A34Ac86

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000000000000000000000084595161401484a000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 000000000000000000000000ea0a90a58865bb1ac365e00ed68792265a34ac86
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 5347746573740000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 5347746573740000000000000000000000000000000000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

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