Token HmmCoin

 

Overview ERC-20

Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
1,136,881.773611 HMC

Holders:
31,516 addresses

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

HmmCoin is an open-source, decentralized, peer-to-peer digital currency which uses an innovative coin distribution model.


Update? Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HmmCoin

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 150000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 9 : HmmCoin.sol
pragma solidity ^0.8.0;

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

contract HmmCoin is ERC20Capped, ERC20Burnable, AccessControl {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    // @param initialSupply_ Initial supply of the contract that will be minted into owner's account
    // @param maxSupply_ Maximum possible tokens cap
    // @param owner Will be set as DEFAULT_ADMIN_ROLE, MINTER_ROLE and have the _initialSupply tokens
    constructor(string memory name_, string memory symbol_, address owner, uint256 initialSupply_, uint256 maxSupply_)
    ERC20(name_, symbol_) ERC20Capped(maxSupply_) {
        require(initialSupply_ <= maxSupply_, "HmmCoin: initial supply must be lower or equal max supply");
        require(owner != address(0), "HmmCoin: owner must be non-zero address");

        _setupRole(DEFAULT_ADMIN_ROLE, owner);
        _setupRole(MINTER_ROLE, owner);

        ERC20._mint(owner, initialSupply_);
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public {
        require(hasRole(MINTER_ROLE, _msgSender()), "HmmCoin: must have minter role to mint");
        _mint(to, amount);
    }

    function _mint(address account, uint256 amount) internal virtual override(ERC20, ERC20Capped) {
        ERC20Capped._mint(account, amount);
    }
}

File 2 of 9 : ERC20Capped.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";

/**
 * @dev Extension of {ERC20} that adds a cap to the supply of tokens.
 */
abstract contract ERC20Capped is ERC20 {
    uint256 immutable private _cap;

    /**
     * @dev Sets the value of the `cap`. This value is immutable, it can only be
     * set once during construction.
     */
    constructor (uint256 cap_) {
        require(cap_ > 0, "ERC20Capped: cap is 0");
        _cap = cap_;
    }

    /**
     * @dev Returns the cap on the token's total supply.
     */
    function cap() public view virtual returns (uint256) {
        return _cap;
    }

    /**
     * @dev See {ERC20-_mint}.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded");
        super._mint(account, amount);
    }
}

File 3 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.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 {
    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 defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual 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");
        _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");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(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:
     *
     * - `to` 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);
    }

    /**
     * @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");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(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 to 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 { }
}

File 4 of 9 : 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 5 of 9 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 9 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping (address => bool) members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId
            || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 9 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 9 of 9 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"}]

60a06040523480156200001157600080fd5b5060405162001f8038038062001f8083398101604081905262000034916200042a565b80858581600390805190602001906200004f929190620002d9565b50805162000065906004906020840190620002d9565b50505060008111620000945760405162461bcd60e51b81526004016200008b90620004c4565b60405180910390fd5b60805280821115620000ba5760405162461bcd60e51b81526004016200008b90620004fb565b6001600160a01b038316620000e35760405162461bcd60e51b81526004016200008b9062000558565b620000f06000846200013e565b6200011c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6846200013e565b6200013383836200014e60201b6200094c1760201c565b505050505062000657565b6200014a828262000219565b5050565b6001600160a01b038216620001775760405162461bcd60e51b81526004016200008b906200059f565b6200018560008383620002a5565b8060026000828254620001999190620005df565b90915550506001600160a01b03821660009081526020819052604081208054839290620001c8908490620005df565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200020d908590620005d6565b60405180910390a35050565b620002258282620002aa565b6200014a5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff1916600117905562000261620002d5565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b505050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b3390565b828054620002e79062000604565b90600052602060002090601f0160209004810192826200030b576000855562000356565b82601f106200032657805160ff191683800117855562000356565b8280016001018555821562000356579182015b828111156200035657825182559160200191906001019062000339565b506200036492915062000368565b5090565b5b8082111562000364576000815560010162000369565b600082601f83011262000390578081fd5b81516001600160401b0380821115620003ad57620003ad62000641565b6040516020601f8401601f1916820181018381118382101715620003d557620003d562000641565b6040528382528584018101871015620003ec578485fd5b8492505b838310156200040f5785830181015182840182015291820191620003f0565b838311156200042057848185840101525b5095945050505050565b600080600080600060a0868803121562000442578081fd5b85516001600160401b038082111562000459578283fd5b6200046789838a016200037f565b965060208801519150808211156200047d578283fd5b506200048c888289016200037f565b604088015190955090506001600160a01b0381168114620004ab578182fd5b6060870151608090970151959894975095949392505050565b60208082526015908201527f45524332304361707065643a2063617020697320300000000000000000000000604082015260600190565b60208082526039908201527f486d6d436f696e3a20696e697469616c20737570706c79206d7573742062652060408201527f6c6f776572206f7220657175616c206d617820737570706c7900000000000000606082015260800190565b60208082526027908201527f486d6d436f696e3a206f776e6572206d757374206265206e6f6e2d7a65726f206040820152666164647265737360c81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60008219821115620005ff57634e487b7160e01b81526011600452602481fd5b500190565b6002810460018216806200061957607f821691505b602082108114156200063b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805161190d6200067360003960006105a1015261190d6000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c806340c10f19116100e3578063a217fddf1161008c578063d539139311610066578063d53913931461030b578063d547741f14610313578063dd62ed3e146103265761018d565b8063a217fddf146102dd578063a457c2d7146102e5578063a9059cbb146102f85761018d565b806379cc6790116100bd57806379cc6790146102af57806391d14854146102c257806395d89b41146102d55761018d565b806340c10f191461027657806342966c681461028957806370a082311461029c5761018d565b8063248a9ca311610145578063355274ea1161011f578063355274ea1461024857806336568abe1461025057806339509351146102635761018d565b8063248a9ca31461020b5780632f2ff15d1461021e578063313ce567146102335761018d565b8063095ea7b311610176578063095ea7b3146101d057806318160ddd146101e357806323b872dd146101f85761018d565b806301ffc9a71461019257806306fdde03146101bb575b600080fd5b6101a56101a03660046111ce565b610339565b6040516101b2919061120e565b60405180910390f35b6101c3610397565b6040516101b29190611222565b6101a56101de36600461116b565b610429565b6101eb610446565b6040516101b29190611219565b6101a5610206366004611130565b61044c565b6101eb610219366004611194565b61052d565b61023161022c3660046111ac565b610542565b005b61023b61059a565b6040516101b29190611817565b6101eb61059f565b61023161025e3660046111ac565b6105c3565b6101a561027136600461116b565b610639565b61023161028436600461116b565b610695565b610231610297366004611194565b610701565b6101eb6102aa3660046110dd565b610715565b6102316102bd36600461116b565b61073d565b6101a56102d03660046111ac565b6107ac565b6101c36107e4565b6101eb6107f3565b6101a56102f336600461116b565b6107f8565b6101a561030636600461116b565b61089a565b6101eb6108ae565b6102316103213660046111ac565b6108d2565b6101eb6103343660046110fe565b610914565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061038f575061038f82610a4d565b90505b919050565b6060600380546103a690611854565b80601f01602080910402602001604051908101604052809291908181526020018280546103d290611854565b801561041f5780601f106103f45761010080835404028352916020019161041f565b820191906000526020600020905b81548152906001019060200180831161040257829003601f168201915b5050505050905090565b600061043d610436610a97565b8484610a9b565b50600192915050565b60025490565b6000610459848484610baa565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020526040812081610487610a97565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906114c1565b60405180910390fd5b61052285610513610a97565b61051d868561183d565b610a9b565b506001949350505050565b60009081526005602052604090206001015490565b61055661054e8361052d565b6102d0610a97565b61058c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906112f0565b6105968282610d6e565b5050565b601290565b7f000000000000000000000000000000000000000000000000000000000000000090565b6105cb610a97565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461062f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611783565b6105968282610e3a565b600061043d610646610a97565b848460016000610654610a97565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918b168152925290205461051d9190611825565b6106c17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66102d0610a97565b6106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906116c9565b6105968282610f04565b61071261070c610a97565b82610f0e565b50565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b600061074b83610334610a97565b905081811015610787576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe9061151e565b61079d83610793610a97565b61051d858561183d565b6107a78383610f0e565b505050565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6060600480546103a690611854565b600081565b60008060016000610807610a97565b73ffffffffffffffffffffffffffffffffffffffff9081168252602080830193909352604091820160009081209188168152925290205490508281101561087a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611726565b610890610885610a97565b8561051d868561183d565b5060019392505050565b600061043d6108a7610a97565b8484610baa565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6108de61054e8361052d565b61062f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611464565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b73ffffffffffffffffffffffffffffffffffffffff8216610999576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906117e0565b6109a5600083836107a7565b80600260008282546109b79190611825565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040812080548392906109f1908490611825565b909155505060405173ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a41908590611219565b60405180910390a35050565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316610ae8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe9061166c565b73ffffffffffffffffffffffffffffffffffffffff8216610b35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906113aa565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b9d908590611219565b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316610bf7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906115d8565b73ffffffffffffffffffffffffffffffffffffffff8216610c44576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611293565b610c4f8383836107a7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610caf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611407565b610cb9828261183d565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152602081905260408082209390935590851681529081208054849290610cfc908490611825565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d609190611219565b60405180910390a350505050565b610d7882826107ac565b61059657600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610ddc610a97565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610e4482826107ac565b1561059657600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055610ea6610a97565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b610596828261105c565b73ffffffffffffffffffffffffffffffffffffffff8216610f5b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe9061157b565b610f67826000836107a7565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610fc7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe9061134d565b610fd1828261183d565b73ffffffffffffffffffffffffffffffffffffffff84166000908152602081905260408120919091556002805484929061100c90849061183d565b909155505060405160009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610b9d908690611219565b61106461059f565b8161106d610446565b6110779190611825565b11156110af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe90611635565b610596828261094c565b803573ffffffffffffffffffffffffffffffffffffffff8116811461039257600080fd5b6000602082840312156110ee578081fd5b6110f7826110b9565b9392505050565b60008060408385031215611110578081fd5b611119836110b9565b9150611127602084016110b9565b90509250929050565b600080600060608486031215611144578081fd5b61114d846110b9565b925061115b602085016110b9565b9150604084013590509250925092565b6000806040838503121561117d578182fd5b611186836110b9565b946020939093013593505050565b6000602082840312156111a5578081fd5b5035919050565b600080604083850312156111be578182fd5b82359150611127602084016110b9565b6000602082840312156111df578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146110f7578182fd5b901515815260200190565b90815260200190565b6000602080835283518082850152825b8181101561124e57858101830151858201604001528201611232565b8181111561125f5783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f206772616e740000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60408201527f6365000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e63650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160408201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f45524332304361707065643a2063617020657863656564656400000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f486d6d436f696e3a206d7573742068617665206d696e74657220726f6c65207460408201527f6f206d696e740000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760408201527f207a65726f000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b60ff91909116815260200190565b60008219821115611838576118386118a8565b500190565b60008282101561184f5761184f6118a8565b500390565b60028104600182168061186857607f821691505b602082108114156118a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220f9f3ec4c81b47bc6d11db9364223e5a2989fabf8a86293f9e22c873ca6f3b00764736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a7f6fb4d69f62965cce18d4dcaec76f48850d8cd00000000000000000000000000000000000000000000e92ace0870df8094000000000000000000000000000000000000000000000053a0fdaad07db2649400000000000000000000000000000000000000000000000000000000000000000007486d6d436f696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003484d430000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a7f6fb4d69f62965cce18d4dcaec76f48850d8cd00000000000000000000000000000000000000000000e92ace0870df8094000000000000000000000000000000000000000000000053a0fdaad07db2649400000000000000000000000000000000000000000000000000000000000000000007486d6d436f696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003484d430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): HmmCoin
Arg [1] : symbol_ (string): HMC
Arg [2] : owner (address): 0xa7f6fb4d69f62965cce18d4dcaec76f48850d8cd
Arg [3] : initialSupply_ (uint256): 1101101000000000000000000
Arg [4] : maxSupply_ (uint256): 101101101000000000000000000

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000a7f6fb4d69f62965cce18d4dcaec76f48850d8cd
Arg [3] : 00000000000000000000000000000000000000000000e92ace0870df80940000
Arg [4] : 00000000000000000000000000000000000000000053a0fdaad07db264940000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 486d6d436f696e00000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 484d430000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

233:1407:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3566:214:1;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2021:89:2;;;:::i;:::-;;;;;;;:::i;4091:166::-;;;;;;:::i;:::-;;:::i;3082:106::-;;;:::i;:::-;;;;;;;:::i;4724:414::-;;;;;;:::i;:::-;;:::i;4185:121:1:-;;;;;;:::i;:::-;;:::i;4556:228::-;;;;;;:::i;:::-;;:::i;:::-;;2940:82:2;;;:::i;:::-;;;;;;;:::i;562:81:5:-;;;:::i;5740:214:1:-;;;;;;:::i;:::-;;:::i;5533:212:2:-;;;;;;:::i;:::-;;:::i;1309:178:0:-;;;;;;:::i;:::-;;:::i;487:89:4:-;;;;;;:::i;:::-;;:::i;3246:125:2:-;;;;;;:::i;:::-;;:::i;882:327:4:-;;;;;;:::i;:::-;;:::i;3867:137:1:-;;;;;;:::i;:::-;;:::i;2223:93:2:-;;;:::i;2363:49:1:-;;;:::i;6232:371:2:-;;;;;;:::i;:::-;;:::i;3574:172::-;;;;;;:::i;:::-;;:::i;301:62:0:-;;;:::i;5018:231:1:-;;;;;;:::i;:::-;;:::i;3804:149:2:-;;;;;;:::i;:::-;;:::i;3566:214:1:-;3651:4;3674:47;;;3689:32;3674:47;;:99;;;3737:36;3761:11;3737:23;:36::i;:::-;3667:106;;3566:214;;;;:::o;2021:89:2:-;2066:13;2098:5;2091:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2021:89;:::o;4091:166::-;4174:4;4190:39;4199:12;:10;:12::i;:::-;4213:7;4222:6;4190:8;:39::i;:::-;-1:-1:-1;4246:4:2;4091:166;;;;:::o;3082:106::-;3169:12;;3082:106;:::o;4724:414::-;4830:4;4846:36;4856:6;4864:9;4875:6;4846:9;:36::i;:::-;4920:19;;;4893:24;4920:19;;;:11;:19;;;;;4893:24;4940:12;:10;:12::i;:::-;4920:33;;;;;;;;;;;;;;;;4893:60;;4991:6;4971:16;:26;;4963:79;;;;;;;;;;;;:::i;:::-;;;;;;;;;5052:57;5061:6;5069:12;:10;:12::i;:::-;5083:25;5102:6;5083:16;:25;:::i;:::-;5052:8;:57::i;:::-;-1:-1:-1;5127:4:2;;4724:414;-1:-1:-1;;;;4724:414:2:o;4185:121:1:-;4251:7;4277:12;;;:6;:12;;;;;:22;;;;4185:121::o;4556:228::-;4648:41;4656:18;4669:4;4656:12;:18::i;:::-;4676:12;:10;:12::i;4648:41::-;4640:101;;;;;;;;;;;;:::i;:::-;4752:25;4763:4;4769:7;4752:10;:25::i;:::-;4556:228;;:::o;2940:82:2:-;3013:2;2940:82;:::o;562:81:5:-;632:4;562:81;:::o;5740:214:1:-;5846:12;:10;:12::i;:::-;5835:23;;:7;:23;;;5827:83;;;;;;;;;;;;:::i;:::-;5921:26;5933:4;5939:7;5921:11;:26::i;5533:212:2:-;5621:4;5637:80;5646:12;:10;:12::i;:::-;5660:7;5706:10;5669:11;:25;5681:12;:10;:12::i;:::-;5669:25;;;;;;;;;;;;;;;;;;-1:-1:-1;5669:25:2;;;:34;;;;;;;;;;:47;;;;:::i;1309:178:0:-;1376:34;339:24;1397:12;:10;:12::i;1376:34::-;1368:85;;;;;;;;;;;;:::i;:::-;1463:17;1469:2;1473:6;1463:5;:17::i;487:89:4:-;542:27;548:12;:10;:12::i;:::-;562:6;542:5;:27::i;:::-;487:89;:::o;3246:125:2:-;3346:18;;3320:7;3346:18;;;;;;;;;;;;3246:125::o;882:327:4:-;958:24;985:32;995:7;1004:12;:10;:12::i;985:32::-;958:59;;1055:6;1035:16;:26;;1027:75;;;;;;;;;;;;:::i;:::-;1112:58;1121:7;1130:12;:10;:12::i;:::-;1144:25;1163:6;1144:16;:25;:::i;1112:58::-;1180:22;1186:7;1195:6;1180:5;:22::i;:::-;882:327;;;:::o;3867:137:1:-;3945:4;3968:12;;;:6;:12;;;;;;;;:29;;;;;;;;;;;;;;;;3867:137::o;2223:93:2:-;2270:13;2302:7;2295:14;;;;;:::i;2363:49:1:-;2408:4;2363:49;:::o;6232:371:2:-;6325:4;6341:24;6368:11;:25;6380:12;:10;:12::i;:::-;6368:25;;;;;;;;;;;;;;;;;;-1:-1:-1;6368:25:2;;;:34;;;;;;;;;;;-1:-1:-1;6420:35:2;;;;6412:85;;;;;;;;;;;;:::i;:::-;6507:67;6516:12;:10;:12::i;:::-;6530:7;6539:34;6558:15;6539:16;:34;:::i;6507:67::-;-1:-1:-1;6592:4:2;;6232:371;-1:-1:-1;;;6232:371:2:o;3574:172::-;3660:4;3676:42;3686:12;:10;:12::i;:::-;3700:9;3711:6;3676:9;:42::i;301:62:0:-;339:24;301:62;:::o;5018:231:1:-;5111:41;5119:18;5132:4;5119:12;:18::i;5111:41::-;5103:102;;;;;;;;;;;;:::i;3804:149:2:-;3919:18;;;;3893:7;3919:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3804:149::o;7940:330::-;8023:21;;;8015:65;;;;;;;;;;;;:::i;:::-;8091:49;8120:1;8124:7;8133:6;8091:20;:49::i;:::-;8167:6;8151:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;8183:18:2;;;:9;:18;;;;;;;;;;:28;;8205:6;;8183:9;:28;;8205:6;;8183:28;:::i;:::-;;;;-1:-1:-1;;8226:37:2;;;;;;8243:1;;8226:37;;;;8256:6;;8226:37;:::i;:::-;;;;;;;;7940:330;;:::o;763:155:7:-;871:40;;;886:25;871:40;763:155;;;:::o;586:96:6:-;665:10;586:96;:::o;9496:340:2:-;9597:19;;;9589:68;;;;;;;;;;;;:::i;:::-;9675:21;;;9667:68;;;;;;;;;;;;:::i;:::-;9746:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;9797:32;;;;;9776:6;;9797:32;:::i;:::-;;;;;;;;9496:340;;;:::o;7077:592::-;7182:20;;;7174:70;;;;;;;;;;;;:::i;:::-;7262:23;;;7254:71;;;;;;;;;;;;:::i;:::-;7336:47;7357:6;7365:9;7376:6;7336:20;:47::i;:::-;7418:17;;;7394:21;7418:17;;;;;;;;;;;7453:23;;;;7445:74;;;;;;;;;;;;:::i;:::-;7549:22;7565:6;7549:13;:22;:::i;:::-;7529:17;;;;:9;:17;;;;;;;;;;;:42;;;;7581:20;;;;;;;;:30;;7605:6;;7529:9;7581:30;;7605:6;;7581:30;:::i;:::-;;;;;;;;7644:9;7627:35;;7636:6;7627:35;;;7655:6;7627:35;;;;;;:::i;:::-;;;;;;;;7077:592;;;;:::o;6952:224:1:-;7026:22;7034:4;7040:7;7026;:22::i;:::-;7021:149;;7064:12;;;;:6;:12;;;;;;;;:29;;;;;;;;;;:36;;;;7096:4;7064:36;;;7146:12;:10;:12::i;:::-;7119:40;;7137:7;7119:40;;7131:4;7119:40;;;;;;;;;;6952:224;;:::o;7182:225::-;7256:22;7264:4;7270:7;7256;:22::i;:::-;7252:149;;;7326:5;7294:12;;;:6;:12;;;;;;;;:29;;;;;;;;;;:37;;;;;;7377:12;:10;:12::i;:::-;7350:40;;7368:7;7350:40;;7362:4;7350:40;;;;;;;;;;7182:225;;:::o;1493:145:0:-;1597:34;1615:7;1624:6;1597:17;:34::i;8590:483:2:-;8673:21;;;8665:67;;;;;;;;;;;;:::i;:::-;8743:49;8764:7;8781:1;8785:6;8743:20;:49::i;:::-;8828:18;;;8803:22;8828:18;;;;;;;;;;;8864:24;;;;8856:71;;;;;;;;;;;;:::i;:::-;8958:23;8975:6;8958:14;:23;:::i;:::-;8937:18;;;:9;:18;;;;;;;;;;:44;;;;8991:12;:22;;9007:6;;8937:9;8991:22;;9007:6;;8991:22;:::i;:::-;;;;-1:-1:-1;;9029:37:2;;9055:1;;9029:37;;;;;;;;9059:6;;9029:37;:::i;696:204:5:-;820:5;:3;:5::i;:::-;810:6;788:19;:17;:19::i;:::-;:28;;;;:::i;:::-;:37;;780:75;;;;;;;;;;;;:::i;:::-;865:28;877:7;886:6;865:11;:28::i;14:198:9:-;84:20;;144:42;133:54;;123:65;;113:2;;202:1;199;192:12;217:198;;329:2;317:9;308:7;304:23;300:32;297:2;;;350:6;342;335:22;297:2;378:31;399:9;378:31;:::i;:::-;368:41;287:128;-1:-1:-1;;;287:128:9:o;420:274::-;;;549:2;537:9;528:7;524:23;520:32;517:2;;;570:6;562;555:22;517:2;598:31;619:9;598:31;:::i;:::-;588:41;;648:40;684:2;673:9;669:18;648:40;:::i;:::-;638:50;;507:187;;;;;:::o;699:342::-;;;;845:2;833:9;824:7;820:23;816:32;813:2;;;866:6;858;851:22;813:2;894:31;915:9;894:31;:::i;:::-;884:41;;944:40;980:2;969:9;965:18;944:40;:::i;:::-;934:50;;1031:2;1020:9;1016:18;1003:32;993:42;;803:238;;;;;:::o;1046:266::-;;;1175:2;1163:9;1154:7;1150:23;1146:32;1143:2;;;1196:6;1188;1181:22;1143:2;1224:31;1245:9;1224:31;:::i;:::-;1214:41;1302:2;1287:18;;;;1274:32;;-1:-1:-1;;;1133:179:9:o;1317:190::-;;1429:2;1417:9;1408:7;1404:23;1400:32;1397:2;;;1450:6;1442;1435:22;1397:2;-1:-1:-1;1478:23:9;;1387:120;-1:-1:-1;1387:120:9:o;1512:266::-;;;1641:2;1629:9;1620:7;1616:23;1612:32;1609:2;;;1662:6;1654;1647:22;1609:2;1703:9;1690:23;1680:33;;1732:40;1768:2;1757:9;1753:18;1732:40;:::i;1783:352::-;;1894:2;1882:9;1873:7;1869:23;1865:32;1862:2;;;1915:6;1907;1900:22;1862:2;1959:9;1946:23;2009:66;2002:5;1998:78;1991:5;1988:89;1978:2;;2096:6;2088;2081:22;2335:187;2500:14;;2493:22;2475:41;;2463:2;2448:18;;2430:92::o;2527:177::-;2673:25;;;2661:2;2646:18;;2628:76::o;2709:662::-;;2850:2;2879;2868:9;2861:21;2911:6;2905:13;2954:6;2949:2;2938:9;2934:18;2927:34;2979:4;2992:140;3006:6;3003:1;3000:13;2992:140;;;3101:14;;;3097:23;;3091:30;3067:17;;;3086:2;3063:26;3056:66;3021:10;;2992:140;;;3150:6;3147:1;3144:13;3141:2;;;3220:4;3215:2;3206:6;3195:9;3191:22;3187:31;3180:45;3141:2;-1:-1:-1;3287:2:9;3275:15;3292:66;3271:88;3256:104;;;;3362:2;3252:113;;2830:541;-1:-1:-1;;;2830:541:9:o;3376:399::-;3578:2;3560:21;;;3617:2;3597:18;;;3590:30;3656:34;3651:2;3636:18;;3629:62;3727:5;3722:2;3707:18;;3700:33;3765:3;3750:19;;3550:225::o;3780:411::-;3982:2;3964:21;;;4021:2;4001:18;;;3994:30;4060:34;4055:2;4040:18;;4033:62;4131:17;4126:2;4111:18;;4104:45;4181:3;4166:19;;3954:237::o;4196:398::-;4398:2;4380:21;;;4437:2;4417:18;;;4410:30;4476:34;4471:2;4456:18;;4449:62;4547:4;4542:2;4527:18;;4520:32;4584:3;4569:19;;4370:224::o;4599:398::-;4801:2;4783:21;;;4840:2;4820:18;;;4813:30;4879:34;4874:2;4859:18;;4852:62;4950:4;4945:2;4930:18;;4923:32;4987:3;4972:19;;4773:224::o;5002:402::-;5204:2;5186:21;;;5243:2;5223:18;;;5216:30;5282:34;5277:2;5262:18;;5255:62;5353:8;5348:2;5333:18;;5326:36;5394:3;5379:19;;5176:228::o;5409:412::-;5611:2;5593:21;;;5650:2;5630:18;;;5623:30;5689:34;5684:2;5669:18;;5662:62;5760:18;5755:2;5740:18;;5733:46;5811:3;5796:19;;5583:238::o;5826:404::-;6028:2;6010:21;;;6067:2;6047:18;;;6040:30;6106:34;6101:2;6086:18;;6079:62;6177:10;6172:2;6157:18;;6150:38;6220:3;6205:19;;6000:230::o;6235:400::-;6437:2;6419:21;;;6476:2;6456:18;;;6449:30;6515:34;6510:2;6495:18;;6488:62;6586:6;6581:2;6566:18;;6559:34;6625:3;6610:19;;6409:226::o;6640:397::-;6842:2;6824:21;;;6881:2;6861:18;;;6854:30;6920:34;6915:2;6900:18;;6893:62;6991:3;6986:2;6971:18;;6964:31;7027:3;7012:19;;6814:223::o;7042:401::-;7244:2;7226:21;;;7283:2;7263:18;;;7256:30;7322:34;7317:2;7302:18;;7295:62;7393:7;7388:2;7373:18;;7366:35;7433:3;7418:19;;7216:227::o;7448:349::-;7650:2;7632:21;;;7689:2;7669:18;;;7662:30;7728:27;7723:2;7708:18;;7701:55;7788:2;7773:18;;7622:175::o;7802:400::-;8004:2;7986:21;;;8043:2;8023:18;;;8016:30;8082:34;8077:2;8062:18;;8055:62;8153:6;8148:2;8133:18;;8126:34;8192:3;8177:19;;7976:226::o;8207:402::-;8409:2;8391:21;;;8448:2;8428:18;;;8421:30;8487:34;8482:2;8467:18;;8460:62;8558:8;8553:2;8538:18;;8531:36;8599:3;8584:19;;8381:228::o;8614:401::-;8816:2;8798:21;;;8855:2;8835:18;;;8828:30;8894:34;8889:2;8874:18;;8867:62;8965:7;8960:2;8945:18;;8938:35;9005:3;8990:19;;8788:227::o;9020:411::-;9222:2;9204:21;;;9261:2;9241:18;;;9234:30;9300:34;9295:2;9280:18;;9273:62;9371:17;9366:2;9351:18;;9344:45;9421:3;9406:19;;9194:237::o;9436:355::-;9638:2;9620:21;;;9677:2;9657:18;;;9650:30;9716:33;9711:2;9696:18;;9689:61;9782:2;9767:18;;9610:181::o;9978:184::-;10150:4;10138:17;;;;10120:36;;10108:2;10093:18;;10075:87::o;10167:128::-;;10238:1;10234:6;10231:1;10228:13;10225:2;;;10244:18;;:::i;:::-;-1:-1:-1;10280:9:9;;10215:80::o;10300:125::-;;10368:1;10365;10362:8;10359:2;;;10373:18;;:::i;:::-;-1:-1:-1;10410:9:9;;10349:76::o;10430:437::-;10515:1;10505:12;;10562:1;10552:12;;;10573:2;;10627:4;10619:6;10615:17;10605:27;;10573:2;10680;10672:6;10669:14;10649:18;10646:38;10643:2;;;10717:77;10714:1;10707:88;10818:4;10815:1;10808:15;10846:4;10843:1;10836:15;10643:2;;10485:382;;;:::o;10872:184::-;10924:77;10921:1;10914:88;11021:4;11018:1;11011:15;11045:4;11042:1;11035:15

Swarm Source

ipfs://f9f3ec4c81b47bc6d11db9364223e5a2989fabf8a86293f9e22c873ca6f3b007
Loading