ETH Price: $2,674.84 (-4.97%)

Token

Agent Smith by ZEGENT (SMITH)
 

Overview

Max Total Supply

1,000,000,000 SMITH

Holders

32

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Uniswap: Universal Router
Balance
0 SMITH

Value
$0.00
0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad
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:
TokenZ

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 11 : TokenZ.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

contract TokenZ is ERC20, Ownable {
    // ------------------------
    //     State Variables
    // ------------------------

    // Immutable addresses set at deployment
    address public immutable uniswapV2Router;   // The Uniswap (or fork) router
    address public immutable taxDestination;    // Where tax tokens are ultimately sent
    address public factoryAddress;              // Optional "factory" that can call setTax

    // Token that we pair with (e.g., ZGEN or WETH)
    address public pairTokenAddress;
    address public pair;  // The LP pair (TokenZ <-> pairToken)

    // Tax-related
    uint256 public tax;          // E.g. 1 => 1%
    bool public isTaxEnabled = false;
    uint256 public constant SWAP_THRESHOLD = 10_000 * (10 ** 18);  // Minimum tokens in contract to trigger a swap
    bool private _inSwap = false;

    // Whitelist mapping (e.g., for router, owner, etc.)
    mapping(address => bool) public whitelisted;

    // ------------------------
    //     Modifiers
    // ------------------------
    modifier onlyFactory() {
        require(msg.sender == factoryAddress, "Only factory can call this");
        _;
    }

    modifier swapLock() {
        _inSwap = true;
        _;
        _inSwap = false;
    }

    // ------------------------
    //    Constructor
    // ------------------------
    constructor(
        address _owner,             // Will become owner (and receive total supply)
        string memory _name,        // "Agent Smith by ZEGENT"
        string memory _symbol,      // "SMITH"
        uint256 _tax,               // e.g. 1 => 1%
        address _taxDestination,    // Destination for tax tokens
        address _uniswapV2Router,   // Uniswap router
        address _pairToken,         // e.g. ZGEN or WETH
        address _factoryAddress
    )
        ERC20(_name, _symbol)
        Ownable(_owner)
    {
        require(
            _tax <= 1,
            "Tax cannot be greater than 1%"
        );
        require(_taxDestination != address(0), "Tax destination is zero");
        require(_uniswapV2Router != address(0), "Router is zero");
        require(_pairToken != address(0), "Pair token is zero");

        // Mint total supply (1 billion, for example)
        uint256 totalSupply = 1_000_000_000 * (10 ** 18);
        _mint(_owner, totalSupply);

        _transferOwnership(_owner);  // Set the owner

        // Initialize immutables
        tax = _tax;
        taxDestination = _taxDestination;
        uniswapV2Router = _uniswapV2Router;
        pairTokenAddress = _pairToken;
        factoryAddress = _factoryAddress;

        // Create the Uniswap pair
        address createdPair = IUniswapV2Factory(
            IUniswapV2Router02(_uniswapV2Router).factory()
        ).createPair(address(this), _pairToken);
        pair = createdPair;

        // Whitelist owner and contract itself
        whitelisted[_owner] = true;
        whitelisted[address(this)] = true;

        // ─────────────────────────────────────────────────────────
        //  Whitelist the router from the start (the key addition)
        // ─────────────────────────────────────────────────────────
        whitelisted[_uniswapV2Router] = true;
    }

    // ------------------------
    //   External Functions
    // ------------------------

    /**
     * @notice Factory contract can update the tax (requires onlyFactory).
     * @param _tax New tax in percent (max 1).
     */
    function setTax(uint256 _tax) external onlyFactory {
        require(_tax <= 1, "Tax cannot be greater than 1%");
        tax = _tax;
    }

    /**
     * @notice Owner can enable or disable the tax globally.
     */
    function setIsTaxEnabled(bool _status) external onlyOwner {
        isTaxEnabled = _status;
    }

    /**
     * @notice Adds/removes an address to the whitelist. Whitelisted addresses pay 0 tax.
     */
    function setWhitelisted(address _address, bool _whitelisted) public onlyOwner {
        whitelisted[_address] = _whitelisted;
    }

    /**
     * @dev Convenience method so it matches your "deploy.ts" usage: tokenZ.addToWhitelist(...)
     */
    function addToWhitelist(address _address) external onlyOwner {
        setWhitelisted(_address, true);
    }

    /**
     * @notice Swaps tokens held by this contract for pairToken, sending proceeds to taxDestination.
     */
    function swapTaxTokens() public swapLock {
        uint256 tokenBalance = balanceOf(address(this));
        if (tokenBalance < SWAP_THRESHOLD) {
            // Not enough tokens in contract to justify a swap
            return;
        }

        // Approve router
        _approve(address(this), uniswapV2Router, tokenBalance);

        // Path = this token -> pairToken
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = pairTokenAddress;

        // Execute the swap
        IUniswapV2Router02(uniswapV2Router)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                tokenBalance,
                0, // accept any amount out
                path,
                taxDestination, 
                block.timestamp
            );
    }

    /**
     * @notice Override renounceOwnership to use _transferOwnership(address(0)).
     */
    function renounceOwnership() public override onlyOwner {
        _transferOwnership(address(0));
    }

    // ------------------------
    //   Internal Overrides
    // ------------------------
    /**
     * @dev This is where we apply tax for buys/sells if not whitelisted.
     */
    function _update(address from, address to, uint256 amount) internal override {
        // If sender/receiver is whitelisted, skip tax logic
        // Also skip if `from == address(0)` (minting) or isTaxEnabled == false
        if (
            whitelisted[from] ||
            whitelisted[to]   ||
            from == address(0) ||
            !isTaxEnabled
        ) {
            super._update(from, to, amount);
            return;
        }

        // Verify if it's a buy or sell on the Uniswap pair
        bool isBuy = (from == pair);  // from == pair => user is receiving tokens from pair
        bool isSell = (to == pair);   // to == pair => user is sending tokens to pair

        if (isBuy || isSell) {
            uint256 taxAmount = 0;
            if (tax > 0) {
                taxAmount = (amount * tax) / 100;
            }

            // Swap only on sells if not already swapping
            if (isSell && !_inSwap) {
                swapTaxTokens();
            }

            uint256 afterTax = amount - taxAmount;

            // Transfer the net amount to the receiver
            super._update(from, to, afterTax);
            // Transfer the tax amount to this contract
            super._update(from, address(this), taxAmount);

        } else {
            // Normal wallet-to-wallet transfer: no tax
            super._update(from, to, amount);
        }
    }
}

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

File 3 of 11 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual 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);
            }
        }
    }
}

File 5 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the 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);
}

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

pragma solidity ^0.8.20;

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

File 7 of 11 : Context.sol
// 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;
    }
}

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

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

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

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

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

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

File 9 of 11 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 10 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

import './IUniswapV2Router01.sol';

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_tax","type":"uint256"},{"internalType":"address","name":"_taxDestination","type":"address"},{"internalType":"address","name":"_uniswapV2Router","type":"address"},{"internalType":"address","name":"_pairToken","type":"address"},{"internalType":"address","name":"_factoryAddress","type":"address"}],"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":[],"name":"SWAP_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToWhitelist","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":"factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTaxEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setIsTaxEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tax","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_whitelisted","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"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"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c0604052600a805461ffff1916905534801561001b57600080fd5b50604051611bfc380380611bfc83398101604081905261003a91610937565b87878760036100498382610a7f565b5060046100568282610a7f565b5050506001600160a01b03811661008857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61009181610371565b5060018511156100e35760405162461bcd60e51b815260206004820152601d60248201527f5461782063616e6e6f742062652067726561746572207468616e203125000000604482015260640161007f565b6001600160a01b0384166101395760405162461bcd60e51b815260206004820152601760248201527f5461782064657374696e6174696f6e206973207a65726f000000000000000000604482015260640161007f565b6001600160a01b0383166101805760405162461bcd60e51b815260206004820152600e60248201526d526f75746572206973207a65726f60901b604482015260640161007f565b6001600160a01b0382166101cb5760405162461bcd60e51b81526020600482015260126024820152715061697220746f6b656e206973207a65726f60701b604482015260640161007f565b6b033b2e3c9fd0803ce80000006101e289826103c3565b6101eb89610371565b60098690556001600160a01b0385811660a0528481166080819052600780546001600160a01b03199081168785161790915560068054909116928516929092179091556040805163c45a015560e01b815290516000929163c45a01559160048083019260209291908290030181865afa15801561026c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102909190610b3d565b6040516364e329cb60e11b81523060048201526001600160a01b038681166024830152919091169063c9c65396906044016020604051808303816000875af11580156102e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103049190610b3d565b600880546001600160a01b0319166001600160a01b03928316179055998a166000908152600b6020526040808220805460ff199081166001908117909255308452828420805482168317905597909c1682529020805490951690991790935550610c629650505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166103ed5760405163ec442f0560e01b81526000600482015260240161007f565b6103f9600083836103fd565b5050565b6001600160a01b0383166000908152600b602052604090205460ff168061043c57506001600160a01b0382166000908152600b602052604090205460ff165b8061044e57506001600160a01b038316155b8061045c5750600a5460ff16155b156104715761046c83838361051d565b505050565b6008546001600160a01b0390811684821681149184161481806104915750805b1561050b57600954600090156104be576064600954856104b19190610b75565b6104bb9190610b92565b90505b8180156104d35750600a54610100900460ff16155b156104e0576104e0610647565b60006104ec8286610bb4565b90506104f987878361051d565b61050487308461051d565b5050610516565b61051685858561051d565b5050505050565b6001600160a01b03831661054857806002600082825461053d9190610bc7565b909155506105ba9050565b6001600160a01b0383166000908152602081905260409020548181101561059b5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161007f565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166105d6576002805482900390556105f5565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161063a91815260200190565b60405180910390a3505050565b600a805461ff00191661010017905530600090815260208190526040812054905069021e19e0c9bab24000008110156106805750610777565b610693306080518361078460201b60201c565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106106c8576106c8610bda565b6001600160a01b0392831660209182029290920101526007548251911690829060019081106106f9576106f9610bda565b6001600160a01b03928316602091820292909201015260805160a051604051635c11d79560e01b81529190921691635c11d7959161074291869160009187914290600401610bf0565b600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b5050505050505b600a805461ff0019169055565b61046c83838360016001600160a01b0384166107b65760405163e602df0560e01b81526000600482015260240161007f565b6001600160a01b0383166107e057604051634a1406b160e11b81526000600482015260240161007f565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561085c57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161085391815260200190565b60405180910390a35b50505050565b80516001600160a01b038116811461087957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126108a557600080fd5b81516001600160401b038111156108be576108be61087e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156108ec576108ec61087e565b60405281815283820160200185101561090457600080fd5b60005b8281101561092357602081860181015183830182015201610907565b506000918101602001919091529392505050565b600080600080600080600080610100898b03121561095457600080fd5b61095d89610862565b60208a01519098506001600160401b0381111561097957600080fd5b6109858b828c01610894565b60408b015190985090506001600160401b038111156109a357600080fd5b6109af8b828c01610894565b965050606089015194506109c560808a01610862565b93506109d360a08a01610862565b92506109e160c08a01610862565b91506109ef60e08a01610862565b90509295985092959890939650565b600181811c90821680610a1257607f821691505b602082108103610a3257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561046c57806000526020600020601f840160051c81016020851015610a5f5750805b601f840160051c820191505b818110156105165760008155600101610a6b565b81516001600160401b03811115610a9857610a9861087e565b610aac81610aa684546109fe565b84610a38565b6020601f821160018114610ae05760008315610ac85750848201515b600019600385901b1c1916600184901b178455610516565b600084815260208120601f198516915b82811015610b105787850151825560209485019460019092019101610af0565b5084821015610b2e5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b600060208284031215610b4f57600080fd5b610b5882610862565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b8c57610b8c610b5f565b92915050565b600082610baf57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610b8c57610b8c610b5f565b80820180821115610b8c57610b8c610b5f565b634e487b7160e01b600052603260045260246000fd5b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b81811015610c425783516001600160a01b0316835260209384019390920191600101610c1b565b50506001600160a01b039590951660608401525050608001529392505050565b60805160a051610f60610c9c60003960008181610252015261070b0152600081816101ee0152818161062501526106d50152610f606000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063a8aa1b3111610097578063dd62ed3e11610071578063dd62ed3e14610384578063e43252d7146103bd578063e6c1909b146103d0578063f2fde38b146103dd57600080fd5b8063a8aa1b311461033b578063a9059cbb1461034e578063d936547e1461036157600080fd5b80638da5cb5b146102eb5780639281aa0b146102fc57806395d89b411461030f578063966dae0e1461031757806399c8d5561461032a5780639bc4ae311461033357600080fd5b80632c547b3d1161014b57806348c3b5371161012557806348c3b537146102965780636186b025146102a957806370a08231146102ba578063715018a6146102e357600080fd5b80632c547b3d1461024d5780632e5bb6ff14610274578063313ce5671461028757600080fd5b806306fdde031461019357806308e63e08146101b1578063095ea7b3146101c65780631694505e146101e957806318160ddd1461022857806323b872dd1461023a575b600080fd5b61019b6103f0565b6040516101a89190610c5f565b60405180910390f35b6101c46101bf366004610cc2565b610482565b005b6101d96101d4366004610cfb565b61049d565b60405190151581526020016101a8565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101a8565b6002545b6040519081526020016101a8565b6101d9610248366004610d25565b6104b7565b6102107f000000000000000000000000000000000000000000000000000000000000000081565b6101c4610282366004610d62565b6104db565b604051601281526020016101a8565b600754610210906001600160a01b031681565b61022c69021e19e0c9bab240000081565b61022c6102c8366004610d7b565b6001600160a01b031660009081526020819052604090205490565b6101c4610590565b6005546001600160a01b0316610210565b6101c461030a366004610d96565b6105a4565b61019b6105d7565b600654610210906001600160a01b031681565b61022c60095481565b6101c46105e6565b600854610210906001600160a01b031681565b6101d961035c366004610cfb565b610777565b6101d961036f366004610d7b565b600b6020526000908152604090205460ff1681565b61022c610392366004610dc9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c46103cb366004610d7b565b610785565b600a546101d99060ff1681565b6101c46103eb366004610d7b565b61079b565b6060600380546103ff90610df3565b80601f016020809104026020016040519081016040528092919081815260200182805461042b90610df3565b80156104785780601f1061044d57610100808354040283529160200191610478565b820191906000526020600020905b81548152906001019060200180831161045b57829003601f168201915b5050505050905090565b61048a6107d6565b600a805460ff1916911515919091179055565b6000336104ab818585610803565b60019150505b92915050565b6000336104c5858285610815565b6104d0858585610894565b506001949350505050565b6006546001600160a01b0316331461053a5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920666163746f72792063616e2063616c6c207468697300000000000060448201526064015b60405180910390fd5b600181111561058b5760405162461bcd60e51b815260206004820152601d60248201527f5461782063616e6e6f742062652067726561746572207468616e2031250000006044820152606401610531565b600955565b6105986107d6565b6105a260006108f3565b565b6105ac6107d6565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6060600480546103ff90610df3565b600a805461ff00191661010017905530600090815260208190526040812054905069021e19e0c9bab240000081101561061f575061076a565b61064a307f000000000000000000000000000000000000000000000000000000000000000083610803565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061067f5761067f610e2d565b6001600160a01b0392831660209182029290920101526007548251911690829060019081106106b0576106b0610e2d565b6001600160a01b039283166020918202929092010152604051635c11d79560e01b81527f000000000000000000000000000000000000000000000000000000000000000090911690635c11d7959061073590859060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401610e43565b600060405180830381600087803b15801561074f57600080fd5b505af1158015610763573d6000803e3d6000fd5b5050505050505b600a805461ff0019169055565b6000336104ab818585610894565b61078d6107d6565b6107988160016105a4565b50565b6107a36107d6565b6001600160a01b0381166107cd57604051631e4fbdf760e01b815260006004820152602401610531565b610798816108f3565b6005546001600160a01b031633146105a25760405163118cdaa760e01b8152336004820152602401610531565b6108108383836001610945565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981101561088e578181101561087f57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610531565b61088e84848484036000610945565b50505050565b6001600160a01b0383166108be57604051634b637e8f60e11b815260006004820152602401610531565b6001600160a01b0382166108e85760405163ec442f0560e01b815260006004820152602401610531565b610810838383610a1a565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661096f5760405163e602df0560e01b815260006004820152602401610531565b6001600160a01b03831661099957604051634a1406b160e11b815260006004820152602401610531565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561088e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a0c91815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600b602052604090205460ff1680610a5957506001600160a01b0382166000908152600b602052604090205460ff165b80610a6b57506001600160a01b038316155b80610a795750600a5460ff16155b15610a8957610810838383610b35565b6008546001600160a01b039081168482168114918416148180610aa95750805b15610b235760095460009015610ad657606460095485610ac99190610ecb565b610ad39190610ee2565b90505b818015610aeb5750600a54610100900460ff16155b15610af857610af86105e6565b6000610b048286610f04565b9050610b11878783610b35565b610b1c873084610b35565b5050610b2e565b610b2e858585610b35565b5050505050565b6001600160a01b038316610b60578060026000828254610b559190610f17565b90915550610bd29050565b6001600160a01b03831660009081526020819052604090205481811015610bb35760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610531565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610bee57600280548290039055610c0d565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c5291815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610c8d5760208186018101516040868401015201610c70565b506000604082850101526040601f19601f83011684010191505092915050565b80358015158114610cbd57600080fd5b919050565b600060208284031215610cd457600080fd5b610cdd82610cad565b9392505050565b80356001600160a01b0381168114610cbd57600080fd5b60008060408385031215610d0e57600080fd5b610d1783610ce4565b946020939093013593505050565b600080600060608486031215610d3a57600080fd5b610d4384610ce4565b9250610d5160208501610ce4565b929592945050506040919091013590565b600060208284031215610d7457600080fd5b5035919050565b600060208284031215610d8d57600080fd5b610cdd82610ce4565b60008060408385031215610da957600080fd5b610db283610ce4565b9150610dc060208401610cad565b90509250929050565b60008060408385031215610ddc57600080fd5b610de583610ce4565b9150610dc060208401610ce4565b600181811c90821680610e0757607f821691505b602082108103610e2757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b81811015610e955783516001600160a01b0316835260209384019390920191600101610e6e565b50506001600160a01b039590951660608401525050608001529392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104b1576104b1610eb5565b600082610eff57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156104b1576104b1610eb5565b808201808211156104b1576104b1610eb556fea2646970667358221220beed48527a1c66f268c6ae1959e7d7f55bbd4bc01813253a96f3a635e6101ce264736f6c634300081c0033000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005972169d49654dda92af57d11d4362fa72c15b030000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f00000000000000000000000000000000000000000000000000000000000000154167656e7420536d697468206279205a4547454e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000005534d495448000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063a8aa1b3111610097578063dd62ed3e11610071578063dd62ed3e14610384578063e43252d7146103bd578063e6c1909b146103d0578063f2fde38b146103dd57600080fd5b8063a8aa1b311461033b578063a9059cbb1461034e578063d936547e1461036157600080fd5b80638da5cb5b146102eb5780639281aa0b146102fc57806395d89b411461030f578063966dae0e1461031757806399c8d5561461032a5780639bc4ae311461033357600080fd5b80632c547b3d1161014b57806348c3b5371161012557806348c3b537146102965780636186b025146102a957806370a08231146102ba578063715018a6146102e357600080fd5b80632c547b3d1461024d5780632e5bb6ff14610274578063313ce5671461028757600080fd5b806306fdde031461019357806308e63e08146101b1578063095ea7b3146101c65780631694505e146101e957806318160ddd1461022857806323b872dd1461023a575b600080fd5b61019b6103f0565b6040516101a89190610c5f565b60405180910390f35b6101c46101bf366004610cc2565b610482565b005b6101d96101d4366004610cfb565b61049d565b60405190151581526020016101a8565b6102107f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016101a8565b6002545b6040519081526020016101a8565b6101d9610248366004610d25565b6104b7565b6102107f000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a81565b6101c4610282366004610d62565b6104db565b604051601281526020016101a8565b600754610210906001600160a01b031681565b61022c69021e19e0c9bab240000081565b61022c6102c8366004610d7b565b6001600160a01b031660009081526020819052604090205490565b6101c4610590565b6005546001600160a01b0316610210565b6101c461030a366004610d96565b6105a4565b61019b6105d7565b600654610210906001600160a01b031681565b61022c60095481565b6101c46105e6565b600854610210906001600160a01b031681565b6101d961035c366004610cfb565b610777565b6101d961036f366004610d7b565b600b6020526000908152604090205460ff1681565b61022c610392366004610dc9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c46103cb366004610d7b565b610785565b600a546101d99060ff1681565b6101c46103eb366004610d7b565b61079b565b6060600380546103ff90610df3565b80601f016020809104026020016040519081016040528092919081815260200182805461042b90610df3565b80156104785780601f1061044d57610100808354040283529160200191610478565b820191906000526020600020905b81548152906001019060200180831161045b57829003601f168201915b5050505050905090565b61048a6107d6565b600a805460ff1916911515919091179055565b6000336104ab818585610803565b60019150505b92915050565b6000336104c5858285610815565b6104d0858585610894565b506001949350505050565b6006546001600160a01b0316331461053a5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920666163746f72792063616e2063616c6c207468697300000000000060448201526064015b60405180910390fd5b600181111561058b5760405162461bcd60e51b815260206004820152601d60248201527f5461782063616e6e6f742062652067726561746572207468616e2031250000006044820152606401610531565b600955565b6105986107d6565b6105a260006108f3565b565b6105ac6107d6565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6060600480546103ff90610df3565b600a805461ff00191661010017905530600090815260208190526040812054905069021e19e0c9bab240000081101561061f575061076a565b61064a307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83610803565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061067f5761067f610e2d565b6001600160a01b0392831660209182029290920101526007548251911690829060019081106106b0576106b0610e2d565b6001600160a01b039283166020918202929092010152604051635c11d79560e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d90911690635c11d7959061073590859060009086907f000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a904290600401610e43565b600060405180830381600087803b15801561074f57600080fd5b505af1158015610763573d6000803e3d6000fd5b5050505050505b600a805461ff0019169055565b6000336104ab818585610894565b61078d6107d6565b6107988160016105a4565b50565b6107a36107d6565b6001600160a01b0381166107cd57604051631e4fbdf760e01b815260006004820152602401610531565b610798816108f3565b6005546001600160a01b031633146105a25760405163118cdaa760e01b8152336004820152602401610531565b6108108383836001610945565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981101561088e578181101561087f57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610531565b61088e84848484036000610945565b50505050565b6001600160a01b0383166108be57604051634b637e8f60e11b815260006004820152602401610531565b6001600160a01b0382166108e85760405163ec442f0560e01b815260006004820152602401610531565b610810838383610a1a565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661096f5760405163e602df0560e01b815260006004820152602401610531565b6001600160a01b03831661099957604051634a1406b160e11b815260006004820152602401610531565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561088e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a0c91815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600b602052604090205460ff1680610a5957506001600160a01b0382166000908152600b602052604090205460ff165b80610a6b57506001600160a01b038316155b80610a795750600a5460ff16155b15610a8957610810838383610b35565b6008546001600160a01b039081168482168114918416148180610aa95750805b15610b235760095460009015610ad657606460095485610ac99190610ecb565b610ad39190610ee2565b90505b818015610aeb5750600a54610100900460ff16155b15610af857610af86105e6565b6000610b048286610f04565b9050610b11878783610b35565b610b1c873084610b35565b5050610b2e565b610b2e858585610b35565b5050505050565b6001600160a01b038316610b60578060026000828254610b559190610f17565b90915550610bd29050565b6001600160a01b03831660009081526020819052604090205481811015610bb35760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610531565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610bee57600280548290039055610c0d565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610c5291815260200190565b60405180910390a3505050565b602081526000825180602084015260005b81811015610c8d5760208186018101516040868401015201610c70565b506000604082850101526040601f19601f83011684010191505092915050565b80358015158114610cbd57600080fd5b919050565b600060208284031215610cd457600080fd5b610cdd82610cad565b9392505050565b80356001600160a01b0381168114610cbd57600080fd5b60008060408385031215610d0e57600080fd5b610d1783610ce4565b946020939093013593505050565b600080600060608486031215610d3a57600080fd5b610d4384610ce4565b9250610d5160208501610ce4565b929592945050506040919091013590565b600060208284031215610d7457600080fd5b5035919050565b600060208284031215610d8d57600080fd5b610cdd82610ce4565b60008060408385031215610da957600080fd5b610db283610ce4565b9150610dc060208401610cad565b90509250929050565b60008060408385031215610ddc57600080fd5b610de583610ce4565b9150610dc060208401610ce4565b600181811c90821680610e0757607f821691505b602082108103610e2757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b81811015610e955783516001600160a01b0316835260209384019390920191600101610e6e565b50506001600160a01b039590951660608401525050608001529392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104b1576104b1610eb5565b600082610eff57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156104b1576104b1610eb5565b808201808211156104b1576104b1610eb556fea2646970667358221220beed48527a1c66f268c6ae1959e7d7f55bbd4bc01813253a96f3a635e6101ce264736f6c634300081c0033

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

000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000005972169d49654dda92af57d11d4362fa72c15b030000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f00000000000000000000000000000000000000000000000000000000000000154167656e7420536d697468206279205a4547454e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000005534d495448000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0xBf8448DB42e9bd5c4d99863a3faf0cEA5082c28a
Arg [1] : _name (string): Agent Smith by ZEGENT
Arg [2] : _symbol (string): SMITH
Arg [3] : _tax (uint256): 1
Arg [4] : _taxDestination (address): 0xBf8448DB42e9bd5c4d99863a3faf0cEA5082c28a
Arg [5] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [6] : _pairToken (address): 0x5972169d49654dda92af57D11D4362fa72c15B03
Arg [7] : _factoryAddress (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 000000000000000000000000bf8448db42e9bd5c4d99863a3faf0cea5082c28a
Arg [5] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [6] : 0000000000000000000000005972169d49654dda92af57d11d4362fa72c15b03
Arg [7] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [9] : 4167656e7420536d697468206279205a4547454e540000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 534d495448000000000000000000000000000000000000000000000000000000


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.