ETH Price: $2,483.33 (+3.08%)
 

Overview

Max Total Supply

100,000,000,000 LMI

Holders

443

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
24,556,974.359162972484713696 LMI

Value
$0.00
0x4ab878c712d9aa1582640b3e85c13a03bbd4f3b0
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:
LMI

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 10000 runs

Other Settings:
shanghai EvmVersion
File 1 of 7 : LMI.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

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

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    )
        external
        payable;

    function factory() external pure returns (address);

    function WETH() external pure returns (address);
}

interface IUniswapFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
    function getPair(address tokenA, address tokenB) external view returns (address pair);
}

contract LMI is ERC20, Ownable {
    uint256 public constant PRECISION_RATE = 100_000; // e.g. 5000 = 5%

    bool private swapping;

    address public feeTo;
    uint256 public buyTaxPct = 2500; // 2.5%
    uint256 public sellTaxPct = 2500; // 2.5%
    uint256 public swapTokensAtAmount;
    mapping(address => bool) public excludedFromFee;

    address public immutable uniswapV2Pair;
    IUniswapV2Router02 public immutable uniswapV2Router;

    uint256 public immutable maxTradeAmount;

    error TradeTooHigh(uint256 amount);

    receive() external payable { }

    constructor(address _router, uint256 _swapTokensAtAmount) ERC20("Lucky Mio", "LMI") Ownable(msg.sender) {
        swapTokensAtAmount = _swapTokensAtAmount;
        feeTo = msg.sender;
        IUniswapV2Router02 router = IUniswapV2Router02(_router);
        _approve(address(this), address(router), ~uint256(0));

        // Create a pair for this new token
        address pair = IUniswapFactory(router.factory()).createPair(address(this), router.WETH());
        uniswapV2Pair = pair;
        uniswapV2Router = router;
        addExcludedFromFee(msg.sender);
        addExcludedFromFee(address(this));

        // allocation
        uint256 decimal = decimals();
        _mint(msg.sender, 90_000_000_000 * 10 ** decimal);
        _mint(0x0f832c5f1514aE28D840694d41aa351441E67835, 1_000_000_000 * 10 ** decimal);
        _mint(0x2D9bB64D729FdcdC520914EF0Ef3F0410b69E536, 1_000_000_000 * 10 ** decimal);
        _mint(0x6C5be30f3c0AfAA6D5D22C9BA720233CE760E33E, 1_000_000_000 * 10 ** decimal);
        _mint(0x8d52C596A65eB6d5D09D689DBfEaFE01CD950aa5, 1_000_000_000 * 10 ** decimal);
        _mint(0x6c01844d3C618A32627E915a83CD594827156f91, 1_000_000_000 * 10 ** decimal);
        _mint(0x760db287dd55B9602860BfA2eEcfc47193402071, 1_000_000_000 * 10 ** decimal);
        _mint(0x69334f8eA309A0Fdfd276b9226f55a89ac7Eead2, 1_000_000_000 * 10 ** decimal);
        _mint(0x8983079889e87eA528a25978f63ABAd8c2085E11, 1_000_000_000 * 10 ** decimal);
        _mint(0x113fd78f9D1B06bEbB5C5240abC67a8538FAD941, 1_000_000_000 * 10 ** decimal);
        _mint(0x130fa6DfAaA9a1eD5141b92081f35687F8495c01, 1_000_000_000 * 10 ** decimal);

        maxTradeAmount = totalSupply() / 100; // 1% of the total supply
    }

    function addExcludedFromFee(address _account) public onlyOwner {
        require(!excludedFromFee[_account], "account already excluded");
        excludedFromFee[_account] = true;
    }

    function removeExcludedFromFee(address _account) public onlyOwner {
        require(excludedFromFee[_account], "account not excluded");
        excludedFromFee[_account] = false;
    }

    function setFeeTo(address _newFeeTo) public onlyOwner {
        feeTo = _newFeeTo;
    }

    function setBuyTaxPct(uint256 _newBuyTaxPct) public onlyOwner {
        buyTaxPct = _newBuyTaxPct;
    }

    function setSellTaxPct(uint256 _newSellTaxPct) public onlyOwner {
        sellTaxPct = _newSellTaxPct;
    }

    function setSwapTokensAtAmount(uint256 _newSwapTokensAtAmount) public onlyOwner {
        swapTokensAtAmount = _newSwapTokensAtAmount;
    }

    function swapTokensForEth(uint256 _tokenAmount) private {
        // generate the pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            _tokenAmount,
            0, // accept any amount of ETH
            path,
            feeTo,
            block.timestamp
        );
    }

    function _update(address _from, address _to, uint256 _amount) internal override {
        bool isSwapTransfer = _isSwapTransfer(_from, _to);

        // not allow to trade with more than 1% of the total supply
        if (isSwapTransfer && _amount > maxTradeAmount && !_isTransferExcludedFromFee(_from, _to)) {
            revert TradeTooHigh(_amount);
        }

        if (_from == address(0) || _to == address(0) || _amount == 0) {
            super._update(_from, _to, _amount);
            return;
        }

        bool reachSwap = balanceOf(address(this)) > swapTokensAtAmount;
        if (reachSwap && !swapping && _from != uniswapV2Pair && isSwapTransfer) {
            swapping = true;

            uint256 tokensToSwap = balanceOf(address(this));
            swapTokensForEth(tokensToSwap);

            swapping = false;
        }

        uint256 feeAmount = 0;
        if (_shouldTakeFee(_from, _to)) {
            feeAmount = _amount * (_to == uniswapV2Pair ? sellTaxPct : buyTaxPct) / PRECISION_RATE;
            super._update(_from, address(this), feeAmount);
        }
        super._update(_from, _to, _amount - feeAmount);
    }

    function _shouldTakeFee(address _from, address _to) private view returns (bool) {
        return !swapping && _isSwapTransfer(_from, _to) && !_isTransferExcludedFromFee(_from, _to);
    }

    function _isTransferExcludedFromFee(address _from, address _to) private view returns (bool) {
        return excludedFromFee[_from] || excludedFromFee[_to];
    }

    function _isSwapTransfer(address _from, address _to) private view returns (bool) {
        return _from == uniswapV2Pair || _to == uniswapV2Pair;
    }

    function getEthBalance() public view returns (uint256) {
        return payable(address(this)).balance;
    }

    // collect any leftover dust from the contract
    function collectEthDust(address _to) public onlyOwner {
        uint256 ethDust = getEthBalance();
        payable(_to).transfer(ethDust);
    }

    function collectTokenDust(address _token, address _to) public onlyOwner {
        uint256 tokenDust = IERC20(_token).balanceOf(address(this));
        IERC20(_token).transfer(_to, tokenDust);
    }
}

File 2 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `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:
     * ```
     * 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 3 of 7 : 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 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the 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 5 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC20 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 7 : 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 7 of 7 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
    "forge-std/=node_modules/forge-std/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"uint256","name":"_swapTokensAtAmount","type":"uint256"}],"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"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TradeTooHigh","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":"PRECISION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addExcludedFromFee","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":"buyTaxPct","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"collectEthDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"collectTokenDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTradeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeExcludedFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTaxPct","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newBuyTaxPct","type":"uint256"}],"name":"setBuyTaxPct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSellTaxPct","type":"uint256"}],"name":"setSellTaxPct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSwapTokensAtAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040526109c46007556109c460085534801561001b575f80fd5b506040516125cd3803806125cd83398101604081905261003a91610b05565b33604051806040016040528060098152602001684c75636b79204d696f60b81b815250604051806040016040528060038152602001624c4d4960e81b81525081600390816100889190610bc6565b5060046100958282610bc6565b5050506001600160a01b0381166100c657604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100cf8161040d565b506009819055600680546001600160a01b03191633179055816100f430825f1961045e565b5f816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610131573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101559190610c81565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101a0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101c49190610c81565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801561020e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102329190610c81565b6001600160a01b03808216608052831660a052905061025033610470565b61025930610470565b601261027e3361026a83600a610d8e565b610279906414f46b0400610d99565b610503565b6102af730f832c5f1514ae28d840694d41aa351441e678356102a183600a610d8e565b61027990633b9aca00610d99565b6102d2732d9bb64d729fdcdc520914ef0ef3f0410b69e5366102a183600a610d8e565b6102f5736c5be30f3c0afaa6d5d22c9ba720233ce760e33e6102a183600a610d8e565b610318738d52c596a65eb6d5d09d689dbfeafe01cd950aa56102a183600a610d8e565b61033b736c01844d3c618a32627e915a83cd594827156f916102a183600a610d8e565b61035e73760db287dd55b9602860bfa2eecfc471934020716102a183600a610d8e565b6103817369334f8ea309a0fdfd276b9226f55a89ac7eead26102a183600a610d8e565b6103a4738983079889e87ea528a25978f63abad8c2085e116102a183600a610d8e565b6103c773113fd78f9d1b06bebb5c5240abc67a8538fad9416102a183600a610d8e565b6103ea73130fa6dfaaa9a1ed5141b92081f35687f8495c016102a183600a610d8e565b60646103f560025490565b6103ff9190610db0565b60c05250610e7a9350505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61046b838383600161053b565b505050565b61047861060e565b6001600160a01b0381165f908152600a602052604090205460ff16156104e05760405162461bcd60e51b815260206004820152601860248201527f6163636f756e7420616c7265616479206578636c75646564000000000000000060448201526064016100bd565b6001600160a01b03165f908152600a60205260409020805460ff19166001179055565b6001600160a01b03821661052c5760405163ec442f0560e01b81525f60048201526024016100bd565b6105375f838361063d565b5050565b6001600160a01b0384166105645760405163e602df0560e01b81525f60048201526024016100bd565b6001600160a01b03831661058d57604051634a1406b160e11b81525f60048201526024016100bd565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561060857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516105ff91815260200190565b60405180910390a35b50505050565b6005546001600160a01b0316331461063b5760405163118cdaa760e01b81523360048201526024016100bd565b565b5f61064884846107ce565b9050808015610658575060c05182115b801561066b5750610669848461080d565b155b1561068c576040516372e6945b60e01b8152600481018390526024016100bd565b6001600160a01b03841615806106a957506001600160a01b038316155b806106b2575081155b156106c25761060884848461084e565b600954305f90815260208190526040902054118080156106ec5750600554600160a01b900460ff16155b801561070c57506080516001600160a01b0316856001600160a01b031614155b80156107155750815b15610756576005805460ff60a01b1916600160a01b179055305f90815260208190526040812054905061074781610974565b506005805460ff60a01b191690555b5f6107618686610ab0565b156107b257620186a06080516001600160a01b0316866001600160a01b03161461078d57600754610791565b6008545b61079b9086610d99565b6107a59190610db0565b90506107b286308361084e565b6107c686866107c18488610dcf565b61084e565b505050505050565b5f6080516001600160a01b0316836001600160a01b0316148061080457506080516001600160a01b0316826001600160a01b0316145b90505b92915050565b6001600160a01b0382165f908152600a602052604081205460ff16806108045750506001600160a01b03165f908152600a602052604090205460ff16919050565b6001600160a01b038316610878578060025f82825461086d9190610de2565b909155506108e89050565b6001600160a01b0383165f90815260208190526040902054818110156108ca5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100bd565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661090457600280548290039055610922565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161096791815260200190565b60405180910390a3505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106109a7576109a7610df5565b60200260200101906001600160a01b031690816001600160a01b03168152505060a0516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a05573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a299190610c81565b81600181518110610a3c57610a3c610df5565b6001600160a01b03928316602091820292909201015260a05160065460405163791ac94760e01b81529183169263791ac94792610a879287925f928892909116904290600401610e09565b5f604051808303815f87803b158015610a9e575f80fd5b505af11580156107c6573d5f803e3d5ffd5b6005545f90600160a01b900460ff16158015610ad15750610ad183836107ce565b80156108045750610ae2838361080d565b159392505050565b80516001600160a01b0381168114610b00575f80fd5b919050565b5f8060408385031215610b16575f80fd5b610b1f83610aea565b9150602083015190509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680610b5757607f821691505b602082108103610b7557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561046b57805f5260205f20601f840160051c81016020851015610ba05750805b601f840160051c820191505b81811015610bbf575f8155600101610bac565b5050505050565b81516001600160401b03811115610bdf57610bdf610b2f565b610bf381610bed8454610b43565b84610b7b565b602080601f831160018114610c26575f8415610c0f5750858301515b5f19600386901b1c1916600185901b1785556107c6565b5f85815260208120601f198616915b82811015610c5457888601518255948401946001909101908401610c35565b5085821015610c7157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215610c91575f80fd5b61080482610aea565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115610ce857815f1904821115610cce57610cce610c9a565b80851615610cdb57918102915b93841c9390800290610cb3565b509250929050565b5f82610cfe57506001610807565b81610d0a57505f610807565b8160018114610d205760028114610d2a57610d46565b6001915050610807565b60ff841115610d3b57610d3b610c9a565b50506001821b610807565b5060208310610133831016604e8410600b8410161715610d69575081810a610807565b610d738383610cae565b805f1904821115610d8657610d86610c9a565b029392505050565b5f6108048383610cf0565b808202811582820484141761080757610807610c9a565b5f82610dca57634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561080757610807610c9a565b8082018082111561080757610807610c9a565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b81811015610e595784516001600160a01b031683529383019391830191600101610e34565b50506001600160a01b03969096166060850152505050608001529392505050565b60805160a05160c0516116f8610ed55f395f81816102200152610da201525f81816102b101528181611235015261130701525f818161039101528181610e8b01528181610f6701528181610fea015261102501526116f85ff3fe6080604052600436106101c8575f3560e01c8063715018a6116100f2578063afa4f3b211610092578063e2f4560511610062578063e2f456051461056d578063ea5603d014610582578063f2fde38b146105a1578063f46901ed146105c0575f80fd5b8063afa4f3b2146104d6578063cbfb7b4f146104f5578063dbec3af01461050a578063dd62ed3e14610529575f80fd5b80638da5cb5b116100cd5780638da5cb5b1461047157806395d89b411461048e578063982a1bff146104a2578063a9059cbb146104b7575f80fd5b8063715018a6146104105780638223d5581461042457806385ecafd714610443575f80fd5b806323b872dd1161016857806349bd5a5e1161013857806349bd5a5e1461038057806367eda416146103b357806370a08231146103c957806370ed0ada146103fd575f80fd5b806323b872dd14610308578063313ce567146103275780633d59805b146103425780634885a5f914610361575f80fd5b8063095ea7b3116101a3578063095ea7b3146102715780631694505e146102a057806318160ddd146102d357806322bf4348146102e7575f80fd5b8063017e7e58146101d35780630537eae01461020f57806306fdde0314610250575f80fd5b366101cf57005b5f80fd5b3480156101de575f80fd5b506006546101f2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021a575f80fd5b506102427f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610206565b34801561025b575f80fd5b506102646105df565b60405161020691906113ba565b34801561027c575f80fd5b5061029061028b366004611438565b61066f565b6040519015158152602001610206565b3480156102ab575f80fd5b506101f27f000000000000000000000000000000000000000000000000000000000000000081565b3480156102de575f80fd5b50600254610242565b3480156102f2575f80fd5b50610306610301366004611462565b610688565b005b348015610313575f80fd5b50610290610322366004611479565b610695565b348015610332575f80fd5b5060405160128152602001610206565b34801561034d575f80fd5b5061030661035c3660046114b7565b6106b8565b34801561036c575f80fd5b5061030661037b3660046114b7565b610788565b34801561038b575f80fd5b506101f27f000000000000000000000000000000000000000000000000000000000000000081565b3480156103be575f80fd5b50610242620186a081565b3480156103d4575f80fd5b506102426103e33660046114b7565b6001600160a01b03165f9081526020819052604090205490565b348015610408575f80fd5b503031610242565b34801561041b575f80fd5b5061030661084f565b34801561042f575f80fd5b5061030661043e3660046114d2565b610862565b34801561044e575f80fd5b5061029061045d3660046114b7565b600a6020525f908152604090205460ff1681565b34801561047c575f80fd5b506005546001600160a01b03166101f2565b348015610499575f80fd5b5061026461097e565b3480156104ad575f80fd5b5061024260085481565b3480156104c2575f80fd5b506102906104d1366004611438565b61098d565b3480156104e1575f80fd5b506103066104f0366004611462565b61099a565b348015610500575f80fd5b5061024260075481565b348015610515575f80fd5b50610306610524366004611462565b6109a7565b348015610534575f80fd5b506102426105433660046114d2565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610578575f80fd5b5061024260095481565b34801561058d575f80fd5b5061030661059c3660046114b7565b6109b4565b3480156105ac575f80fd5b506103066105bb3660046114b7565b6109f7565b3480156105cb575f80fd5b506103066105da3660046114b7565b610a4d565b6060600380546105ee90611509565b80601f016020809104026020016040519081016040528092919081815260200182805461061a90611509565b80156106655780601f1061063c57610100808354040283529160200191610665565b820191905f5260205f20905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b5f3361067c818585610a8f565b60019150505b92915050565b610690610a9c565b600855565b5f336106a2858285610ae2565b6106ad858585610b8f565b506001949350505050565b6106c0610a9c565b6001600160a01b0381165f908152600a602052604090205460ff1615610747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6163636f756e7420616c7265616479206578636c75646564000000000000000060448201526064015b60405180910390fd5b6001600160a01b03165f908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610790610a9c565b6001600160a01b0381165f908152600a602052604090205460ff16610811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6163636f756e74206e6f74206578636c75646564000000000000000000000000604482015260640161073e565b6001600160a01b03165f908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610857610a9c565b6108605f610c1e565b565b61086a610a9c565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156108c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108eb919061155a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303815f875af1158015610954573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109789190611571565b50505050565b6060600480546105ee90611509565b5f3361067c818585610b8f565b6109a2610a9c565b600955565b6109af610a9c565b600755565b6109bc610a9c565b6040513031906001600160a01b038316906108fc8315029083905f818181858888f193505050501580156109f2573d5f803e3d5ffd5b505050565b6109ff610a9c565b6001600160a01b038116610a41576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b610a4a81610c1e565b50565b610a55610a9c565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6109f28383836001610c87565b6005546001600160a01b03163314610860576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161073e565b6001600160a01b038381165f908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109785781811015610b81576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602481018290526044810183905260640161073e565b61097884848484035f610c87565b6001600160a01b038316610bd1576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038216610c13576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6109f2838383610d8b565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610cc9576040517fe602df050000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038316610d0b576040517f94280d620000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561097857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d7d91815260200190565b60405180910390a350505050565b5f610d968484610fe7565b9050808015610dc457507f000000000000000000000000000000000000000000000000000000000000000082115b8015610dd75750610dd58484611060565b155b15610e11576040517f72e6945b0000000000000000000000000000000000000000000000000000000081526004810183905260240161073e565b6001600160a01b0384161580610e2e57506001600160a01b038316155b80610e37575081155b15610e47576109788484846110a1565b600954305f9081526020819052604090205411808015610e82575060055474010000000000000000000000000000000000000000900460ff16155b8015610ec057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b031614155b8015610ec95750815b15610f5157600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055305f908152602081905260408120549050610f27816111e0565b50600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5f610f5c868661136f565b15610fcb57620186a07f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614610fa657600754610faa565b6008545b610fb490866115bd565b610fbe91906115d4565b9050610fcb8630836110a1565b610fdf8686610fda848861160c565b6110a1565b505050505050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316148061105957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b9392505050565b6001600160a01b0382165f908152600a602052604081205460ff16806110595750506001600160a01b03165f908152600a602052604090205460ff16919050565b6001600160a01b0383166110cb578060025f8282546110c0919061161f565b909155506111549050565b6001600160a01b0383165f9081526020819052604090205481811015611136576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602481018290526044810183905260640161073e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166111705760028054829003905561118e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111d391815260200190565b60405180910390a3505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061121357611213611632565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561128f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112b3919061165f565b816001815181106112c6576112c6611632565b6001600160a01b0392831660209182029290920101526006546040517f791ac9470000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000083169263791ac947926113469287925f928892911690429060040161167a565b5f604051808303815f87803b15801561135d575f80fd5b505af1158015610fdf573d5f803e3d5ffd5b6005545f9074010000000000000000000000000000000000000000900460ff161580156113a157506113a18383610fe7565b801561105957506113b28383611060565b159392505050565b5f602080835283518060208501525f5b818110156113e6578581018301518582016040015282016113ca565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610a4a575f80fd5b5f8060408385031215611449575f80fd5b823561145481611424565b946020939093013593505050565b5f60208284031215611472575f80fd5b5035919050565b5f805f6060848603121561148b575f80fd5b833561149681611424565b925060208401356114a681611424565b929592945050506040919091013590565b5f602082840312156114c7575f80fd5b813561105981611424565b5f80604083850312156114e3575f80fd5b82356114ee81611424565b915060208301356114fe81611424565b809150509250929050565b600181811c9082168061151d57607f821691505b602082108103611554577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f6020828403121561156a575f80fd5b5051919050565b5f60208284031215611581575f80fd5b81518015158114611059575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761068257610682611590565b5f82611607577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8181038181111561068257610682611590565b8082018082111561068257610682611590565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561166f575f80fd5b815161105981611424565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156116ca5784516001600160a01b0316835293830193918301916001016116a5565b50506001600160a01b0396909616606085015250505060800152939250505056fea164736f6c6343000819000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000

Deployed Bytecode

0x6080604052600436106101c8575f3560e01c8063715018a6116100f2578063afa4f3b211610092578063e2f4560511610062578063e2f456051461056d578063ea5603d014610582578063f2fde38b146105a1578063f46901ed146105c0575f80fd5b8063afa4f3b2146104d6578063cbfb7b4f146104f5578063dbec3af01461050a578063dd62ed3e14610529575f80fd5b80638da5cb5b116100cd5780638da5cb5b1461047157806395d89b411461048e578063982a1bff146104a2578063a9059cbb146104b7575f80fd5b8063715018a6146104105780638223d5581461042457806385ecafd714610443575f80fd5b806323b872dd1161016857806349bd5a5e1161013857806349bd5a5e1461038057806367eda416146103b357806370a08231146103c957806370ed0ada146103fd575f80fd5b806323b872dd14610308578063313ce567146103275780633d59805b146103425780634885a5f914610361575f80fd5b8063095ea7b3116101a3578063095ea7b3146102715780631694505e146102a057806318160ddd146102d357806322bf4348146102e7575f80fd5b8063017e7e58146101d35780630537eae01461020f57806306fdde0314610250575f80fd5b366101cf57005b5f80fd5b3480156101de575f80fd5b506006546101f2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561021a575f80fd5b506102427f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000081565b604051908152602001610206565b34801561025b575f80fd5b506102646105df565b60405161020691906113ba565b34801561027c575f80fd5b5061029061028b366004611438565b61066f565b6040519015158152602001610206565b3480156102ab575f80fd5b506101f27f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156102de575f80fd5b50600254610242565b3480156102f2575f80fd5b50610306610301366004611462565b610688565b005b348015610313575f80fd5b50610290610322366004611479565b610695565b348015610332575f80fd5b5060405160128152602001610206565b34801561034d575f80fd5b5061030661035c3660046114b7565b6106b8565b34801561036c575f80fd5b5061030661037b3660046114b7565b610788565b34801561038b575f80fd5b506101f27f0000000000000000000000009a51117345a1e88e81ff6cdddb3eab8890c4290d81565b3480156103be575f80fd5b50610242620186a081565b3480156103d4575f80fd5b506102426103e33660046114b7565b6001600160a01b03165f9081526020819052604090205490565b348015610408575f80fd5b503031610242565b34801561041b575f80fd5b5061030661084f565b34801561042f575f80fd5b5061030661043e3660046114d2565b610862565b34801561044e575f80fd5b5061029061045d3660046114b7565b600a6020525f908152604090205460ff1681565b34801561047c575f80fd5b506005546001600160a01b03166101f2565b348015610499575f80fd5b5061026461097e565b3480156104ad575f80fd5b5061024260085481565b3480156104c2575f80fd5b506102906104d1366004611438565b61098d565b3480156104e1575f80fd5b506103066104f0366004611462565b61099a565b348015610500575f80fd5b5061024260075481565b348015610515575f80fd5b50610306610524366004611462565b6109a7565b348015610534575f80fd5b506102426105433660046114d2565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610578575f80fd5b5061024260095481565b34801561058d575f80fd5b5061030661059c3660046114b7565b6109b4565b3480156105ac575f80fd5b506103066105bb3660046114b7565b6109f7565b3480156105cb575f80fd5b506103066105da3660046114b7565b610a4d565b6060600380546105ee90611509565b80601f016020809104026020016040519081016040528092919081815260200182805461061a90611509565b80156106655780601f1061063c57610100808354040283529160200191610665565b820191905f5260205f20905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b5f3361067c818585610a8f565b60019150505b92915050565b610690610a9c565b600855565b5f336106a2858285610ae2565b6106ad858585610b8f565b506001949350505050565b6106c0610a9c565b6001600160a01b0381165f908152600a602052604090205460ff1615610747576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6163636f756e7420616c7265616479206578636c75646564000000000000000060448201526064015b60405180910390fd5b6001600160a01b03165f908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610790610a9c565b6001600160a01b0381165f908152600a602052604090205460ff16610811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6163636f756e74206e6f74206578636c75646564000000000000000000000000604482015260640161073e565b6001600160a01b03165f908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610857610a9c565b6108605f610c1e565b565b61086a610a9c565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa1580156108c7573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108eb919061155a565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303815f875af1158015610954573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109789190611571565b50505050565b6060600480546105ee90611509565b5f3361067c818585610b8f565b6109a2610a9c565b600955565b6109af610a9c565b600755565b6109bc610a9c565b6040513031906001600160a01b038316906108fc8315029083905f818181858888f193505050501580156109f2573d5f803e3d5ffd5b505050565b6109ff610a9c565b6001600160a01b038116610a41576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b610a4a81610c1e565b50565b610a55610a9c565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6109f28383836001610c87565b6005546001600160a01b03163314610860576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161073e565b6001600160a01b038381165f908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109785781811015610b81576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602481018290526044810183905260640161073e565b61097884848484035f610c87565b6001600160a01b038316610bd1576040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038216610c13576040517fec442f050000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6109f2838383610d8b565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610cc9576040517fe602df050000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038316610d0b576040517f94280d620000000000000000000000000000000000000000000000000000000081525f600482015260240161073e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561097857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d7d91815260200190565b60405180910390a350505050565b5f610d968484610fe7565b9050808015610dc457507f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000082115b8015610dd75750610dd58484611060565b155b15610e11576040517f72e6945b0000000000000000000000000000000000000000000000000000000081526004810183905260240161073e565b6001600160a01b0384161580610e2e57506001600160a01b038316155b80610e37575081155b15610e47576109788484846110a1565b600954305f9081526020819052604090205411808015610e82575060055474010000000000000000000000000000000000000000900460ff16155b8015610ec057507f0000000000000000000000009a51117345a1e88e81ff6cdddb3eab8890c4290d6001600160a01b0316856001600160a01b031614155b8015610ec95750815b15610f5157600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055305f908152602081905260408120549050610f27816111e0565b50600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690555b5f610f5c868661136f565b15610fcb57620186a07f0000000000000000000000009a51117345a1e88e81ff6cdddb3eab8890c4290d6001600160a01b0316866001600160a01b031614610fa657600754610faa565b6008545b610fb490866115bd565b610fbe91906115d4565b9050610fcb8630836110a1565b610fdf8686610fda848861160c565b6110a1565b505050505050565b5f7f0000000000000000000000009a51117345a1e88e81ff6cdddb3eab8890c4290d6001600160a01b0316836001600160a01b0316148061105957507f0000000000000000000000009a51117345a1e88e81ff6cdddb3eab8890c4290d6001600160a01b0316826001600160a01b0316145b9392505050565b6001600160a01b0382165f908152600a602052604081205460ff16806110595750506001600160a01b03165f908152600a602052604090205460ff16919050565b6001600160a01b0383166110cb578060025f8282546110c0919061161f565b909155506111549050565b6001600160a01b0383165f9081526020819052604090205481811015611136576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602481018290526044810183905260640161073e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166111705760028054829003905561118e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516111d391815260200190565b60405180910390a3505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061121357611213611632565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561128f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112b3919061165f565b816001815181106112c6576112c6611632565b6001600160a01b0392831660209182029290920101526006546040517f791ac9470000000000000000000000000000000000000000000000000000000081527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83169263791ac947926113469287925f928892911690429060040161167a565b5f604051808303815f87803b15801561135d575f80fd5b505af1158015610fdf573d5f803e3d5ffd5b6005545f9074010000000000000000000000000000000000000000900460ff161580156113a157506113a18383610fe7565b801561105957506113b28383611060565b159392505050565b5f602080835283518060208501525f5b818110156113e6578581018301518582016040015282016113ca565b505f6040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b0381168114610a4a575f80fd5b5f8060408385031215611449575f80fd5b823561145481611424565b946020939093013593505050565b5f60208284031215611472575f80fd5b5035919050565b5f805f6060848603121561148b575f80fd5b833561149681611424565b925060208401356114a681611424565b929592945050506040919091013590565b5f602082840312156114c7575f80fd5b813561105981611424565b5f80604083850312156114e3575f80fd5b82356114ee81611424565b915060208301356114fe81611424565b809150509250929050565b600181811c9082168061151d57607f821691505b602082108103611554577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f6020828403121561156a575f80fd5b5051919050565b5f60208284031215611581575f80fd5b81518015158114611059575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761068257610682611590565b5f82611607577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8181038181111561068257610682611590565b8082018082111561068257610682611590565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6020828403121561166f575f80fd5b815161105981611424565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156116ca5784516001600160a01b0316835293830193918301916001016116a5565b50506001600160a01b0396909616606085015250505060800152939250505056fea164736f6c6343000819000a

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000

-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _swapTokensAtAmount (uint256): 100000000000000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000


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.