BNB Price: $640.60 (+0.93%)
 

Overview

Max Total Supply

32,793,440.142427OLY

Holders

356,408

Market

Price

$0.00 @ 0.000000 BNB

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
0.0001 OLY

Value
$0.00
0xc72CaC99a8B49f2568FCab2C47B0B7F9C49B0Ded
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
OLY

Compiler Version
v0.8.29+commit.ab55807c

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.29;

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeMath} from "./libraries/SafeMath.sol";

abstract contract ERC20 is IERC20 {
    using SafeMath for uint256;
    
    mapping(address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    string internal _name;

    string internal _symbol;

    uint8 internal _decimals;

    constructor(string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

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

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance")
        );
        
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(
            msg.sender,
            spender,
            _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")
        );
        return true;
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function _mint(address account_, uint256 amount_) internal virtual {
        require(account_ != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address(this), account_, amount_);
        _totalSupply = _totalSupply.add(amount_);
        _balances[account_] = _balances[account_].add(amount_);
        emit Transfer(address(this), account_, amount_);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

    function _beforeTokenTransfer(address from_, address to_, uint256 amount_) internal virtual {}
}


contract VaultOwned is AccessControl {
    bytes32 public constant MINT = keccak256("MINT");

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    modifier onlyVault() {
        require(hasRole(MINT, msg.sender), "VaultOwned: caller is not the Vault");
        _;
    }
}

interface IFeeReceiver {
    function triggerSwapFeeForLottery() external;
}


contract OLYERC20Token is ERC20, VaultOwned {
    using SafeMath for uint256;

    constructor() ERC20("OLY", "OLY", 9) {}

    function mint(address account_, uint256 amount_) external onlyVault {
        _mint(account_, amount_);
    }

    function burn(uint256 amount) public virtual {
        _burn(msg.sender, amount);
    }

    function burnFrom(address account_, uint256 amount_) public virtual {
        _burnFrom(account_, amount_);
    }

    function _burnFrom(address account_, uint256 amount_) internal virtual {
        uint256 decreasedAllowance_ =
            allowance(account_, msg.sender).sub(amount_, "ERC20: burn amount exceeds allowance");

        _approve(account_, msg.sender, decreasedAllowance_);
        _burn(account_, amount_);
    }
}


contract OLY is OLYERC20Token {
    using SafeMath for uint256;

    address public mainPair;
    address public feeReceiver;

    uint256 public constant PRECISION = 100 * 1e3;
    uint256 public feeRatio = 90 * 1e3;
    uint256 public buyFeeRatio;

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

    event FeeRatioChanged(uint8 _ratioType,uint256 ratio);
    event FeeTaken(address indexed payer, address indexed receiver, uint256 left, uint256 fee);

    modifier onlyDefaultAdmin() {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin");
        _;
    }

    constructor(address _feeReceiver, uint _buyFeeRatio) OLYERC20Token() {
        require(_feeReceiver != address(0), "Invalid fee receiver");
        require(_buyFeeRatio <= PRECISION, "Invalid buy fee ratio");

        feeReceiver = _feeReceiver;
        buyFeeRatio = _buyFeeRatio;

        _grantRole(INTERN_SYSTEM, msg.sender);
        _grantRole(INTERN_SYSTEM, _feeReceiver);
    }

    function setMainPair(address pair) external onlyDefaultAdmin {
        mainPair = pair;
    }

    function setRatio(uint8 ratioType,uint256 ratio) external onlyDefaultAdmin {
        require(ratio <= PRECISION, "Exceeds precision");
        if(ratioType == 0){
            buyFeeRatio = ratio;
        } else {
            feeRatio = ratio;
        }
        emit FeeRatioChanged(ratioType,ratio);
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual override {
        
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        
        _beforeTokenTransfer(sender, recipient, amount);
        
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        
        // take fee when non-whitelist users trade
        if (_isTradeAndNotInSystem(sender, recipient)) {
            // buyer or remove lp
            if (sender == mainPair) {
                uint buyFee = amount.mul(buyFeeRatio).div(PRECISION);
                
                if(buyFee > 0){
                    amount = amount - buyFee;
                    _balances[feeReceiver] += buyFee;

                    emit Transfer(sender, feeReceiver, buyFee);
                }
            }
            // seller or add lp
            else if(recipient == mainPair){
                // take fee
                uint256 fee = amount.mul(feeRatio).div(PRECISION);
                if (fee > 0) {
                    amount = amount - fee;
                    _balances[feeReceiver] += fee;

                    emit Transfer(sender, feeReceiver, fee);
                    emit FeeTaken(sender, feeReceiver, amount, fee);
                    IFeeReceiver(feeReceiver).triggerSwapFeeForLottery();
                }
            }
        }
        
        _balances[recipient] = _balances[recipient].add(amount);
        
        emit Transfer(sender, recipient, amount);
    }

    function _isTradeAndNotInSystem(address _from, address _to) internal view returns (bool) {
        return (_from == mainPair && !hasRole(INTERN_SYSTEM,_to)) || (_to == mainPair && !hasRole(INTERN_SYSTEM,_from));
    }
}

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

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, callerConfirmation);
    }

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.29;

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {

        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrrt(uint256 a) internal pure returns (uint c) {
        if (a > 3) {
            c = a;
            uint b = add( div( a, 2), 1 );
            while (b < c) {
                c = b;
                b = div( add( div( a, b ), b), 2 );
            }
        } else if (a != 0) {
            c = 1;
        }
    }

    function percentageAmount( uint256 total_, uint8 percentage_ ) internal pure returns ( uint256 percentAmount_ ) {
        return div( mul( total_, percentage_ ), 1000 );
    }

    function substractPercentage( uint256 total_, uint8 percentageToSub_ ) internal pure returns ( uint256 result_ ) {
        return sub( total_, div( mul( total_, percentageToSub_ ), 1000 ) );
    }

    function percentageOfTotal( uint256 part_, uint256 total_ ) internal pure returns ( uint256 percent_ ) {
        return div( mul(part_, 100) , total_ );
    }

    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }

    function quadraticPricing( uint256 payment_, uint256 multiplier_ ) internal pure returns (uint256) {
        return sqrrt( mul( multiplier_, payment_ ) );
    }

    function bondingCurve( uint256 supply_, uint256 multiplier_ ) internal pure returns (uint256) {
        return mul( multiplier_, supply_ );
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (access/IAccessControl.sol)

pragma solidity >=0.8.4;

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

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

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted to signal this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"},{"internalType":"uint256","name":"_buyFeeRatio","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"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":false,"internalType":"uint8","name":"_ratioType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"ratio","type":"uint256"}],"name":"FeeRatioChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"left","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"FeeTaken","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":"INTERN_SYSTEM","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","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":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFeeRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mainPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"setMainPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"ratioType","type":"uint8"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"name":"setRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523461040f57604051601f611b9d38819003918201601f19168301916001600160401b0383118484101761031257808492604094855283398101031261040f578051906001600160a01b0382169081830361040f576020015191610065610413565b9261006e610413565b845190946001600160401b0382116103125760035490600182811c92168015610405575b60208310146102f45781601f849311610397575b50602090601f8311600114610331575f92610326575b50508160011b915f199060031b1c1916176003555b83516001600160401b03811161031257600454600181811c91168015610308575b60208210146102f457601f8111610291575b50602094601f821160011461022e579481929394955f92610223575b50508160011b915f199060031b1c1916176004555b600960ff19600554161760055561014b33610442565b5062015f9060095582156101de57620186a08111610199576101899260018060a01b03196008541617600855600a55610183336104b8565b506104b8565b506040516115f1908161054c8239f35b60405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206275792066656520726174696f00000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206665652072656365697665720000000000000000000000006044820152606490fd5b015190505f80610120565b601f1982169560045f52805f20915f5b88811061027957508360019596979810610261575b505050811b01600455610135565b01515f1960f88460031b161c191690555f8080610253565b9192602060018192868501518155019401920161023e565b60045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f830160051c810191602084106102ea575b601f0160051c01905b8181106102df5750610104565b5f81556001016102d2565b90915081906102c9565b634e487b7160e01b5f52602260045260245ffd5b90607f16906100f2565b634e487b7160e01b5f52604160045260245ffd5b015190505f806100bc565b60035f9081528281209350601f198516905b81811061037f5750908460019594939210610367575b505050811b016003556100d1565b01515f1960f88460031b161c191690555f8080610359565b92936020600181928786015181550195019301610343565b60035f529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c810191602085106103fb575b90601f859493920160051c01905b8181106103ed57506100a6565b5f81558493506001016103e0565b90915081906103d2565b91607f1691610092565b5f80fd5b60408051919082016001600160401b038111838210176103125760405260038252624f4c5960e81b6020830152565b6001600160a01b0381165f9081525f516020611b7d5f395f51905f52602052604090205460ff166104b3576001600160a01b03165f8181525f516020611b7d5f395f51905f5260205260408120805460ff191660011790553391905f516020611b3d5f395f51905f528180a4600190565b505f90565b6001600160a01b0381165f9081525f516020611b5d5f395f51905f52602052604090205460ff166104b3576001600160a01b03165f8181525f516020611b5d5f395f51905f5260205260408120805460ff191660011790553391907f849ce89bfb011047badb624cc7bca584328cbe2b50dc206a08607a3818d8f272905f516020611b3d5f395f51905f529080a460019056fe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610bc05750806306fdde0314610b05578063095ea7b314610adf57806318160ddd14610ac25780631f9bbe2014610a8857806323b872dd146109d1578063248a9ca31461099e5780632f2ff15d14610960578063313ce5671461094057806336568abe146108fc57806339509351146108b55780633e36f4c71461087b57806340c10f191461073657806341744dd41461071957806342966c68146106fc57806370a08231146106c5578063799c711a146105e057806379cc67901461053557806385af30c51461050d57806391d14854146104c457806395d89b41146103c0578063a217fddf146103a6578063a457c2d714610307578063a9059cbb146102d6578063aaf5eb68146102b9578063b3f0067414610291578063bffad1ad14610274578063d547741f1461022f578063dd62ed3e146101df5763f30e85bc14610166575f80fd5b346101db5760203660031901126101db5761017f610c3d565b335f9081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f860205260409020546101b99060ff16610c9f565b600780546001600160a01b0319166001600160a01b0392909216919091179055005b5f80fd5b346101db5760403660031901126101db576101f8610c3d565b610200610c53565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b346101db5760403660031901126101db5761027260043561024e610c53565b9061026d610268825f526006602052600160405f20015490565b61125e565b611324565b005b346101db575f3660031901126101db576020600a54604051908152f35b346101db575f3660031901126101db576008546040516001600160a01b039091168152602090f35b346101db575f3660031901126101db576020604051620186a08152f35b346101db5760403660031901126101db576102fc6102f2610c3d565b6024359033610e13565b602060405160018152f35b346101db5760403660031901126101db576102fc610323610c3d565b61039f602435335f52600160205260405f2060018060a01b0384165f5260205260405f205461039a604051610359606082610c69565b602581527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77602082015264207a65726f60d81b604082015282841115611236565b610de5565b9033610ce1565b346101db575f3660031901126101db5760206040515f8152f35b346101db575f3660031901126101db576040515f6004548060011c906001811680156104ba575b6020831081146104a6578285529081156104825750600114610424575b6104208361041481850382610c69565b60405191829182610c13565b0390f35b91905060045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b915f905b80821061046857509091508101602001610414610404565b919260018160209254838588010152019101909291610450565b60ff191660208086019190915291151560051b840190910191506104149050610404565b634e487b7160e01b5f52602260045260245ffd5b91607f16916103e7565b346101db5760403660031901126101db576104dd610c53565b6004355f52600660205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b346101db575f3660031901126101db576007546040516001600160a01b039091168152602090f35b346101db5760403660031901126101db57610272610551610c3d565b6024359060018060a01b0381165f52600160205260405f2060018060a01b0333165f526020526105db6105d48360405f205461039a604051610594606082610c69565b602481527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77602082015263616e636560e01b604082015282841115611236565b3383610ce1565b611402565b346101db5760403660031901126101db5760043560ff81168091036101db57335f9081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f860205260409020546024359061063d9060ff16610c9f565b620186a0811161068c577f6dc8c38e848bfe1a52caf6504ff820ad3a4762e8aa8eb345d57faa5f566cbd6591604091816106835780600a555b82519182526020820152a1005b80600955610676565b60405162461bcd60e51b815260206004820152601160248201527022bc31b2b2b23990383932b1b4b9b4b7b760791b6044820152606490fd5b346101db5760203660031901126101db576001600160a01b036106e6610c3d565b165f525f602052602060405f2054604051908152f35b346101db5760203660031901126101db5761027260043533611402565b346101db575f3660031901126101db576020600954604051908152f35b346101db5760403660031901126101db5761074f610c3d565b335f9081527fbecc2c392e33bce1ac066e9a672746846262f4d91fb83bfa86198afd79eafeb16020526040902054602435919060ff161561082a576001600160a01b03169081156107e5576107a6816002546113a8565b600255815f525f6020526107be8160405f20546113a8565b825f525f60205260405f20556040519081525f51602061159c5f395f51905f5260203092a3005b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b815260206004820152602360248201527f5661756c744f776e65643a2063616c6c6572206973206e6f74207468652056616044820152621d5b1d60ea1b6064820152608490fd5b346101db575f3660031901126101db5760206040517ffdf81848136595c31bb5f76217767372bc4bf906663038eb38381131ea27ecba8152f35b346101db5760403660031901126101db576102fc6108d1610c3d565b335f52600160205260405f2060018060a01b0382165f5260205261039f60405f2060243590546113a8565b346101db5760403660031901126101db57610915610c53565b336001600160a01b038216036109315761027290600435611324565b63334bd91960e11b5f5260045ffd5b346101db575f3660031901126101db57602060ff60055416604051908152f35b346101db5760403660031901126101db5761027260043561097f610c53565b90610999610268825f526006602052600160405f20015490565b611298565b346101db5760203660031901126101db5760206109c96004355f526006602052600160405f20015490565b604051908152f35b346101db5760603660031901126101db576102fc6109ed610c3d565b610a806109f8610c53565b610a06604435809285610e13565b6001600160a01b0383165f9081526001602090815260408083203384529091529081902054905161039a90610a3c606082610c69565b602881527f45524332303a207472616e7366657220616d6f756e74206578636565647320616020820152676c6c6f77616e636560c01b604082015282841115611236565b903390610ce1565b346101db575f3660031901126101db5760206040517f849ce89bfb011047badb624cc7bca584328cbe2b50dc206a08607a3818d8f2728152f35b346101db575f3660031901126101db576020600254604051908152f35b346101db5760403660031901126101db576102fc610afb610c3d565b6024359033610ce1565b346101db575f3660031901126101db576040515f6003548060011c90600181168015610bb6575b6020831081146104a6578285529081156104825750600114610b58576104208361041481850382610c69565b91905060035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b915f905b808210610b9c57509091508101602001610414610404565b919260018160209254838588010152019101909291610b84565b91607f1691610b2c565b346101db5760203660031901126101db576004359063ffffffff60e01b82168092036101db57602091637965db0b60e01b8114908115610c02575b5015158152f35b6301ffc9a760e01b14905083610bfb565b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b03821682036101db57565b602435906001600160a01b03821682036101db57565b90601f8019910116810190811067ffffffffffffffff821117610c8b57604052565b634e487b7160e01b5f52604160045260245ffd5b15610ca657565b60405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b6044820152606490fd5b6001600160a01b0316908115610d94576001600160a01b0316918215610d445760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b91908203918211610df257565b634e487b7160e01b5f52601160045260245ffd5b91908201809211610df257565b5f926001600160a01b039091169182156111e3576001600160a01b031692831561119257825f525f602052610e9a8260405f205461039a604051610e58606082610c69565b602681527f45524332303a207472616e7366657220616d6f756e7420657863656564732062602082015265616c616e636560d01b604082015282841115611236565b5f848152602081905260409020556007546001600160a01b0316808414808061115b575b801561111a575b610f05575b50505f51602061159c5f395f51905f52918185602093528083526040610ef383828420546113a8565b918781528085522055604051908152a3565b15610fc257505f51602061159c5f395f51905f5291602091620186a0610f2d600a5484611530565b7f536166654d6174683a206469766973696f6e206279207a65726f00000000000085604051610f5d604082610c69565b601a815201520480610f75575b505b91819350610eca565b9182610f8091610de5565b9160018060a01b0360085416825281845260408220610fa0828254610e06565b90556008546040519182526001600160a01b031690869086908690a35f610f6a565b8414610fe0575b5f51602061159c5f395f51905f5291602091610f6c565b620186a0610ff060095484611530565b7f536166654d6174683a206469766973696f6e206279207a65726f0000000000006020604051611021604082610c69565b601a815201520480611034575b50610fc9565b61104081604094610de5565b9060018060a01b03600854165f525f602052835f20611060828254610e06565b9055847f916b8175cd5c46d919fd13bb22ffc701a10dec261c617873a53c55d45569a4e460018060a01b036008541695869384845f51602061159c5f395f51905f5260208551858152a38151908682526020820152a3823b156101db575f80936004604051809681936311f8f98960e01b83525af191821561110f575f51602061159c5f395f51905f52936020936110fc575b5091509161102e565b61110891505f90610c69565b5f5f6110f3565b6040513d5f823e3d90fd5b508186148015610ec557505f8581527f9a88f9ebb004d12e1234b5e360d2ea332def9626482349c09edc9ef886d4132a602052604090205460ff1615610ec5565b505f8681527f9a88f9ebb004d12e1234b5e360d2ea332def9626482349c09edc9ef886d4132a602052604090205460ff1615610ebe565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561123e5750565b60405162461bcd60e51b815290819061125a9060048301610c13565b0390fd5b5f81815260066020908152604080832033845290915290205460ff16156112825750565b63e2517d3f60e01b5f523360045260245260445ffd5b5f8181526006602090815260408083206001600160a01b038616845290915290205460ff1661131e575f8181526006602090815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b50505f90565b5f8181526006602090815260408083206001600160a01b038616845290915290205460ff161561131e575f8181526006602090815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b906113b39082610e06565b9081106113bd5790565b60405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606490fd5b6001600160a01b031680156114e1575f51602061159c5f395f51905f5260205f9383855284825261148081604087205461039a604051611443606082610c69565b602281527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e8782015261636560f01b604082015282841115611236565b84865285835260408620556114d58160025461039a6040516114a3604082610c69565b601e81527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008782015282841115611236565b600255604051908152a3565b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b90811561131e57808202918204808203610df2570361154c5790565b60405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220617057b8f13e366c4d1852e8bedf2ef405002f6a4ac8226aa96ce0a6663f52fe64736f6c634300081d00332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9a88f9ebb004d12e1234b5e360d2ea332def9626482349c09edc9ef886d4132a54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f80000000000000000000000007b40e1e980b72c6f676224341f8e22d0f01315f60000000000000000000000000000000000000000000000000000000000015f90

Deployed Bytecode

0x6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a714610bc05750806306fdde0314610b05578063095ea7b314610adf57806318160ddd14610ac25780631f9bbe2014610a8857806323b872dd146109d1578063248a9ca31461099e5780632f2ff15d14610960578063313ce5671461094057806336568abe146108fc57806339509351146108b55780633e36f4c71461087b57806340c10f191461073657806341744dd41461071957806342966c68146106fc57806370a08231146106c5578063799c711a146105e057806379cc67901461053557806385af30c51461050d57806391d14854146104c457806395d89b41146103c0578063a217fddf146103a6578063a457c2d714610307578063a9059cbb146102d6578063aaf5eb68146102b9578063b3f0067414610291578063bffad1ad14610274578063d547741f1461022f578063dd62ed3e146101df5763f30e85bc14610166575f80fd5b346101db5760203660031901126101db5761017f610c3d565b335f9081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f860205260409020546101b99060ff16610c9f565b600780546001600160a01b0319166001600160a01b0392909216919091179055005b5f80fd5b346101db5760403660031901126101db576101f8610c3d565b610200610c53565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b346101db5760403660031901126101db5761027260043561024e610c53565b9061026d610268825f526006602052600160405f20015490565b61125e565b611324565b005b346101db575f3660031901126101db576020600a54604051908152f35b346101db575f3660031901126101db576008546040516001600160a01b039091168152602090f35b346101db575f3660031901126101db576020604051620186a08152f35b346101db5760403660031901126101db576102fc6102f2610c3d565b6024359033610e13565b602060405160018152f35b346101db5760403660031901126101db576102fc610323610c3d565b61039f602435335f52600160205260405f2060018060a01b0384165f5260205260405f205461039a604051610359606082610c69565b602581527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77602082015264207a65726f60d81b604082015282841115611236565b610de5565b9033610ce1565b346101db575f3660031901126101db5760206040515f8152f35b346101db575f3660031901126101db576040515f6004548060011c906001811680156104ba575b6020831081146104a6578285529081156104825750600114610424575b6104208361041481850382610c69565b60405191829182610c13565b0390f35b91905060045f527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b915f905b80821061046857509091508101602001610414610404565b919260018160209254838588010152019101909291610450565b60ff191660208086019190915291151560051b840190910191506104149050610404565b634e487b7160e01b5f52602260045260245ffd5b91607f16916103e7565b346101db5760403660031901126101db576104dd610c53565b6004355f52600660205260405f209060018060a01b03165f52602052602060ff60405f2054166040519015158152f35b346101db575f3660031901126101db576007546040516001600160a01b039091168152602090f35b346101db5760403660031901126101db57610272610551610c3d565b6024359060018060a01b0381165f52600160205260405f2060018060a01b0333165f526020526105db6105d48360405f205461039a604051610594606082610c69565b602481527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77602082015263616e636560e01b604082015282841115611236565b3383610ce1565b611402565b346101db5760403660031901126101db5760043560ff81168091036101db57335f9081527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f860205260409020546024359061063d9060ff16610c9f565b620186a0811161068c577f6dc8c38e848bfe1a52caf6504ff820ad3a4762e8aa8eb345d57faa5f566cbd6591604091816106835780600a555b82519182526020820152a1005b80600955610676565b60405162461bcd60e51b815260206004820152601160248201527022bc31b2b2b23990383932b1b4b9b4b7b760791b6044820152606490fd5b346101db5760203660031901126101db576001600160a01b036106e6610c3d565b165f525f602052602060405f2054604051908152f35b346101db5760203660031901126101db5761027260043533611402565b346101db575f3660031901126101db576020600954604051908152f35b346101db5760403660031901126101db5761074f610c3d565b335f9081527fbecc2c392e33bce1ac066e9a672746846262f4d91fb83bfa86198afd79eafeb16020526040902054602435919060ff161561082a576001600160a01b03169081156107e5576107a6816002546113a8565b600255815f525f6020526107be8160405f20546113a8565b825f525f60205260405f20556040519081525f51602061159c5f395f51905f5260203092a3005b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b815260206004820152602360248201527f5661756c744f776e65643a2063616c6c6572206973206e6f74207468652056616044820152621d5b1d60ea1b6064820152608490fd5b346101db575f3660031901126101db5760206040517ffdf81848136595c31bb5f76217767372bc4bf906663038eb38381131ea27ecba8152f35b346101db5760403660031901126101db576102fc6108d1610c3d565b335f52600160205260405f2060018060a01b0382165f5260205261039f60405f2060243590546113a8565b346101db5760403660031901126101db57610915610c53565b336001600160a01b038216036109315761027290600435611324565b63334bd91960e11b5f5260045ffd5b346101db575f3660031901126101db57602060ff60055416604051908152f35b346101db5760403660031901126101db5761027260043561097f610c53565b90610999610268825f526006602052600160405f20015490565b611298565b346101db5760203660031901126101db5760206109c96004355f526006602052600160405f20015490565b604051908152f35b346101db5760603660031901126101db576102fc6109ed610c3d565b610a806109f8610c53565b610a06604435809285610e13565b6001600160a01b0383165f9081526001602090815260408083203384529091529081902054905161039a90610a3c606082610c69565b602881527f45524332303a207472616e7366657220616d6f756e74206578636565647320616020820152676c6c6f77616e636560c01b604082015282841115611236565b903390610ce1565b346101db575f3660031901126101db5760206040517f849ce89bfb011047badb624cc7bca584328cbe2b50dc206a08607a3818d8f2728152f35b346101db575f3660031901126101db576020600254604051908152f35b346101db5760403660031901126101db576102fc610afb610c3d565b6024359033610ce1565b346101db575f3660031901126101db576040515f6003548060011c90600181168015610bb6575b6020831081146104a6578285529081156104825750600114610b58576104208361041481850382610c69565b91905060035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b915f905b808210610b9c57509091508101602001610414610404565b919260018160209254838588010152019101909291610b84565b91607f1691610b2c565b346101db5760203660031901126101db576004359063ffffffff60e01b82168092036101db57602091637965db0b60e01b8114908115610c02575b5015158152f35b6301ffc9a760e01b14905083610bfb565b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b03821682036101db57565b602435906001600160a01b03821682036101db57565b90601f8019910116810190811067ffffffffffffffff821117610c8b57604052565b634e487b7160e01b5f52604160045260245ffd5b15610ca657565b60405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1030b236b4b760691b6044820152606490fd5b6001600160a01b0316908115610d94576001600160a01b0316918215610d445760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591835f526001825260405f20855f5282528060405f2055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b91908203918211610df257565b634e487b7160e01b5f52601160045260245ffd5b91908201809211610df257565b5f926001600160a01b039091169182156111e3576001600160a01b031692831561119257825f525f602052610e9a8260405f205461039a604051610e58606082610c69565b602681527f45524332303a207472616e7366657220616d6f756e7420657863656564732062602082015265616c616e636560d01b604082015282841115611236565b5f848152602081905260409020556007546001600160a01b0316808414808061115b575b801561111a575b610f05575b50505f51602061159c5f395f51905f52918185602093528083526040610ef383828420546113a8565b918781528085522055604051908152a3565b15610fc257505f51602061159c5f395f51905f5291602091620186a0610f2d600a5484611530565b7f536166654d6174683a206469766973696f6e206279207a65726f00000000000085604051610f5d604082610c69565b601a815201520480610f75575b505b91819350610eca565b9182610f8091610de5565b9160018060a01b0360085416825281845260408220610fa0828254610e06565b90556008546040519182526001600160a01b031690869086908690a35f610f6a565b8414610fe0575b5f51602061159c5f395f51905f5291602091610f6c565b620186a0610ff060095484611530565b7f536166654d6174683a206469766973696f6e206279207a65726f0000000000006020604051611021604082610c69565b601a815201520480611034575b50610fc9565b61104081604094610de5565b9060018060a01b03600854165f525f602052835f20611060828254610e06565b9055847f916b8175cd5c46d919fd13bb22ffc701a10dec261c617873a53c55d45569a4e460018060a01b036008541695869384845f51602061159c5f395f51905f5260208551858152a38151908682526020820152a3823b156101db575f80936004604051809681936311f8f98960e01b83525af191821561110f575f51602061159c5f395f51905f52936020936110fc575b5091509161102e565b61110891505f90610c69565b5f5f6110f3565b6040513d5f823e3d90fd5b508186148015610ec557505f8581527f9a88f9ebb004d12e1234b5e360d2ea332def9626482349c09edc9ef886d4132a602052604090205460ff1615610ec5565b505f8681527f9a88f9ebb004d12e1234b5e360d2ea332def9626482349c09edc9ef886d4132a602052604090205460ff1615610ebe565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561123e5750565b60405162461bcd60e51b815290819061125a9060048301610c13565b0390fd5b5f81815260066020908152604080832033845290915290205460ff16156112825750565b63e2517d3f60e01b5f523360045260245260445ffd5b5f8181526006602090815260408083206001600160a01b038616845290915290205460ff1661131e575f8181526006602090815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b50505f90565b5f8181526006602090815260408083206001600160a01b038616845290915290205460ff161561131e575f8181526006602090815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4600190565b906113b39082610e06565b9081106113bd5790565b60405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606490fd5b6001600160a01b031680156114e1575f51602061159c5f395f51905f5260205f9383855284825261148081604087205461039a604051611443606082610c69565b602281527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e8782015261636560f01b604082015282841115611236565b84865285835260408620556114d58160025461039a6040516114a3604082610c69565b601e81527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008782015282841115611236565b600255604051908152a3565b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b90811561131e57808202918204808203610df2570361154c5790565b60405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220617057b8f13e366c4d1852e8bedf2ef405002f6a4ac8226aa96ce0a6663f52fe64736f6c634300081d0033

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

0000000000000000000000007b40e1e980b72c6f676224341f8e22d0f01315f60000000000000000000000000000000000000000000000000000000000015f90

-----Decoded View---------------
Arg [0] : _feeReceiver (address): 0x7B40E1e980B72C6f676224341F8E22D0f01315f6
Arg [1] : _buyFeeRatio (uint256): 90000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007b40e1e980b72c6f676224341f8e22d0f01315f6
Arg [1] : 0000000000000000000000000000000000000000000000000000000000015f90


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.