Contract 0xe71678794fff8846bFF855f716b0Ce9d9a78E844 9

Contract Overview

Balance:
0 Ether

Token:
Txn Hash
Method
Block
From
To
Value
0x922ad0aa5a6f88f69637254e319a26a082a945e11d6abe57ef9064719fcb03a5Mint124981042022-06-30 21:21:001 hr 9 mins ago0x60cf28fb21eba8b9aec7f2166c5499c2c7053590 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000051295 1.000000007
0x6992c68ccc48fd04ea243128b4e107f8ca742fc981e40bffe487514f36d91bceMint124980242022-06-30 21:03:001 hr 27 mins ago0x60cf28fb21eba8b9aec7f2166c5499c2c7053590 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000051283 1.000000007
0x417520696a1efd810fc48a4ee2ebb1ff18e1cb81fcaa546a608abf3cd237ca22Approve124844192022-06-28 21:37:362 days 53 mins ago0xe707e2dd6b0ff1acae5400abf3acb4d9797204ff IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000043746 1.500000007
0x5f1f77607205c01e3a12a05caecaa828da13c50f25d7b81ecf56c11d4d2fbd04Mint124844122022-06-28 21:36:122 days 54 mins ago0xe707e2dd6b0ff1acae5400abf3acb4d9797204ff IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512565 1.500000007
0x9bad25822b4cff153b2bc55724e8365d04627b170ff0ec1277417b37aa4d8de8Approve124653562022-06-25 18:55:485 days 3 hrs ago0x143969c5dabc3db7e99a35b93755f6406ac1b087 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069378 1.500000007
0x7282ab53f8a7a017f239dc1b652d52f367e278c19b7bfdc94abb39d1c2270340Approve124517592022-06-23 10:13:007 days 12 hrs ago0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.231842895976 5,012.602611281
0x4d3fc8ee455f48885f825a96b11fcd23ca46516eb6d1cb0b989689abd82e2beeApprove124516032022-06-23 9:36:127 days 12 hrs ago0x6020e77578de4d2ce083be80c93318b148972523 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.041607693918 899.586913395
0x2806788322742025de6fc2d08a7e4387e38178ca3256b41032426d7aee1ef1a8Approve124468202022-06-22 14:01:248 days 8 hrs ago0x4fdee039c1f542e5f85fbba5235ed0f2c7af13c6 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069396 1.500000007
0xb95ba17c1ba075300b3a32931e1c771d0e98984bdde592f27f1fb46c3d1c7879Mint124468092022-06-22 13:58:368 days 8 hrs ago0x4fdee039c1f542e5f85fbba5235ed0f2c7af13c6 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000769245 1.500000007
0x3853d32c8f6b9b45b56648d09c56dcfcecde01a14f141a56af6fda72d953ece3Mint124431122022-06-22 1:05:248 days 21 hrs ago0x961c3da15483f345512ee99c4560570570c7f26f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512745 1.500000007
0x3fbc5bdc60514d9da110ef3b66d16aa6e3c57c5774c4f652658723640749cd97Mint124431102022-06-22 1:05:008 days 21 hrs ago0x961c3da15483f345512ee99c4560570570c7f26f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512745 1.500000007
0xb0cb352871d9bffd75f98b709c1c9d732f8ba7327bf31aa41e40e40bc6d9bf77Mint124431102022-06-22 1:05:008 days 21 hrs ago0x961c3da15483f345512ee99c4560570570c7f26f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512745 1.500000007
0xdd20b3ef5a19888a4753b1d4e73891f34deb11aeeed4c40673015207bf7c21b6Mint124431102022-06-22 1:05:008 days 21 hrs ago0x961c3da15483f345512ee99c4560570570c7f26f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512745 1.500000007
0xcfb444ab4143d987242d338242cc4f68ab9a4ad779380a1f3339f435a9445fcbMint124430922022-06-22 1:01:248 days 21 hrs ago0x961c3da15483f345512ee99c4560570570c7f26f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000769245 1.500000007
0x7ec9fb6ac0fb2996c0e659cd1056f3bb32e940c1644ddf8b5ae4702551a2004fApprove124414962022-06-21 19:09:129 days 3 hrs ago0x586f45ef74679373efafcef08f7035fb699f40dd IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069396 1.500000007
0x7111e962a916ba280c857b33f58fdd53cec17d4d82918ffe5278079b82000985Mint124414682022-06-21 19:01:369 days 3 hrs ago0x586f45ef74679373efafcef08f7035fb699f40dd IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000769245 1.500000007
0xc099e96025dde3f5f47e0359b92057bcc39a61ad7ea1f2a31a33a39c77f0c72dApprove124389032022-06-21 8:58:369 days 13 hrs ago0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069378 1.500000007
0x844e651d22ba05b399cee7c47010c00e1ba14d8d3dffadae45183a8710e5f76cApprove124258652022-06-19 9:22:4811 days 13 hrs ago0x919dd2c55898db543884ef719ac7fc821475a879 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069396 1.500000007
0x33129840d8954d9f4265ed42f0235bd9f740b132ddb6fca4f33107321b7f36b9Approve124258282022-06-19 9:15:0011 days 13 hrs ago0x919dd2c55898db543884ef719ac7fc821475a879 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069396 1.500000007
0x62484469ea9321030498b075708f000f7aedd43d48851d765a9acf4635b77fc2Mint124258242022-06-19 9:14:1211 days 13 hrs ago0x919dd2c55898db543884ef719ac7fc821475a879 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000769245 1.500000007
0xde6cac611dc260e214798497b22cf2793c47bbacef316d6bc49b2eb9962dfe92Approve124192992022-06-18 10:45:2412 days 11 hrs ago0xe707e2dd6b0ff1acae5400abf3acb4d9797204ff IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000069396 1.500000007
0x35d295b5bdfa912b69c8662b59048953e469fef6e749c94c5e66c07665c31806Mint124192932022-06-18 10:44:1212 days 11 hrs ago0xe707e2dd6b0ff1acae5400abf3acb4d9797204ff IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.0000512565 1.500000007
0xac8b83ac9c06cb382dcb2ecabed68cf7b31dd853d4f2514c13e107e39dc9559fApprove124069762022-06-16 16:27:1214 days 6 hrs ago0x3203d088071a75f9fd75893bc989759798b7509f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.001667702721 36.047525547
0x7e3a099d975755c306e15a5d52237e84845e0af0aae20071d0a3f895b5816193Mint124069672022-06-16 16:25:2414 days 6 hrs ago0x3203d088071a75f9fd75893bc989759798b7509f IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.001848625252 36.047525547
0x7f282cd2a7bc36e4a7272e3890a8aa1e0eefb3eb1b7c3230c04775449b51773eMint123914542022-06-14 10:08:0016 days 12 hrs ago0x552008c0f6870c2f77e5cc1d2eb9bdff03e30ea0 IN 0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether0.000034123 1.000000008
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x132b8bbb7a947ed73467d9e32c855316313c857c35df01158872d72787d26ebd124982802022-06-30 21:57:4832 mins ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x8462d22e2219080ce5c2fa6c35019311429ec5e4071ea5edce220a757c0421cc124844242022-06-28 21:38:362 days 52 mins ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x8462d22e2219080ce5c2fa6c35019311429ec5e4071ea5edce220a757c0421cc124844242022-06-28 21:38:362 days 52 mins ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x8462d22e2219080ce5c2fa6c35019311429ec5e4071ea5edce220a757c0421cc124844242022-06-28 21:38:362 days 52 mins ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x167d98ffc1ec335c3dea20ad0e4176b58ddf20f961d88f37507ecd0d3c4c4cdb124632912022-06-25 9:57:365 days 12 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xbddde69414c8af31010df472838c41722063dbc1157652ff51222b811ceb43cd124538412022-06-23 18:07:007 days 4 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xea7739101273b8858f718da1b8ab948fbd4a7f62344a521a1c20b8fdeaf19d05124468222022-06-22 14:02:128 days 8 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xea7739101273b8858f718da1b8ab948fbd4a7f62344a521a1c20b8fdeaf19d05124468222022-06-22 14:02:128 days 8 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xea7739101273b8858f718da1b8ab948fbd4a7f62344a521a1c20b8fdeaf19d05124468222022-06-22 14:02:128 days 8 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xc24003694d5c08f95f52f2185161a3a118ccba8331d8a4d94b4c5b5177b49488124415782022-06-21 19:29:249 days 3 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xc24003694d5c08f95f52f2185161a3a118ccba8331d8a4d94b4c5b5177b49488124415782022-06-21 19:29:249 days 3 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0xc24003694d5c08f95f52f2185161a3a118ccba8331d8a4d94b4c5b5177b49488124415782022-06-21 19:29:249 days 3 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x8a3e48fd59e201e342d913092e508e539e14674a0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
0x71c310cff8d7c588fa5f1e92a1dbf06ed7c195fa5ab325dccbd1bb5b566c8cd9124389072022-06-21 8:59:369 days 13 hrs ago 0x362fa9d0bca5d19f743db50738345ce2b40ec99f0xe71678794fff8846bff855f716b0ce9d9a78e8440 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TestERC20

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 value {ERC20} uses, unless this function is
     * 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 3 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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 6 : Context.sol
// SPDX-License-Identifier: MIT

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 5 of 6 : IERC20Minimal.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Minimal ERC20 interface for Uniswap
/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3
interface IERC20Minimal {
    /// @notice Returns the balance of a token
    /// @param account The account for which to look up the number of tokens it has, i.e. its balance
    /// @return The number of tokens held by the account
    function balanceOf(address account) external view returns (uint256);

    /// @notice Transfers the amount of token from the `msg.sender` to the recipient
    /// @param recipient The account that will receive the amount transferred
    /// @param amount The number of tokens to send from the sender to the recipient
    /// @return Returns true for a successful transfer, false for an unsuccessful transfer
    function transfer(address recipient, uint256 amount) external returns (bool);

    /// @notice Returns the current allowance given to a spender by an owner
    /// @param owner The account of the token owner
    /// @param spender The account of the token spender
    /// @return The current allowance granted by `owner` to `spender`
    function allowance(address owner, address spender) external view returns (uint256);

    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`
    /// @param spender The account which will be allowed to spend a given amount of the owners tokens
    /// @param amount The amount of tokens allowed to be used by `spender`
    /// @return Returns true for a successful approval, false for unsuccessful
    function approve(address spender, uint256 amount) external returns (bool);

    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`
    /// @param sender The account from which the transfer will be initiated
    /// @param recipient The recipient of the transfer
    /// @param amount The amount of the transfer
    /// @return Returns true for a successful transfer, false for unsuccessful
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.
    /// @param from The account from which the tokens were sent, i.e. the balance decreased
    /// @param to The account to which the tokens were sent, i.e. the balance increased
    /// @param value The amount of tokens that were transferred
    event Transfer(address indexed from, address indexed to, uint256 value);

    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.
    /// @param owner The account that approved spending of its tokens
    /// @param spender The account for which the spending allowance was modified
    /// @param value The new allowance from the owner to the spender
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 6 of 6 : TestERC20.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.4;

import '../interfaces/IERC20Minimal.sol';

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

/* This token is ONLY useful for testing
 * Anybody can mint as many tokens as they like
 * Anybody can burn anyone else's tokens
 */
contract TestERC20 is ERC20 {
    constructor() ERC20("Test Token", "TEST") {
        _mint(msg.sender, 1000000 ether);
    }

    function mint(address account, uint256 amount) external {
        _mint(account, amount);
    }

    function burn(address account, uint256 amount) external {
        _burn(account, amount);
    }
}

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

Contract ABI

[{"inputs":[],"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":"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600a8152692a32b9ba102a37b5b2b760b11b602080830191825283518085019094526004845263151154d560e21b908401528151919291620000609160039162000183565b5080516200007690600490602084019062000183565b505050620000953369d3c21bcecceda10000006200009b60201b60201c565b6200028b565b6001600160a01b038216620000f65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200010a919062000229565b90915550506001600160a01b038216600090815260208190526040812080548392906200013990849062000229565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b82805462000191906200024e565b90600052602060002090601f016020900481019282620001b5576000855562000200565b82601f10620001d057805160ff191683800117855562000200565b8280016001018555821562000200579182015b8281111562000200578251825591602001919060010190620001e3565b506200020e92915062000212565b5090565b5b808211156200020e576000815560010162000213565b600082198211156200024957634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200026357607f821691505b602082108114156200028557634e487b7160e01b600052602260045260246000fd5b50919050565b610b69806200029b6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806340c10f191161008c5780639dc29fac116100665780639dc29fac146101a2578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806340c10f191461015c57806370a082311461017157806395d89b411461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e99190610a60565b60405180910390f35b610105610100366004610a37565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b6101056101353660046109fc565b6102bc565b604051601281526020016100e9565b610105610157366004610a37565b61036b565b61016f61016a366004610a37565b6103a7565b005b61011961017f3660046109a9565b6001600160a01b031660009081526020819052604090205490565b6100dc6103b5565b61016f6101b0366004610a37565b6103c4565b6101056101c3366004610a37565b6103ce565b6101056101d6366004610a37565b610467565b6101196101e93660046109ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610ae2565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610ae2565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b60006102b3338484610474565b50600192915050565b60006102c9848484610599565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103535760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103608533858403610474565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916102b39185906103a2908690610ab3565b610474565b6103b18282610768565b5050565b60606004805461022390610ae2565b6103b18282610847565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156104505760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161034a565b61045d3385858403610474565b5060019392505050565b60006102b3338484610599565b6001600160a01b0383166104d65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161034a565b6001600160a01b0382166105375760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161034a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166105fd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161034a565b6001600160a01b03821661065f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161034a565b6001600160a01b038316600090815260208190526040902054818110156106d75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161034a565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061070e908490610ab3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161075a91815260200190565b60405180910390a350505050565b6001600160a01b0382166107be5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161034a565b80600260008282546107d09190610ab3565b90915550506001600160a01b038216600090815260208190526040812080548392906107fd908490610ab3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166108a75760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161034a565b6001600160a01b0382166000908152602081905260409020548181101561091b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161034a565b6001600160a01b038316600090815260208190526040812083830390556002805484929061094a908490610acb565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161058c565b80356001600160a01b03811681146109a457600080fd5b919050565b6000602082840312156109ba578081fd5b6109c38261098d565b9392505050565b600080604083850312156109dc578081fd5b6109e58361098d565b91506109f36020840161098d565b90509250929050565b600080600060608486031215610a10578081fd5b610a198461098d565b9250610a276020850161098d565b9150604084013590509250925092565b60008060408385031215610a49578182fd5b610a528361098d565b946020939093013593505050565b6000602080835283518082850152825b81811015610a8c57858101830151858201604001528201610a70565b81811115610a9d5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610ac657610ac6610b1d565b500190565b600082821015610add57610add610b1d565b500390565b600181811c90821680610af657607f821691505b60208210811415610b1757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220571151af7765b12cad7542e427ae5d60e679d4f5257a5490d176761ff38d1e5064736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading

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.