ETH Price: $3,074.02 (-1.51%)

Token

LOEM (LOEM)
 

Overview

Max Total Supply

100,000,000 LOEM

Holders

100

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 LOEM

Value
$0.00
0x022f58db52a69b29b339b4ff03f25ea124d8f5de
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:
LOEM

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
File 1 of 12 : LOEM.sol
// SPDX-License-Identifier: MIT

// Telegram: https://t.me/loem_ai
// Twitter: https://www.x.com/loem_ai
// Website: https://www.loem.xyz
// Whitepaper: https://loem-xyz.gitbook.io/whitepaper

pragma solidity 0.8.21;

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

import "./interfaces/IDEXFactory.sol";
import "./interfaces/IDEXRouter.sol";

contract LOEM is ERC20, Ownable {
    mapping (address => bool) public isExcludedFromFee;
    address payable public treasuryAddress;
    uint256 public feePercent;
    uint256 public collectedTaxThreshold;
    uint256 public maxWalletSize;
    address public uniswapV2Pair;
    bool public autoTaxDistributionEnabled = true;
    bool private inInternalSwap;
    IDEXRouter public uniswapV2Router = IDEXRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    modifier lockTheSwap {
        inInternalSwap = true;
        _;
        inInternalSwap = false;
    }

    constructor(address payable _treasuryAddress, uint256 _feePercent) ERC20("LOEM", "LOEM") {
        treasuryAddress = _treasuryAddress;
        feePercent = _feePercent;
        isExcludedFromFee[owner()] = true;
        isExcludedFromFee[address(this)] = true;
        isExcludedFromFee[_treasuryAddress] = true;

        _mint(msg.sender, 100_000_000 * 10 ** decimals());
        collectedTaxThreshold = _totalSupply / 1000;
        maxWalletSize = _totalSupply / 50;
        uniswapV2Pair = IDEXFactory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
    }

    function _transfer(address from, address to, uint256 amount) internal override(ERC20) {
        require(from != address(0), "ERC20: transfer from invalid");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 taxAmount = 0;
        address _uniswapV2Pair = uniswapV2Pair;
        if (!isExcludedFromFee[from] && !isExcludedFromFee[to]) {
            bool _isTransfer = from != _uniswapV2Pair && to != _uniswapV2Pair;
            if (!inInternalSwap && !_isTransfer) {
                uint256 _collectedTaxThreshold = collectedTaxThreshold;
                taxAmount = amount * feePercent / 100;
                if (from != _uniswapV2Pair && autoTaxDistributionEnabled && balanceOf(address(this)) > _collectedTaxThreshold) {
                    _distributeTaxes(_collectedTaxThreshold);
                }
            }
            if (to != _uniswapV2Pair && to != address(uniswapV2Router)) {
                require(balanceOf(to) + amount - taxAmount <= maxWalletSize, "Exceeds the maxWalletSize");
            }
        }

        _balances[from]= _balances[from] - amount;
        _balances[to]= _balances[to] + amount - taxAmount;

        emit Transfer(from, to, amount - taxAmount);

        if (taxAmount > 0) {
          _balances[address(this)]=_balances[address(this)] + taxAmount;
          emit Transfer(from, address(this), taxAmount);
        }
    }

    function _swapTokensForEth(uint256 tokenAmount) private lockTheSwap {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function setAutoTaxDistributionEnabled(bool _enabled) external onlyOwner {
        autoTaxDistributionEnabled = _enabled;
    }

    function setFee(uint256 _feePercent) external onlyOwner {
        require(_feePercent <= 10 || _feePercent < feePercent, "INVALID_FEE");
        feePercent = _feePercent;
    }

    function setMaxWalletSize(uint256 _maxWalletSize) external onlyOwner {
        maxWalletSize = _maxWalletSize;
    }

    function setTaxThreshold(uint256 _newThreshold) external onlyOwner {
        collectedTaxThreshold = _newThreshold;
    }

    function setExcludeFromFee(address _address, bool _excluded) external onlyOwner {
        isExcludedFromFee[_address] = _excluded;
    }

    function setTreasuryAddress(address payable _treasuryAddress) external onlyOwner {
        treasuryAddress = _treasuryAddress;
        isExcludedFromFee[_treasuryAddress] = true;
    }

    function distributeTaxes(uint256 amount) external onlyOwner {
        _distributeTaxes(amount);
    }

    function _distributeTaxes(uint256 amount) internal { 
        _swapTokensForEth(amount);    
        uint256 contractETHBalance = address(this).balance;

        if (contractETHBalance > 0) {
            (bool sent, ) = treasuryAddress.call{value: contractETHBalance}("");
            require(sent, "Failed to send Eth");
        }
    }

    function withdrawERC20(IERC20 token) external onlyOwner {
        uint256 balance = token.balanceOf(address(this));
        bool sent = token.transfer(msg.sender, balance);
        require(sent, "Failed to send token");    
    }

    receive() external payable {}
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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 4 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

File 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

File 6 of 12 : ERC20.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.6.0;

import "../contracts/ERC20.sol";

contract $ERC20 is ERC20 {
    bytes32 public __hh_exposed_bytecode_marker = "hardhat-exposed";

    constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) payable {
    }

    function $_balances(address arg0) external view returns (uint256) {
        return _balances[arg0];
    }

    function $_totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function $_transfer(address from,address to,uint256 amount) external {
        super._transfer(from,to,amount);
    }

    function $_mint(address account,uint256 amount) external {
        super._mint(account,amount);
    }

    function $_burn(address account,uint256 amount) external {
        super._burn(account,amount);
    }

    function $_approve(address owner,address spender,uint256 amount) external {
        super._approve(owner,spender,amount);
    }

    function $_spendAllowance(address owner,address spender,uint256 amount) external {
        super._spendAllowance(owner,spender,amount);
    }

    function $_beforeTokenTransfer(address from,address to,uint256 amount) external {
        super._beforeTokenTransfer(from,to,amount);
    }

    function $_afterTokenTransfer(address from,address to,uint256 amount) external {
        super._afterTokenTransfer(from,to,amount);
    }

    function $_msgSender() external view returns (address ret0) {
        (ret0) = super._msgSender();
    }

    function $_msgData() external view returns (bytes memory ret0) {
        (ret0) = super._msgData();
    }

    receive() external payable {}
}

File 7 of 12 : IDEXFactory.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.6.0;

import "../../contracts/interfaces/IDEXFactory.sol";

abstract contract $IDEXFactory is IDEXFactory {
    bytes32 public __hh_exposed_bytecode_marker = "hardhat-exposed";

    constructor() payable {
    }

    receive() external payable {}
}

File 8 of 12 : IDEXRouter.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.6.0;

import "../../contracts/interfaces/IDEXRouter.sol";

abstract contract $IDEXRouter is IDEXRouter {
    bytes32 public __hh_exposed_bytecode_marker = "hardhat-exposed";

    constructor() payable {
    }

    receive() external payable {}
}

File 9 of 12 : LOEM.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.6.0;

import "../contracts/LOEM.sol";

contract $LOEM is LOEM {
    bytes32 public __hh_exposed_bytecode_marker = "hardhat-exposed";

    constructor(address payable _treasuryAddress, uint256 _feePercent) LOEM(_treasuryAddress, _feePercent) payable {
    }

    function $_balances(address arg0) external view returns (uint256) {
        return _balances[arg0];
    }

    function $_totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function $_transfer(address from,address to,uint256 amount) external {
        super._transfer(from,to,amount);
    }

    function $_distributeTaxes(uint256 amount) external {
        super._distributeTaxes(amount);
    }

    function $_checkOwner() external view {
        super._checkOwner();
    }

    function $_transferOwnership(address newOwner) external {
        super._transferOwnership(newOwner);
    }

    function $_mint(address account,uint256 amount) external {
        super._mint(account,amount);
    }

    function $_burn(address account,uint256 amount) external {
        super._burn(account,amount);
    }

    function $_approve(address owner,address spender,uint256 amount) external {
        super._approve(owner,spender,amount);
    }

    function $_spendAllowance(address owner,address spender,uint256 amount) external {
        super._spendAllowance(owner,spender,amount);
    }

    function $_beforeTokenTransfer(address from,address to,uint256 amount) external {
        super._beforeTokenTransfer(from,to,amount);
    }

    function $_afterTokenTransfer(address from,address to,uint256 amount) external {
        super._afterTokenTransfer(from,to,amount);
    }

    function $_msgSender() external view returns (address ret0) {
        (ret0) = super._msgSender();
    }

    function $_msgData() external view returns (bytes memory ret0) {
        (ret0) = super._msgData();
    }
}

File 10 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Context.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}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * 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.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) internal _balances;

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

    uint256 internal _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 override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 override returns (uint8) {
        return 18;
    }

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` 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 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        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 `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `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.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` 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.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 11 of 12 : IDEXFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

File 12 of 12 : IDEXRouter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IDEXRouter {
  function factory() external pure returns (address);

  function WETH() external pure returns (address);

  function addLiquidity(
    address tokenA,
    address tokenB,
    uint256 amountADesired,
    uint256 amountBDesired,
    uint256 amountAMin,
    uint256 amountBMin,
    address to,
    uint256 deadline
  )
    external
    returns (
      uint256 amountA,
      uint256 amountB,
      uint256 liquidity
    );

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

  function swapExactTokensForTokensSupportingFeeOnTransferTokens(
    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 swapExactTokensForETHSupportingFeeOnTransferTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external;

  function removeLiquidity(
    address tokenA,
    address tokenB,
    uint256 liquidity,
    uint256 amountAMin,
    uint256 amountBMin,
    address to,
    uint256 deadline
  ) external returns (uint256 amountA, uint256 amountB);

  function swapExactTokensForTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapTokensForExactTokens(
    uint256 amountOut,
    uint256 amountInMax,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_treasuryAddress","type":"address"},{"internalType":"uint256","name":"_feePercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoTaxDistributionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectedTaxThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletSize","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setAutoTaxDistributionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_excluded","type":"bool"}],"name":"setExcludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePercent","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletSize","type":"uint256"}],"name":"setMaxWalletSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newThreshold","type":"uint256"}],"name":"setTaxThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","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":"treasuryAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IDEXRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600b805460ff60a01b1916600160a01b179055600c80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d1790553480156200004a57600080fd5b5060405162001e2c38038062001e2c8339810160408190526200006d916200048d565b6040805180820182526004808252634c4f454d60e01b6020808401829052845180860190955291845290830152906003620000a9838262000562565b506004620000b8828262000562565b505050620000d5620000cf6200035360201b60201c565b62000357565b600780546001600160a01b0319166001600160a01b03841617905560088190556001600660006200010e6005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790553081526006909352818320805485166001908117909155908616835291208054909216179055620001933362000170601290565b6200017d90600a62000743565b6200018d906305f5e1006200075b565b620003a9565b6103e8600254620001a5919062000775565b600955600254620001b99060329062000775565b600a55600c546040805163c45a015560e01b815290516001600160a01b039092169163c45a0155916004808201926020929091908290030181865afa15801562000207573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200022d919062000798565b6001600160a01b031663c9c6539630600c60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000290573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b6919062000798565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000304573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200032a919062000798565b600b80546001600160a01b0319166001600160a01b039290921691909117905550620007ce9050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004045760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620004189190620007b8565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6001600160a01b03811681146200048a57600080fd5b50565b60008060408385031215620004a157600080fd5b8251620004ae8162000474565b6020939093015192949293505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004e957607f821691505b6020821081036200050a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046f57600081815260208120601f850160051c81016020861015620005395750805b601f850160051c820191505b818110156200055a5782815560010162000545565b505050505050565b81516001600160401b038111156200057e576200057e620004be565b62000596816200058f8454620004d4565b8462000510565b602080601f831160018114620005ce5760008415620005b55750858301515b600019600386901b1c1916600185901b1785556200055a565b600085815260208120601f198616915b82811015620005ff57888601518255948401946001909101908401620005de565b50858210156200061e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620006855781600019048211156200066957620006696200062e565b808516156200067757918102915b93841c939080029062000649565b509250929050565b6000826200069e575060016200073d565b81620006ad575060006200073d565b8160018114620006c65760028114620006d157620006f1565b60019150506200073d565b60ff841115620006e557620006e56200062e565b50506001821b6200073d565b5060208310610133831016604e8410600b841016171562000716575081810a6200073d565b62000722838362000644565b80600019048211156200073957620007396200062e565b0290505b92915050565b60006200075460ff8416836200068d565b9392505050565b80820281158282048414176200073d576200073d6200062e565b6000826200079357634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215620007ab57600080fd5b8151620007548162000474565b808201808211156200073d576200073d6200062e565b61164e80620007de6000396000f3fe6080604052600436106101d15760003560e01c80637fd6f15c116100f7578063c5f956af11610095578063ea1644d511610064578063ea1644d51461053e578063f2fde38b1461055e578063f4f3b2001461057e578063faad1b121461059e57600080fd5b8063c5f956af146104c7578063cb88a449146104e7578063dd62ed3e146104fd578063de03e5fe1461051d57600080fd5b806395d89b41116100d157806395d89b4114610452578063a457c2d714610467578063a9059cbb14610487578063af9549e0146104a757600080fd5b80637fd6f15c146104085780638da5cb5b1461041e5780638f3fa8601461043c57600080fd5b8063313ce5671161016f5780636605bfda1161013e5780636605bfda1461037d57806369fe0e2d1461039d57806370a08231146103bd578063715018a6146103f357600080fd5b8063313ce567146102f1578063395093511461030d57806349bd5a5e1461032d5780635342acb41461034d57600080fd5b80631694505e116101ab5780631694505e1461025a57806318160ddd1461029257806323b872dd146102b157806323f7ee19146102d157600080fd5b806306fdde03146101dd57806307a212be14610208578063095ea7b31461022a57600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f26105be565b6040516101ff91906112f0565b60405180910390f35b34801561021457600080fd5b5061022861022336600461133e565b610650565b005b34801561023657600080fd5b5061024a61024536600461136c565b61065d565b60405190151581526020016101ff565b34801561026657600080fd5b50600c5461027a906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b34801561029e57600080fd5b506002545b6040519081526020016101ff565b3480156102bd57600080fd5b5061024a6102cc366004611398565b610677565b3480156102dd57600080fd5b506102286102ec36600461133e565b61069b565b3480156102fd57600080fd5b50604051601281526020016101ff565b34801561031957600080fd5b5061024a61032836600461136c565b6106af565b34801561033957600080fd5b50600b5461027a906001600160a01b031681565b34801561035957600080fd5b5061024a6103683660046113d9565b60066020526000908152604090205460ff1681565b34801561038957600080fd5b506102286103983660046113d9565b6106d1565b3480156103a957600080fd5b506102286103b836600461133e565b610713565b3480156103c957600080fd5b506102a36103d83660046113d9565b6001600160a01b031660009081526020819052604090205490565b3480156103ff57600080fd5b50610228610770565b34801561041457600080fd5b506102a360085481565b34801561042a57600080fd5b506005546001600160a01b031661027a565b34801561044857600080fd5b506102a3600a5481565b34801561045e57600080fd5b506101f2610784565b34801561047357600080fd5b5061024a61048236600461136c565b610793565b34801561049357600080fd5b5061024a6104a236600461136c565b61080e565b3480156104b357600080fd5b506102286104c236600461140b565b61081c565b3480156104d357600080fd5b5060075461027a906001600160a01b031681565b3480156104f357600080fd5b506102a360095481565b34801561050957600080fd5b506102a3610518366004611444565b61084f565b34801561052957600080fd5b50600b5461024a90600160a01b900460ff1681565b34801561054a57600080fd5b5061022861055936600461133e565b61087a565b34801561056a57600080fd5b506102286105793660046113d9565b610887565b34801561058a57600080fd5b506102286105993660046113d9565b6108fd565b3480156105aa57600080fd5b506102286105b9366004611472565b610a32565b6060600380546105cd9061148f565b80601f01602080910402602001604051908101604052809291908181526020018280546105f99061148f565b80156106465780601f1061061b57610100808354040283529160200191610646565b820191906000526020600020905b81548152906001019060200180831161062957829003601f168201915b5050505050905090565b610658610a58565b600955565b60003361066b818585610ab2565b60019150505b92915050565b600033610685858285610bd6565b610690858585610c50565b506001949350505050565b6106a3610a58565b6106ac81611078565b50565b60003361066b8185856106c2838361084f565b6106cc91906114df565b610ab2565b6106d9610a58565b600780546001600160a01b039092166001600160a01b0319909216821790556000908152600660205260409020805460ff19166001179055565b61071b610a58565b600a8111158061072c575060085481105b61076b5760405162461bcd60e51b815260206004820152600b60248201526a494e56414c49445f46454560a81b60448201526064015b60405180910390fd5b600855565b610778610a58565b6107826000611124565b565b6060600480546105cd9061148f565b600033816107a1828661084f565b9050838110156108015760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610762565b6106908286868403610ab2565b60003361066b818585610c50565b610824610a58565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610882610a58565b600a55565b61088f610a58565b6001600160a01b0381166108f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b6106ac81611124565b610905610a58565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561094c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097091906114f2565b60405163a9059cbb60e01b8152336004820152602481018290529091506000906001600160a01b0384169063a9059cbb906044016020604051808303816000875af11580156109c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e7919061150b565b905080610a2d5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b732103a37b5b2b760611b6044820152606401610762565b505050565b610a3a610a58565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b6005546001600160a01b031633146107825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610762565b6001600160a01b038316610b145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610762565b6001600160a01b038216610b755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610762565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610be2848461084f565b90506000198114610c4a5781811015610c3d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610762565b610c4a8484848403610ab2565b50505050565b6001600160a01b038316610ca65760405162461bcd60e51b815260206004820152601c60248201527f45524332303a207472616e736665722066726f6d20696e76616c6964000000006044820152606401610762565b6001600160a01b038216610d085760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610762565b60008111610d6a5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610762565b600b546001600160a01b038481166000908152600660205260408120549092919091169060ff16158015610db757506001600160a01b03841660009081526006602052604090205460ff16155b15610f43576000816001600160a01b0316866001600160a01b031614158015610df25750816001600160a01b0316856001600160a01b031614155b600b54909150600160a81b900460ff16158015610e0d575080155b15610e8657600954600854606490610e259087611528565b610e2f919061153f565b9350826001600160a01b0316876001600160a01b031614158015610e5c5750600b54600160a01b900460ff165b8015610e7657503060009081526020819052604090205481105b15610e8457610e8481611078565b505b816001600160a01b0316856001600160a01b031614158015610eb65750600c546001600160a01b03868116911614155b15610f4157600a548385610edf886001600160a01b031660009081526020819052604090205490565b610ee991906114df565b610ef39190611561565b1115610f415760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865206d617857616c6c657453697a65000000000000006044820152606401610762565b505b6001600160a01b038516600090815260208190526040902054610f67908490611561565b6001600160a01b0380871660009081526020819052604080822093909355908616815220548290610f999085906114df565b610fa39190611561565b6001600160a01b0380861660008181526020819052604090209290925586167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610fed8587611561565b60405190815260200160405180910390a38115611071573060009081526020819052604090205461101f9083906114df565b3060008181526020818152604091829020939093555184815290916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b5050505050565b61108181611176565b478015611120576007546040516000916001600160a01b03169083908381818185875af1925050503d80600081146110d5576040519150601f19603f3d011682016040523d82523d6000602084013e6110da565b606091505b5050905080610a2d5760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408ae8d60731b6044820152606401610762565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b805460ff60a81b1916600160a81b17905560408051600280825260608201835260009260208301908036833701905050905030816000815181106111be576111be611574565b6001600160a01b03928316602091820292909201810191909152600c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b919061158a565b8160018151811061124e5761124e611574565b6001600160a01b039283166020918202929092010152600c546112749130911684610ab2565b600c5460405163791ac94760e01b81526001600160a01b039091169063791ac947906112ad9085906000908690309042906004016115a7565b600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b5050600b805460ff60a81b1916905550505050565b600060208083528351808285015260005b8181101561131d57858101830151858201604001528201611301565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561135057600080fd5b5035919050565b6001600160a01b03811681146106ac57600080fd5b6000806040838503121561137f57600080fd5b823561138a81611357565b946020939093013593505050565b6000806000606084860312156113ad57600080fd5b83356113b881611357565b925060208401356113c881611357565b929592945050506040919091013590565b6000602082840312156113eb57600080fd5b81356113f681611357565b9392505050565b80151581146106ac57600080fd5b6000806040838503121561141e57600080fd5b823561142981611357565b91506020830135611439816113fd565b809150509250929050565b6000806040838503121561145757600080fd5b823561146281611357565b9150602083013561143981611357565b60006020828403121561148457600080fd5b81356113f6816113fd565b600181811c908216806114a357607f821691505b6020821081036114c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610671576106716114c9565b60006020828403121561150457600080fd5b5051919050565b60006020828403121561151d57600080fd5b81516113f6816113fd565b8082028115828204841417610671576106716114c9565b60008261155c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610671576106716114c9565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561159c57600080fd5b81516113f681611357565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156115f75784516001600160a01b0316835293830193918301916001016115d2565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220aeb863bd054866e0bef0b575cd44844026b5e855e826d7368ad32d9f0fbaf97e64736f6c63430008150033000000000000000000000000fcba43f3b0eb6616c77fb722397bb0291b297fc2000000000000000000000000000000000000000000000000000000000000005a

Deployed Bytecode

0x6080604052600436106101d15760003560e01c80637fd6f15c116100f7578063c5f956af11610095578063ea1644d511610064578063ea1644d51461053e578063f2fde38b1461055e578063f4f3b2001461057e578063faad1b121461059e57600080fd5b8063c5f956af146104c7578063cb88a449146104e7578063dd62ed3e146104fd578063de03e5fe1461051d57600080fd5b806395d89b41116100d157806395d89b4114610452578063a457c2d714610467578063a9059cbb14610487578063af9549e0146104a757600080fd5b80637fd6f15c146104085780638da5cb5b1461041e5780638f3fa8601461043c57600080fd5b8063313ce5671161016f5780636605bfda1161013e5780636605bfda1461037d57806369fe0e2d1461039d57806370a08231146103bd578063715018a6146103f357600080fd5b8063313ce567146102f1578063395093511461030d57806349bd5a5e1461032d5780635342acb41461034d57600080fd5b80631694505e116101ab5780631694505e1461025a57806318160ddd1461029257806323b872dd146102b157806323f7ee19146102d157600080fd5b806306fdde03146101dd57806307a212be14610208578063095ea7b31461022a57600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f26105be565b6040516101ff91906112f0565b60405180910390f35b34801561021457600080fd5b5061022861022336600461133e565b610650565b005b34801561023657600080fd5b5061024a61024536600461136c565b61065d565b60405190151581526020016101ff565b34801561026657600080fd5b50600c5461027a906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b34801561029e57600080fd5b506002545b6040519081526020016101ff565b3480156102bd57600080fd5b5061024a6102cc366004611398565b610677565b3480156102dd57600080fd5b506102286102ec36600461133e565b61069b565b3480156102fd57600080fd5b50604051601281526020016101ff565b34801561031957600080fd5b5061024a61032836600461136c565b6106af565b34801561033957600080fd5b50600b5461027a906001600160a01b031681565b34801561035957600080fd5b5061024a6103683660046113d9565b60066020526000908152604090205460ff1681565b34801561038957600080fd5b506102286103983660046113d9565b6106d1565b3480156103a957600080fd5b506102286103b836600461133e565b610713565b3480156103c957600080fd5b506102a36103d83660046113d9565b6001600160a01b031660009081526020819052604090205490565b3480156103ff57600080fd5b50610228610770565b34801561041457600080fd5b506102a360085481565b34801561042a57600080fd5b506005546001600160a01b031661027a565b34801561044857600080fd5b506102a3600a5481565b34801561045e57600080fd5b506101f2610784565b34801561047357600080fd5b5061024a61048236600461136c565b610793565b34801561049357600080fd5b5061024a6104a236600461136c565b61080e565b3480156104b357600080fd5b506102286104c236600461140b565b61081c565b3480156104d357600080fd5b5060075461027a906001600160a01b031681565b3480156104f357600080fd5b506102a360095481565b34801561050957600080fd5b506102a3610518366004611444565b61084f565b34801561052957600080fd5b50600b5461024a90600160a01b900460ff1681565b34801561054a57600080fd5b5061022861055936600461133e565b61087a565b34801561056a57600080fd5b506102286105793660046113d9565b610887565b34801561058a57600080fd5b506102286105993660046113d9565b6108fd565b3480156105aa57600080fd5b506102286105b9366004611472565b610a32565b6060600380546105cd9061148f565b80601f01602080910402602001604051908101604052809291908181526020018280546105f99061148f565b80156106465780601f1061061b57610100808354040283529160200191610646565b820191906000526020600020905b81548152906001019060200180831161062957829003601f168201915b5050505050905090565b610658610a58565b600955565b60003361066b818585610ab2565b60019150505b92915050565b600033610685858285610bd6565b610690858585610c50565b506001949350505050565b6106a3610a58565b6106ac81611078565b50565b60003361066b8185856106c2838361084f565b6106cc91906114df565b610ab2565b6106d9610a58565b600780546001600160a01b039092166001600160a01b0319909216821790556000908152600660205260409020805460ff19166001179055565b61071b610a58565b600a8111158061072c575060085481105b61076b5760405162461bcd60e51b815260206004820152600b60248201526a494e56414c49445f46454560a81b60448201526064015b60405180910390fd5b600855565b610778610a58565b6107826000611124565b565b6060600480546105cd9061148f565b600033816107a1828661084f565b9050838110156108015760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610762565b6106908286868403610ab2565b60003361066b818585610c50565b610824610a58565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610882610a58565b600a55565b61088f610a58565b6001600160a01b0381166108f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b6106ac81611124565b610905610a58565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561094c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097091906114f2565b60405163a9059cbb60e01b8152336004820152602481018290529091506000906001600160a01b0384169063a9059cbb906044016020604051808303816000875af11580156109c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e7919061150b565b905080610a2d5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b732103a37b5b2b760611b6044820152606401610762565b505050565b610a3a610a58565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b6005546001600160a01b031633146107825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610762565b6001600160a01b038316610b145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610762565b6001600160a01b038216610b755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610762565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610be2848461084f565b90506000198114610c4a5781811015610c3d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610762565b610c4a8484848403610ab2565b50505050565b6001600160a01b038316610ca65760405162461bcd60e51b815260206004820152601c60248201527f45524332303a207472616e736665722066726f6d20696e76616c6964000000006044820152606401610762565b6001600160a01b038216610d085760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610762565b60008111610d6a5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610762565b600b546001600160a01b038481166000908152600660205260408120549092919091169060ff16158015610db757506001600160a01b03841660009081526006602052604090205460ff16155b15610f43576000816001600160a01b0316866001600160a01b031614158015610df25750816001600160a01b0316856001600160a01b031614155b600b54909150600160a81b900460ff16158015610e0d575080155b15610e8657600954600854606490610e259087611528565b610e2f919061153f565b9350826001600160a01b0316876001600160a01b031614158015610e5c5750600b54600160a01b900460ff165b8015610e7657503060009081526020819052604090205481105b15610e8457610e8481611078565b505b816001600160a01b0316856001600160a01b031614158015610eb65750600c546001600160a01b03868116911614155b15610f4157600a548385610edf886001600160a01b031660009081526020819052604090205490565b610ee991906114df565b610ef39190611561565b1115610f415760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865206d617857616c6c657453697a65000000000000006044820152606401610762565b505b6001600160a01b038516600090815260208190526040902054610f67908490611561565b6001600160a01b0380871660009081526020819052604080822093909355908616815220548290610f999085906114df565b610fa39190611561565b6001600160a01b0380861660008181526020819052604090209290925586167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610fed8587611561565b60405190815260200160405180910390a38115611071573060009081526020819052604090205461101f9083906114df565b3060008181526020818152604091829020939093555184815290916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b5050505050565b61108181611176565b478015611120576007546040516000916001600160a01b03169083908381818185875af1925050503d80600081146110d5576040519150601f19603f3d011682016040523d82523d6000602084013e6110da565b606091505b5050905080610a2d5760405162461bcd60e51b815260206004820152601260248201527108cc2d2d8cac840e8de40e6cadcc8408ae8d60731b6044820152606401610762565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b805460ff60a81b1916600160a81b17905560408051600280825260608201835260009260208301908036833701905050905030816000815181106111be576111be611574565b6001600160a01b03928316602091820292909201810191909152600c54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611217573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123b919061158a565b8160018151811061124e5761124e611574565b6001600160a01b039283166020918202929092010152600c546112749130911684610ab2565b600c5460405163791ac94760e01b81526001600160a01b039091169063791ac947906112ad9085906000908690309042906004016115a7565b600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b5050600b805460ff60a81b1916905550505050565b600060208083528351808285015260005b8181101561131d57858101830151858201604001528201611301565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561135057600080fd5b5035919050565b6001600160a01b03811681146106ac57600080fd5b6000806040838503121561137f57600080fd5b823561138a81611357565b946020939093013593505050565b6000806000606084860312156113ad57600080fd5b83356113b881611357565b925060208401356113c881611357565b929592945050506040919091013590565b6000602082840312156113eb57600080fd5b81356113f681611357565b9392505050565b80151581146106ac57600080fd5b6000806040838503121561141e57600080fd5b823561142981611357565b91506020830135611439816113fd565b809150509250929050565b6000806040838503121561145757600080fd5b823561146281611357565b9150602083013561143981611357565b60006020828403121561148457600080fd5b81356113f6816113fd565b600181811c908216806114a357607f821691505b6020821081036114c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610671576106716114c9565b60006020828403121561150457600080fd5b5051919050565b60006020828403121561151d57600080fd5b81516113f6816113fd565b8082028115828204841417610671576106716114c9565b60008261155c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610671576106716114c9565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561159c57600080fd5b81516113f681611357565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156115f75784516001600160a01b0316835293830193918301916001016115d2565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220aeb863bd054866e0bef0b575cd44844026b5e855e826d7368ad32d9f0fbaf97e64736f6c63430008150033

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

000000000000000000000000fcba43f3b0eb6616c77fb722397bb0291b297fc2000000000000000000000000000000000000000000000000000000000000005a

-----Decoded View---------------
Arg [0] : _treasuryAddress (address): 0xFcBA43F3b0EB6616c77FB722397bB0291B297Fc2
Arg [1] : _feePercent (uint256): 90

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fcba43f3b0eb6616c77fb722397bb0291b297fc2
Arg [1] : 000000000000000000000000000000000000000000000000000000000000005a


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.