Contract 0x8e8148078f913a36c9d8c7fb2da8b479c77c6ba5

Contract Overview

The Underground: BLOOD token
Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7c55a9d6b886658b0649068016113a0e92b726c971433073e3a0e582c5f5b240Approve187034852022-08-16 4:13:542 hrs 49 mins ago0x89750b7919f8212d3f7dc962c56a2670ce31d016 IN  The Underground: BLOOD token0 AVAX0.‍0012940215 26.‍5
0x90f547d76da3f2de75bd328844fe34e6005dbb8b2306945a0b1d1eaacf183b11Transfer186937532022-08-15 22:47:498 hrs 15 mins ago0x73267fc96b1f4e0a4c7b4f6888d829d222bcee05 IN  The Underground: BLOOD token0 AVAX0.‍0014331995 26.‍5
0x836aacd5dc47f8237617cc6cfdaca1a774243043d50cd66b9fe70ce1a6e06dbfApprove186823372022-08-15 16:26:0814 hrs 36 mins ago0x2d499b70405c45759e71352eaca26caba42df8b7 IN  The Underground: BLOOD token0 AVAX0.‍001318437 27
0xa93e933eb136bc28a86bc8063a3f16d47e21a2e6bf4f2a92138ee03f37e6b0fcApprove185813652022-08-13 7:52:262 days 23 hrs ago0xb9b590e948fce72c9549cea1ab3a5ff58bf32371 IN  The Underground: BLOOD token0 AVAX0.‍0012940215 26.‍5
0x456a7405b4abdcf8624505022ec9308bae6023b6eeadbd40762c5f9bb429858bApprove183786602022-08-08 14:32:207 days 16 hrs ago0xcfc8f04c9b760d256e2ccd7fbefefc5a6a78438b IN  The Underground: BLOOD token0 AVAX0.‍001318437 27
0x909011c6a4d72b4b7f06ad192104a2c24fc1f738f40ee5e1405689fab2e486d7Transfer183682682022-08-08 8:46:207 days 22 hrs ago0x66692aca62cd4065bd8cc2d88293e1b3db97a752 IN  The Underground: BLOOD token0 AVAX0.‍0014331995 26.‍5
0x26d073e550ddf81bf88e38ce286c6acf915c38dbead6f842cfac681f9dd869afApprove181896742022-08-04 4:31:1912 days 2 hrs ago0xfa256ed6f5dd0075a76cc199168df8ef0ca5e888 IN  The Underground: BLOOD token0 AVAX0.‍001318437 27
0x33ad76d68607f2d1388f9d1598210c89bc4b38ee9a17a26b5621f00e58cb1460Transfer181645622022-08-03 14:30:0312 days 16 hrs ago0x18cdffa4d6425c3674e6085d96de413cf4634a5d IN  The Underground: BLOOD token0 AVAX0.‍000967491981 26.‍177439361
0xb766a0a59923aa2f407145580458997028977688eddedb82691da03c8aeb817cTransfer181489812022-08-03 5:45:4413 days 1 hr ago0x2777cc5dc8145d2520f1861b84050bbb73daf1e1 IN  The Underground: BLOOD token0 AVAX0.‍0014335175 26.‍5
0x34cbcd54089ef1a5ec6bdd359659e3a602ff5cc30f5a5b1781ffccb456713c56Transfer181411702022-08-03 1:23:5613 days 5 hrs ago0xcec0a3a4e4549e3d45c902a609c71e8b82cb58b5 IN  The Underground: BLOOD token0 AVAX0.‍000989999694 26.‍777736459
0x44273f9ea54a1fd992db29aecf9ae9a36865d681d77c64ec533102ffc72c46abTransfer181160542022-08-02 11:20:3113 days 19 hrs ago0x4b7b1d5c0650660b201953a7959889d982f3abc3 IN  The Underground: BLOOD token0 AVAX0.‍0009800495 26.‍5
0xe617de30c1d014beb9131de87fab6168cb48e7b5e2555fde9cfd7b14492bd522Add Admin181059402022-08-02 5:29:0014 days 1 hr ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍001203904 26
0x513c9035f908cfd61a92d03e68f61f4a840e5774bd39ca48f1183c2af6444dfaAdd Admin181057952022-08-02 5:24:0614 days 1 hr ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00127303 27.‍5
0x683bf0ce866593c0ab31747f5a06d155e7d98068b739d610a0fe4563ba40455cTransfer181013412022-08-02 2:50:2914 days 4 hrs ago0x1cda025b63260d18e51c84f81def58782af53e9f IN  The Underground: BLOOD token0 AVAX0.‍0014331995 26.‍5
0xb4673e3d14794699ce0820d0bc521269e45f705f6769064e3d9c0697ed9d7a8eAdd Admin180906962022-08-01 20:39:5414 days 10 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00122288864 26.‍41
0x591c0a7636d80981b473310d4739dd00a5f1c4c3a466f81dbefe5a94a922a267Add Admin180897992022-08-01 20:08:4614 days 10 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00122288864 26.‍41
0x2e9a77d24d3bb5d76e90ca7254ae83544578d774a69429e5d387bcff77a60f9aAdd Admin180896602022-08-01 20:03:5814 days 10 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍001218971321 26.‍3254
0x2e7004cd4a2138604af22a347a046390935d2cb5b8342d5e55b9c4f68925baa0Add Admin180886532022-08-01 19:29:0514 days 11 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00122288864 26.‍41
0x4778b21adad669491a3c3b9416c9ac1ffd86c8c2007f5d1fc02cb0029bf294d1Transfer180862682022-08-01 18:06:5214 days 12 hrs ago0x88b54fbf9395811ccc0a721dfa1f46332eac9032 IN  The Underground: BLOOD token0 AVAX0.‍0014325635 26.‍5
0x5750e9d08d7aede4894278af80d9579023dee71a079daceaabe4d1d1342e1788Add Admin180861272022-08-01 18:02:0414 days 13 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00127336 27.‍5
0x6c3a0773d19a69d1e2162e186a531cfd5564ea26da3b1ffd30993a3d585b8dadAdd Admin180824582022-08-01 15:55:5514 days 15 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍001274455681 27.‍523662777
0x67b9360b8954fb521a3f940b80aa657ee5535fce32f2b72686f2ff66744b71d7Add Admin180819442022-08-01 15:38:2214 days 15 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00122288864 26.‍41
0xf7cfb62ccea6ff795832f4687ee8b11df902233981cad8505ef581074a650f83Add Admin180818782022-08-01 15:36:0114 days 15 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍00127336 27.‍5
0x95e572ef5ac67444b3f49a29ee651a12218e699d7c1ad3b8d68dab03e5baedf6Transfer180818482022-08-01 15:35:0114 days 15 hrs ago0x30ab8ab89164830dcda6583430c24e59812b0b22 IN  The Underground: BLOOD token0 AVAX0.‍0009800495 26.‍5
0x7a8f5c63d9158f4fe05c57d589b3c8803a3c791a27c582af6b93601c1f795c03Add Admin180818182022-08-01 15:34:0114 days 15 hrs ago0x715ac5fc4c4587fa8e425afc1d1207cffb7b66d5 IN  The Underground: BLOOD token0 AVAX0.‍001218971321 26.‍3254
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UBlood

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : UBlood.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IUBlood.sol";

contract UBlood is IUBlood, ERC20, Ownable {

  constructor() ERC20("BLOOD", "BLOOD") {}

  /** PRIVATE VARS */
  // Tracks the last block that a caller has written to state
  mapping(address => uint256) private _lastWriteAddress;
  // Store admins to allow them to call certain functions
  mapping(address => bool) private _admins;
  
  /** MODIFIERS */
  modifier disallowIfSameBlock() {
    require(_lastWriteAddress[tx.origin] < block.number, "BLOOD: Nope!");
    _;
  }

  modifier onlyAdmin() {
    require(_admins[_msgSender()], "BLOOD: Only admins can call this");
    _;
  }

  /** ONLY ADMIN FUNCTIONS */
  function mint(address to, uint256 amount) external override onlyAdmin {
    _mint(to, amount);
  }

  function burn(address from, uint256 amount) external override onlyAdmin {
    _burn(from, amount);
  }

  function updateOriginAccess() external override onlyAdmin {
    _lastWriteAddress[tx.origin] = block.number;
  }

  /** OVERRIDE FOR SECURITY */
  function transferFrom(address sender, address recipient, uint256 amount) public virtual override(ERC20, IUBlood) disallowIfSameBlock returns (bool) {
    require(_lastWriteAddress[sender] < block.number , "BLOOD: Nope!");
    return super.transferFrom(sender, recipient, amount);
  }

  function balanceOf(address account) public view virtual override disallowIfSameBlock returns (uint256) {
    require(_lastWriteAddress[account] < block.number, "BLOOD: Nope!");
    return super.balanceOf(account);
  }

  function transfer(address recipient, uint256 amount) public virtual override disallowIfSameBlock returns (bool) {
    require(_lastWriteAddress[_msgSender()] < block.number, "BLOOD: Nope!");
    return super.transfer(recipient, amount);
  }

  function allowance(address owner, address spender) public view virtual override returns (uint256) {
    require(_lastWriteAddress[owner] < block.number , "BLOOD: Nope!");
    return super.allowance(owner, spender);
  }

  function approve(address spender, uint256 amount) public virtual override returns (bool) {
    require(_lastWriteAddress[spender] < block.number , "BLOOD: Nope!");
    return super.approve(spender, amount);
  }

  function increaseAllowance(address spender, uint256 addedValue) public virtual override returns (bool) {
    require(_lastWriteAddress[spender] < block.number , "BLOOD: Nope!");
    return super.increaseAllowance(spender, addedValue);
  }

  function decreaseAllowance(address spender, uint256 subtractedValue) public virtual override returns (bool) {
    require(_lastWriteAddress[spender] < block.number , "BLOOD: Nope!");
    return super.decreaseAllowance(spender, subtractedValue);
  }
  
  function totalSupply() public view virtual override(ERC20, IUBlood) returns (uint256) {
    require(_lastWriteAddress[_msgSender()] < block.number, "BLOOD: Nope!");
    return super.totalSupply();
  }

  /** ONLY OWNER FUNCTIONS */
  function addAdmin(address addr) external onlyOwner {
    _admins[addr] = true;
  }

  function removeAdmin(address addr) external onlyOwner {
    delete _admins[addr];
  }
}

File 2 of 7 : IUBlood.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity 0.8.11;

interface IUBlood {
    function mint(address to, uint256 amount) external;
    function burn(address from, uint256 amount) external;
    function updateOriginAccess() external;
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function totalSupply() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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

    /**
     * @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 6 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

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 Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

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

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

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

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "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":"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":"addr","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"from","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":"to","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeAdmin","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":"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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateOriginAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600580825264109313d3d160da1b6020808401828152855180870190965292855284015281519192916200005291600391620000e1565b50805162000068906004906020840190620000e1565b505050620000856200007f6200008b60201b60201c565b6200008f565b620001c4565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000ef9062000187565b90600052602060002090601f0160209004810192826200011357600085556200015e565b82601f106200012e57805160ff19168380011785556200015e565b828001600101855582156200015e579182015b828111156200015e57825182559160200191906001019062000141565b506200016c92915062000170565b5090565b5b808211156200016c576000815560010162000171565b600181811c908216806200019c57607f821691505b60208210811415620001be57634e487b7160e01b600052602260045260246000fd5b50919050565b61118a80620001d46000396000f3fe608060405234801561001057600080fd5b50600436106101115760003560e01c806370a08231116100ad5780639dc29fac116100715780639dc29fac14610228578063a457c2d71461023b578063a9059cbb1461024e578063dd62ed3e14610261578063f2fde38b1461027457600080fd5b806370a08231146101dd578063715018a6146101f05780638da5cb5b146101f857806395d89b41146102185780639c47ee3b1461022057600080fd5b806306fdde0314610116578063095ea7b3146101345780631785f53c1461015757806318160ddd1461016c57806323b872dd14610182578063313ce5671461019557806339509351146101a457806340c10f19146101b757806370480275146101ca575b600080fd5b61011e610287565b60405161012b9190610f04565b60405180910390f35b610147610142366004610f70565b610319565b604051901515815260200161012b565b61016a610165366004610f9a565b61036a565b005b6101746103ba565b60405190815260200161012b565b610147610190366004610fb5565b6103ef565b6040516012815260200161012b565b6101476101b2366004610f70565b610467565b61016a6101c5366004610f70565b6104a8565b61016a6101d8366004610f9a565b6104e5565b6101746101eb366004610f9a565b610538565b61016a6105bd565b6102006105f8565b6040516001600160a01b03909116815260200161012b565b61011e610607565b61016a610616565b61016a610236366004610f70565b610659565b610147610249366004610f70565b610692565b61014761025c366004610f70565b6106d3565b61017461026f366004610ff1565b610739565b61016a610282366004610f9a565b61079b565b60606003805461029690611024565b80601f01602080910402602001604051908101604052809291908181526020018280546102c290611024565b801561030f5780601f106102e45761010080835404028352916020019161030f565b820191906000526020600020905b8154815290600101906020018083116102f257829003601f168201915b5050505050905090565b6001600160a01b03821660009081526006602052604081205443116103595760405162461bcd60e51b81526004016103509061105f565b60405180910390fd5b610363838361083b565b9392505050565b336103736105f8565b6001600160a01b0316146103995760405162461bcd60e51b815260040161035090611085565b6001600160a01b03166000908152600760205260409020805460ff19169055565b3360009081526006602052604081205443116103e85760405162461bcd60e51b81526004016103509061105f565b5060025490565b32600090815260066020526040812054431161041d5760405162461bcd60e51b81526004016103509061105f565b6001600160a01b03841660009081526006602052604090205443116104545760405162461bcd60e51b81526004016103509061105f565b61045f848484610853565b949350505050565b6001600160a01b038216600090815260066020526040812054431161049e5760405162461bcd60e51b81526004016103509061105f565b6103638383610877565b3360009081526007602052604090205460ff166104d75760405162461bcd60e51b8152600401610350906110ba565b6104e182826108b6565b5050565b336104ee6105f8565b6001600160a01b0316146105145760405162461bcd60e51b815260040161035090611085565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b3260009081526006602052604081205443116105665760405162461bcd60e51b81526004016103509061105f565b6001600160a01b038216600090815260066020526040902054431161059d5760405162461bcd60e51b81526004016103509061105f565b506001600160a01b0381166000908152602081905260409020545b919050565b336105c66105f8565b6001600160a01b0316146105ec5760405162461bcd60e51b815260040161035090611085565b6105f66000610983565b565b6005546001600160a01b031690565b60606004805461029690611024565b3360009081526007602052604090205460ff166106455760405162461bcd60e51b8152600401610350906110ba565b326000908152600660205260409020439055565b3360009081526007602052604090205460ff166106885760405162461bcd60e51b8152600401610350906110ba565b6104e182826109d5565b6001600160a01b03821660009081526006602052604081205443116106c95760405162461bcd60e51b81526004016103509061105f565b6103638383610b12565b3260009081526006602052604081205443116107015760405162461bcd60e51b81526004016103509061105f565b33600090815260066020526040902054431161072f5760405162461bcd60e51b81526004016103509061105f565b6103638383610ba4565b6001600160a01b03821660009081526006602052604081205443116107705760405162461bcd60e51b81526004016103509061105f565b6001600160a01b03808416600090815260016020908152604080832093861683529290522054610363565b336107a46105f8565b6001600160a01b0316146107ca5760405162461bcd60e51b815260040161035090611085565b6001600160a01b03811661082f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610350565b61083881610983565b50565b600033610849818585610bb2565b5060019392505050565b600033610861858285610cce565b61086c858585610d48565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061084990829086906108b1908790611105565b610bb2565b6001600160a01b03821661090c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610350565b806002600082825461091e9190611105565b90915550506001600160a01b0382166000908152602081905260408120805483929061094b908490611105565b90915550506040518181526001600160a01b038316906000906000805160206111358339815191529060200160405180910390a35050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610a355760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610350565b6001600160a01b03821660009081526020819052604090205481811015610aa95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610350565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610ad890849061111d565b90915550506040518281526000906001600160a01b03851690600080516020611135833981519152906020015b60405180910390a3505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610b975760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610350565b61086c8286868403610bb2565b600033610849818585610d48565b6001600160a01b038316610c145760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610350565b6001600160a01b038216610c755760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610350565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b05565b6000610cda8484610739565b90506000198114610d425781811015610d355760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610350565b610d428484848403610bb2565b50505050565b6001600160a01b038316610dac5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610350565b6001600160a01b038216610e0e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610350565b6001600160a01b03831660009081526020819052604090205481811015610e865760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610350565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610ebd908490611105565b92505081905550826001600160a01b0316846001600160a01b031660008051602061113583398151915284604051610ef791815260200190565b60405180910390a3610d42565b600060208083528351808285015260005b81811015610f3157858101830151858201604001528201610f15565b81811115610f43576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146105b857600080fd5b60008060408385031215610f8357600080fd5b610f8c83610f59565b946020939093013593505050565b600060208284031215610fac57600080fd5b61036382610f59565b600080600060608486031215610fca57600080fd5b610fd384610f59565b9250610fe160208501610f59565b9150604084013590509250925092565b6000806040838503121561100457600080fd5b61100d83610f59565b915061101b60208401610f59565b90509250929050565b600181811c9082168061103857607f821691505b6020821081141561105957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b424c4f4f443a204e6f70652160a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252818101527f424c4f4f443a204f6e6c792061646d696e732063616e2063616c6c2074686973604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611118576111186110ef565b500190565b60008282101561112f5761112f6110ef565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122028bcae21b781516848f253a13388976f45b3adf78e1353eb2795150f934d99a964736f6c634300080b0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.