ETH Price: $3,400.96 (-1.27%)
Gas: 5 Gwei

Token

MGS (MGS)
 

Overview

Max Total Supply

40,105,083.962395833333334104 MGS

Holders

90

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
254.59537037037037037 MGS

Value
$0.00
0x82a4ae53f9883f7bea6d771a7d5b3ac6e93278ba
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MGS

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-17
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @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, allowance(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 = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * 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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * 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: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

// File: mgstoken.sol



pragma solidity 0.8.4;






contract MGS is ERC20, ERC20Burnable, Ownable {
  using SafeMath for uint256;

  mapping(address => uint256) private _balances;
  mapping(address => bool) controllers;

  uint256 private _totalSupply;
  uint256 private MAXSUP;
  uint256 constant MAXIMUMSUPPLY=200000000*10**18;

  constructor() ERC20("MGS", "MGS") { 
      _mint(msg.sender, 200000000 * 10 ** 18);

  }

  function mint(address to, uint256 amount) external { // Staking mint 100m  50% 
    require(controllers[msg.sender], "Only controllers can mint");
    require((MAXSUP+amount)<=MAXIMUMSUPPLY / 2,"Maximum supply has been reached");
    _totalSupply = _totalSupply.add(amount);
    MAXSUP=MAXSUP.add(amount);
    _balances[to] = _balances[to].add(amount);
    _mint(to, amount);
  }

  function ownerMint(address to, uint256 amount) external onlyOwner { // 
    require((MAXSUP+amount)<=MAXIMUMSUPPLY,"Maximum supply has been reached");
    _totalSupply = _totalSupply.add(amount);
    MAXSUP=MAXSUP.add(amount);
    _balances[to] = _balances[to].add(amount);
    _mint(to, amount);
  }

  function burnFrom(address account, uint256 amount) public override {
      if (controllers[msg.sender]) {
          _burn(account, amount);
      }
      else {
          super.burnFrom(account, amount);
      }
  }

  function addController(address controller) external onlyOwner {
    controllers[controller] = true;
  }

  function removeController(address controller) external onlyOwner {
    controllers[controller] = false;
  }
  
  function totalSupply() public override view returns (uint256) {
    return _totalSupply;
  }

  function maxSupply() public  pure returns (uint256) {
    return MAXIMUMSUPPLY;
  }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"}]

60806040523480156200001157600080fd5b50604051806040016040528060038152602001624d475360e81b815250604051806040016040528060038152602001624d475360e81b815250816003908051906020019062000062929190620001f0565b50805162000078906004906020840190620001f0565b505050620000956200008f620000b260201b60201c565b620000b6565b620000ac336aa56fa5b99019a5c800000062000108565b620002f8565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001635760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b806002600082825462000177919062000296565b90915550506001600160a01b03821660009081526020819052604081208054839290620001a690849062000296565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001fe90620002bb565b90600052602060002090601f0160209004810192826200022257600085556200026d565b82601f106200023d57805160ff19168380011785556200026d565b828001600101855582156200026d579182015b828111156200026d57825182559160200191906001019062000250565b506200027b9291506200027f565b5090565b5b808211156200027b576000815560010162000280565b60008219821115620002b657634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620002d057607f821691505b60208210811415620002f257634e487b7160e01b600052602260045260246000fd5b50919050565b610f8980620003086000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063a7fc7a071161007c578063a7fc7a0714610279578063a9059cbb1461028c578063d5abeb011461029f578063dd62ed3e146102b0578063f2fde38b146102c3578063f6a74ed7146102d657600080fd5b8063715018a61461022857806379cc6790146102305780638da5cb5b1461024357806395d89b411461025e578063a457c2d71461026657600080fd5b806339509351116100ff57806339509351146101b157806340c10f19146101c457806342966c68146101d9578063484b973c146101ec57806370a08231146101ff57600080fd5b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461017d57806323b872dd1461018f578063313ce567146101a2575b600080fd5b6101446102e9565b6040516101519190610e60565b60405180910390f35b61016d610168366004610e1f565b61037b565b6040519015158152602001610151565b6008545b604051908152602001610151565b61016d61019d366004610de4565b610393565b60405160128152602001610151565b61016d6101bf366004610e1f565b6103b7565b6101d76101d2366004610e1f565b6103d9565b005b6101d76101e7366004610e48565b610519565b6101d76101fa366004610e1f565b610526565b61018161020d366004610d98565b6001600160a01b031660009081526020819052604090205490565b6101d7610548565b6101d761023e366004610e1f565b61055c565b6005546040516001600160a01b039091168152602001610151565b610144610588565b61016d610274366004610e1f565b610597565b6101d7610287366004610d98565b610612565b61016d61029a366004610e1f565b61063e565b6aa56fa5b99019a5c8000000610181565b6101816102be366004610db2565b61064c565b6101d76102d1366004610d98565b610677565b6101d76102e4366004610d98565b6106ed565b6060600380546102f890610f02565b80601f016020809104026020016040519081016040528092919081815260200182805461032490610f02565b80156103715780601f1061034657610100808354040283529160200191610371565b820191906000526020600020905b81548152906001019060200180831161035457829003601f168201915b5050505050905090565b600033610389818585610716565b5060019392505050565b6000336103a185828561083b565b6103ac8585856108b5565b506001949350505050565b6000336103898185856103ca838361064c565b6103d49190610eb3565b610716565b3360009081526007602052604090205460ff1661043d5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e740000000000000060448201526064015b60405180910390fd5b61045360026aa56fa5b99019a5c8000000610ecb565b816009546104619190610eb3565b11156104af5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c7920686173206265656e2072656163686564006044820152606401610434565b6008546104bc9082610a83565b6008556009546104cc9082610a83565b6009556001600160a01b0382166000908152600660205260409020546104f29082610a83565b6001600160a01b0383166000908152600660205260409020556105158282610a96565b5050565b6105233382610b75565b50565b61052e610cbb565b6aa56fa5b99019a5c8000000816009546104619190610eb3565b610550610cbb565b61055a6000610d15565b565b3360009081526007602052604090205460ff161561057e576105158282610b75565b6105158282610d67565b6060600480546102f890610f02565b600033816105a5828661064c565b9050838110156106055760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610434565b6103ac8286868403610716565b61061a610cbb565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6000336103898185856108b5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61067f610cbb565b6001600160a01b0381166106e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610434565b61052381610d15565b6106f5610cbb565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6001600160a01b0383166107785760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610434565b6001600160a01b0382166107d95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610434565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610847848461064c565b905060001981146108af57818110156108a25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610434565b6108af8484848403610716565b50505050565b6001600160a01b0383166109195760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610434565b6001600160a01b03821661097b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610434565b6001600160a01b038316600090815260208190526040902054818110156109f35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610434565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a2a908490610eb3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a7691815260200190565b60405180910390a36108af565b6000610a8f8284610eb3565b9392505050565b6001600160a01b038216610aec5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610434565b8060026000828254610afe9190610eb3565b90915550506001600160a01b03821660009081526020819052604081208054839290610b2b908490610eb3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610bd55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610434565b6001600160a01b03821660009081526020819052604090205481811015610c495760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610434565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c78908490610eeb565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161082e565b6005546001600160a01b0316331461055a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610434565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d7282338361083b565b6105158282610b75565b80356001600160a01b0381168114610d9357600080fd5b919050565b600060208284031215610da9578081fd5b610a8f82610d7c565b60008060408385031215610dc4578081fd5b610dcd83610d7c565b9150610ddb60208401610d7c565b90509250929050565b600080600060608486031215610df8578081fd5b610e0184610d7c565b9250610e0f60208501610d7c565b9150604084013590509250925092565b60008060408385031215610e31578182fd5b610e3a83610d7c565b946020939093013593505050565b600060208284031215610e59578081fd5b5035919050565b6000602080835283518082850152825b81811015610e8c57858101830151858201604001528201610e70565b81811115610e9d5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610ec657610ec6610f3d565b500190565b600082610ee657634e487b7160e01b81526012600452602481fd5b500490565b600082821015610efd57610efd610f3d565b500390565b600181811c90821680610f1657607f821691505b60208210811415610f3757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a5df8c9392ff421f0c73c39eee740c711cd43fbe9577b23969b0b6c13ab8537264736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063a7fc7a071161007c578063a7fc7a0714610279578063a9059cbb1461028c578063d5abeb011461029f578063dd62ed3e146102b0578063f2fde38b146102c3578063f6a74ed7146102d657600080fd5b8063715018a61461022857806379cc6790146102305780638da5cb5b1461024357806395d89b411461025e578063a457c2d71461026657600080fd5b806339509351116100ff57806339509351146101b157806340c10f19146101c457806342966c68146101d9578063484b973c146101ec57806370a08231146101ff57600080fd5b806306fdde031461013c578063095ea7b31461015a57806318160ddd1461017d57806323b872dd1461018f578063313ce567146101a2575b600080fd5b6101446102e9565b6040516101519190610e60565b60405180910390f35b61016d610168366004610e1f565b61037b565b6040519015158152602001610151565b6008545b604051908152602001610151565b61016d61019d366004610de4565b610393565b60405160128152602001610151565b61016d6101bf366004610e1f565b6103b7565b6101d76101d2366004610e1f565b6103d9565b005b6101d76101e7366004610e48565b610519565b6101d76101fa366004610e1f565b610526565b61018161020d366004610d98565b6001600160a01b031660009081526020819052604090205490565b6101d7610548565b6101d761023e366004610e1f565b61055c565b6005546040516001600160a01b039091168152602001610151565b610144610588565b61016d610274366004610e1f565b610597565b6101d7610287366004610d98565b610612565b61016d61029a366004610e1f565b61063e565b6aa56fa5b99019a5c8000000610181565b6101816102be366004610db2565b61064c565b6101d76102d1366004610d98565b610677565b6101d76102e4366004610d98565b6106ed565b6060600380546102f890610f02565b80601f016020809104026020016040519081016040528092919081815260200182805461032490610f02565b80156103715780601f1061034657610100808354040283529160200191610371565b820191906000526020600020905b81548152906001019060200180831161035457829003601f168201915b5050505050905090565b600033610389818585610716565b5060019392505050565b6000336103a185828561083b565b6103ac8585856108b5565b506001949350505050565b6000336103898185856103ca838361064c565b6103d49190610eb3565b610716565b3360009081526007602052604090205460ff1661043d5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e740000000000000060448201526064015b60405180910390fd5b61045360026aa56fa5b99019a5c8000000610ecb565b816009546104619190610eb3565b11156104af5760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20737570706c7920686173206265656e2072656163686564006044820152606401610434565b6008546104bc9082610a83565b6008556009546104cc9082610a83565b6009556001600160a01b0382166000908152600660205260409020546104f29082610a83565b6001600160a01b0383166000908152600660205260409020556105158282610a96565b5050565b6105233382610b75565b50565b61052e610cbb565b6aa56fa5b99019a5c8000000816009546104619190610eb3565b610550610cbb565b61055a6000610d15565b565b3360009081526007602052604090205460ff161561057e576105158282610b75565b6105158282610d67565b6060600480546102f890610f02565b600033816105a5828661064c565b9050838110156106055760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610434565b6103ac8286868403610716565b61061a610cbb565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6000336103898185856108b5565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61067f610cbb565b6001600160a01b0381166106e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610434565b61052381610d15565b6106f5610cbb565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6001600160a01b0383166107785760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610434565b6001600160a01b0382166107d95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610434565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610847848461064c565b905060001981146108af57818110156108a25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610434565b6108af8484848403610716565b50505050565b6001600160a01b0383166109195760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610434565b6001600160a01b03821661097b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610434565b6001600160a01b038316600090815260208190526040902054818110156109f35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610434565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a2a908490610eb3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a7691815260200190565b60405180910390a36108af565b6000610a8f8284610eb3565b9392505050565b6001600160a01b038216610aec5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610434565b8060026000828254610afe9190610eb3565b90915550506001600160a01b03821660009081526020819052604081208054839290610b2b908490610eb3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610bd55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610434565b6001600160a01b03821660009081526020819052604090205481811015610c495760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610434565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c78908490610eeb565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161082e565b6005546001600160a01b0316331461055a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610434565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d7282338361083b565b6105158282610b75565b80356001600160a01b0381168114610d9357600080fd5b919050565b600060208284031215610da9578081fd5b610a8f82610d7c565b60008060408385031215610dc4578081fd5b610dcd83610d7c565b9150610ddb60208401610d7c565b90509250929050565b600080600060608486031215610df8578081fd5b610e0184610d7c565b9250610e0f60208501610d7c565b9150604084013590509250925092565b60008060408385031215610e31578182fd5b610e3a83610d7c565b946020939093013593505050565b600060208284031215610e59578081fd5b5035919050565b6000602080835283518082850152825b81811015610e8c57858101830151858201604001528201610e70565b81811115610e9d5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610ec657610ec6610f3d565b500190565b600082610ee657634e487b7160e01b81526012600452602481fd5b500490565b600082821015610efd57610efd610f3d565b500390565b600181811c90821680610f1657607f821691505b60208210811415610f3757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a5df8c9392ff421f0c73c39eee740c711cd43fbe9577b23969b0b6c13ab8537264736f6c63430008040033

Deployed Bytecode Sourcemap

28409:1738:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13694:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;16045:201;;;;;;:::i;:::-;;:::i;:::-;;;1848:14:1;;1841:22;1823:41;;1811:2;1796:18;16045:201:0;1778:92:1;29957:94:0;30033:12;;29957:94;;;8065:25:1;;;8053:2;8038:18;29957:94:0;8020:76:1;16826:295:0;;;;;;:::i;:::-;;:::i;14656:93::-;;;14739:2;8243:36:1;;8231:2;8216:18;14656:93:0;8198:87:1;17530:238:0;;;;;;:::i;:::-;;:::i;28797:386::-;;;;;;:::i;:::-;;:::i;:::-;;25063:91;;;;;;:::i;:::-;;:::i;29189:306::-;;;;;;:::i;:::-;;:::i;14985:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;15086:18:0;15059:7;15086:18;;;;;;;;;;;;14985:127;27527:103;;;:::i;29501:222::-;;;;;;:::i;:::-;;:::i;26879:87::-;26952:6;;26879:87;;-1:-1:-1;;;;;26952:6:0;;;1621:51:1;;1609:2;1594:18;26879:87:0;1576:102:1;13913:104:0;;;:::i;18271:436::-;;;;;;:::i;:::-;;:::i;29729:105::-;;;;;;:::i;:::-;;:::i;15318:193::-;;;;;;:::i;:::-;;:::i;30057:85::-;28677:16;30057:85;;15574:151;;;;;;:::i;:::-;;:::i;27785:201::-;;;;;;:::i;:::-;;:::i;29840:109::-;;;;;;:::i;:::-;;:::i;13694:100::-;13748:13;13781:5;13774:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13694:100;:::o;16045:201::-;16128:4;11414:10;16184:32;11414:10;16200:7;16209:6;16184:8;:32::i;:::-;-1:-1:-1;16234:4:0;;16045:201;-1:-1:-1;;;16045:201:0:o;16826:295::-;16957:4;11414:10;17015:38;17031:4;11414:10;17046:6;17015:15;:38::i;:::-;17064:27;17074:4;17080:2;17084:6;17064:9;:27::i;:::-;-1:-1:-1;17109:4:0;;16826:295;-1:-1:-1;;;;16826:295:0:o;17530:238::-;17618:4;11414:10;17674:64;11414:10;17690:7;17727:10;17699:25;11414:10;17690:7;17699:9;:25::i;:::-;:38;;;;:::i;:::-;17674:8;:64::i;28797:386::-;28902:10;28890:23;;;;:11;:23;;;;;;;;28882:61;;;;-1:-1:-1;;;28882:61:0;;5067:2:1;28882:61:0;;;5049:21:1;5106:2;5086:18;;;5079:30;5145:27;5125:18;;;5118:55;5190:18;;28882:61:0;;;;;;;;;28975:17;28991:1;28677:16;28975:17;:::i;:::-;28966:6;28959;;:13;;;;:::i;:::-;28958:34;;28950:77;;;;-1:-1:-1;;;28950:77:0;;6184:2:1;28950:77:0;;;6166:21:1;6223:2;6203:18;;;6196:30;6262:33;6242:18;;;6235:61;6313:18;;28950:77:0;6156:181:1;28950:77:0;29049:12;;:24;;29066:6;29049:16;:24::i;:::-;29034:12;:39;29087:6;;:18;;29098:6;29087:10;:18::i;:::-;29080:6;:25;-1:-1:-1;;;;;29128:13:0;;;;;;:9;:13;;;;;;:25;;29146:6;29128:17;:25::i;:::-;-1:-1:-1;;;;;29112:13:0;;;;;;:9;:13;;;;;:41;29160:17;29122:2;29170:6;29160:5;:17::i;:::-;28797:386;;:::o;25063:91::-;25119:27;11414:10;25139:6;25119:5;:27::i;:::-;25063:91;:::o;29189:306::-;26765:13;:11;:13::i;:::-;28677:16:::1;29282:6;29275;;:13;;;;:::i;27527:103::-:0;26765:13;:11;:13::i;:::-;27592:30:::1;27619:1;27592:18;:30::i;:::-;27527:103::o:0;29501:222::-;29593:10;29581:23;;;;:11;:23;;;;;;;;29577:141;;;29619:22;29625:7;29634:6;29619:5;:22::i;29577:141::-;29677:31;29692:7;29701:6;29677:14;:31::i;13913:104::-;13969:13;14002:7;13995:14;;;;;:::i;18271:436::-;18364:4;11414:10;18364:4;18447:25;11414:10;18464:7;18447:9;:25::i;:::-;18420:52;;18511:15;18491:16;:35;;18483:85;;;;-1:-1:-1;;;18483:85:0;;7355:2:1;18483:85:0;;;7337:21:1;7394:2;7374:18;;;7367:30;7433:34;7413:18;;;7406:62;-1:-1:-1;;;7484:18:1;;;7477:35;7529:19;;18483:85:0;7327:227:1;18483:85:0;18604:60;18613:5;18620:7;18648:15;18629:16;:34;18604:8;:60::i;29729:105::-;26765:13;:11;:13::i;:::-;-1:-1:-1;;;;;29798:23:0::1;;::::0;;;:11:::1;:23;::::0;;;;:30;;-1:-1:-1;;29798:30:0::1;29824:4;29798:30;::::0;;29729:105::o;15318:193::-;15397:4;11414:10;15453:28;11414:10;15470:2;15474:6;15453:9;:28::i;15574:151::-;-1:-1:-1;;;;;15690:18:0;;;15663:7;15690:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15574:151::o;27785:201::-;26765:13;:11;:13::i;:::-;-1:-1:-1;;;;;27874:22:0;::::1;27866:73;;;::::0;-1:-1:-1;;;27866:73:0;;3492:2:1;27866:73:0::1;::::0;::::1;3474:21:1::0;3531:2;3511:18;;;3504:30;3570:34;3550:18;;;3543:62;-1:-1:-1;;;3621:18:1;;;3614:36;3667:19;;27866:73:0::1;3464:228:1::0;27866:73:0::1;27950:28;27969:8;27950:18;:28::i;29840:109::-:0;26765:13;:11;:13::i;:::-;-1:-1:-1;;;;;29912:23:0::1;29938:5;29912:23:::0;;;:11:::1;:23;::::0;;;;:31;;-1:-1:-1;;29912:31:0::1;::::0;;29840:109::o;21896:380::-;-1:-1:-1;;;;;22032:19:0;;22024:68;;;;-1:-1:-1;;;22024:68:0;;6950:2:1;22024:68:0;;;6932:21:1;6989:2;6969:18;;;6962:30;7028:34;7008:18;;;7001:62;-1:-1:-1;;;7079:18:1;;;7072:34;7123:19;;22024:68:0;6922:226:1;22024:68:0;-1:-1:-1;;;;;22111:21:0;;22103:68;;;;-1:-1:-1;;;22103:68:0;;3899:2:1;22103:68:0;;;3881:21:1;3938:2;3918:18;;;3911:30;3977:34;3957:18;;;3950:62;-1:-1:-1;;;4028:18:1;;;4021:32;4070:19;;22103:68:0;3871:224:1;22103:68:0;-1:-1:-1;;;;;22184:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;22236:32;;8065:25:1;;;22236:32:0;;8038:18:1;22236:32:0;;;;;;;;21896:380;;;:::o;22567:453::-;22702:24;22729:25;22739:5;22746:7;22729:9;:25::i;:::-;22702:52;;-1:-1:-1;;22769:16:0;:37;22765:248;;22851:6;22831:16;:26;;22823:68;;;;-1:-1:-1;;;22823:68:0;;4302:2:1;22823:68:0;;;4284:21:1;4341:2;4321:18;;;4314:30;4380:31;4360:18;;;4353:59;4429:18;;22823:68:0;4274:179:1;22823:68:0;22935:51;22944:5;22951:7;22979:6;22960:16;:25;22935:8;:51::i;:::-;22567:453;;;;:::o;19177:671::-;-1:-1:-1;;;;;19308:18:0;;19300:68;;;;-1:-1:-1;;;19300:68:0;;6544:2:1;19300:68:0;;;6526:21:1;6583:2;6563:18;;;6556:30;6622:34;6602:18;;;6595:62;-1:-1:-1;;;6673:18:1;;;6666:35;6718:19;;19300:68:0;6516:227:1;19300:68:0;-1:-1:-1;;;;;19387:16:0;;19379:64;;;;-1:-1:-1;;;19379:64:0;;2685:2:1;19379:64:0;;;2667:21:1;2724:2;2704:18;;;2697:30;2763:34;2743:18;;;2736:62;-1:-1:-1;;;2814:18:1;;;2807:33;2857:19;;19379:64:0;2657:225:1;19379:64:0;-1:-1:-1;;;;;19529:15:0;;19507:19;19529:15;;;;;;;;;;;19563:21;;;;19555:72;;;;-1:-1:-1;;;19555:72:0;;4660:2:1;19555:72:0;;;4642:21:1;4699:2;4679:18;;;4672:30;4738:34;4718:18;;;4711:62;-1:-1:-1;;;4789:18:1;;;4782:36;4835:19;;19555:72:0;4632:228:1;19555:72:0;-1:-1:-1;;;;;19663:15:0;;;:9;:15;;;;;;;;;;;19681:20;;;19663:38;;19723:13;;;;;;;;:23;;19695:6;;19663:9;19723:23;;19695:6;;19723:23;:::i;:::-;;;;;;;;19779:2;-1:-1:-1;;;;;19764:26:0;19773:4;-1:-1:-1;;;;;19764:26:0;;19783:6;19764:26;;;;8065:25:1;;8053:2;8038:18;;8020:76;19764:26:0;;;;;;;;19803:37;20867:591;6490:98;6548:7;6575:5;6579:1;6575;:5;:::i;:::-;6568:12;6490:98;-1:-1:-1;;;6490:98:0:o;20135:399::-;-1:-1:-1;;;;;20219:21:0;;20211:65;;;;-1:-1:-1;;;20211:65:0;;7761:2:1;20211:65:0;;;7743:21:1;7800:2;7780:18;;;7773:30;7839:33;7819:18;;;7812:61;7890:18;;20211:65:0;7733:181:1;20211:65:0;20367:6;20351:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;20384:18:0;;:9;:18;;;;;;;;;;:28;;20406:6;;20384:9;:28;;20406:6;;20384:28;:::i;:::-;;;;-1:-1:-1;;20428:37:0;;8065:25:1;;;-1:-1:-1;;;;;20428:37:0;;;20445:1;;20428:37;;8053:2:1;8038:18;20428:37:0;;;;;;;28797:386;;:::o;20867:591::-;-1:-1:-1;;;;;20951:21:0;;20943:67;;;;-1:-1:-1;;;20943:67:0;;5782:2:1;20943:67:0;;;5764:21:1;5821:2;5801:18;;;5794:30;5860:34;5840:18;;;5833:62;-1:-1:-1;;;5911:18:1;;;5904:31;5952:19;;20943:67:0;5754:223:1;20943:67:0;-1:-1:-1;;;;;21110:18:0;;21085:22;21110:18;;;;;;;;;;;21147:24;;;;21139:71;;;;-1:-1:-1;;;21139:71:0;;3089:2:1;21139:71:0;;;3071:21:1;3128:2;3108:18;;;3101:30;3167:34;3147:18;;;3140:62;-1:-1:-1;;;3218:18:1;;;3211:32;3260:19;;21139:71:0;3061:224:1;21139:71:0;-1:-1:-1;;;;;21246:18:0;;:9;:18;;;;;;;;;;21267:23;;;21246:44;;21312:12;:22;;21284:6;;21246:9;21312:22;;21284:6;;21312:22;:::i;:::-;;;;-1:-1:-1;;21352:37:0;;8065:25:1;;;21378:1:0;;-1:-1:-1;;;;;21352:37:0;;;;;8053:2:1;8038:18;21352:37:0;8020:76:1;27044:132:0;26952:6;;-1:-1:-1;;;;;26952:6:0;11414:10;27108:23;27100:68;;;;-1:-1:-1;;;27100:68:0;;5421:2:1;27100:68:0;;;5403:21:1;;;5440:18;;;5433:30;5499:34;5479:18;;;5472:62;5551:18;;27100:68:0;5393:182:1;28146:191:0;28239:6;;;-1:-1:-1;;;;;28256:17:0;;;-1:-1:-1;;;;;;28256:17:0;;;;;;;28289:40;;28239:6;;;28256:17;28239:6;;28289:40;;28220:16;;28289:40;28146:191;;:::o;25473:164::-;25550:46;25566:7;11414:10;25589:6;25550:15;:46::i;:::-;25607:22;25613:7;25622:6;25607:5;:22::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:270::-;461:6;469;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;745:6;753;761;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;1079:6;1087;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1280:190::-;1339:6;1392:2;1380:9;1371:7;1367:23;1363:32;1360:2;;;1413:6;1405;1398:22;1360:2;-1:-1:-1;1441:23:1;;1350:120;-1:-1:-1;1350:120:1:o;1875:603::-;1987:4;2016:2;2045;2034:9;2027:21;2077:6;2071:13;2120:6;2115:2;2104:9;2100:18;2093:34;2145:4;2158:140;2172:6;2169:1;2166:13;2158:140;;;2267:14;;;2263:23;;2257:30;2233:17;;;2252:2;2229:26;2222:66;2187:10;;2158:140;;;2316:6;2313:1;2310:13;2307:2;;;2386:4;2381:2;2372:6;2361:9;2357:22;2353:31;2346:45;2307:2;-1:-1:-1;2462:2:1;2441:15;-1:-1:-1;;2437:29:1;2422:45;;;;2469:2;2418:54;;1996:482;-1:-1:-1;;;1996:482:1:o;8290:128::-;8330:3;8361:1;8357:6;8354:1;8351:13;8348:2;;;8367:18;;:::i;:::-;-1:-1:-1;8403:9:1;;8338:80::o;8423:217::-;8463:1;8489;8479:2;;-1:-1:-1;;;8514:31:1;;8568:4;8565:1;8558:15;8596:4;8521:1;8586:15;8479:2;-1:-1:-1;8625:9:1;;8469:171::o;8645:125::-;8685:4;8713:1;8710;8707:8;8704:2;;;8718:18;;:::i;:::-;-1:-1:-1;8755:9:1;;8694:76::o;8775:380::-;8854:1;8850:12;;;;8897;;;8918:2;;8972:4;8964:6;8960:17;8950:27;;8918:2;9025;9017:6;9014:14;8994:18;8991:38;8988:2;;;9071:10;9066:3;9062:20;9059:1;9052:31;9106:4;9103:1;9096:15;9134:4;9131:1;9124:15;8988:2;;8830:325;;;:::o;9160:127::-;9221:10;9216:3;9212:20;9209:1;9202:31;9252:4;9249:1;9242:15;9276:4;9273:1;9266:15

Swarm Source

ipfs://a5df8c9392ff421f0c73c39eee740c711cd43fbe9577b23969b0b6c13ab85372
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.