BNB Price: $617.74 (+3.41%)
 

Overview

Max Total Supply

1,000,000,000,000BPLAY

Holders

4,079

Market

Price

$0.00 @ 0.000000 BNB

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
2 BPLAY

Value
$0.00
0x194b302a4b0a79795fb68e2adf1b8c9ec5ff8d1f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
BPLAY

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
// contact: [email protected]

pragma solidity 0.8.26;

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

contract BPLAY is ERC20, Ownable(msg.sender) {
    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    mapping (address => bool) private _isExcludedFromFees;

    uint256 public  feeOnBuy;
    uint256 public  feeOnSell;

    uint256 public  feeOnTransfer;

    address public  feeReceiver;

    uint256 public  swapTokensAtAmount;
    uint256 public  maxFeeSwap;
    bool    public  feeSwapEnabled;

    bool    private swapping;

    bool    public  tradingEnabled;

    error FeeSetupError();
    error InvalidAddress(address invalidAddress);
    error NotAllowed(address token, address sender);
    error FeeTooHigh(uint256 feeOnBuy, uint256 feeOnSell, uint256 feeOnTransfer);
    error ZeroAddress(address feeReceiver);

    event TradingEnabled();
    event ExcludedFromFees(address indexed account, bool isExcluded);
    event FeeReceiverChanged(address feeReceiver);

    constructor () ERC20("Blend Play", "BPLAY") {
        address router;
        address pinkLock;
        
        if (block.chainid == 56) {
            router = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
            pinkLock = 0x407993575c91ce7643a4d4cCACc9A98c36eE1BBE; 
        } else if (block.chainid == 97) {
            router = 0xD99D1c33F9fC3444f8101754aBC46c52416550D1;
            pinkLock = 0x5E5b9bE5fd939c578ABE5800a90C566eeEbA44a5;
        } else if (block.chainid == 1 || block.chainid == 5) {
            router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
            pinkLock = 0x71B5759d73262FBb223956913ecF4ecC51057641;
        } else {
            revert();
        }

        uniswapV2Router = IUniswapV2Router02(router);
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());

        _approve(address(this), address(uniswapV2Router), type(uint256).max);

        feeOnBuy  = 5;
        feeOnSell = 5;

        feeOnTransfer = 0;

        feeReceiver = 0x1514E2b71B41D870B60a820E5A524E6e93F88FfD;

        _isExcludedFromFees[owner()] = true;
        _isExcludedFromFees[address(0xdead)] = true;
        _isExcludedFromFees[address(this)] = true;
        _isExcludedFromFees[pinkLock] = true;

        uint256 totalSupply = 1e12 * (10 ** decimals());
    
        maxFeeSwap = totalSupply / 1_000; 
        swapTokensAtAmount = totalSupply / 5_000;

        feeSwapEnabled = true;

        super._update(address(0), owner(), totalSupply);
    }

    receive() external payable {}

    function _update(address from, address to, uint256 value) internal override {        
        bool isExcluded = _isExcludedFromFees[from] || _isExcludedFromFees[to];

        if (!swapping && from != uniswapV2Pair && feeSwapEnabled) {
            uint256 contractTokenBalance = balanceOf(address(this));
            bool canSwap = contractTokenBalance >= swapTokensAtAmount;

            if (canSwap) {
                swapping = true;

                swapAndSendFee(contractTokenBalance);

                swapping = false;
            }
        }

        uint256 _totalFees = 0;
        if (!isExcluded && !swapping) {
            if (from == uniswapV2Pair) {
                _totalFees = feeOnBuy;
            } else if (to == uniswapV2Pair) {
                _totalFees = feeOnSell;
            } else {
                _totalFees = feeOnTransfer;
            }
        }

        if (_totalFees > 0) {
            uint256 fees = (value * _totalFees) / 100;
            value -= fees;
            super._update(from, address(this), fees);
        }

        super._update(from, to, value);
    }

    function swapAndSendFee(uint256 amount) internal returns (bool) {
        if (amount > maxFeeSwap){
            amount = maxFeeSwap;
        }

        uint256 initialBalance = address(this).balance;

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        try uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            address(this),
            block.timestamp
        ) {
            uint256 newBalance = address(this).balance - initialBalance;
            (bool success, ) = payable(feeReceiver).call{value: newBalance}("");
            return success;    
        } catch {
            return false;
        }
    }

    function setFeeSwapSettings(
        uint256 _swapTokensAtAmount, 
        uint256 _maxFeeSwap, 
        bool _feeSwapEnabled
    ) external onlyOwner {
        uint256 decimalsToAdd = 10 ** decimals();

        maxFeeSwap = _maxFeeSwap * decimalsToAdd;
        swapTokensAtAmount = _swapTokensAtAmount * decimalsToAdd;
        feeSwapEnabled = _feeSwapEnabled;

        if (swapTokensAtAmount > totalSupply() || maxFeeSwap < swapTokensAtAmount){
            revert FeeSetupError();
        }
    }

    function excludeFromFees(address account, bool excluded) external onlyOwner{
        _isExcludedFromFees[account] = excluded;

        emit ExcludedFromFees(account, excluded);
    }

    function updateFees(
        uint256 _feeOnBuy,
        uint256 _feeOnSell,
        uint256 _feeOnTransfer
    ) external onlyOwner {
        if (_feeOnBuy > 5 || _feeOnSell > 5 || _feeOnTransfer > 5) {
            revert FeeTooHigh(_feeOnBuy, _feeOnSell, _feeOnTransfer);
        }

        feeOnBuy = _feeOnBuy;
        feeOnSell = _feeOnSell;
        feeOnTransfer = _feeOnTransfer;
    }

    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    function changeFeeReceiver(address _feeReceiver) external onlyOwner{
        if (_feeReceiver == address(0)){
            revert ZeroAddress(_feeReceiver);
        }

        feeReceiver = _feeReceiver;

        emit FeeReceiverChanged(feeReceiver);
    }

    function recoverStuckTokens(address token) external {
        if (token == address(this) || (msg.sender != owner() && msg.sender != feeReceiver)){
            revert NotAllowed(token, msg.sender);
        }

        if (token == address(0x0)) {
            payable(msg.sender).transfer(address(this).balance);
            return;
        }

        IERC20 ERC20token = IERC20(token);
        uint256 balance = ERC20token.balanceOf(address(this));
        ERC20token.transfer(msg.sender, balance);
    }
}

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.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);
            }
        }
    }
}

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (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);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FeeSetupError","type":"error"},{"inputs":[{"internalType":"uint256","name":"feeOnBuy","type":"uint256"},{"internalType":"uint256","name":"feeOnSell","type":"uint256"},{"internalType":"uint256","name":"feeOnTransfer","type":"uint256"}],"name":"FeeTooHigh","type":"error"},{"inputs":[{"internalType":"address","name":"invalidAddress","type":"address"}],"name":"InvalidAddress","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"sender","type":"address"}],"name":"NotAllowed","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":"address","name":"feeReceiver","type":"address"}],"name":"ZeroAddress","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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeReceiver","type":"address"}],"name":"FeeReceiverChanged","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":[],"name":"TradingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"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":[{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"changeFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeOnBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeOnSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeOnTransfer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFeeSwap","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":"token","type":"address"}],"name":"recoverStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapTokensAtAmount","type":"uint256"},{"internalType":"uint256","name":"_maxFeeSwap","type":"uint256"},{"internalType":"bool","name":"_feeSwapEnabled","type":"bool"}],"name":"setFeeSwapSettings","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":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"},{"inputs":[{"internalType":"uint256","name":"_feeOnBuy","type":"uint256"},{"internalType":"uint256","name":"_feeOnSell","type":"uint256"},{"internalType":"uint256","name":"_feeOnTransfer","type":"uint256"}],"name":"updateFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561000f575f80fd5b50336040518060400160405280600a815260200169426c656e6420506c617960b01b8152506040518060400160405280600581526020016442504c415960d81b81525081600390816100619190610734565b50600461006e8282610734565b5050506001600160a01b03811661009f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100a881610441565b505f80466038036100e557507310ed43c718714eb63d5aa57b78b54704e256024e905073407993575c91ce7643a4d4ccacc9a98c36ee1bbe610169565b4660610361011f575073d99d1c33f9fc3444f8101754abc46c52416550d19050735e5b9be5fd939c578abe5800a90c566eeeba44a5610169565b466001148061012e5750466005145b156101655750737a250d5630b4cf539739df2c5dacb4c659f2488d90507371b5759d73262fbb223956913ecf4ecc51057641610169565b5f80fd5b600680546001600160a01b0319166001600160a01b0384169081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156101c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101e491906107ee565b6001600160a01b031663c9c653963060065f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610243573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061026791906107ee565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156102b1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102d591906107ee565b600780546001600160a01b0319166001600160a01b03928316179055600654610302913091165f19610492565b60056009819055600a555f600b819055600c80546001600160a01b031916731514e2b71b41d870b60a820e5a524e6e93f88ffd1790556001906008906103506005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182015f908120805495151560ff1996871617905560089093527f046fee3d77c34a6c5e10c3be6dc4b132c30449dbf4f0bc07684896dd09334299805485166001908117909155308452828420805486168217905590851683529082208054909316179091556103d6601290565b6103e190600a610914565b6103f09064e8d4a51000610922565b90506103fe6103e882610939565b600e5561040d61138882610939565b600d55600f805460ff191660011790556104395f6104336005546001600160a01b031690565b836104a4565b50505061096b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61049f83838360016105ca565b505050565b6001600160a01b0383166104ce578060025f8282546104c39190610958565b9091555061053e9050565b6001600160a01b0383165f90815260208190526040902054818110156105205760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661055a57600280548290039055610578565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105bd91815260200190565b60405180910390a3505050565b6001600160a01b0384166105f35760405163e602df0560e01b81525f6004820152602401610096565b6001600160a01b03831661061c57604051634a1406b160e11b81525f6004820152602401610096565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561069757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161068e91815260200190565b60405180910390a35b50505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806106c557607f821691505b6020821081036106e357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561049f57805f5260205f20601f840160051c8101602085101561070e5750805b601f840160051c820191505b8181101561072d575f815560010161071a565b5050505050565b81516001600160401b0381111561074d5761074d61069d565b6107618161075b84546106b1565b846106e9565b6020601f821160018114610793575f831561077c5750848201515b5f19600385901b1c1916600184901b17845561072d565b5f84815260208120601f198516915b828110156107c257878501518255602094850194600190920191016107a2565b50848210156107df57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f602082840312156107fe575f80fd5b81516001600160a01b0381168114610814575f80fd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b6001815b600184111561086a5780850481111561084e5761084e61081b565b600184161561085c57908102905b60019390931c928002610833565b935093915050565b5f826108805750600161090e565b8161088c57505f61090e565b81600181146108a257600281146108ac576108c8565b600191505061090e565b60ff8411156108bd576108bd61081b565b50506001821b61090e565b5060208310610133831016604e8410600b84101617156108eb575081810a61090e565b6108f75f19848461082f565b805f190482111561090a5761090a61081b565b0290505b92915050565b5f61081460ff841683610872565b808202811582820484141761090e5761090e61081b565b5f8261095357634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561090e5761090e61081b565b611495806109785f395ff3fe6080604052600436106101b2575f3560e01c806365048d08116100e7578063a9059cbb11610087578063c024666811610062578063c0246668146104bc578063dd62ed3e146104db578063e2f456051461051f578063f2fde38b14610534575f80fd5b8063a9059cbb14610469578063b3f0067414610488578063bb8c3ee0146104a7575f80fd5b80637c08b964116100c25780637c08b964146103fa5780638da5cb5b1461041957806395d89b41146104365780639a02b3a71461044a575f80fd5b806365048d081461039d57806370a08231146103b2578063715018a6146103e6575f80fd5b806323b872dd1161015257806349bd5a5e1161012d57806349bd5a5e146103095780634ada218b146103285780634be55d1f146103475780634fbee19314610366575f80fd5b806323b872dd146102ba5780632e3f418c146102d9578063313ce567146102ee575f80fd5b80630fa1eeab1161018d5780630fa1eeab1461022b5780631694505e1461024e57806318160ddd146102855780632242908514610299575f80fd5b806304866b80146101bd57806306fdde03146101eb578063095ea7b31461020c575f80fd5b366101b957005b5f80fd5b3480156101c8575f80fd5b50600f546101d69060ff1681565b60405190151581526020015b60405180910390f35b3480156101f6575f80fd5b506101ff610553565b6040516101e29190611053565b348015610217575f80fd5b506101d661022636600461109c565b6105e3565b348015610236575f80fd5b50610240600b5481565b6040519081526020016101e2565b348015610259575f80fd5b5060065461026d906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b348015610290575f80fd5b50600254610240565b3480156102a4575f80fd5b506102b86102b33660046110c6565b6105fc565b005b3480156102c5575f80fd5b506101d66102d43660046110ef565b610660565b3480156102e4575f80fd5b50610240600e5481565b3480156102f9575f80fd5b50604051601281526020016101e2565b348015610314575f80fd5b5060075461026d906001600160a01b031681565b348015610333575f80fd5b50600f546101d69062010000900460ff1681565b348015610352575f80fd5b506102b861036136600461112d565b610683565b348015610371575f80fd5b506101d661038036600461112d565b6001600160a01b03165f9081526008602052604090205460ff1690565b3480156103a8575f80fd5b50610240600a5481565b3480156103bd575f80fd5b506102406103cc36600461112d565b6001600160a01b03165f9081526020819052604090205490565b3480156103f1575f80fd5b506102b8610806565b348015610405575f80fd5b506102b861041436600461112d565b610819565b348015610424575f80fd5b506005546001600160a01b031661026d565b348015610441575f80fd5b506101ff6108a7565b348015610455575f80fd5b506102b861046436600461115c565b6108b6565b348015610474575f80fd5b506101d661048336600461109c565b610928565b348015610493575f80fd5b50600c5461026d906001600160a01b031681565b3480156104b2575f80fd5b5061024060095481565b3480156104c7575f80fd5b506102b86104d6366004611192565b610935565b3480156104e6575f80fd5b506102406104f53660046111c9565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b34801561052a575f80fd5b50610240600d5481565b34801561053f575f80fd5b506102b861054e36600461112d565b61099b565b606060038054610562906111f5565b80601f016020809104026020016040519081016040528092919081815260200182805461058e906111f5565b80156105d95780601f106105b0576101008083540402835291602001916105d9565b820191905f5260205f20905b8154815290600101906020018083116105bc57829003601f168201915b5050505050905090565b5f336105f08185856109d8565b60019150505b92915050565b6106046109ea565b60058311806106135750600582115b8061061e5750600581115b156106525760405163dcf818fb60e01b81526004810184905260248101839052604481018290526064015b60405180910390fd5b600992909255600a55600b55565b5f3361066d858285610a17565b610678858585610a8c565b506001949350505050565b6001600160a01b0381163014806106bb57506005546001600160a01b031633148015906106bb5750600c546001600160a01b03163314155b156106ea57604051630272d02960e61b81526001600160a01b0382166004820152336024820152604401610649565b6001600160a01b0381166107255760405133904780156108fc02915f818181858888f19350505050158015610721573d5f803e3d5ffd5b5050565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561076b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078f919061122d565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303815f875af11580156107dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108009190611244565b50505050565b61080e6109ea565b6108175f610ae9565b565b6108216109ea565b6001600160a01b03811661085357604051633202e20d60e21b81526001600160a01b0382166004820152602401610649565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f647672599d3468abcfa241a13c9e3d34383caadb5cc80fb67c3cdfcd5f7860599060200160405180910390a150565b606060048054610562906111f5565b6108be6109ea565b5f6108cb6012600a611356565b90506108d78184611364565b600e556108e48185611364565b600d55600f805460ff1916831515179055600254600d54118061090a5750600d54600e54105b15610800576040516392cb531360e01b815260040160405180910390fd5b5f336105f0818585610a8c565b61093d6109ea565b6001600160a01b0382165f81815260086020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb910160405180910390a25050565b6109a36109ea565b6001600160a01b0381166109cc57604051631e4fbdf760e01b81525f6004820152602401610649565b6109d581610ae9565b50565b6109e58383836001610b3a565b505050565b6005546001600160a01b031633146108175760405163118cdaa760e01b8152336004820152602401610649565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146108005781811015610a7e57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610649565b61080084848484035f610b3a565b6001600160a01b038316610ab557604051634b637e8f60e11b81525f6004820152602401610649565b6001600160a01b038216610ade5760405163ec442f0560e01b81525f6004820152602401610649565b6109e5838383610c0c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610b635760405163e602df0560e01b81525f6004820152602401610649565b6001600160a01b038316610b8c57604051634a1406b160e11b81525f6004820152602401610649565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561080057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610bfe91815260200190565b60405180910390a350505050565b6001600160a01b0383165f9081526008602052604081205460ff1680610c4957506001600160a01b0383165f9081526008602052604090205460ff165b600f54909150610100900460ff16158015610c7257506007546001600160a01b03858116911614155b8015610c805750600f5460ff165b15610cc857305f90815260208190526040902054600d548110801590610cc557600f805461ff001916610100179055610cb882610d71565b50600f805461ff00191690555b50505b5f81158015610cdf5750600f54610100900460ff16155b15610d27576007546001600160a01b0390811690861603610d035750600954610d27565b6007546001600160a01b0390811690851603610d225750600a54610d27565b50600b545b8015610d5f575f6064610d3a8386611364565b610d44919061137b565b9050610d50818561139a565b9350610d5d863083610f2d565b505b610d6a858585610f2d565b5050505050565b5f600e54821115610d8257600e5491505b60408051600280825260608201835247925f92919060208301908036833701905050905030815f81518110610db957610db96113ad565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610e10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3491906113c1565b81600181518110610e4757610e476113ad565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac94790610e8c9087905f908690309042906004016113dc565b5f604051808303815f87803b158015610ea3575f80fd5b505af1925050508015610eb4575060015b610ec157505f9392505050565b5f610ecc834761139a565b600c546040519192505f916001600160a01b039091169083908381818185875af1925050503d805f8114610f1b576040519150601f19603f3d011682016040523d82523d5f602084013e610f20565b606091505b5090979650505050505050565b6001600160a01b038316610f57578060025f828254610f4c919061144c565b90915550610fc79050565b6001600160a01b0383165f9081526020819052604090205481811015610fa95760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610649565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610fe357600280548290039055611001565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161104691815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146109d5575f80fd5b5f80604083850312156110ad575f80fd5b82356110b881611088565b946020939093013593505050565b5f805f606084860312156110d8575f80fd5b505081359360208301359350604090920135919050565b5f805f60608486031215611101575f80fd5b833561110c81611088565b9250602084013561111c81611088565b929592945050506040919091013590565b5f6020828403121561113d575f80fd5b813561114881611088565b9392505050565b80151581146109d5575f80fd5b5f805f6060848603121561116e575f80fd5b833592506020840135915060408401356111878161114f565b809150509250925092565b5f80604083850312156111a3575f80fd5b82356111ae81611088565b915060208301356111be8161114f565b809150509250929050565b5f80604083850312156111da575f80fd5b82356111e581611088565b915060208301356111be81611088565b600181811c9082168061120957607f821691505b60208210810361122757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f6020828403121561123d575f80fd5b5051919050565b5f60208284031215611254575f80fd5b81516111488161114f565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156112ae578085048111156112925761129261125f565b60018416156112a057908102905b60019390931c928002611277565b935093915050565b5f826112c4575060016105f6565b816112d057505f6105f6565b81600181146112e657600281146112f05761130c565b60019150506105f6565b60ff8411156113015761130161125f565b50506001821b6105f6565b5060208310610133831016604e8410600b841016171561132f575081810a6105f6565b61133b5f198484611273565b805f190482111561134e5761134e61125f565b029392505050565b5f61114860ff8416836112b6565b80820281158282048414176105f6576105f661125f565b5f8261139557634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156105f6576105f661125f565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156113d1575f80fd5b815161114881611088565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b8181101561142c5783516001600160a01b0316835260209384019390920191600101611405565b50506001600160a01b039590951660608401525050608001529392505050565b808201808211156105f6576105f661125f56fea2646970667358221220abb6e13861c077a74aed065edd7398bdf727136e124b988fb323fbfaaca6bb9a64736f6c634300081a0033

Deployed Bytecode

0x6080604052600436106101b2575f3560e01c806365048d08116100e7578063a9059cbb11610087578063c024666811610062578063c0246668146104bc578063dd62ed3e146104db578063e2f456051461051f578063f2fde38b14610534575f80fd5b8063a9059cbb14610469578063b3f0067414610488578063bb8c3ee0146104a7575f80fd5b80637c08b964116100c25780637c08b964146103fa5780638da5cb5b1461041957806395d89b41146104365780639a02b3a71461044a575f80fd5b806365048d081461039d57806370a08231146103b2578063715018a6146103e6575f80fd5b806323b872dd1161015257806349bd5a5e1161012d57806349bd5a5e146103095780634ada218b146103285780634be55d1f146103475780634fbee19314610366575f80fd5b806323b872dd146102ba5780632e3f418c146102d9578063313ce567146102ee575f80fd5b80630fa1eeab1161018d5780630fa1eeab1461022b5780631694505e1461024e57806318160ddd146102855780632242908514610299575f80fd5b806304866b80146101bd57806306fdde03146101eb578063095ea7b31461020c575f80fd5b366101b957005b5f80fd5b3480156101c8575f80fd5b50600f546101d69060ff1681565b60405190151581526020015b60405180910390f35b3480156101f6575f80fd5b506101ff610553565b6040516101e29190611053565b348015610217575f80fd5b506101d661022636600461109c565b6105e3565b348015610236575f80fd5b50610240600b5481565b6040519081526020016101e2565b348015610259575f80fd5b5060065461026d906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b348015610290575f80fd5b50600254610240565b3480156102a4575f80fd5b506102b86102b33660046110c6565b6105fc565b005b3480156102c5575f80fd5b506101d66102d43660046110ef565b610660565b3480156102e4575f80fd5b50610240600e5481565b3480156102f9575f80fd5b50604051601281526020016101e2565b348015610314575f80fd5b5060075461026d906001600160a01b031681565b348015610333575f80fd5b50600f546101d69062010000900460ff1681565b348015610352575f80fd5b506102b861036136600461112d565b610683565b348015610371575f80fd5b506101d661038036600461112d565b6001600160a01b03165f9081526008602052604090205460ff1690565b3480156103a8575f80fd5b50610240600a5481565b3480156103bd575f80fd5b506102406103cc36600461112d565b6001600160a01b03165f9081526020819052604090205490565b3480156103f1575f80fd5b506102b8610806565b348015610405575f80fd5b506102b861041436600461112d565b610819565b348015610424575f80fd5b506005546001600160a01b031661026d565b348015610441575f80fd5b506101ff6108a7565b348015610455575f80fd5b506102b861046436600461115c565b6108b6565b348015610474575f80fd5b506101d661048336600461109c565b610928565b348015610493575f80fd5b50600c5461026d906001600160a01b031681565b3480156104b2575f80fd5b5061024060095481565b3480156104c7575f80fd5b506102b86104d6366004611192565b610935565b3480156104e6575f80fd5b506102406104f53660046111c9565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b34801561052a575f80fd5b50610240600d5481565b34801561053f575f80fd5b506102b861054e36600461112d565b61099b565b606060038054610562906111f5565b80601f016020809104026020016040519081016040528092919081815260200182805461058e906111f5565b80156105d95780601f106105b0576101008083540402835291602001916105d9565b820191905f5260205f20905b8154815290600101906020018083116105bc57829003601f168201915b5050505050905090565b5f336105f08185856109d8565b60019150505b92915050565b6106046109ea565b60058311806106135750600582115b8061061e5750600581115b156106525760405163dcf818fb60e01b81526004810184905260248101839052604481018290526064015b60405180910390fd5b600992909255600a55600b55565b5f3361066d858285610a17565b610678858585610a8c565b506001949350505050565b6001600160a01b0381163014806106bb57506005546001600160a01b031633148015906106bb5750600c546001600160a01b03163314155b156106ea57604051630272d02960e61b81526001600160a01b0382166004820152336024820152604401610649565b6001600160a01b0381166107255760405133904780156108fc02915f818181858888f19350505050158015610721573d5f803e3d5ffd5b5050565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561076b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078f919061122d565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303815f875af11580156107dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108009190611244565b50505050565b61080e6109ea565b6108175f610ae9565b565b6108216109ea565b6001600160a01b03811661085357604051633202e20d60e21b81526001600160a01b0382166004820152602401610649565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f647672599d3468abcfa241a13c9e3d34383caadb5cc80fb67c3cdfcd5f7860599060200160405180910390a150565b606060048054610562906111f5565b6108be6109ea565b5f6108cb6012600a611356565b90506108d78184611364565b600e556108e48185611364565b600d55600f805460ff1916831515179055600254600d54118061090a5750600d54600e54105b15610800576040516392cb531360e01b815260040160405180910390fd5b5f336105f0818585610a8c565b61093d6109ea565b6001600160a01b0382165f81815260086020908152604091829020805460ff191685151590811790915591519182527f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb910160405180910390a25050565b6109a36109ea565b6001600160a01b0381166109cc57604051631e4fbdf760e01b81525f6004820152602401610649565b6109d581610ae9565b50565b6109e58383836001610b3a565b505050565b6005546001600160a01b031633146108175760405163118cdaa760e01b8152336004820152602401610649565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146108005781811015610a7e57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610649565b61080084848484035f610b3a565b6001600160a01b038316610ab557604051634b637e8f60e11b81525f6004820152602401610649565b6001600160a01b038216610ade5760405163ec442f0560e01b81525f6004820152602401610649565b6109e5838383610c0c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610b635760405163e602df0560e01b81525f6004820152602401610649565b6001600160a01b038316610b8c57604051634a1406b160e11b81525f6004820152602401610649565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561080057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610bfe91815260200190565b60405180910390a350505050565b6001600160a01b0383165f9081526008602052604081205460ff1680610c4957506001600160a01b0383165f9081526008602052604090205460ff165b600f54909150610100900460ff16158015610c7257506007546001600160a01b03858116911614155b8015610c805750600f5460ff165b15610cc857305f90815260208190526040902054600d548110801590610cc557600f805461ff001916610100179055610cb882610d71565b50600f805461ff00191690555b50505b5f81158015610cdf5750600f54610100900460ff16155b15610d27576007546001600160a01b0390811690861603610d035750600954610d27565b6007546001600160a01b0390811690851603610d225750600a54610d27565b50600b545b8015610d5f575f6064610d3a8386611364565b610d44919061137b565b9050610d50818561139a565b9350610d5d863083610f2d565b505b610d6a858585610f2d565b5050505050565b5f600e54821115610d8257600e5491505b60408051600280825260608201835247925f92919060208301908036833701905050905030815f81518110610db957610db96113ad565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610e10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3491906113c1565b81600181518110610e4757610e476113ad565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac94790610e8c9087905f908690309042906004016113dc565b5f604051808303815f87803b158015610ea3575f80fd5b505af1925050508015610eb4575060015b610ec157505f9392505050565b5f610ecc834761139a565b600c546040519192505f916001600160a01b039091169083908381818185875af1925050503d805f8114610f1b576040519150601f19603f3d011682016040523d82523d5f602084013e610f20565b606091505b5090979650505050505050565b6001600160a01b038316610f57578060025f828254610f4c919061144c565b90915550610fc79050565b6001600160a01b0383165f9081526020819052604090205481811015610fa95760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610649565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610fe357600280548290039055611001565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161104691815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146109d5575f80fd5b5f80604083850312156110ad575f80fd5b82356110b881611088565b946020939093013593505050565b5f805f606084860312156110d8575f80fd5b505081359360208301359350604090920135919050565b5f805f60608486031215611101575f80fd5b833561110c81611088565b9250602084013561111c81611088565b929592945050506040919091013590565b5f6020828403121561113d575f80fd5b813561114881611088565b9392505050565b80151581146109d5575f80fd5b5f805f6060848603121561116e575f80fd5b833592506020840135915060408401356111878161114f565b809150509250925092565b5f80604083850312156111a3575f80fd5b82356111ae81611088565b915060208301356111be8161114f565b809150509250929050565b5f80604083850312156111da575f80fd5b82356111e581611088565b915060208301356111be81611088565b600181811c9082168061120957607f821691505b60208210810361122757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f6020828403121561123d575f80fd5b5051919050565b5f60208284031215611254575f80fd5b81516111488161114f565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156112ae578085048111156112925761129261125f565b60018416156112a057908102905b60019390931c928002611277565b935093915050565b5f826112c4575060016105f6565b816112d057505f6105f6565b81600181146112e657600281146112f05761130c565b60019150506105f6565b60ff8411156113015761130161125f565b50506001821b6105f6565b5060208310610133831016604e8410600b841016171561132f575081810a6105f6565b61133b5f198484611273565b805f190482111561134e5761134e61125f565b029392505050565b5f61114860ff8416836112b6565b80820281158282048414176105f6576105f661125f565b5f8261139557634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156105f6576105f661125f565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156113d1575f80fd5b815161114881611088565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b8181101561142c5783516001600160a01b0316835260209384019390920191600101611405565b50506001600160a01b039590951660608401525050608001529392505050565b808201808211156105f6576105f661125f56fea2646970667358221220abb6e13861c077a74aed065edd7398bdf727136e124b988fb323fbfaaca6bb9a64736f6c634300081a0033

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.