Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Entertainment
Overview
Max Total Supply
1,000,000,000 MOGUL
Holders
145 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH (+21.47%)
Onchain Market Cap
$213,530.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,298,758.84 MOGULValue
$277.32 ( ~0.0907147072759224 Eth) [0.1299%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MOGUL
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./matic/BasicMetaTransaction.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; contract MOGUL is ERC20Burnable, ERC20Pausable, Ownable, BasicMetaTransaction { uint64 public constant LOCK_PERIOD = 30 days; uint8 public constant YEAR_DURATION = 12; uint8 public constant INFLATION_BASIS_POINT = 4; uint8 public constant DENOMINATOR = 100; InflationInfo public inflationInfo; mapping(address => bool) public whitelist; mapping(address => bool) public blacklist; struct InflationInfo { uint256 currentMintStartTime; uint256 remainingYearlyInflationAmt; uint256 mintedThisYear; } event WhitelistStatusChanged(address indexed user, bool newStatus); event BlacklistStatusChanged(address indexed user, bool newStatus); event YearUpdated( uint256 possibleToMintPerMonth, uint256 possibleToMintPerYear ); constructor( address _initialHolder, address _owner, uint256 _initialSupply ) ERC20("Mogul Productions Entertainment Token", "MOGUL") { require( _initialHolder != address(0) && _owner != address(0) && _initialSupply > 0, "MOGUL: 0x00" ); _mint(_initialHolder, _initialSupply); inflationInfo = InflationInfo( block.timestamp, (_initialSupply * INFLATION_BASIS_POINT) / DENOMINATOR, 0 ); _transferOwnership(_owner); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function changeWhitelistStatus( address whitelistAddress, bool isWhitelisted ) external onlyOwner { whitelist[whitelistAddress] = isWhitelisted; emit WhitelistStatusChanged(whitelistAddress, isWhitelisted); } function changeBlacklistStatus( address blacklistAddress, bool isBlacklisted ) external onlyOwner { blacklist[blacklistAddress] = isBlacklisted; emit BlacklistStatusChanged(blacklistAddress, isBlacklisted); } function updateYearPeriod() external onlyOwner { require( inflationInfo.currentMintStartTime + YEAR_DURATION * LOCK_PERIOD <= block.timestamp, "MOGUL: too early update" ); inflationInfo = InflationInfo( block.timestamp, (totalSupply() * INFLATION_BASIS_POINT) / DENOMINATOR, 0 ); emit YearUpdated( inflationInfo.remainingYearlyInflationAmt / 12, inflationInfo.remainingYearlyInflationAmt ); } function mint(address user, uint256 amount) external onlyOwner { uint256 availableToMint = (inflationInfo.remainingYearlyInflationAmt * _getAvailableParts()) / 12; require( availableToMint >= amount + inflationInfo.mintedThisYear, "MOGUL: too large amount" ); inflationInfo.mintedThisYear += amount; _mint(user, amount); } function _getAvailableParts() internal view returns (uint8) { if ( block.timestamp >= YEAR_DURATION * LOCK_PERIOD + inflationInfo.currentMintStartTime ) return 12; else return uint8( (block.timestamp - inflationInfo.currentMintStartTime) / LOCK_PERIOD ) + 1; } function _beforeTokenTransfer( address from, address to, uint256 ) internal view override(ERC20, ERC20Pausable) { require( !blacklist[from] && !blacklist[to] && (!paused() || whitelist[from]), "MOGUL: transfers forbidden" ); } function _msgSender() internal override view returns (address sender) { return msgSender(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _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; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _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; // Overflow not possible: amount <= accountBalance <= totalSupply. _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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract unpausable. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
//SPDX-License-Identifier: Unlicensed pragma solidity 0.8.19; contract BasicMetaTransaction { event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) private nonces; function getChainID() public view returns (uint256) { return block.chainid; } /** * Main function to be called when user wants to execute meta transaction. * The actual function to be called should be passed as param with name functionSignature * Here the basic signature recovery is being used. Signature is expected to be generated using * personal_sign method. * @param userAddress Address of user trying to do meta transaction * @param functionSignature Signature of the actual function to be called via meta transaction * @param sigR R part of the signature * @param sigS S part of the signature * @param sigV V part of the signature */ function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { require( verify( userAddress, nonces[userAddress], getChainID(), functionSignature, sigR, sigS, sigV ), "Signer and signature do not match" ); nonces[userAddress] = nonces[userAddress] + 1; // Append userAddress at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); return returnData; } function getNonce(address user) external view returns (uint256 nonce) { nonce = nonces[user]; } // Builds a prefixed hash to mimic the behavior of eth_sign. function prefixed(bytes32 hash) internal pure returns (bytes32) { return keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ); } function verify( address owner, uint256 nonce, uint256 chainID, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public view returns (bool) { bytes32 hash = prefixed( keccak256(abi.encodePacked(nonce, this, chainID, functionSignature)) ); address signer = ecrecover(hash, sigV, sigR, sigS); require(signer != address(0), "Invalid signature"); return (owner == signer); } function msgSender() internal view returns (address sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { return msg.sender; } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_initialHolder","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"BlacklistStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"WhitelistStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"possibleToMintPerMonth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"possibleToMintPerYear","type":"uint256"}],"name":"YearUpdated","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INFLATION_BASIS_POINT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_PERIOD","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YEAR_DURATION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"blacklistAddress","type":"address"},{"internalType":"bool","name":"isBlacklisted","type":"bool"}],"name":"changeBlacklistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"whitelistAddress","type":"address"},{"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"changeWhitelistStatus","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":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"inflationInfo","outputs":[{"internalType":"uint256","name":"currentMintStartTime","type":"uint256"},{"internalType":"uint256","name":"remainingYearlyInflationAmt","type":"uint256"},{"internalType":"uint256","name":"mintedThisYear","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateYearPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"chainID","type":"uint256"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200234c3803806200234c833981016040819052620000349162000401565b60405180606001604052806025815260200162002327602591396040805180820190915260058152641353d1d55360da1b60208201526003620000788382620004e6565b506004620000878282620004e6565b50506005805460ff1916905550620000a8620000a26200017f565b62000190565b6001600160a01b03831615801590620000c957506001600160a01b03821615155b8015620000d65750600081115b620001165760405162461bcd60e51b815260206004820152600b60248201526a04d4f47554c3a20307830360ac1b60448201526064015b60405180910390fd5b620001228382620001ea565b604080516060810190915242815260208101606462000143600485620005c8565b6200014f9190620005e8565b81526000602091820152815160075581015160085560400151600955620001768262000190565b50505062000621565b60006200018b620002bb565b905090565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002425760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200010d565b62000250600083836200031b565b80600260008282546200026491906200060b565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60003033036200031357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620003189050565b503390565b90565b6001600160a01b0383166000908152600b602052604090205460ff161580156200035e57506001600160a01b0382166000908152600b602052604090205460ff16155b801562000391575060055460ff1615806200039157506001600160a01b0383166000908152600a602052604090205460ff165b620003df5760405162461bcd60e51b815260206004820152601a60248201527f4d4f47554c3a207472616e736665727320666f7262696464656e00000000000060448201526064016200010d565b505050565b80516001600160a01b0381168114620003fc57600080fd5b919050565b6000806000606084860312156200041757600080fd5b6200042284620003e4565b92506200043260208501620003e4565b9150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046d57607f821691505b6020821081036200048e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003df57600081815260208120601f850160051c81016020861015620004bd5750805b601f850160051c820191505b81811015620004de57828155600101620004c9565b505050505050565b81516001600160401b0381111562000502576200050262000442565b6200051a8162000513845462000458565b8462000494565b602080601f831160018114620005525760008415620005395750858301515b600019600386901b1c1916600185901b178555620004de565b600085815260208120601f198616915b82811015620005835788860151825594840194600190910190840162000562565b5085821015620005a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620005e257620005e2620005b2565b92915050565b6000826200060657634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115620005e257620005e2620005b2565b611cf680620006316000396000f3fe6080604052600436106101f95760003560e01c806370a082311161010d578063a457c2d7116100a0578063d8945dc31161006f578063d8945dc3146105c2578063dd62ed3e146105e2578063f2fde38b14610602578063f330fb6914610622578063f9f92be41461064257600080fd5b8063a457c2d714610533578063a9059cbb14610553578063d050558614610573578063d06ad5121461058857600080fd5b80638da5cb5b116100dc5780638da5cb5b146104a3578063918f8674146104d957806395d89b41146104ee5780639b19251a1461050357600080fd5b806370a0823114610423578063715018a61461045957806379cc67901461046e5780638456cb591461048e57600080fd5b8063313ce5671161019057806342966c681161015f57806342966c68146103a35780634b87095c146103c3578063564b81ef146103d85780635c975abb146103eb5780636281133d1461040357600080fd5b8063313ce56714610338578063395093511461034c5780633f4ba83a1461036c57806340c10f191461038357600080fd5b806318160ddd116101cc57806318160ddd146102935780631820cabb146102b257806323b872dd146102e25780632d0335ab1461030257600080fd5b806306fdde03146101fe578063095ea7b3146102295780630c53c51c146102595780630dc0ba721461026c575b600080fd5b34801561020a57600080fd5b50610213610672565b6040516102209190611814565b60405180910390f35b34801561023557600080fd5b5061024961024436600461184a565b610704565b6040519015158152602001610220565b610213610267366004611928565b610728565b34801561027857600080fd5b50610281600c81565b60405160ff9091168152602001610220565b34801561029f57600080fd5b506002545b604051908152602001610220565b3480156102be57600080fd5b506102c962278d0081565b60405167ffffffffffffffff9091168152602001610220565b3480156102ee57600080fd5b506102496102fd36600461199a565b6108fc565b34801561030e57600080fd5b506102a461031d3660046119d6565b6001600160a01b031660009081526006602052604090205490565b34801561034457600080fd5b506012610281565b34801561035857600080fd5b5061024961036736600461184a565b61092a565b34801561037857600080fd5b50610381610956565b005b34801561038f57600080fd5b5061038161039e36600461184a565b610968565b3480156103af57600080fd5b506103816103be3660046119f1565b610a1f565b3480156103cf57600080fd5b50610381610a33565b3480156103e457600080fd5b50466102a4565b3480156103f757600080fd5b5060055460ff16610249565b34801561040f57600080fd5b5061024961041e366004611a0a565b610b4e565b34801561042f57600080fd5b506102a461043e3660046119d6565b6001600160a01b031660009081526020819052604090205490565b34801561046557600080fd5b50610381610c96565b34801561047a57600080fd5b5061038161048936600461184a565b610ca8565b34801561049a57600080fd5b50610381610cc8565b3480156104af57600080fd5b5060055461010090046001600160a01b03166040516001600160a01b039091168152602001610220565b3480156104e557600080fd5b50610281606481565b3480156104fa57600080fd5b50610213610cd8565b34801561050f57600080fd5b5061024961051e3660046119d6565b600a6020526000908152604090205460ff1681565b34801561053f57600080fd5b5061024961054e36600461184a565b610ce7565b34801561055f57600080fd5b5061024961056e36600461184a565b610d6d565b34801561057f57600080fd5b50610281600481565b34801561059457600080fd5b506007546008546009546105a792919083565b60408051938452602084019290925290820152606001610220565b3480156105ce57600080fd5b506103816105dd366004611a8f565b610d85565b3480156105ee57600080fd5b506102a46105fd366004611acb565b610ded565b34801561060e57600080fd5b5061038161061d3660046119d6565b610e18565b34801561062e57600080fd5b5061038161063d366004611a8f565b610e8e565b34801561064e57600080fd5b5061024961065d3660046119d6565b600b6020526000908152604090205460ff1681565b60606003805461068190611afe565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad90611afe565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b5050505050905090565b60008061070f610eee565b905061071c818585610efd565b60019150505b92915050565b6001600160a01b0385166000908152600660205260409020546060906107549087904688888888610b4e565b6107af5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6001600160a01b0386166000908152600660205260409020546107d3906001611b4e565b6001600160a01b0387166000908152600660209081526040808320939093559151909182913091610808918a918c9101611b61565b60408051601f198184030181529082905261082291611b98565b6000604051808303816000865af19150503d806000811461085f576040519150601f19603f3d011682016040523d82523d6000602084013e610864565b606091505b5091509150816108b65760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016107a6565b7f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b8833896040516108e993929190611bb4565b60405180910390a1979650505050505050565b600080610907610eee565b9050610914858285611021565b61091f85858561109b565b506001949350505050565b600080610935610eee565b905061071c8185856109478589610ded565b6109519190611b4e565b610efd565b61095e61124a565b6109666112c9565b565b61097061124a565b6000600c61097c61131c565b60085461098c9160ff1690611be9565b6109969190611c00565b6009549091506109a69083611b4e565b8110156109f55760405162461bcd60e51b815260206004820152601760248201527f4d4f47554c3a20746f6f206c6172676520616d6f756e7400000000000000000060448201526064016107a6565b8160076002016000828254610a0a9190611b4e565b90915550610a1a9050838361137a565b505050565b610a30610a2a610eee565b82611445565b50565b610a3b61124a565b42610a4a62278d00600c611c22565b600754610a619167ffffffffffffffff1690611b4e565b1115610aaf5760405162461bcd60e51b815260206004820152601760248201527f4d4f47554c3a20746f6f206561726c792075706461746500000000000000000060448201526064016107a6565b60408051606081019091524281526020810160646004610ace60025490565b610ad89190611be9565b610ae29190611c00565b81526000602091820152815160075581015160088190556040909101516009557f6b63a15ea78fe329c3076b41772eaff958a406b5d850d872529381a4ddc4086d90610b3090600c90611c00565b600854604080519283526020830191909152015b60405180910390a1565b600080610bcb88308989604051602001610b6b9493929190611c4e565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6040805160008082526020820180845284905260ff87169282019290925260608101889052608081018790529192509060019060a0016020604051602081039080840390855afa158015610c23573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c7a5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107a6565b6001600160a01b038a8116911614915050979650505050505050565b610c9e61124a565b6109666000611583565b610cba82610cb4610eee565b83611021565b610cc48282611445565b5050565b610cd061124a565b6109666115dd565b60606004805461068190611afe565b600080610cf2610eee565b90506000610d008286610ded565b905083811015610d605760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107a6565b61091f8286868403610efd565b600080610d78610eee565b905061071c81858561109b565b610d8d61124a565b6001600160a01b0382166000818152600b6020908152604091829020805460ff191685151590811790915591519182527fbece2c59ff19aac27479189f9483d2ef16545a8b28e6153240d00d393a6496f891015b60405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610e2061124a565b6001600160a01b038116610e855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a6565b610a3081611583565b610e9661124a565b6001600160a01b0382166000818152600a6020908152604091829020805460ff191685151590811790915591519182527f8daaf060c3306c38e068a75c054bf96ecd85a3db1252712c4d93632744c42e0d9101610de1565b6000610ef861161b565b905090565b6001600160a01b038316610f5f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107a6565b6001600160a01b038216610fc05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061102d8484610ded565b9050600019811461109557818110156110885760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107a6565b6110958484848403610efd565b50505050565b6001600160a01b0383166110ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107a6565b6001600160a01b0382166111615760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107a6565b61116c838383611676565b6001600160a01b038316600090815260208190526040902054818110156111e45760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107a6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611095565b611252610eee565b6001600160a01b03166112736005546001600160a01b036101009091041690565b6001600160a01b0316146109665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a6565b6112d1611735565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611304610eee565b6040516001600160a01b039091168152602001610b44565b60075460009061133062278d00600c611c22565b67ffffffffffffffff166113449190611b4e565b42106113505750600c90565b60075462278d00906113629042611c94565b61136c9190611c00565b610ef8906001611ca7565b90565b6001600160a01b0382166113d05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107a6565b6113dc60008383611676565b80600260008282546113ee9190611b4e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107a6565b6114b182600083611676565b6001600160a01b038216600090815260208190526040902054818110156115255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107a6565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115e561177e565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611304610eee565b600030330361167157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506113779050565b503390565b6001600160a01b0383166000908152600b602052604090205460ff161580156116b857506001600160a01b0382166000908152600b602052604090205460ff16155b80156116e9575060055460ff1615806116e957506001600160a01b0383166000908152600a602052604090205460ff165b610a1a5760405162461bcd60e51b815260206004820152601a60248201527f4d4f47554c3a207472616e736665727320666f7262696464656e00000000000060448201526064016107a6565b60055460ff166109665760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107a6565b60055460ff16156109665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107a6565b60005b838110156117df5781810151838201526020016117c7565b50506000910152565b600081518084526118008160208601602086016117c4565b601f01601f19169290920160200192915050565b60208152600061182760208301846117e8565b9392505050565b80356001600160a01b038116811461184557600080fd5b919050565b6000806040838503121561185d57600080fd5b6118668361182e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261189b57600080fd5b813567ffffffffffffffff808211156118b6576118b6611874565b604051601f8301601f19908116603f011681019082821181831017156118de576118de611874565b816040528381528660208588010111156118f757600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff8116811461184557600080fd5b600080600080600060a0868803121561194057600080fd5b6119498661182e565b9450602086013567ffffffffffffffff81111561196557600080fd5b6119718882890161188a565b945050604086013592506060860135915061198e60808701611917565b90509295509295909350565b6000806000606084860312156119af57600080fd5b6119b88461182e565b92506119c66020850161182e565b9150604084013590509250925092565b6000602082840312156119e857600080fd5b6118278261182e565b600060208284031215611a0357600080fd5b5035919050565b600080600080600080600060e0888a031215611a2557600080fd5b611a2e8861182e565b96506020880135955060408801359450606088013567ffffffffffffffff811115611a5857600080fd5b611a648a828b0161188a565b9450506080880135925060a08801359150611a8160c08901611917565b905092959891949750929550565b60008060408385031215611aa257600080fd5b611aab8361182e565b915060208301358015158114611ac057600080fd5b809150509250929050565b60008060408385031215611ade57600080fd5b611ae78361182e565b9150611af56020840161182e565b90509250929050565b600181811c90821680611b1257607f821691505b602082108103611b3257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561072257610722611b38565b60008351611b738184602088016117c4565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251611baa8184602087016117c4565b9190910192915050565b6001600160a01b03848116825283166020820152606060408201819052600090611be0908301846117e8565b95945050505050565b808202811582820484141761072257610722611b38565b600082611c1d57634e487b7160e01b600052601260045260246000fd5b500490565b67ffffffffffffffff818116838216028082169190828114611c4657611c46611b38565b505092915050565b8481526bffffffffffffffffffffffff198460601b16602082015282603482015260008251611c848160548501602087016117c4565b9190910160540195945050505050565b8181038181111561072257610722611b38565b60ff818116838216019081111561072257610722611b3856fea2646970667358221220c91a8530fd2805277aff6eb393ce5a7d09e50cbb2bf352c535ddc3e957f36c9f64736f6c634300081300334d6f67756c2050726f64756374696f6e7320456e7465727461696e6d656e7420546f6b656e000000000000000000000000365bc1720eb0a31629629ac41881080792f8da27000000000000000000000000365bc1720eb0a31629629ac41881080792f8da270000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806370a082311161010d578063a457c2d7116100a0578063d8945dc31161006f578063d8945dc3146105c2578063dd62ed3e146105e2578063f2fde38b14610602578063f330fb6914610622578063f9f92be41461064257600080fd5b8063a457c2d714610533578063a9059cbb14610553578063d050558614610573578063d06ad5121461058857600080fd5b80638da5cb5b116100dc5780638da5cb5b146104a3578063918f8674146104d957806395d89b41146104ee5780639b19251a1461050357600080fd5b806370a0823114610423578063715018a61461045957806379cc67901461046e5780638456cb591461048e57600080fd5b8063313ce5671161019057806342966c681161015f57806342966c68146103a35780634b87095c146103c3578063564b81ef146103d85780635c975abb146103eb5780636281133d1461040357600080fd5b8063313ce56714610338578063395093511461034c5780633f4ba83a1461036c57806340c10f191461038357600080fd5b806318160ddd116101cc57806318160ddd146102935780631820cabb146102b257806323b872dd146102e25780632d0335ab1461030257600080fd5b806306fdde03146101fe578063095ea7b3146102295780630c53c51c146102595780630dc0ba721461026c575b600080fd5b34801561020a57600080fd5b50610213610672565b6040516102209190611814565b60405180910390f35b34801561023557600080fd5b5061024961024436600461184a565b610704565b6040519015158152602001610220565b610213610267366004611928565b610728565b34801561027857600080fd5b50610281600c81565b60405160ff9091168152602001610220565b34801561029f57600080fd5b506002545b604051908152602001610220565b3480156102be57600080fd5b506102c962278d0081565b60405167ffffffffffffffff9091168152602001610220565b3480156102ee57600080fd5b506102496102fd36600461199a565b6108fc565b34801561030e57600080fd5b506102a461031d3660046119d6565b6001600160a01b031660009081526006602052604090205490565b34801561034457600080fd5b506012610281565b34801561035857600080fd5b5061024961036736600461184a565b61092a565b34801561037857600080fd5b50610381610956565b005b34801561038f57600080fd5b5061038161039e36600461184a565b610968565b3480156103af57600080fd5b506103816103be3660046119f1565b610a1f565b3480156103cf57600080fd5b50610381610a33565b3480156103e457600080fd5b50466102a4565b3480156103f757600080fd5b5060055460ff16610249565b34801561040f57600080fd5b5061024961041e366004611a0a565b610b4e565b34801561042f57600080fd5b506102a461043e3660046119d6565b6001600160a01b031660009081526020819052604090205490565b34801561046557600080fd5b50610381610c96565b34801561047a57600080fd5b5061038161048936600461184a565b610ca8565b34801561049a57600080fd5b50610381610cc8565b3480156104af57600080fd5b5060055461010090046001600160a01b03166040516001600160a01b039091168152602001610220565b3480156104e557600080fd5b50610281606481565b3480156104fa57600080fd5b50610213610cd8565b34801561050f57600080fd5b5061024961051e3660046119d6565b600a6020526000908152604090205460ff1681565b34801561053f57600080fd5b5061024961054e36600461184a565b610ce7565b34801561055f57600080fd5b5061024961056e36600461184a565b610d6d565b34801561057f57600080fd5b50610281600481565b34801561059457600080fd5b506007546008546009546105a792919083565b60408051938452602084019290925290820152606001610220565b3480156105ce57600080fd5b506103816105dd366004611a8f565b610d85565b3480156105ee57600080fd5b506102a46105fd366004611acb565b610ded565b34801561060e57600080fd5b5061038161061d3660046119d6565b610e18565b34801561062e57600080fd5b5061038161063d366004611a8f565b610e8e565b34801561064e57600080fd5b5061024961065d3660046119d6565b600b6020526000908152604090205460ff1681565b60606003805461068190611afe565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad90611afe565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b5050505050905090565b60008061070f610eee565b905061071c818585610efd565b60019150505b92915050565b6001600160a01b0385166000908152600660205260409020546060906107549087904688888888610b4e565b6107af5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b6001600160a01b0386166000908152600660205260409020546107d3906001611b4e565b6001600160a01b0387166000908152600660209081526040808320939093559151909182913091610808918a918c9101611b61565b60408051601f198184030181529082905261082291611b98565b6000604051808303816000865af19150503d806000811461085f576040519150601f19603f3d011682016040523d82523d6000602084013e610864565b606091505b5091509150816108b65760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016107a6565b7f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b8833896040516108e993929190611bb4565b60405180910390a1979650505050505050565b600080610907610eee565b9050610914858285611021565b61091f85858561109b565b506001949350505050565b600080610935610eee565b905061071c8185856109478589610ded565b6109519190611b4e565b610efd565b61095e61124a565b6109666112c9565b565b61097061124a565b6000600c61097c61131c565b60085461098c9160ff1690611be9565b6109969190611c00565b6009549091506109a69083611b4e565b8110156109f55760405162461bcd60e51b815260206004820152601760248201527f4d4f47554c3a20746f6f206c6172676520616d6f756e7400000000000000000060448201526064016107a6565b8160076002016000828254610a0a9190611b4e565b90915550610a1a9050838361137a565b505050565b610a30610a2a610eee565b82611445565b50565b610a3b61124a565b42610a4a62278d00600c611c22565b600754610a619167ffffffffffffffff1690611b4e565b1115610aaf5760405162461bcd60e51b815260206004820152601760248201527f4d4f47554c3a20746f6f206561726c792075706461746500000000000000000060448201526064016107a6565b60408051606081019091524281526020810160646004610ace60025490565b610ad89190611be9565b610ae29190611c00565b81526000602091820152815160075581015160088190556040909101516009557f6b63a15ea78fe329c3076b41772eaff958a406b5d850d872529381a4ddc4086d90610b3090600c90611c00565b600854604080519283526020830191909152015b60405180910390a1565b600080610bcb88308989604051602001610b6b9493929190611c4e565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6040805160008082526020820180845284905260ff87169282019290925260608101889052608081018790529192509060019060a0016020604051602081039080840390855afa158015610c23573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c7a5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107a6565b6001600160a01b038a8116911614915050979650505050505050565b610c9e61124a565b6109666000611583565b610cba82610cb4610eee565b83611021565b610cc48282611445565b5050565b610cd061124a565b6109666115dd565b60606004805461068190611afe565b600080610cf2610eee565b90506000610d008286610ded565b905083811015610d605760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107a6565b61091f8286868403610efd565b600080610d78610eee565b905061071c81858561109b565b610d8d61124a565b6001600160a01b0382166000818152600b6020908152604091829020805460ff191685151590811790915591519182527fbece2c59ff19aac27479189f9483d2ef16545a8b28e6153240d00d393a6496f891015b60405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610e2061124a565b6001600160a01b038116610e855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107a6565b610a3081611583565b610e9661124a565b6001600160a01b0382166000818152600a6020908152604091829020805460ff191685151590811790915591519182527f8daaf060c3306c38e068a75c054bf96ecd85a3db1252712c4d93632744c42e0d9101610de1565b6000610ef861161b565b905090565b6001600160a01b038316610f5f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107a6565b6001600160a01b038216610fc05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061102d8484610ded565b9050600019811461109557818110156110885760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107a6565b6110958484848403610efd565b50505050565b6001600160a01b0383166110ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107a6565b6001600160a01b0382166111615760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107a6565b61116c838383611676565b6001600160a01b038316600090815260208190526040902054818110156111e45760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107a6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611095565b611252610eee565b6001600160a01b03166112736005546001600160a01b036101009091041690565b6001600160a01b0316146109665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a6565b6112d1611735565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611304610eee565b6040516001600160a01b039091168152602001610b44565b60075460009061133062278d00600c611c22565b67ffffffffffffffff166113449190611b4e565b42106113505750600c90565b60075462278d00906113629042611c94565b61136c9190611c00565b610ef8906001611ca7565b90565b6001600160a01b0382166113d05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107a6565b6113dc60008383611676565b80600260008282546113ee9190611b4e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016107a6565b6114b182600083611676565b6001600160a01b038216600090815260208190526040902054818110156115255760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016107a6565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115e561177e565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611304610eee565b600030330361167157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506113779050565b503390565b6001600160a01b0383166000908152600b602052604090205460ff161580156116b857506001600160a01b0382166000908152600b602052604090205460ff16155b80156116e9575060055460ff1615806116e957506001600160a01b0383166000908152600a602052604090205460ff165b610a1a5760405162461bcd60e51b815260206004820152601a60248201527f4d4f47554c3a207472616e736665727320666f7262696464656e00000000000060448201526064016107a6565b60055460ff166109665760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107a6565b60055460ff16156109665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107a6565b60005b838110156117df5781810151838201526020016117c7565b50506000910152565b600081518084526118008160208601602086016117c4565b601f01601f19169290920160200192915050565b60208152600061182760208301846117e8565b9392505050565b80356001600160a01b038116811461184557600080fd5b919050565b6000806040838503121561185d57600080fd5b6118668361182e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261189b57600080fd5b813567ffffffffffffffff808211156118b6576118b6611874565b604051601f8301601f19908116603f011681019082821181831017156118de576118de611874565b816040528381528660208588010111156118f757600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff8116811461184557600080fd5b600080600080600060a0868803121561194057600080fd5b6119498661182e565b9450602086013567ffffffffffffffff81111561196557600080fd5b6119718882890161188a565b945050604086013592506060860135915061198e60808701611917565b90509295509295909350565b6000806000606084860312156119af57600080fd5b6119b88461182e565b92506119c66020850161182e565b9150604084013590509250925092565b6000602082840312156119e857600080fd5b6118278261182e565b600060208284031215611a0357600080fd5b5035919050565b600080600080600080600060e0888a031215611a2557600080fd5b611a2e8861182e565b96506020880135955060408801359450606088013567ffffffffffffffff811115611a5857600080fd5b611a648a828b0161188a565b9450506080880135925060a08801359150611a8160c08901611917565b905092959891949750929550565b60008060408385031215611aa257600080fd5b611aab8361182e565b915060208301358015158114611ac057600080fd5b809150509250929050565b60008060408385031215611ade57600080fd5b611ae78361182e565b9150611af56020840161182e565b90509250929050565b600181811c90821680611b1257607f821691505b602082108103611b3257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561072257610722611b38565b60008351611b738184602088016117c4565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251611baa8184602087016117c4565b9190910192915050565b6001600160a01b03848116825283166020820152606060408201819052600090611be0908301846117e8565b95945050505050565b808202811582820484141761072257610722611b38565b600082611c1d57634e487b7160e01b600052601260045260246000fd5b500490565b67ffffffffffffffff818116838216028082169190828114611c4657611c46611b38565b505092915050565b8481526bffffffffffffffffffffffff198460601b16602082015282603482015260008251611c848160548501602087016117c4565b9190910160540195945050505050565b8181038181111561072257610722611b38565b60ff818116838216019081111561072257610722611b3856fea2646970667358221220c91a8530fd2805277aff6eb393ce5a7d09e50cbb2bf352c535ddc3e957f36c9f64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000365bc1720eb0a31629629ac41881080792f8da27000000000000000000000000365bc1720eb0a31629629ac41881080792f8da270000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
-----Decoded View---------------
Arg [0] : _initialHolder (address): 0x365Bc1720Eb0A31629629aC41881080792f8DA27
Arg [1] : _owner (address): 0x365Bc1720Eb0A31629629aC41881080792f8DA27
Arg [2] : _initialSupply (uint256): 1000000000000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000365bc1720eb0a31629629ac41881080792f8da27
Arg [1] : 000000000000000000000000365bc1720eb0a31629629ac41881080792f8da27
Arg [2] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
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.