ETH Price: $2,066.08 (+5.89%)
 

Overview

Max Total Supply

1,799,869.5 CMF

Holders

23

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
CyberMetaFarm

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; 
import "./interfaces/iToken.sol";

//____________________________________________________________________________________________________//
contract CyberMetaFarm is ERC20,AccessControl,ReentrancyGuard {
    uint  public cap=1000000000*10**decimals(); 
    uint  public minCap=88888888*10**decimals();
    uint  public totalVesting;
    uint  public totalBurned;


// [0-staking,1-team,2-marketing,3-advisor,4-foundation,5-NFThold,6-lp]    
    address[7] teamWallets=[
        0x184Da7Ca591F6865f5B89C6621529D447Ed575f5,
        0x270CD1663d48988033De769BcFF4887A4319a351,
        0xAa0dE4259fCB03F97b510b0ba97BE5195996f2D4,
        0x8c0bCe3992edEb75563D5a27431727fF3f698B11,
        0x5f659618947f0D61b9C4d73a89AF3274ea8F4558,
        0x080E8716243d7bec27174fd165605e00DA63b263,
        0xD024920b6Ce6aF8415f9F5d91Fe62Cd33ea74E60
    ]; 
    
    uint public TGE=1686625620; //june 13 

    struct Vesting { 
        address user; 
        uint8   cliff;
        uint8   delay;
        uint16  monthlyPercent;
        uint16  percentOnTge;   
        uint256 totalAmount;
        uint256 releasedAmount;
        bool    NFT;
        uint    lastWithdraw;
    }

    mapping (address=>bool)  public    antiBot;
    mapping (address=>bool)  public    taxFree;
    mapping (address=>uint64[])   userVestings;
    mapping (uint64 => Vesting)   vesting;
    uint64[]public teamVestings=[0,1,2,3,4];
    uint64  public vestingId;

    constructor() ERC20("CyberMetaFarm", "CMF") {
        _grantRole(DEFAULT_ADMIN_ROLE,0xD024920b6Ce6aF8415f9F5d91Fe62Cd33ea74E60);
        _grantRole(DEFAULT_ADMIN_ROLE,0x0d4A7Aef4AaB9A507E227215a523817233f18E0e);
        _grantRole(DEFAULT_ADMIN_ROLE,msg.sender);
        createVesting(0,30,200, 0,teamWallets[0],400000000);
        createVesting(24,30,500,0,teamWallets[1],100000000);
        createVesting(0,30,400, 0,teamWallets[2],50000000);
        createVesting(20,30,625,0,teamWallets[3],50000000);
        createVesting(3,1,10000,0,teamWallets[4],100000000);

        createVesting(12,30,500,500,teamWallets[1],32700000);

        taxFree[address(this)]=true;
    }

//BURN____________________________________________________________________________________________________//
    function burn(address from, uint amount) public {
        if(totalBurned<(cap-minCap)){
            if(totalBurned+amount>(cap-minCap))
                amount=(cap-minCap)-totalBurned;
            _burn(from,amount);
            totalBurned+=amount;
        }
    }

//ADMIN___________________________________________________________________________________________________//
    function createVestings(
        uint8  cliff_,
        uint8  delay_,
        uint16 monthlyPercent_,
        uint16 percentOnTge_,
        address[] memory users_,
        uint64[] memory totalAmount_
    ) 
    external onlyRole(DEFAULT_ADMIN_ROLE){          
        require(users_.length==totalAmount_.length,"Array's must be equal");
        for(uint16 i;i<users_.length;i++){
            vesting[vestingId]=Vesting(
                users_[i],
                cliff_,
                delay_,
                monthlyPercent_,
                percentOnTge_,
                totalAmount_[i]*10**decimals(),
                0,
                false,
                0
            );
            userVestings[users_[i]].push(vestingId);
            vestingId++;
            require(totalVesting+totalAmount_[i]<cap,"Can't claim more");
            totalVesting+=totalAmount_[i]*10**decimals();
        }
    }

    function createVesting(
        uint8   cliff_,
        uint8   delay_,
        uint16  monthlyPercent_,
        uint16  percentOnTge_,
        address user_,
        uint64  totalAmount_
    ) 
    public onlyRole(DEFAULT_ADMIN_ROLE){              
        vesting[vestingId]=Vesting(
            user_,
            cliff_,
            delay_,
            monthlyPercent_,
            percentOnTge_,
            totalAmount_*10**decimals(),
            0,
            false,
            0
        );
        userVestings[user_].push(vestingId);
        vestingId++;
        require(totalVesting+totalAmount_<cap,"Can't claim more");
        totalVesting+=totalAmount_*10**decimals();
    }
    

    function deleteVesting(uint64 vestingId_) external onlyRole(DEFAULT_ADMIN_ROLE){
        totalVesting-=vesting[vestingId_].totalAmount-vesting[vestingId_].releasedAmount;
        delete vesting[vestingId_];
    }

    function setTGE(uint TGE_) external onlyRole(DEFAULT_ADMIN_ROLE){
        TGE=TGE_;
    } 

    function setTeamVesting(uint64[] memory teamVestings_) external onlyRole(DEFAULT_ADMIN_ROLE){
        teamVestings=teamVestings_;
    }

    function setTeamWallets(address[7] memory wallets) external onlyRole(DEFAULT_ADMIN_ROLE){
        teamWallets=wallets;
    }

    function setTaxFreeWallets(address[] memory users_, bool taxFree_) external onlyRole(DEFAULT_ADMIN_ROLE){
        for(uint16 i;i<users_.length;i++)
            taxFree[users_[i]]=taxFree_;
    }

    function setBotWallets(address[] memory users_, bool antiBot_) external onlyRole(DEFAULT_ADMIN_ROLE){
        for(uint16 i;i<users_.length;i++)
            antiBot[users_[i]]=antiBot_;
    }

    function setVestingWallet(uint64 vestingId_, address newUser_) external onlyRole(DEFAULT_ADMIN_ROLE){
        vesting[vestingId_].user=newUser_;
    }

    function receivedNft(uint64 vestingId_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(vesting[vestingId_].totalAmount>0 && !vesting[vestingId_].NFT,"Can't claim NFT");
        vesting[vestingId_].NFT=true;
    }

//USER___________________________________________________________________________________________________//
    function claimVesting(uint64 vestingId_) external nonReentrant(){
        Vesting storage vest=vesting[vestingId_];
        require(vest.user==msg.sender || hasRole(DEFAULT_ADMIN_ROLE,msg.sender),"not the owner");
        require(msg.sender!=address(0),"Zero address");

        uint amount=getCurrentClaim(vestingId_);
        if (amount>0){
            vest.releasedAmount+=amount;
            _mint(vest.user,amount);     
            vest.lastWithdraw=block.timestamp;   
        }    
    }

    function transfer(address to, uint256 amount) public override virtual returns (bool) {
        require(!antiBot[msg.sender] && !antiBot[to],"Acc is blocked");
        address owner = _msgSender();
        uint amount_ = beforeTransfer(owner,amount);
        _transfer(owner, to, amount_);
        return true;
    }

    function transferFrom(address from, address to, uint256 amount) public override virtual returns (bool) {
        require(!antiBot[from] && ! antiBot[to],"Acc is blocked");
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        uint amount_ = beforeTransfer(spender,amount);
        _transfer(from, to, amount_);
        return true;
    }

//INTERNAL_______________________________________________________________________________________________//    
    function beforeTransfer(address from,uint amount) private returns(uint amount_) {
        uint onePercent=amount/100;
        if(onePercent>0 && !taxFree[msg.sender]){
            _transfer(from,teamWallets[1],onePercent);
            _transfer(from,teamWallets[4],onePercent);
            _transfer(from,teamWallets[5],onePercent);
            _transfer(from,teamWallets[6],onePercent);         
            burn(from,onePercent);
            return(amount-(onePercent*5));
        }
        return(amount);
    }

//VIEW___________________________________________________________________________________________________//
    function getMonthlyClaim(uint64 vestingId_) public view returns (uint claimPerMonth_) {
        Vesting storage vest=vesting[vestingId_];
        return ((vest.totalAmount/10000)*vest.monthlyPercent);
    }
    
    function getCurrentClaim(uint64 vestingId_) public view returns (uint claim_){
        Vesting storage vest=vesting[vestingId_];
        uint cliff_=vest.cliff;
        uint cliffTime=TGE+(30 days*cliff_); 
        uint claimPerMonth=getMonthlyClaim(vestingId_);
        uint month;
        uint amount;
        if(vest.releasedAmount==0 && vest.totalAmount>0 && vest.percentOnTge>0){
            uint tge=(vest.totalAmount/10000)*vest.percentOnTge;
            amount+=tge;
        }
        if(block.timestamp>cliffTime){
            if(vest.lastWithdraw==0)
                month=(block.timestamp-cliffTime)/(vest.delay*1 days);
            else
                month=(block.timestamp-vest.lastWithdraw)/(vest.delay*1 days);
            amount+=claimPerMonth*month;
            if(amount>(vest.totalAmount-vest.releasedAmount))
                amount=vest.totalAmount-vest.releasedAmount;
        }
        return(amount);
    }

    function getVestingInfo(uint64 vestingId_) external view returns (
        address user_,
        uint8   cliff_,
        uint8   delay_,
        uint16  monthlyPercent_,
        uint16  percentOnTge_,
        uint    totalAmount_,
        uint    releasedAmount_,
        bool    getNFT_,
        uint    lastWithdraw_ 
    ){
        Vesting storage vest=vesting[vestingId_];
    return(
        vest.user,
        vest.cliff,
        vest.delay,
        vest.monthlyPercent,
        vest.percentOnTge,
        vest.totalAmount,
        vest.releasedAmount,
        vest.NFT,
        vest.lastWithdraw
    );
    }

    function getUsersVestings(address user_) external view returns (uint64[] memory ids){
        return userVestings[user_];
    }
}

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

pragma solidity ^0.8.0;

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

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

// 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;
}

// 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;
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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 {}
}

// 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);
}

// 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);
}

// 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;
    }
}

// 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;
    }
}

// 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);
}

// 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);
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/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);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

interface iToken {

    function mint(address to,uint id) external;

    function safeTransferFrom(address from,address to,uint256 id,uint256 amount,bytes memory data) external;

    function transferFrom(address from,address to,uint amount) external;

    function decimals() external view returns (uint8);

    function balanceOf20(address account) external view returns (uint256);

    function balanceOf(address account, uint256 id) external view returns (uint256);

    function getNftPrice(uint32 tokenId) external view returns(uint256);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"address"}],"name":"antiBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"claimVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"cliff_","type":"uint8"},{"internalType":"uint8","name":"delay_","type":"uint8"},{"internalType":"uint16","name":"monthlyPercent_","type":"uint16"},{"internalType":"uint16","name":"percentOnTge_","type":"uint16"},{"internalType":"address","name":"user_","type":"address"},{"internalType":"uint64","name":"totalAmount_","type":"uint64"}],"name":"createVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"cliff_","type":"uint8"},{"internalType":"uint8","name":"delay_","type":"uint8"},{"internalType":"uint16","name":"monthlyPercent_","type":"uint16"},{"internalType":"uint16","name":"percentOnTge_","type":"uint16"},{"internalType":"address[]","name":"users_","type":"address[]"},{"internalType":"uint64[]","name":"totalAmount_","type":"uint64[]"}],"name":"createVestings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"deleteVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"getCurrentClaim","outputs":[{"internalType":"uint256","name":"claim_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"getMonthlyClaim","outputs":[{"internalType":"uint256","name":"claimPerMonth_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user_","type":"address"}],"name":"getUsersVestings","outputs":[{"internalType":"uint64[]","name":"ids","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"getVestingInfo","outputs":[{"internalType":"address","name":"user_","type":"address"},{"internalType":"uint8","name":"cliff_","type":"uint8"},{"internalType":"uint8","name":"delay_","type":"uint8"},{"internalType":"uint16","name":"monthlyPercent_","type":"uint16"},{"internalType":"uint16","name":"percentOnTge_","type":"uint16"},{"internalType":"uint256","name":"totalAmount_","type":"uint256"},{"internalType":"uint256","name":"releasedAmount_","type":"uint256"},{"internalType":"bool","name":"getNFT_","type":"bool"},{"internalType":"uint256","name":"lastWithdraw_","type":"uint256"}],"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":"minCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"}],"name":"receivedNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users_","type":"address[]"},{"internalType":"bool","name":"antiBot_","type":"bool"}],"name":"setBotWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"TGE_","type":"uint256"}],"name":"setTGE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users_","type":"address[]"},{"internalType":"bool","name":"taxFree_","type":"bool"}],"name":"setTaxFreeWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"teamVestings_","type":"uint64[]"}],"name":"setTeamVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[7]","name":"wallets","type":"address[7]"}],"name":"setTeamWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"vestingId_","type":"uint64"},{"internalType":"address","name":"newUser_","type":"address"}],"name":"setVestingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"taxFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"teamVestings","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVesting","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":[],"name":"vestingId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"}]

6080604052620000126012600a62000aea565b6200002290633b9aca0062000afb565b600755620000336012600a62000aea565b620000439063054c563862000afb565b6008556040805160e08101825273184da7ca591f6865f5b89c6621529d447ed575f5815273270cd1663d48988033de769bcff4887a4319a351602082015273aa0de4259fcb03f97b510b0ba97be5195996f2d491810191909152738c0bce3992edeb75563d5a27431727ff3f698b116060820152735f659618947f0d61b9c4d73a89af3274ea8f4558608082015273080e8716243d7bec27174fd165605e00da63b26360a082015273d024920b6ce6af8415f9f5d91fe62cd33ea74e6060c08201526200011590600b906007620008b4565b50636487dd546012556040805160a081018252600081526001602082015260029181019190915260036060820152600460808201526200015a90601790600562000911565b503480156200016857600080fd5b506040518060400160405280600d81526020016c43796265724d6574614661726d60981b8152506040518060400160405280600381526020016221a6a360e91b8152508160039081620001bc919062000bba565b506004620001cb828262000bba565b5050600160065550620001f4600073d024920b6ce6af8415f9f5d91fe62cd33ea74e606200030e565b620002156000730d4a7aef4aab9a507e227215a523817233f18e0e6200030e565b620002226000336200030e565b620002466000601e60c882600b8101546001600160a01b03166317d7840062000399565b6200026e6018601e6101f46000600b60015b01546001600160a01b03166305f5e10062000399565b620002956000601e61019082600b60025b01546001600160a01b03166302faf08062000399565b620002ac6014601e6102716000600b60036200027f565b620002c3600360016127106000600b600462000258565b620002e9600c601e6101f480600b600101546001600160a01b03166301f2f66062000399565b306000908152601460205260409020805460ff1916600117905562000dd1565b601290565b6200031a82826200062d565b620003955760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003543390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620003a6816200065a565b604051806101200160405280846001600160a01b031681526020018860ff1681526020018760ff1681526020018661ffff1681526020018561ffff168152602001620003f76200030960201b60201c565b6200040490600a62000aea565b62000419906001600160401b03861662000afb565b81526000602080830182905260408084018390526060938401839052601880546001600160401b0390811685526016845282852087518154898701518a870151998b015160808c01516001600160a01b039485166001600160a81b031990941693909317600160a01b60ff938416021762ffffff60a81b1916600160a81b92909b169190910261ffff60b01b191699909917600160b01b61ffff9a8b16021761ffff60c01b1916600160c01b999091169890980297909717815560a088015160018083019190915560c0890151600283015560e08901516003808401805460ff191692151592909217909155610100998a0151600493840155978c168752601586529386208354815495860182559087529486209084040180549390961660080290960a8087021990921692861690910291909117909255815490921691620005628362000c9c565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050600754826001600160401b0316600954620005a3919062000ccd565b10620005e95760405162461bcd60e51b815260206004820152601060248201526f43616e277420636c61696d206d6f726560801b60448201526064015b60405180910390fd5b620005f76012600a62000aea565b6200060c906001600160401b03841662000afb565b600960008282546200061f919062000ccd565b909155505050505050505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b62000666813362000669565b50565b6200067582826200062d565b62000395576200069081620006e160201b620017c61760201c565b620006a6836020620017d8620006f4821b17811c565b604051602001620006b992919062000d09565b60408051601f198184030181529082905262461bcd60e51b8252620005e09160040162000d82565b6060620006546001600160a01b03831660145b606060006200070583600262000afb565b6200071290600262000ccd565b6001600160401b038111156200072c576200072c62000b15565b6040519080825280601f01601f19166020018201604052801562000757576020820181803683370190505b509050600360fc1b8160008151811062000775576200077562000c86565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620007a757620007a762000c86565b60200101906001600160f81b031916908160001a9053506000620007cd84600262000afb565b620007da90600162000ccd565b90505b60018111156200085c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000812576200081262000c86565b1a60f81b8282815181106200082b576200082b62000c86565b60200101906001600160f81b031916908160001a90535060049490941c93620008548162000db7565b9050620007dd565b508315620008ad5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620005e0565b9392505050565b8260078101928215620008ff579160200282015b82811115620008ff57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620008c8565b506200090d929150620009c0565b5090565b82805482825590600052602060002090600301600490048101928215620008ff5791602002820160005b838211156200098157835183826101000a8154816001600160401b03021916908360ff16021790555092602001926008016020816007010492830192600103026200093b565b8015620009b65782816101000a8154906001600160401b03021916905560080160208160070104928301926001030262000981565b50506200090d9291505b5b808211156200090d5760008155600101620009c1565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000a2e57816000190482111562000a125762000a12620009d7565b8085161562000a2057918102915b93841c9390800290620009f2565b509250929050565b60008262000a475750600162000654565b8162000a565750600062000654565b816001811462000a6f576002811462000a7a5762000a9a565b600191505062000654565b60ff84111562000a8e5762000a8e620009d7565b50506001821b62000654565b5060208310610133831016604e8410600b841016171562000abf575081810a62000654565b62000acb8383620009ed565b806000190482111562000ae25762000ae2620009d7565b029392505050565b6000620008ad60ff84168362000a36565b8082028115828204841417620006545762000654620009d7565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000b4057607f821691505b60208210810362000b6157634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000bb557600081815260208120601f850160051c8101602086101562000b905750805b601f850160051c820191505b8181101562000bb15782815560010162000b9c565b5050505b505050565b81516001600160401b0381111562000bd65762000bd662000b15565b62000bee8162000be7845462000b2b565b8462000b67565b602080601f83116001811462000c26576000841562000c0d5750858301515b600019600386901b1c1916600185901b17855562000bb1565b600085815260208120601f198616915b8281101562000c575788860151825594840194600190910190840162000c36565b508582101562000c765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60006001600160401b038281166002600160401b0319810162000cc35762000cc3620009d7565b6001019392505050565b80820180821115620006545762000654620009d7565b60005b8381101562000d0057818101518382015260200162000ce6565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000d4381601785016020880162000ce3565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000d7681602884016020880162000ce3565b01602801949350505050565b602081526000825180602084015262000da381604085016020870162000ce3565b601f01601f19169190910160400192915050565b60008162000dc95762000dc9620009d7565b506000190190565b612a9e8062000de16000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80636d52679811610151578063a457c2d7116100c3578063d89135cd11610087578063d89135cd14610562578063dd62ed3e1461056b578063e4dabf4e1461057e578063f2b9aa1114610591578063f6c38c48146105b4578063ff1a318d1461068e57600080fd5b8063a457c2d714610503578063a9059cbb14610516578063d453bec614610529578063d547741f1461053c578063d5c2e72b1461054f57600080fd5b80638bc74ab8116101155780638bc74ab8146104a75780639164dd35146104ba57806391d14854146104cd57806395d89b41146104e05780639dc29fac146104e8578063a217fddf146104fb57600080fd5b80636d5267981461044657806370a08231146104595780637c17357d146104825780638867596f1461048b5780638991d8661461049457600080fd5b8063313ce567116101ea57806339509351116101ae57806339509351146103b65780633fa1410f146103c95780633fa615b0146103ec57806346b68e48146103f55780635992fbfa146104085780635d44f4b41461043357600080fd5b8063313ce56714610358578063316ff66a14610367578063355274ea1461037a57806336568abe14610383578063374625081461039657600080fd5b8063202889d611610231578063202889d6146102e757806323b872dd146102fc578063248a9ca31461030f57806329687031146103325780632f2ff15d1461034557600080fd5b806301ffc9a71461026e57806306fdde0314610296578063095ea7b3146102ab5780631733e0d7146102be57806318160ddd146102df575b600080fd5b61028161027c36600461220a565b6106a1565b60405190151581526020015b60405180910390f35b61029e6106d8565b60405161028d9190612258565b6102816102b93660046122a7565b61076a565b6102d16102cc3660046122e8565b610782565b60405190815260200161028d565b6002546102d1565b6102fa6102f53660046122e8565b61091f565b005b61028161030a366004612303565b610a31565b6102d161031d36600461233f565b60009081526005602052604090206001015490565b6102fa6103403660046124b8565b610ae1565b6102fa61035336600461255c565b610e6e565b6040516012815260200161028d565b6102d16103753660046122e8565b610e98565b6102d160075481565b6102fa61039136600461255c565b610ee2565b6103a96103a4366004612588565b610f60565b60405161028d91906125a3565b6102816103c43660046122a7565b610ffe565b6102816103d7366004612588565b60136020526000908152604090205460ff1681565b6102d160085481565b6102fa6104033660046125f0565b611020565b61041b61041636600461233f565b611296565b6040516001600160401b03909116815260200161028d565b6102fa610441366004612664565b6112d3565b6102fa6104543660046126e8565b6112eb565b6102d1610467366004612588565b6001600160a01b031660009081526020819052604090205490565b6102d160095481565b6102d160125481565b6102fa6104a23660046122e8565b611309565b6102fa6104b5366004612724565b6113c0565b6102fa6104c836600461274e565b611405565b6102816104db36600461255c565b611485565b61029e6114b0565b6102fa6104f63660046122a7565b6114bf565b6102d1600081565b6102816105113660046122a7565b611541565b6102816105243660046122a7565b6115c7565b60185461041b906001600160401b031681565b6102fa61054a36600461255c565b611657565b6102fa61055d3660046122e8565b61167c565b6102d1600a5481565b6102d16105793660046127a4565b611710565b6102fa61058c36600461274e565b61173b565b61028161059f366004612588565b60146020526000908152604090205460ff1681565b6106336105c23660046122e8565b6001600160401b0316600090815260166020526040902080546001820154600283015460038401546004909401546001600160a01b0384169560ff600160a01b8604811696600160a81b870482169661ffff600160b01b8204811697600160c01b9092041695909490939290911691565b604080516001600160a01b03909a168a5260ff98891660208b0152979096169688019690965261ffff938416606088015292909116608086015260a085015260c084015290151560e08301526101008201526101200161028d565b6102fa61069c36600461233f565b6117b5565b60006001600160e01b03198216637965db0b60e01b14806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546106e7906127c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610713906127c0565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b5050505050905090565b600033610778818585611973565b5060019392505050565b6001600160401b03811660009081526016602052604081208054600160a01b900460ff16826107b48262278d00612810565b6012546107c19190612827565b905060006107ce86610e98565b9050600080856002015460001480156107eb575060008660010154115b801561080257508554600160c01b900461ffff1615155b156108445785546001870154600091600160c01b900461ffff169061082a906127109061283a565b6108349190612810565b90506108408183612827565b9150505b8342111561091457856004015460000361089157855461087190600160a81b900460ff166201518061285c565b62ffffff166108808542612883565b61088a919061283a565b91506108cc565b85546108aa90600160a81b900460ff166201518061285c565b62ffffff168660040154426108bf9190612883565b6108c9919061283a565b91505b6108d68284612810565b6108e09082612827565b9050856002015486600101546108f69190612883565b81111561091457856002015486600101546109119190612883565b90505b979650505050505050565b610927611a97565b6001600160401b038116600090815260166020526040902080546001600160a01b031633148061095d575061095d600033611485565b61099e5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b60448201526064015b60405180910390fd5b336109da5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610995565b60006109e583610782565b90508015610a225780826002016000828254610a019190612827565b90915550508154610a1b906001600160a01b031682611af0565b4260048301555b5050610a2e6001600655565b50565b6001600160a01b03831660009081526013602052604081205460ff16158015610a7357506001600160a01b03831660009081526013602052604090205460ff16155b610ab05760405162461bcd60e51b815260206004820152600e60248201526d1058d8c81a5cc8189b1bd8dad95960921b6044820152606401610995565b33610abc858285611baf565b6000610ac88285611c23565b9050610ad5868683611cc8565b50600195945050505050565b6000610aec81611e6c565b8151835114610b355760405162461bcd60e51b8152602060048201526015602482015274105c9c985e49dcc81b5d5cdd08189948195c5d585b605a1b6044820152606401610995565b60005b83518161ffff161015610e6457604051806101200160405280858361ffff1681518110610b6757610b67612896565b60200260200101516001600160a01b031681526020018960ff1681526020018860ff1681526020018761ffff1681526020018661ffff168152602001610bab601290565b610bb690600a612990565b858461ffff1681518110610bcc57610bcc612896565b60200260200101516001600160401b0316610be79190612810565b815260006020808301829052604080840183905260609384018390526018546001600160401b03168352601682528083208551815493870151928701519587015160808801516001600160a01b039092166001600160a81b031990951694909417600160a01b60ff948516021762ffffff60a81b1916600160a81b939096169290920261ffff60b01b191694909417600160b01b61ffff938416021761ffff60c01b1916600160c01b9183169190910217835560a0840151600184015560c0840151600284015560e084015160038401805460ff19169115159190911790556101009093015160049092019190915585516015928791908516908110610cef57610cef612896565b6020908102919091018101516001600160a01b03168252818101929092526040016000908120601880548254600181018455928452938320600483040180546001600160401b0360039094166008026101000a8481021990911695841602949094179093558254169190610d628361299f565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050600754838261ffff1681518110610da057610da0612896565b60200260200101516001600160401b0316600954610dbe9190612827565b10610dfe5760405162461bcd60e51b815260206004820152601060248201526f43616e277420636c61696d206d6f726560801b6044820152606401610995565b610e0a6012600a612990565b838261ffff1681518110610e2057610e20612896565b60200260200101516001600160401b0316610e3b9190612810565b60096000828254610e4c9190612827565b90915550819050610e5c816129c5565b915050610b38565b5050505050505050565b600082815260056020526040902060010154610e8981611e6c565b610e938383611e76565b505050565b6001600160401b038116600090815260166020526040812080546001820154600160b01b90910461ffff1690610ed1906127109061283a565b610edb9190612810565b9392505050565b6001600160a01b0381163314610f525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610995565b610f5c8282611efc565b5050565b6001600160a01b038116600090815260156020908152604091829020805483518184028101840190945280845260609392830182828015610ff257602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b031681526020019060080190602082600701049283019260010382029150808411610faf5790505b50505050509050919050565b6000336107788185856110118383611710565b61101b9190612827565b611973565b600061102b81611e6c565b604051806101200160405280846001600160a01b031681526020018860ff1681526020018760ff1681526020018661ffff1681526020018561ffff168152602001611074601290565b61107f90600a612990565b611092906001600160401b038616612810565b81526000602080830182905260408084018390526060938401839052601880546001600160401b0390811685526016845282852087518154898701518a870151998b015160808c01516001600160a01b039485166001600160a81b031990941693909317600160a01b60ff938416021762ffffff60a81b1916600160a81b92909b169190910261ffff60b01b191699909917600160b01b61ffff9a8b16021761ffff60c01b1916600160c01b999091169890980297909717815560a088015160018083019190915560c0890151600283015560e08901516003808401805460ff191692151592909217909155610100998a0151600493840155978c168752601586529386208354815495860182559087529486209084040180549390961660080290960a80870219909216928616909102919091179092558154909216916111d98361299f565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050600754826001600160401b03166009546112189190612827565b106112585760405162461bcd60e51b815260206004820152601060248201526f43616e277420636c61696d206d6f726560801b6044820152606401610995565b6112646012600a612990565b611277906001600160401b038416612810565b600960008282546112889190612827565b909155505050505050505050565b601781815481106112a657600080fd5b9060005260206000209060049182820401919006600802915054906101000a90046001600160401b031681565b60006112de81611e6c565b610e93600b8360076120ee565b60006112f681611e6c565b8151610e93906017906020850190612146565b600061131481611e6c565b6001600160401b0382166000908152601660205260409020600101541580159061135a57506001600160401b03821660009081526016602052604090206003015460ff16155b6113985760405162461bcd60e51b815260206004820152600f60248201526e10d85b89dd0818db185a5b48139195608a1b6044820152606401610995565b506001600160401b03166000908152601660205260409020600301805460ff19166001179055565b60006113cb81611e6c565b506001600160401b0391909116600090815260166020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b600061141081611e6c565b60005b83518161ffff16101561147f578260136000868461ffff168151811061143b5761143b612896565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611477816129c5565b915050611413565b50505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546106e7906127c0565b6008546007546114cf9190612883565b600a541015610f5c576008546007546114e89190612883565b81600a546114f69190612827565b111561151c57600a5460085460075461150f9190612883565b6115199190612883565b90505b6115268282611f63565b80600a60008282546115389190612827565b90915550505050565b6000338161154f8286611710565b9050838110156115af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610995565b6115bc8286868403611973565b506001949350505050565b3360009081526013602052604081205460ff1615801561160057506001600160a01b03831660009081526013602052604090205460ff16155b61163d5760405162461bcd60e51b815260206004820152600e60248201526d1058d8c81a5cc8189b1bd8dad95960921b6044820152606401610995565b33600061164a8285611c23565b90506115bc828683611cc8565b60008281526005602052604090206001015461167281611e6c565b610e938383611efc565b600061168781611e6c565b6001600160401b038216600090815260166020526040902060028101546001909101546116b49190612883565b600960008282546116c59190612883565b9091555050506001600160401b0316600090815260166020526040812080546001600160d01b0319168155600181018290556002810182905560038101805460ff1916905560040155565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600061174681611e6c565b60005b83518161ffff16101561147f578260146000868461ffff168151811061177157611771612896565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806117ad816129c5565b915050611749565b60006117c081611e6c565b50601255565b60606106d26001600160a01b03831660145b606060006117e7836002612810565b6117f2906002612827565b6001600160401b038111156118095761180961237b565b6040519080825280601f01601f191660200182016040528015611833576020820181803683370190505b509050600360fc1b8160008151811061184e5761184e612896565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061187d5761187d612896565b60200101906001600160f81b031916908160001a90535060006118a1846002612810565b6118ac906001612827565b90505b6001811115611924576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118e0576118e0612896565b1a60f81b8282815181106118f6576118f6612896565b60200101906001600160f81b031916908160001a90535060049490941c9361191d816129dc565b90506118af565b508315610edb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610995565b6001600160a01b0383166119d55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610995565b6001600160a01b038216611a365760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610995565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600260065403611ae95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610995565b6002600655565b6001600160a01b038216611b465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610995565b8060026000828254611b589190612827565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000611bbb8484611710565b9050600019811461147f5781811015611c165760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610995565b61147f8484848403611973565b600080611c3160648461283a565b9050600081118015611c5357503360009081526014602052604090205460ff16155b15611cc057611c7284600b60015b01546001600160a01b031683611cc8565b611c7f84600b6004611c61565b611c8c84600b6005611c61565b611c9984600b6006611c61565b611ca384826114bf565b611cae816005612810565b611cb89084612883565b9150506106d2565b509092915050565b6001600160a01b038316611d2c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610995565b6001600160a01b038216611d8e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610995565b6001600160a01b03831660009081526020819052604090205481811015611e065760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610995565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361147f565b610a2e8133612095565b611e808282611485565b610f5c5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611eb83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f068282611485565b15610f5c5760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611fc35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610995565b6001600160a01b038216600090815260208190526040902054818110156120375760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610995565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61209f8282611485565b610f5c576120ac816117c6565b6120b78360206117d8565b6040516020016120c89291906129f3565b60408051601f198184030181529082905262461bcd60e51b825261099591600401612258565b8260078101928215612136579160200282015b8281111561213657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612101565b506121429291506121f5565b5090565b828054828255906000526020600020906003016004900481019282156121365791602002820160005b838211156121b957835183826101000a8154816001600160401b0302191690836001600160401b03160217905550926020019260080160208160070104928301926001030261216f565b80156121ec5782816101000a8154906001600160401b0302191690556008016020816007010492830192600103026121b9565b50506121429291505b5b8082111561214257600081556001016121f6565b60006020828403121561221c57600080fd5b81356001600160e01b031981168114610edb57600080fd5b60005b8381101561224f578181015183820152602001612237565b50506000910152565b6020815260008251806020840152612277816040850160208701612234565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146122a257600080fd5b919050565b600080604083850312156122ba57600080fd5b6122c38361228b565b946020939093013593505050565b80356001600160401b03811681146122a257600080fd5b6000602082840312156122fa57600080fd5b610edb826122d1565b60008060006060848603121561231857600080fd5b6123218461228b565b925061232f6020850161228b565b9150604084013590509250925092565b60006020828403121561235157600080fd5b5035919050565b803560ff811681146122a257600080fd5b803561ffff811681146122a257600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156123b9576123b961237b565b604052919050565b60006001600160401b038211156123da576123da61237b565b5060051b60200190565b600082601f8301126123f557600080fd5b8135602061240a612405836123c1565b612391565b82815260059290921b8401810191818101908684111561242957600080fd5b8286015b8481101561244b5761243e8161228b565b835291830191830161242d565b509695505050505050565b600082601f83011261246757600080fd5b81356020612477612405836123c1565b82815260059290921b8401810191818101908684111561249657600080fd5b8286015b8481101561244b576124ab816122d1565b835291830191830161249a565b60008060008060008060c087890312156124d157600080fd5b6124da87612358565b95506124e860208801612358565b94506124f660408801612369565b935061250460608801612369565b925060808701356001600160401b038082111561252057600080fd5b61252c8a838b016123e4565b935060a089013591508082111561254257600080fd5b5061254f89828a01612456565b9150509295509295509295565b6000806040838503121561256f57600080fd5b8235915061257f6020840161228b565b90509250929050565b60006020828403121561259a57600080fd5b610edb8261228b565b6020808252825182820181905260009190848201906040850190845b818110156125e45783516001600160401b0316835292840192918401916001016125bf565b50909695505050505050565b60008060008060008060c0878903121561260957600080fd5b61261287612358565b955061262060208801612358565b945061262e60408801612369565b935061263c60608801612369565b925061264a6080880161228b565b915061265860a088016122d1565b90509295509295509295565b600060e0828403121561267657600080fd5b82601f83011261268557600080fd5b60405160e081018181106001600160401b03821117156126a7576126a761237b565b6040528060e08401858111156126bc57600080fd5b845b818110156126dd576126cf8161228b565b8352602092830192016126be565b509195945050505050565b6000602082840312156126fa57600080fd5b81356001600160401b0381111561271057600080fd5b61271c84828501612456565b949350505050565b6000806040838503121561273757600080fd5b612740836122d1565b915061257f6020840161228b565b6000806040838503121561276157600080fd5b82356001600160401b0381111561277757600080fd5b612783858286016123e4565b9250506020830135801515811461279957600080fd5b809150509250929050565b600080604083850312156127b757600080fd5b6127408361228b565b600181811c908216806127d457607f821691505b6020821081036127f457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106d2576106d26127fa565b808201808211156106d2576106d26127fa565b60008261285757634e487b7160e01b600052601260045260246000fd5b500490565b62ffffff81811683821602808216919082811461287b5761287b6127fa565b505092915050565b818103818111156106d2576106d26127fa565b634e487b7160e01b600052603260045260246000fd5b600181815b808511156128e75781600019048211156128cd576128cd6127fa565b808516156128da57918102915b93841c93908002906128b1565b509250929050565b6000826128fe575060016106d2565b8161290b575060006106d2565b8160018114612921576002811461292b57612947565b60019150506106d2565b60ff84111561293c5761293c6127fa565b50506001821b6106d2565b5060208310610133831016604e8410600b841016171561296a575081810a6106d2565b61297483836128ac565b8060001904821115612988576129886127fa565b029392505050565b6000610edb60ff8416836128ef565b60006001600160401b038083168181036129bb576129bb6127fa565b6001019392505050565b600061ffff8083168181036129bb576129bb6127fa565b6000816129eb576129eb6127fa565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612a2b816017850160208801612234565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612a5c816028840160208801612234565b0160280194935050505056fea2646970667358221220e33734750d9b4fc1e648ec1845d171ac5655fada0f4dc9883acc8ade816170e964736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102695760003560e01c80636d52679811610151578063a457c2d7116100c3578063d89135cd11610087578063d89135cd14610562578063dd62ed3e1461056b578063e4dabf4e1461057e578063f2b9aa1114610591578063f6c38c48146105b4578063ff1a318d1461068e57600080fd5b8063a457c2d714610503578063a9059cbb14610516578063d453bec614610529578063d547741f1461053c578063d5c2e72b1461054f57600080fd5b80638bc74ab8116101155780638bc74ab8146104a75780639164dd35146104ba57806391d14854146104cd57806395d89b41146104e05780639dc29fac146104e8578063a217fddf146104fb57600080fd5b80636d5267981461044657806370a08231146104595780637c17357d146104825780638867596f1461048b5780638991d8661461049457600080fd5b8063313ce567116101ea57806339509351116101ae57806339509351146103b65780633fa1410f146103c95780633fa615b0146103ec57806346b68e48146103f55780635992fbfa146104085780635d44f4b41461043357600080fd5b8063313ce56714610358578063316ff66a14610367578063355274ea1461037a57806336568abe14610383578063374625081461039657600080fd5b8063202889d611610231578063202889d6146102e757806323b872dd146102fc578063248a9ca31461030f57806329687031146103325780632f2ff15d1461034557600080fd5b806301ffc9a71461026e57806306fdde0314610296578063095ea7b3146102ab5780631733e0d7146102be57806318160ddd146102df575b600080fd5b61028161027c36600461220a565b6106a1565b60405190151581526020015b60405180910390f35b61029e6106d8565b60405161028d9190612258565b6102816102b93660046122a7565b61076a565b6102d16102cc3660046122e8565b610782565b60405190815260200161028d565b6002546102d1565b6102fa6102f53660046122e8565b61091f565b005b61028161030a366004612303565b610a31565b6102d161031d36600461233f565b60009081526005602052604090206001015490565b6102fa6103403660046124b8565b610ae1565b6102fa61035336600461255c565b610e6e565b6040516012815260200161028d565b6102d16103753660046122e8565b610e98565b6102d160075481565b6102fa61039136600461255c565b610ee2565b6103a96103a4366004612588565b610f60565b60405161028d91906125a3565b6102816103c43660046122a7565b610ffe565b6102816103d7366004612588565b60136020526000908152604090205460ff1681565b6102d160085481565b6102fa6104033660046125f0565b611020565b61041b61041636600461233f565b611296565b6040516001600160401b03909116815260200161028d565b6102fa610441366004612664565b6112d3565b6102fa6104543660046126e8565b6112eb565b6102d1610467366004612588565b6001600160a01b031660009081526020819052604090205490565b6102d160095481565b6102d160125481565b6102fa6104a23660046122e8565b611309565b6102fa6104b5366004612724565b6113c0565b6102fa6104c836600461274e565b611405565b6102816104db36600461255c565b611485565b61029e6114b0565b6102fa6104f63660046122a7565b6114bf565b6102d1600081565b6102816105113660046122a7565b611541565b6102816105243660046122a7565b6115c7565b60185461041b906001600160401b031681565b6102fa61054a36600461255c565b611657565b6102fa61055d3660046122e8565b61167c565b6102d1600a5481565b6102d16105793660046127a4565b611710565b6102fa61058c36600461274e565b61173b565b61028161059f366004612588565b60146020526000908152604090205460ff1681565b6106336105c23660046122e8565b6001600160401b0316600090815260166020526040902080546001820154600283015460038401546004909401546001600160a01b0384169560ff600160a01b8604811696600160a81b870482169661ffff600160b01b8204811697600160c01b9092041695909490939290911691565b604080516001600160a01b03909a168a5260ff98891660208b0152979096169688019690965261ffff938416606088015292909116608086015260a085015260c084015290151560e08301526101008201526101200161028d565b6102fa61069c36600461233f565b6117b5565b60006001600160e01b03198216637965db0b60e01b14806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546106e7906127c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610713906127c0565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b5050505050905090565b600033610778818585611973565b5060019392505050565b6001600160401b03811660009081526016602052604081208054600160a01b900460ff16826107b48262278d00612810565b6012546107c19190612827565b905060006107ce86610e98565b9050600080856002015460001480156107eb575060008660010154115b801561080257508554600160c01b900461ffff1615155b156108445785546001870154600091600160c01b900461ffff169061082a906127109061283a565b6108349190612810565b90506108408183612827565b9150505b8342111561091457856004015460000361089157855461087190600160a81b900460ff166201518061285c565b62ffffff166108808542612883565b61088a919061283a565b91506108cc565b85546108aa90600160a81b900460ff166201518061285c565b62ffffff168660040154426108bf9190612883565b6108c9919061283a565b91505b6108d68284612810565b6108e09082612827565b9050856002015486600101546108f69190612883565b81111561091457856002015486600101546109119190612883565b90505b979650505050505050565b610927611a97565b6001600160401b038116600090815260166020526040902080546001600160a01b031633148061095d575061095d600033611485565b61099e5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b60448201526064015b60405180910390fd5b336109da5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610995565b60006109e583610782565b90508015610a225780826002016000828254610a019190612827565b90915550508154610a1b906001600160a01b031682611af0565b4260048301555b5050610a2e6001600655565b50565b6001600160a01b03831660009081526013602052604081205460ff16158015610a7357506001600160a01b03831660009081526013602052604090205460ff16155b610ab05760405162461bcd60e51b815260206004820152600e60248201526d1058d8c81a5cc8189b1bd8dad95960921b6044820152606401610995565b33610abc858285611baf565b6000610ac88285611c23565b9050610ad5868683611cc8565b50600195945050505050565b6000610aec81611e6c565b8151835114610b355760405162461bcd60e51b8152602060048201526015602482015274105c9c985e49dcc81b5d5cdd08189948195c5d585b605a1b6044820152606401610995565b60005b83518161ffff161015610e6457604051806101200160405280858361ffff1681518110610b6757610b67612896565b60200260200101516001600160a01b031681526020018960ff1681526020018860ff1681526020018761ffff1681526020018661ffff168152602001610bab601290565b610bb690600a612990565b858461ffff1681518110610bcc57610bcc612896565b60200260200101516001600160401b0316610be79190612810565b815260006020808301829052604080840183905260609384018390526018546001600160401b03168352601682528083208551815493870151928701519587015160808801516001600160a01b039092166001600160a81b031990951694909417600160a01b60ff948516021762ffffff60a81b1916600160a81b939096169290920261ffff60b01b191694909417600160b01b61ffff938416021761ffff60c01b1916600160c01b9183169190910217835560a0840151600184015560c0840151600284015560e084015160038401805460ff19169115159190911790556101009093015160049092019190915585516015928791908516908110610cef57610cef612896565b6020908102919091018101516001600160a01b03168252818101929092526040016000908120601880548254600181018455928452938320600483040180546001600160401b0360039094166008026101000a8481021990911695841602949094179093558254169190610d628361299f565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050600754838261ffff1681518110610da057610da0612896565b60200260200101516001600160401b0316600954610dbe9190612827565b10610dfe5760405162461bcd60e51b815260206004820152601060248201526f43616e277420636c61696d206d6f726560801b6044820152606401610995565b610e0a6012600a612990565b838261ffff1681518110610e2057610e20612896565b60200260200101516001600160401b0316610e3b9190612810565b60096000828254610e4c9190612827565b90915550819050610e5c816129c5565b915050610b38565b5050505050505050565b600082815260056020526040902060010154610e8981611e6c565b610e938383611e76565b505050565b6001600160401b038116600090815260166020526040812080546001820154600160b01b90910461ffff1690610ed1906127109061283a565b610edb9190612810565b9392505050565b6001600160a01b0381163314610f525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610995565b610f5c8282611efc565b5050565b6001600160a01b038116600090815260156020908152604091829020805483518184028101840190945280845260609392830182828015610ff257602002820191906000526020600020906000905b82829054906101000a90046001600160401b03166001600160401b031681526020019060080190602082600701049283019260010382029150808411610faf5790505b50505050509050919050565b6000336107788185856110118383611710565b61101b9190612827565b611973565b600061102b81611e6c565b604051806101200160405280846001600160a01b031681526020018860ff1681526020018760ff1681526020018661ffff1681526020018561ffff168152602001611074601290565b61107f90600a612990565b611092906001600160401b038616612810565b81526000602080830182905260408084018390526060938401839052601880546001600160401b0390811685526016845282852087518154898701518a870151998b015160808c01516001600160a01b039485166001600160a81b031990941693909317600160a01b60ff938416021762ffffff60a81b1916600160a81b92909b169190910261ffff60b01b191699909917600160b01b61ffff9a8b16021761ffff60c01b1916600160c01b999091169890980297909717815560a088015160018083019190915560c0890151600283015560e08901516003808401805460ff191692151592909217909155610100998a0151600493840155978c168752601586529386208354815495860182559087529486209084040180549390961660080290960a80870219909216928616909102919091179092558154909216916111d98361299f565b91906101000a8154816001600160401b0302191690836001600160401b0316021790555050600754826001600160401b03166009546112189190612827565b106112585760405162461bcd60e51b815260206004820152601060248201526f43616e277420636c61696d206d6f726560801b6044820152606401610995565b6112646012600a612990565b611277906001600160401b038416612810565b600960008282546112889190612827565b909155505050505050505050565b601781815481106112a657600080fd5b9060005260206000209060049182820401919006600802915054906101000a90046001600160401b031681565b60006112de81611e6c565b610e93600b8360076120ee565b60006112f681611e6c565b8151610e93906017906020850190612146565b600061131481611e6c565b6001600160401b0382166000908152601660205260409020600101541580159061135a57506001600160401b03821660009081526016602052604090206003015460ff16155b6113985760405162461bcd60e51b815260206004820152600f60248201526e10d85b89dd0818db185a5b48139195608a1b6044820152606401610995565b506001600160401b03166000908152601660205260409020600301805460ff19166001179055565b60006113cb81611e6c565b506001600160401b0391909116600090815260166020526040902080546001600160a01b0319166001600160a01b03909216919091179055565b600061141081611e6c565b60005b83518161ffff16101561147f578260136000868461ffff168151811061143b5761143b612896565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611477816129c5565b915050611413565b50505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546106e7906127c0565b6008546007546114cf9190612883565b600a541015610f5c576008546007546114e89190612883565b81600a546114f69190612827565b111561151c57600a5460085460075461150f9190612883565b6115199190612883565b90505b6115268282611f63565b80600a60008282546115389190612827565b90915550505050565b6000338161154f8286611710565b9050838110156115af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610995565b6115bc8286868403611973565b506001949350505050565b3360009081526013602052604081205460ff1615801561160057506001600160a01b03831660009081526013602052604090205460ff16155b61163d5760405162461bcd60e51b815260206004820152600e60248201526d1058d8c81a5cc8189b1bd8dad95960921b6044820152606401610995565b33600061164a8285611c23565b90506115bc828683611cc8565b60008281526005602052604090206001015461167281611e6c565b610e938383611efc565b600061168781611e6c565b6001600160401b038216600090815260166020526040902060028101546001909101546116b49190612883565b600960008282546116c59190612883565b9091555050506001600160401b0316600090815260166020526040812080546001600160d01b0319168155600181018290556002810182905560038101805460ff1916905560040155565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600061174681611e6c565b60005b83518161ffff16101561147f578260146000868461ffff168151811061177157611771612896565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806117ad816129c5565b915050611749565b60006117c081611e6c565b50601255565b60606106d26001600160a01b03831660145b606060006117e7836002612810565b6117f2906002612827565b6001600160401b038111156118095761180961237b565b6040519080825280601f01601f191660200182016040528015611833576020820181803683370190505b509050600360fc1b8160008151811061184e5761184e612896565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061187d5761187d612896565b60200101906001600160f81b031916908160001a90535060006118a1846002612810565b6118ac906001612827565b90505b6001811115611924576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106118e0576118e0612896565b1a60f81b8282815181106118f6576118f6612896565b60200101906001600160f81b031916908160001a90535060049490941c9361191d816129dc565b90506118af565b508315610edb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610995565b6001600160a01b0383166119d55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610995565b6001600160a01b038216611a365760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610995565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600260065403611ae95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610995565b6002600655565b6001600160a01b038216611b465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610995565b8060026000828254611b589190612827565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000611bbb8484611710565b9050600019811461147f5781811015611c165760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610995565b61147f8484848403611973565b600080611c3160648461283a565b9050600081118015611c5357503360009081526014602052604090205460ff16155b15611cc057611c7284600b60015b01546001600160a01b031683611cc8565b611c7f84600b6004611c61565b611c8c84600b6005611c61565b611c9984600b6006611c61565b611ca384826114bf565b611cae816005612810565b611cb89084612883565b9150506106d2565b509092915050565b6001600160a01b038316611d2c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610995565b6001600160a01b038216611d8e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610995565b6001600160a01b03831660009081526020819052604090205481811015611e065760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610995565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361147f565b610a2e8133612095565b611e808282611485565b610f5c5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611eb83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f068282611485565b15610f5c5760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611fc35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610995565b6001600160a01b038216600090815260208190526040902054818110156120375760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610995565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b61209f8282611485565b610f5c576120ac816117c6565b6120b78360206117d8565b6040516020016120c89291906129f3565b60408051601f198184030181529082905262461bcd60e51b825261099591600401612258565b8260078101928215612136579160200282015b8281111561213657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612101565b506121429291506121f5565b5090565b828054828255906000526020600020906003016004900481019282156121365791602002820160005b838211156121b957835183826101000a8154816001600160401b0302191690836001600160401b03160217905550926020019260080160208160070104928301926001030261216f565b80156121ec5782816101000a8154906001600160401b0302191690556008016020816007010492830192600103026121b9565b50506121429291505b5b8082111561214257600081556001016121f6565b60006020828403121561221c57600080fd5b81356001600160e01b031981168114610edb57600080fd5b60005b8381101561224f578181015183820152602001612237565b50506000910152565b6020815260008251806020840152612277816040850160208701612234565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146122a257600080fd5b919050565b600080604083850312156122ba57600080fd5b6122c38361228b565b946020939093013593505050565b80356001600160401b03811681146122a257600080fd5b6000602082840312156122fa57600080fd5b610edb826122d1565b60008060006060848603121561231857600080fd5b6123218461228b565b925061232f6020850161228b565b9150604084013590509250925092565b60006020828403121561235157600080fd5b5035919050565b803560ff811681146122a257600080fd5b803561ffff811681146122a257600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156123b9576123b961237b565b604052919050565b60006001600160401b038211156123da576123da61237b565b5060051b60200190565b600082601f8301126123f557600080fd5b8135602061240a612405836123c1565b612391565b82815260059290921b8401810191818101908684111561242957600080fd5b8286015b8481101561244b5761243e8161228b565b835291830191830161242d565b509695505050505050565b600082601f83011261246757600080fd5b81356020612477612405836123c1565b82815260059290921b8401810191818101908684111561249657600080fd5b8286015b8481101561244b576124ab816122d1565b835291830191830161249a565b60008060008060008060c087890312156124d157600080fd5b6124da87612358565b95506124e860208801612358565b94506124f660408801612369565b935061250460608801612369565b925060808701356001600160401b038082111561252057600080fd5b61252c8a838b016123e4565b935060a089013591508082111561254257600080fd5b5061254f89828a01612456565b9150509295509295509295565b6000806040838503121561256f57600080fd5b8235915061257f6020840161228b565b90509250929050565b60006020828403121561259a57600080fd5b610edb8261228b565b6020808252825182820181905260009190848201906040850190845b818110156125e45783516001600160401b0316835292840192918401916001016125bf565b50909695505050505050565b60008060008060008060c0878903121561260957600080fd5b61261287612358565b955061262060208801612358565b945061262e60408801612369565b935061263c60608801612369565b925061264a6080880161228b565b915061265860a088016122d1565b90509295509295509295565b600060e0828403121561267657600080fd5b82601f83011261268557600080fd5b60405160e081018181106001600160401b03821117156126a7576126a761237b565b6040528060e08401858111156126bc57600080fd5b845b818110156126dd576126cf8161228b565b8352602092830192016126be565b509195945050505050565b6000602082840312156126fa57600080fd5b81356001600160401b0381111561271057600080fd5b61271c84828501612456565b949350505050565b6000806040838503121561273757600080fd5b612740836122d1565b915061257f6020840161228b565b6000806040838503121561276157600080fd5b82356001600160401b0381111561277757600080fd5b612783858286016123e4565b9250506020830135801515811461279957600080fd5b809150509250929050565b600080604083850312156127b757600080fd5b6127408361228b565b600181811c908216806127d457607f821691505b6020821081036127f457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106d2576106d26127fa565b808201808211156106d2576106d26127fa565b60008261285757634e487b7160e01b600052601260045260246000fd5b500490565b62ffffff81811683821602808216919082811461287b5761287b6127fa565b505092915050565b818103818111156106d2576106d26127fa565b634e487b7160e01b600052603260045260246000fd5b600181815b808511156128e75781600019048211156128cd576128cd6127fa565b808516156128da57918102915b93841c93908002906128b1565b509250929050565b6000826128fe575060016106d2565b8161290b575060006106d2565b8160018114612921576002811461292b57612947565b60019150506106d2565b60ff84111561293c5761293c6127fa565b50506001821b6106d2565b5060208310610133831016604e8410600b841016171561296a575081810a6106d2565b61297483836128ac565b8060001904821115612988576129886127fa565b029392505050565b6000610edb60ff8416836128ef565b60006001600160401b038083168181036129bb576129bb6127fa565b6001019392505050565b600061ffff8083168181036129bb576129bb6127fa565b6000816129eb576129eb6127fa565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612a2b816017850160208801612234565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612a5c816028840160208801612234565b0160280194935050505056fea2646970667358221220e33734750d9b4fc1e648ec1845d171ac5655fada0f4dc9883acc8ade816170e964736f6c63430008120033

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

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