ETH Price: $2,522.67 (+0.30%)

Contract

0x57e849EFC71D350C28446C69E8d8dbF275B57F75
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer152591272022-08-01 21:39:48760 days ago1659389988IN
0x57e849EF...275B57F75
0 ETH0.0013963327.00000433
Transfer151269382022-07-12 9:05:19780 days ago1657616719IN
0x57e849EF...275B57F75
0 ETH0.0007597614.69104164
Transfer150911082022-07-06 20:27:21786 days ago1657139241IN
0x57e849EF...275B57F75
0 ETH0.0013200838.13517348
Transfer150905022022-07-06 18:15:23786 days ago1657131323IN
0x57e849EF...275B57F75
0 ETH0.0023771245.96499883
Transfer148565552022-05-27 21:51:50826 days ago1653688310IN
0x57e849EF...275B57F75
0 ETH0.0007720525.87326915
Transfer148492602022-05-26 17:25:18827 days ago1653585918IN
0x57e849EF...275B57F75
0 ETH0.0023873846.16331985
Mint146609252022-04-26 15:29:59857 days ago1650986999IN
0x57e849EF...275B57F75
0 ETH0.0026579864.42032551
Transfer Ownersh...146551532022-04-25 17:40:30858 days ago1650908430IN
0x57e849EF...275B57F75
0 ETH0.007004999.71531296
Mint146551472022-04-25 17:39:29858 days ago1650908369IN
0x57e849EF...275B57F75
0 ETH0.0051339387.97007516
0x60806040146551042022-04-25 17:28:50858 days ago1650907730IN
 Create: Milk
0 ETH0.0936441974.36422728

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Milk

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : Milk.sol
// SPDX-License-Identifier: MIT


pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

/**
 * @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.
 */

contract Ownable is Context{
    address private _owner;
    using Roles for Roles.Role;

    event VaultAdded(address indexed account);
    event VaultRemoved(address indexed account);

    Roles.Role private _vaults;

    constructor () {
        _setVault(msg.sender);
    }

    modifier onlyOwner() {
        require(isOwner(msg.sender), "Ownable: caller is not the owner");
        _;
    }

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

    function transferOwnership(address _newOwner) public onlyOwner {
        if (_owner != address(0)) {
            _removeVault(_owner);
        }
        _setVault(_newOwner);
        _owner = _newOwner;
    }

    function renounceOwnership() public {
        _removeVault(msg.sender);
    }

    function isOwner(address account) internal view returns (bool) {
        return _vaults.has(account);
    }

    function _setVault(address account) internal {
        _vaults.add(account);
        emit VaultAdded(account);
    }

    function _removeVault(address account) internal {
        _vaults.remove(account);
        emit VaultRemoved(account);
    }
}

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

    uint256 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 returns (uint256) {
        return _cap;
    }

    function setCap(uint256 _amount) public {
        _setCap (_amount);
    }
    
    function _setCap(uint256 _amount) internal virtual{
        require(_amount > 0, "ERC20Capped: cap is 0");
        _cap = _amount;
    }
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) { // When minting tokens
            require(totalSupply().add(amount) <= _cap, "ERC20Capped: cap exceeded");
        }
    }
}

/**
 * @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 {
    using SafeMath for uint256;

    /**
     * @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 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}


/**
 * @title ERC20Mintable
 * @dev Implementation of the ERC20Mintable. Extension of {ERC20} that adds a minting behaviour.
 */
abstract contract ERC20Mintable is ERC20 {

    // indicates if minting is finished
    bool private _mintingFinished = false;

    /**
     * @dev Emitted during finish minting
     */
    event MintFinished();

    /**
     * @dev Tokens can be minted only before minting finished.
     */
    modifier canMint() {
        require(!_mintingFinished, "ERC20Mintable: minting is finished");
        _;
    }

    /**
     * @return if minting is finished or not.
     */
    function mintingFinished() public view returns (bool) {
        return _mintingFinished;
    }

    /**
     * @dev Function to mint tokens.
     *
     * WARNING: it allows everyone to mint new tokens. Access controls MUST be defined in derived contracts.
     *
     * @param account The address that will receive the minted tokens
     * @param amount The amount of tokens to mint
     */
    function mint(address account, uint256 amount) public canMint {
        _mint(account, amount);
    }

    /**
     * @dev Function to stop minting new tokens.
     *
     * WARNING: it allows everyone to finish minting. Access controls MUST be defined in derived contracts.
     */
    function finishMinting(bool status) public {
        _finishMinting(status);
    }

    /**
     * @dev Function to stop minting new tokens.
     */
    function _finishMinting(bool status) internal virtual {
        _mintingFinished = status;

        emit MintFinished();
    }
}

/**
 * @title MintableERC20
 * @dev Implementation of the MintableERC20
 */
contract Milk is ERC20Capped, ERC20Mintable, ERC20Burnable, Ownable {

    constructor (address _owner, string memory name, string memory symbol)
        ERC20(name,  symbol)
        ERC20Capped( 23331000 *10**18)
    {
        _mint(_owner, 7777000 *10**18);
    }

    /**
     * @dev Function to mint tokens.
     *
     * NOTE: restricting access to owner only. See {ERC20Mintable-mint}.
     *
     * @param account The address that will receive the minted tokens
     * @param amount The amount of tokens to mint
     */
    function _mint(address account, uint256 amount) internal override onlyOwner {
        super._mint(account, amount);
    }

    /**
     * @dev Function to stop minting new tokens.
     *
     * NOTE: restricting access to owner only. See {ERC20Mintable-finishMinting}.
     */
    function _finishMinting(bool status) internal override onlyOwner {
        super._finishMinting(status);
    }
    
    /**
     * @dev Function to set tokens caps.
     *
     * NOTE: restricting access to owner only.
     *
     * @param _amount The amount of tokens to capped
     */
    function _setCap(uint256 _amount) internal override onlyOwner {
        super._setCap(_amount);
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}. See {ERC20Capped-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Capped) {
        super._beforeTokenTransfer(from, to, amount);
    }
}

File 2 of 5 : 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 3 of 5 : 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 4 of 5 : 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 5 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"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":[],"name":"MintFinished","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"VaultAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"VaultRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"bool","name":"status","type":"bool"}],"name":"finishMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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"}]

60806040526006805460ff191690553480156200001b57600080fd5b5060405162001a2e38038062001a2e8339810160408190526200003e9162000679565b6a134c880b5818304fe00000828281600390805190602001906200006492919062000506565b5080516200007a90600490602084019062000506565b50505060008111620000d35760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b600555620000e13362000101565b620000f8836a066ed803c808101aa0000062000153565b50505062000767565b6200011c816007620001c760201b6200062d1790919060201c565b6040516001600160a01b038216907f7b7ef7a864d96a85497a1ed846adb39940dd6ccef678ff6ac8d55505e09b8cc490600090a250565b6200015e3362000247565b620001ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620000ca565b620001c382826200026a60201b620006a91760201c565b5050565b620001d382826200035d565b15620002225760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c65006044820152606401620000ca565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000620002648260076200035d60201b620007941790919060201c565b92915050565b6001600160a01b038216620002c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620000ca565b620002d060008383620003e2565b8060026000828254620002e4919062000703565b90915550506001600160a01b038216600090815260208190526040812080548392906200031390849062000703565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b038216620003c25760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b6064820152608401620000ca565b506001600160a01b03166000908152602091909152604090205460ff1690565b620003fa838383620003ff60201b620008171760201c565b505050565b62000417838383620003fa60201b620004ea1760201c565b6001600160a01b038316620003fa576005546200044c826200043860025490565b6200049c60201b620008891790919060201c565b1115620003fa5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401620000ca565b600080620004ab838562000703565b905083811015620004ff5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401620000ca565b9392505050565b82805462000514906200072a565b90600052602060002090601f01602090048101928262000538576000855562000583565b82601f106200055357805160ff191683800117855562000583565b8280016001018555821562000583579182015b828111156200058357825182559160200191906001019062000566565b506200059192915062000595565b5090565b5b8082111562000591576000815560010162000596565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620005d457600080fd5b81516001600160401b0380821115620005f157620005f1620005ac565b604051601f8301601f19908116603f011681019082821181831017156200061c576200061c620005ac565b816040528381526020925086838588010111156200063957600080fd5b600091505b838210156200065d57858201830151818301840152908201906200063e565b838211156200066f5760008385830101525b9695505050505050565b6000806000606084860312156200068f57600080fd5b83516001600160a01b0381168114620006a757600080fd5b60208501519093506001600160401b0380821115620006c557600080fd5b620006d387838801620005c2565b93506040860151915080821115620006ea57600080fd5b50620006f986828701620005c2565b9150509250925092565b600082198211156200072557634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200073f57607f821691505b602082108114156200076157634e487b7160e01b600052602260045260246000fd5b50919050565b6112b780620007776000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806347786d37116100b857806395d89b411161007c57806395d89b41146102775780639af26b781461027f578063a457c2d714610292578063a9059cbb146102a5578063dd62ed3e146102b8578063f2fde38b146102f157600080fd5b806347786d37146101f757806370a082311461020a578063715018a61461023357806379cc67901461023b5780638da5cb5b1461024e57600080fd5b8063313ce567116100ff578063313ce567146101a5578063355274ea146101b457806339509351146101bc57806340c10f19146101cf57806342966c68146101e457600080fd5b806305d2035b1461013c57806306fdde0314610158578063095ea7b31461016d57806318160ddd1461018057806323b872dd14610192575b600080fd5b60065460ff165b60405190151581526020015b60405180910390f35b610160610304565b60405161014f9190611048565b61014361017b3660046110b9565b610396565b6002545b60405190815260200161014f565b6101436101a03660046110e3565b6103ae565b6040516012815260200161014f565b600554610184565b6101436101ca3660046110b9565b6103d2565b6101e26101dd3660046110b9565b610411565b005b6101e26101f236600461111f565b610482565b6101e261020536600461111f565b61048f565b610184610218366004611138565b6001600160a01b031660009081526020819052604090205490565b6101e2610498565b6101e26102493660046110b9565b6104a3565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161014f565b6101606104ef565b6101e261028d366004611153565b6104fe565b6101436102a03660046110b9565b610507565b6101436102b33660046110b9565b610599565b6101846102c6366004611175565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101e26102ff366004611138565b6105a7565b606060038054610313906111a8565b80601f016020809104026020016040519081016040528092919081815260200182805461033f906111a8565b801561038c5780601f106103615761010080835404028352916020019161038c565b820191906000526020600020905b81548152906001019060200180831161036f57829003601f168201915b5050505050905090565b6000336103a48185856108ef565b5060019392505050565b6000336103bc858285610a13565b6103c7858585610aa5565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906103a4908290869061040c9087906111f9565b6108ef565b60065460ff16156104745760405162461bcd60e51b815260206004820152602260248201527f45524332304d696e7461626c653a206d696e74696e672069732066696e697368604482015261195960f21b60648201526084015b60405180910390fd5b61047e8282610c7e565b5050565b61048c3382610cad565b50565b61048c81610e07565b6104a133610e35565b565b60006104d38260405180606001604052806024815260200161125e602491396104cc86336102c6565b9190610e77565b90506104e08333836108ef565b6104ea8383610cad565b505050565b606060048054610313906111a8565b61048c81610eb1565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561058c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161046b565b6103c782868684036108ef565b6000336103a4818585610aa5565b6105b033610edf565b6105cc5760405162461bcd60e51b815260040161046b90611211565b60065461010090046001600160a01b0316156105fc576006546105fc9061010090046001600160a01b0316610e35565b61060581610ef2565b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6106378282610794565b156106845760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015260640161046b565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6001600160a01b0382166106ff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161046b565b61070b60008383610f34565b806002600082825461071d91906111f9565b90915550506001600160a01b0382166000908152602081905260408120805483929061074a9084906111f9565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b0382166107f75760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b606482015260840161046b565b506001600160a01b03166000908152602091909152604090205460ff1690565b6001600160a01b0383166104ea5760055461083b8261083560025490565b90610889565b11156104ea5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161046b565b60008061089683856111f9565b9050838110156108e85760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161046b565b9392505050565b6001600160a01b0383166109515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161046b565b6001600160a01b0382166109b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161046b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a9f5781811015610a925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161046b565b610a9f84848484036108ef565b50505050565b6001600160a01b038316610b095760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161046b565b6001600160a01b038216610b6b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161046b565b610b76838383610f34565b6001600160a01b03831660009081526020819052604090205481811015610bee5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161046b565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610c259084906111f9565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7191815260200190565b60405180910390a3610a9f565b610c8733610edf565b610ca35760405162461bcd60e51b815260040161046b90611211565b61047e82826106a9565b6001600160a01b038216610d0d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161046b565b610d1982600083610f34565b6001600160a01b03821660009081526020819052604090205481811015610d8d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161046b565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dbc908490611246565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b610e1033610edf565b610e2c5760405162461bcd60e51b815260040161046b90611211565b61048c81610f3f565b610e40600782610f8c565b6040516001600160a01b038216907fe71f3a50e5ad81964f352c411f1d45e35438ecd1acecef59ac81d9fbbf6cbc0a90600090a250565b60008184841115610e9b5760405162461bcd60e51b815260040161046b9190611048565b506000610ea88486611246565b95945050505050565b610eba33610edf565b610ed65760405162461bcd60e51b815260040161046b90611211565b61048c8161100e565b6000610eec600783610794565b92915050565b610efd60078261062d565b6040516001600160a01b038216907f7b7ef7a864d96a85497a1ed846adb39940dd6ccef678ff6ac8d55505e09b8cc490600090a250565b6104ea838383610817565b60008111610f875760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b604482015260640161046b565b600555565b610f968282610794565b610fec5760405162461bcd60e51b815260206004820152602160248201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6044820152606560f81b606482015260840161046b565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6006805460ff19168215151790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a150565b600060208083528351808285015260005b8181101561107557858101830151858201604001528201611059565b81811115611087576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146110b457600080fd5b919050565b600080604083850312156110cc57600080fd5b6110d58361109d565b946020939093013593505050565b6000806000606084860312156110f857600080fd5b6111018461109d565b925061110f6020850161109d565b9150604084013590509250925092565b60006020828403121561113157600080fd5b5035919050565b60006020828403121561114a57600080fd5b6108e88261109d565b60006020828403121561116557600080fd5b813580151581146108e857600080fd5b6000806040838503121561118857600080fd5b6111918361109d565b915061119f6020840161109d565b90509250929050565b600181811c908216806111bc57607f821691505b602082108114156111dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561120c5761120c6111e3565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015611258576112586111e3565b50039056fe45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220eb70d2842dff84ca5a625077694ee479dc72627b1b71d15790d872e828326c8e64736f6c63430008090033000000000000000000000000584996015268ef94317dddb02e7b8c316ec58725000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000044d696c6b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005244d696c6b000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c806347786d37116100b857806395d89b411161007c57806395d89b41146102775780639af26b781461027f578063a457c2d714610292578063a9059cbb146102a5578063dd62ed3e146102b8578063f2fde38b146102f157600080fd5b806347786d37146101f757806370a082311461020a578063715018a61461023357806379cc67901461023b5780638da5cb5b1461024e57600080fd5b8063313ce567116100ff578063313ce567146101a5578063355274ea146101b457806339509351146101bc57806340c10f19146101cf57806342966c68146101e457600080fd5b806305d2035b1461013c57806306fdde0314610158578063095ea7b31461016d57806318160ddd1461018057806323b872dd14610192575b600080fd5b60065460ff165b60405190151581526020015b60405180910390f35b610160610304565b60405161014f9190611048565b61014361017b3660046110b9565b610396565b6002545b60405190815260200161014f565b6101436101a03660046110e3565b6103ae565b6040516012815260200161014f565b600554610184565b6101436101ca3660046110b9565b6103d2565b6101e26101dd3660046110b9565b610411565b005b6101e26101f236600461111f565b610482565b6101e261020536600461111f565b61048f565b610184610218366004611138565b6001600160a01b031660009081526020819052604090205490565b6101e2610498565b6101e26102493660046110b9565b6104a3565b60065461010090046001600160a01b03166040516001600160a01b03909116815260200161014f565b6101606104ef565b6101e261028d366004611153565b6104fe565b6101436102a03660046110b9565b610507565b6101436102b33660046110b9565b610599565b6101846102c6366004611175565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101e26102ff366004611138565b6105a7565b606060038054610313906111a8565b80601f016020809104026020016040519081016040528092919081815260200182805461033f906111a8565b801561038c5780601f106103615761010080835404028352916020019161038c565b820191906000526020600020905b81548152906001019060200180831161036f57829003601f168201915b5050505050905090565b6000336103a48185856108ef565b5060019392505050565b6000336103bc858285610a13565b6103c7858585610aa5565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906103a4908290869061040c9087906111f9565b6108ef565b60065460ff16156104745760405162461bcd60e51b815260206004820152602260248201527f45524332304d696e7461626c653a206d696e74696e672069732066696e697368604482015261195960f21b60648201526084015b60405180910390fd5b61047e8282610c7e565b5050565b61048c3382610cad565b50565b61048c81610e07565b6104a133610e35565b565b60006104d38260405180606001604052806024815260200161125e602491396104cc86336102c6565b9190610e77565b90506104e08333836108ef565b6104ea8383610cad565b505050565b606060048054610313906111a8565b61048c81610eb1565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561058c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161046b565b6103c782868684036108ef565b6000336103a4818585610aa5565b6105b033610edf565b6105cc5760405162461bcd60e51b815260040161046b90611211565b60065461010090046001600160a01b0316156105fc576006546105fc9061010090046001600160a01b0316610e35565b61060581610ef2565b600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6106378282610794565b156106845760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015260640161046b565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6001600160a01b0382166106ff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161046b565b61070b60008383610f34565b806002600082825461071d91906111f9565b90915550506001600160a01b0382166000908152602081905260408120805483929061074a9084906111f9565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006001600160a01b0382166107f75760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b606482015260840161046b565b506001600160a01b03166000908152602091909152604090205460ff1690565b6001600160a01b0383166104ea5760055461083b8261083560025490565b90610889565b11156104ea5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161046b565b60008061089683856111f9565b9050838110156108e85760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161046b565b9392505050565b6001600160a01b0383166109515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161046b565b6001600160a01b0382166109b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161046b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a9f5781811015610a925760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161046b565b610a9f84848484036108ef565b50505050565b6001600160a01b038316610b095760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161046b565b6001600160a01b038216610b6b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161046b565b610b76838383610f34565b6001600160a01b03831660009081526020819052604090205481811015610bee5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161046b565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610c259084906111f9565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7191815260200190565b60405180910390a3610a9f565b610c8733610edf565b610ca35760405162461bcd60e51b815260040161046b90611211565b61047e82826106a9565b6001600160a01b038216610d0d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161046b565b610d1982600083610f34565b6001600160a01b03821660009081526020819052604090205481811015610d8d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161046b565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610dbc908490611246565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b610e1033610edf565b610e2c5760405162461bcd60e51b815260040161046b90611211565b61048c81610f3f565b610e40600782610f8c565b6040516001600160a01b038216907fe71f3a50e5ad81964f352c411f1d45e35438ecd1acecef59ac81d9fbbf6cbc0a90600090a250565b60008184841115610e9b5760405162461bcd60e51b815260040161046b9190611048565b506000610ea88486611246565b95945050505050565b610eba33610edf565b610ed65760405162461bcd60e51b815260040161046b90611211565b61048c8161100e565b6000610eec600783610794565b92915050565b610efd60078261062d565b6040516001600160a01b038216907f7b7ef7a864d96a85497a1ed846adb39940dd6ccef678ff6ac8d55505e09b8cc490600090a250565b6104ea838383610817565b60008111610f875760405162461bcd60e51b8152602060048201526015602482015274045524332304361707065643a20636170206973203605c1b604482015260640161046b565b600555565b610f968282610794565b610fec5760405162461bcd60e51b815260206004820152602160248201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6044820152606560f81b606482015260840161046b565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6006805460ff19168215151790556040517fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0890600090a150565b600060208083528351808285015260005b8181101561107557858101830151858201604001528201611059565b81811115611087576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146110b457600080fd5b919050565b600080604083850312156110cc57600080fd5b6110d58361109d565b946020939093013593505050565b6000806000606084860312156110f857600080fd5b6111018461109d565b925061110f6020850161109d565b9150604084013590509250925092565b60006020828403121561113157600080fd5b5035919050565b60006020828403121561114a57600080fd5b6108e88261109d565b60006020828403121561116557600080fd5b813580151581146108e857600080fd5b6000806040838503121561118857600080fd5b6111918361109d565b915061119f6020840161109d565b90509250929050565b600181811c908216806111bc57607f821691505b602082108114156111dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561120c5761120c6111e3565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015611258576112586111e3565b50039056fe45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220eb70d2842dff84ca5a625077694ee479dc72627b1b71d15790d872e828326c8e64736f6c63430008090033

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

000000000000000000000000584996015268ef94317dddb02e7b8c316ec58725000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000044d696c6b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005244d696c6b000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0x584996015268Ef94317Dddb02E7b8c316Ec58725
Arg [1] : name (string): Milk
Arg [2] : symbol (string): $Milk

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000584996015268ef94317dddb02e7b8c316ec58725
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 4d696c6b00000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 244d696c6b000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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