Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
54,209,987.32 ePhiat
Holders
1,608
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,000 ePhiatValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PhiatToken
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; import "../../dependencies/openzeppelin/contracts/SafeMath.sol"; import "../../dependencies/openzeppelin/contracts/Ownable.sol"; import "../../dependencies/openzeppelin/contracts/ERC20Capped.sol"; import "../../dependencies/governance/TreasuryOwnable.sol"; contract PhiatToken is Ownable, ERC20Capped, TreasuryOwnable { using SafeMath for uint256; uint256 public immutable mintLockTime; // no more mint amount change // can mint between start time and expiration time uint256 public immutable mintStartTime; uint256 public immutable mintExpirationTime; mapping(address => uint256) private _mints; event Mint( address indexed minter, address indexed onBehalfOf, uint256 amount ); constructor( string memory symbol, string memory name, uint256 mintLockTime_, uint256 mintStartTime_, uint256 mintExpirationTime_, address treasury_ ) Ownable() TreasuryOwnable(treasury_) ERC20(name, symbol) ERC20Capped(55555000000000000000000000) { require( mintLockTime_ < mintStartTime_, "PHIAT: Mint should not start before mint amounts are locked" ); require( mintStartTime_ < mintExpirationTime_, "PHIAT: Mint Should not expire before it starts" ); mintLockTime = mintLockTime_; mintStartTime = mintStartTime_; mintExpirationTime = mintExpirationTime_; uint256 maxSupply = 55555000000000000000000000; _mints[treasury_] = maxSupply; } function _transfer( address sender, address recipient, uint256 amount ) internal override { require( block.timestamp >= mintStartTime, "PHIAT: Cannot transfer before mint starts" ); super._transfer(sender, recipient, amount); } function transferTreasury( address newTreasury ) external override onlyTreasury { require( newTreasury != address(0), "TreasuryOwnable: new treasury is the zero address" ); // transfer mintable amount uint256 mintAmount = _mints[treasury()]; if (mintAmount > 0) { delete _mints[treasury()]; _mints[newTreasury] = _mints[newTreasury].add(mintAmount); } _transferTreasury(newTreasury); } function mintOf(address account) external view returns (uint256) { return _mints[account]; } function mint() external { require( block.timestamp >= mintStartTime, "PHIAT: Cannot mint before mint started" ); require( block.timestamp < mintExpirationTime, "PHIAT: Cannot mint after mint expired" ); address sender = _msgSender(); uint256 mintAmount = _mints[sender]; require(mintAmount > 0, "PHIAT: nothing to mint"); delete _mints[sender]; _mint(sender, mintAmount); emit Mint(sender, sender, mintAmount); } function mintByTreasury(address account) external onlyTreasury { require( block.timestamp >= mintExpirationTime, "PHIAT: No expired token for treasury to mint before mint expired" ); uint256 mintAmount = _mints[account]; require(mintAmount > 0, "PHIAT: nothing to mint"); delete _mints[account]; _mint(treasury(), mintAmount); emit Mint(treasury(), account, mintAmount); } function setMint(address account, uint256 amount) external onlyOwner { require( block.timestamp < mintLockTime, "PHIAT: Cannot set mint amount after mint locked" ); require( account != treasury(), "PHIAT: Should not adjust mint amount for treasury" ); uint256 currentAmount = _mints[account]; // adjust treasury's mintable amount _mints[treasury()] = _mints[treasury()].add(currentAmount).sub( amount, "PHIAT: amount exceeds maximum allowance" ); // record new amount if (amount == 0) { delete _mints[account]; } else { _mints[account] = amount; } } function setMints( address[] memory accounts, uint256[] memory amounts ) external onlyOwner { require( block.timestamp < mintLockTime, "PHIAT: Cannot set mint amount after mint locked" ); require(accounts.length == amounts.length, "PHIAT: input mismatch"); uint256 treasuryAmount = _mints[treasury()]; for (uint256 i = 0; i < accounts.length; i++) { address account = accounts[i]; uint256 amount = amounts[i]; require( account != treasury(), "PHIAT: Should not adjust mint amount for treasury" ); uint256 currentAmount = _mints[account]; // adjust treasury's mintable amount treasuryAmount = treasuryAmount.add(currentAmount).sub( amount, "PHIAT: amount exceeds maximum allowance" ); // record new amount if (amount == 0) { delete _mints[account]; } else { _mints[account] = amount; } } // record new treasury amount _mints[treasury()] = treasuryAmount; } function addMint(address account, uint256 amount) external onlyOwner { require( block.timestamp < mintLockTime, "PHIAT: Cannot add mint amount after mint locked" ); require(amount > 0, "PHIAT: Meaningless to add zero amount"); require( account != treasury(), "PHIAT: Should not adjust mint amount for treasury" ); // adjust treasury's mintable amount _mints[treasury()] = _mints[treasury()].sub( amount, "PHIAT: amount exceeds maximum allowance" ); // record new amount _mints[account] = _mints[account].add(amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./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() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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" ); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20Capped.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is IERC20Capped, ERC20 { using SafeMath for uint256; uint256 private _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) internal { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual override returns (uint256) { return _cap; } /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - minted tokens must not cause the total supply to go over the cap. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // When minting tokens require( totalSupply().add(amount) <= cap(), "ERC20Capped: cap exceeded" ); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../openzeppelin/contracts/Context.sol"; abstract contract TreasuryOwnable is Context { address private _treasury; event TreasuryTransferred( address indexed previousTreasury, address indexed newTreasury ); /** * @dev Initializes the contract setting the given account (`treasury_`) as the initial treasury. */ constructor(address treasury_) { _treasury = treasury_; emit TreasuryTransferred(address(0), treasury_); } /** * @dev Returns the address of the current treasury. */ function treasury() public view virtual returns (address) { return _treasury; } /** * @dev Throws if called by any account other than the treasury. */ modifier onlyTreasury() { require( treasury() == _msgSender(), "TreasuryOwnable: caller is not the treasury" ); _; } /** * @dev Transfers treasury of the contract to a new account (`newTreasury`). * Can only be called by the current treasury. */ function transferTreasury(address newTreasury) external virtual onlyTreasury { require( newTreasury != address(0), "TreasuryOwnable: new treasury is the zero address" ); _transferTreasury(newTreasury); } function _transferTreasury(address newTreasury) internal virtual { emit TreasuryTransferred(_treasury, newTreasury); _treasury = newTreasury; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20Metadata.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ interface IERC20Capped is IERC20Metadata { /** * @dev Returns the cap on the token's total supply. */ function cap() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./Context.sol"; import "./IERC20Metadata.sol"; import "./SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @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 {_setupDecimals} is * called. * * 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 _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { uint256 currentAllowance = allowance(sender, _msgSender()); if (currentAllowance != type(uint256).max) { uint256 decreasedAllowance = currentAllowance.sub( amount, "ERC20: transfer amount exceeds allowance" ); _approve(sender, _msgSender(), decreasedAllowance); } _transfer(sender, recipient, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "ERC20: decreased allowance below zero" ) ); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub( amount, "ERC20: transfer amount exceeds balance" ); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub( amount, "ERC20: burn amount exceeds balance" ); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity 0.7.6; 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 pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"mintLockTime_","type":"uint256"},{"internalType":"uint256","name":"mintStartTime_","type":"uint256"},{"internalType":"uint256","name":"mintExpirationTime_","type":"uint256"},{"internalType":"address","name":"treasury_","type":"address"}],"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":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"onBehalfOf","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousTreasury","type":"address"},{"indexed":true,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addMint","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":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"mintByTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintExpirationTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"mintOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"transferTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040516200243838038062002438833981810160405260c08110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604090815260208201519082015160608301516080909301519194509250806a2df43a95a9c3073be0000086886000620001d2620003b4565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350815162000231906004906020850190620003b8565b50805162000247906005906020840190620003b8565b50506006805460ff191660121790555080620002aa576040805162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015290519081900360640190fd5b600755600880546001600160a01b0319166001600160a01b0383169081179091556040516000907febebcc22237fa047dcfebf54b185ec126c9b24d45f4bd2a18e4fa02e07308c40908290a350828410620003375760405162461bcd60e51b815260040180806020018281038252603b815260200180620023cf603b913960400191505060405180910390fd5b818310620003775760405162461bcd60e51b815260040180806020018281038252602e8152602001806200240a602e913960400191505060405180910390fd5b60809390935260a09190915260c0526001600160a01b031660009081526009602052604090206a2df43a95a9c3073be00000905550620004649050565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003f057600085556200043b565b82601f106200040b57805160ff19168380011785556200043b565b828001600101855582156200043b579182015b828111156200043b5782518255916020019190600101906200041e565b50620004499291506200044d565b5090565b5b808211156200044957600081556001016200044e565b60805160a05160c051611f1b620004b46000398061072752806109375280610e825250806106c85280610ce452806118ab5250806109cc5280610d085280611027528061149b5250611f1b6000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063b1f536fa11610097578063d8a6021c11610071578063d8a6021c1461056d578063dd62ed3e14610593578063f2fde38b146105c1578063fd4d43c5146105e75761018e565b8063b1f536fa146104f5578063b280d9991461051b578063c2f1dcc8146105415761018e565b80638da5cb5b1461047d578063931e2e491461048557806393fea3f81461048d57806395d89b4114610495578063a457c2d71461049d578063a9059cbb146104c95761018e565b8063355274ea1161014b57806361d027b31161012557806361d027b3146103045780636f95f94e1461032857806370a082311461044f578063715018a6146104755761018e565b8063355274ea146102c857806339509351146102d05780635813fd3d146102fc5761018e565b806306fdde0314610193578063095ea7b3146102105780631249c58b1461025057806318160ddd1461025a57806323b872dd14610274578063313ce567146102aa575b600080fd5b61019b610613565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b0381351690602001356106a9565b604080519115158252519081900360200190f35b6102586106c6565b005b61026261085b565b60408051918252519081900360200190f35b61023c6004803603606081101561028a57600080fd5b506001600160a01b03813581169160208101359091169060400135610861565b6102b26108d3565b6040805160ff9092168252519081900360200190f35b6102626108dc565b61023c600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356108e2565b610262610935565b61030c610959565b604080516001600160a01b039092168252519081900360200190f35b6102586004803603604081101561033e57600080fd5b81019060208101813564010000000081111561035957600080fd5b82018360208201111561036b57600080fd5b8035906020019184602083028401116401000000008311171561038d57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156103dd57600080fd5b8201836020820111156103ef57600080fd5b8035906020019184602083028401116401000000008311171561041157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610968945050505050565b6102626004803603602081101561046557600080fd5b50356001600160a01b0316610c0c565b610258610c27565b61030c610cd3565b610262610ce2565b610262610d06565b61019b610d2a565b61023c600480360360408110156104b357600080fd5b506001600160a01b038135169060200135610d8b565b61023c600480360360408110156104df57600080fd5b506001600160a01b038135169060200135610df3565b6102626004803603602081101561050b57600080fd5b50356001600160a01b0316610e07565b6102586004803603602081101561053157600080fd5b50356001600160a01b0316610e22565b6102586004803603604081101561055757600080fd5b506001600160a01b038135169060200135610fc3565b6102586004803603602081101561058357600080fd5b50356001600160a01b03166111ca565b610262600480360360408110156105a957600080fd5b506001600160a01b038135811691602001351661130a565b610258600480360360208110156105d757600080fd5b50356001600160a01b0316611335565b610258600480360360408110156105fd57600080fd5b506001600160a01b038135169060200135611437565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106bd6106b6611630565b8484611634565b50600192915050565b7f00000000000000000000000000000000000000000000000000000000000000004210156107255760405162461bcd60e51b8152600401808060200182810382526026815260200180611c1f6026913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000042106107835760405162461bcd60e51b8152600401808060200182810382526025815260200180611e6d6025913960400191505060405180910390fd5b600061078d611630565b6001600160a01b038116600090815260096020526040902054909150806107f4576040805162461bcd60e51b815260206004820152601660248201527514121250550e881b9bdd1a1a5b99c81d1bc81b5a5b9d60521b604482015290519081900360640190fd5b6001600160a01b0382166000908152600960205260408120556108178282611720565b6040805182815290516001600160a01b0384169182917fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89181900360200190a35050565b60035490565b60008061087585610870611630565b61130a565b905060001981146108bd5760006108a784604051806060016040528060288152602001611dab60289139849190611812565b90506108bb866108b5611630565b83611634565b505b6108c88585856118a9565b506001949350505050565b60065460ff1690565b60075490565b60006106bd6108ef611630565b846109308560026000610900611630565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611913565b611634565b7f000000000000000000000000000000000000000000000000000000000000000081565b6008546001600160a01b031690565b610970611630565b6001600160a01b0316610981610cd3565b6001600160a01b0316146109ca576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000004210610a285760405162461bcd60e51b815260040180806020018281038252602f815260200180611d4b602f913960400191505060405180910390fd5b8051825114610a76576040805162461bcd60e51b81526020600482015260156024820152740a0909282a87440d2dce0eae840dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b600060096000610a84610959565b6001600160a01b03166001600160a01b0316815260200190815260200160002054905060005b8351811015610bdf576000848281518110610ac157fe5b602002602001015190506000848381518110610ad957fe5b60200260200101519050610aeb610959565b6001600160a01b0316826001600160a01b03161415610b3b5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b600060096000846001600160a01b03166001600160a01b03168152602001908152602001600020549050610b9382604051806060016040528060278152602001611d2460279139610b8c8885611913565b9190611812565b945081610bb8576001600160a01b038316600090815260096020526040812055610bd4565b6001600160a01b03831660009081526009602052604090208290555b505050600101610aaa565b508060096000610bed610959565b6001600160a01b03168152602081019190915260400160002055505050565b6001600160a01b031660009081526001602052604090205490565b610c2f611630565b6001600160a01b0316610c40610cd3565b6001600160a01b031614610c89576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561069f5780601f106106745761010080835404028352916020019161069f565b60006106bd610d98611630565b8461093085604051806060016040528060258152602001611e926025913960026000610dc2611630565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611812565b60006106bd610e00611630565b84846118a9565b6001600160a01b031660009081526009602052604090205490565b610e2a611630565b6001600160a01b0316610e3b610959565b6001600160a01b031614610e805760405162461bcd60e51b815260040180806020018281038252602b815260200180611cd0602b913960400191505060405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000421015610edf5760405162461bcd60e51b8152600401808060200182810382526040815260200180611c6a6040913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090205480610f43576040805162461bcd60e51b815260206004820152601660248201527514121250550e881b9bdd1a1a5b99c81d1bc81b5a5b9d60521b604482015290519081900360640190fd5b6001600160a01b038216600090815260096020526040812055610f6d610f67610959565b82611720565b816001600160a01b0316610f7f610959565b6001600160a01b03167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8836040518082815260200191505060405180910390a35050565b610fcb611630565b6001600160a01b0316610fdc610cd3565b6001600160a01b031614611025576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000042106110835760405162461bcd60e51b815260040180806020018281038252602f815260200180611eb7602f913960400191505060405180910390fd5b600081116110c25760405162461bcd60e51b8152600401808060200182810382526025815260200180611c456025913960400191505060405180910390fd5b6110ca610959565b6001600160a01b0316826001600160a01b0316141561111a5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b61116481604051806060016040528060278152602001611d246027913960096000611143610959565b6001600160a01b031681526020810191909152604001600020549190611812565b60096000611170610959565b6001600160a01b03908116825260208083019390935260409182016000908120949094558516835260099091529020546111aa9082611913565b6001600160a01b0390921660009081526009602052604090209190915550565b6111d2611630565b6001600160a01b03166111e3610959565b6001600160a01b0316146112285760405162461bcd60e51b815260040180806020018281038252602b815260200180611cd0602b913960400191505060405180910390fd5b6001600160a01b03811661126d5760405162461bcd60e51b8152600401808060200182810382526031815260200180611df36031913960400191505060405180910390fd5b60006009600061127b610959565b6001600160a01b03168152602081019190915260400160002054905080156112fd57600960006112a9610959565b6001600160a01b03908116825260208083019390935260409182016000908120819055908516815260099092529020546112e39082611913565b6001600160a01b0383166000908152600960205260409020555b61130682611974565b5050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61133d611630565b6001600160a01b031661134e610cd3565b6001600160a01b031614611397576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b6001600160a01b0381166113dc5760405162461bcd60e51b8152600401808060200182810382526026815260200180611bd76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61143f611630565b6001600160a01b0316611450610cd3565b6001600160a01b031614611499576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000042106114f75760405162461bcd60e51b815260040180806020018281038252602f815260200180611d4b602f913960400191505060405180910390fd5b6114ff610959565b6001600160a01b0316826001600160a01b0316141561154f5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b600060096000846001600160a01b03166001600160a01b031681526020019081526020016000205490506115c682604051806060016040528060278152602001611d2460279139610b8c84600960006115a6610959565b6001600160a01b0316815260208101919091526040016000205490611913565b600960006115d2610959565b6001600160a01b031681526020810191909152604001600020558161160f576001600160a01b03831660009081526009602052604081205561162b565b6001600160a01b03831660009081526009602052604090208290555b505050565b3390565b6001600160a01b0383166116795760405162461bcd60e51b8152600401808060200182810382526024815260200180611e496024913960400191505060405180910390fd5b6001600160a01b0382166116be5760405162461bcd60e51b8152600401808060200182810382526022815260200180611bfd6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03821661177b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611787600083836119d0565b6003546117949082611913565b6003556001600160a01b0382166000908152600160205260409020546117ba9082611913565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081848411156118a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561186657818101518382015260200161184e565b50505050905090810190601f1680156118935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b7f00000000000000000000000000000000000000000000000000000000000000004210156119085760405162461bcd60e51b8152600401808060200182810382526029815260200180611cfb6029913960400191505060405180910390fd5b61162b838383611a56565b60008282018381101561196d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6008546040516001600160a01b038084169216907febebcc22237fa047dcfebf54b185ec126c9b24d45f4bd2a18e4fa02e07308c4090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6119db83838361162b565b6001600160a01b03831661162b576119f16108dc565b611a03826119fd61085b565b90611913565b111561162b576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6001600160a01b038316611a9b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611e246025913960400191505060405180910390fd5b6001600160a01b038216611ae05760405162461bcd60e51b8152600401808060200182810382526023815260200180611bb46023913960400191505060405180910390fd5b611aeb8383836119d0565b611b2881604051806060016040528060268152602001611caa602691396001600160a01b0386166000908152600160205260409020549190611812565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611b579082611913565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737350484941543a2043616e6e6f74206d696e74206265666f7265206d696e74207374617274656450484941543a204d65616e696e676c65737320746f20616464207a65726f20616d6f756e7450484941543a204e6f206578706972656420746f6b656e20666f7220747265617375727920746f206d696e74206265666f7265206d696e74206578706972656445524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636554726561737572794f776e61626c653a2063616c6c6572206973206e6f742074686520747265617375727950484941543a2043616e6e6f74207472616e73666572206265666f7265206d696e742073746172747350484941543a20616d6f756e742065786365656473206d6178696d756d20616c6c6f77616e636550484941543a2043616e6e6f7420736574206d696e7420616d6f756e74206166746572206d696e74206c6f636b656450484941543a2053686f756c64206e6f742061646a757374206d696e7420616d6f756e7420666f7220747265617375727945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657254726561737572794f776e61626c653a206e657720747265617375727920697320746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737350484941543a2043616e6e6f74206d696e74206166746572206d696e74206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f50484941543a2043616e6e6f7420616464206d696e7420616d6f756e74206166746572206d696e74206c6f636b6564a26469706673582212204bef3169bbb5bd9be72bd93319794404afc5d23118a5e457016ad7cd22e3782964736f6c6343000706003350484941543a204d696e742073686f756c64206e6f74207374617274206265666f7265206d696e7420616d6f756e747320617265206c6f636b656450484941543a204d696e742053686f756c64206e6f7420657870697265206265666f72652069742073746172747300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000642f32d00000000000000000000000000000000000000000000000000000000064308450000000000000000000000000000000000000000000000000000000006611b7d000000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a30000000000000000000000000000000000000000000000000000000000000006655068696174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066550686961740000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063b1f536fa11610097578063d8a6021c11610071578063d8a6021c1461056d578063dd62ed3e14610593578063f2fde38b146105c1578063fd4d43c5146105e75761018e565b8063b1f536fa146104f5578063b280d9991461051b578063c2f1dcc8146105415761018e565b80638da5cb5b1461047d578063931e2e491461048557806393fea3f81461048d57806395d89b4114610495578063a457c2d71461049d578063a9059cbb146104c95761018e565b8063355274ea1161014b57806361d027b31161012557806361d027b3146103045780636f95f94e1461032857806370a082311461044f578063715018a6146104755761018e565b8063355274ea146102c857806339509351146102d05780635813fd3d146102fc5761018e565b806306fdde0314610193578063095ea7b3146102105780631249c58b1461025057806318160ddd1461025a57806323b872dd14610274578063313ce567146102aa575b600080fd5b61019b610613565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b0381351690602001356106a9565b604080519115158252519081900360200190f35b6102586106c6565b005b61026261085b565b60408051918252519081900360200190f35b61023c6004803603606081101561028a57600080fd5b506001600160a01b03813581169160208101359091169060400135610861565b6102b26108d3565b6040805160ff9092168252519081900360200190f35b6102626108dc565b61023c600480360360408110156102e657600080fd5b506001600160a01b0381351690602001356108e2565b610262610935565b61030c610959565b604080516001600160a01b039092168252519081900360200190f35b6102586004803603604081101561033e57600080fd5b81019060208101813564010000000081111561035957600080fd5b82018360208201111561036b57600080fd5b8035906020019184602083028401116401000000008311171561038d57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156103dd57600080fd5b8201836020820111156103ef57600080fd5b8035906020019184602083028401116401000000008311171561041157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610968945050505050565b6102626004803603602081101561046557600080fd5b50356001600160a01b0316610c0c565b610258610c27565b61030c610cd3565b610262610ce2565b610262610d06565b61019b610d2a565b61023c600480360360408110156104b357600080fd5b506001600160a01b038135169060200135610d8b565b61023c600480360360408110156104df57600080fd5b506001600160a01b038135169060200135610df3565b6102626004803603602081101561050b57600080fd5b50356001600160a01b0316610e07565b6102586004803603602081101561053157600080fd5b50356001600160a01b0316610e22565b6102586004803603604081101561055757600080fd5b506001600160a01b038135169060200135610fc3565b6102586004803603602081101561058357600080fd5b50356001600160a01b03166111ca565b610262600480360360408110156105a957600080fd5b506001600160a01b038135811691602001351661130a565b610258600480360360208110156105d757600080fd5b50356001600160a01b0316611335565b610258600480360360408110156105fd57600080fd5b506001600160a01b038135169060200135611437565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106bd6106b6611630565b8484611634565b50600192915050565b7f00000000000000000000000000000000000000000000000000000000643084504210156107255760405162461bcd60e51b8152600401808060200182810382526026815260200180611c1f6026913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000006611b7d042106107835760405162461bcd60e51b8152600401808060200182810382526025815260200180611e6d6025913960400191505060405180910390fd5b600061078d611630565b6001600160a01b038116600090815260096020526040902054909150806107f4576040805162461bcd60e51b815260206004820152601660248201527514121250550e881b9bdd1a1a5b99c81d1bc81b5a5b9d60521b604482015290519081900360640190fd5b6001600160a01b0382166000908152600960205260408120556108178282611720565b6040805182815290516001600160a01b0384169182917fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89181900360200190a35050565b60035490565b60008061087585610870611630565b61130a565b905060001981146108bd5760006108a784604051806060016040528060288152602001611dab60289139849190611812565b90506108bb866108b5611630565b83611634565b505b6108c88585856118a9565b506001949350505050565b60065460ff1690565b60075490565b60006106bd6108ef611630565b846109308560026000610900611630565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611913565b611634565b7f000000000000000000000000000000000000000000000000000000006611b7d081565b6008546001600160a01b031690565b610970611630565b6001600160a01b0316610981610cd3565b6001600160a01b0316146109ca576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000642f32d04210610a285760405162461bcd60e51b815260040180806020018281038252602f815260200180611d4b602f913960400191505060405180910390fd5b8051825114610a76576040805162461bcd60e51b81526020600482015260156024820152740a0909282a87440d2dce0eae840dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b600060096000610a84610959565b6001600160a01b03166001600160a01b0316815260200190815260200160002054905060005b8351811015610bdf576000848281518110610ac157fe5b602002602001015190506000848381518110610ad957fe5b60200260200101519050610aeb610959565b6001600160a01b0316826001600160a01b03161415610b3b5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b600060096000846001600160a01b03166001600160a01b03168152602001908152602001600020549050610b9382604051806060016040528060278152602001611d2460279139610b8c8885611913565b9190611812565b945081610bb8576001600160a01b038316600090815260096020526040812055610bd4565b6001600160a01b03831660009081526009602052604090208290555b505050600101610aaa565b508060096000610bed610959565b6001600160a01b03168152602081019190915260400160002055505050565b6001600160a01b031660009081526001602052604090205490565b610c2f611630565b6001600160a01b0316610c40610cd3565b6001600160a01b031614610c89576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b7f000000000000000000000000000000000000000000000000000000006430845081565b7f00000000000000000000000000000000000000000000000000000000642f32d081565b60058054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561069f5780601f106106745761010080835404028352916020019161069f565b60006106bd610d98611630565b8461093085604051806060016040528060258152602001611e926025913960026000610dc2611630565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611812565b60006106bd610e00611630565b84846118a9565b6001600160a01b031660009081526009602052604090205490565b610e2a611630565b6001600160a01b0316610e3b610959565b6001600160a01b031614610e805760405162461bcd60e51b815260040180806020018281038252602b815260200180611cd0602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000006611b7d0421015610edf5760405162461bcd60e51b8152600401808060200182810382526040815260200180611c6a6040913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090205480610f43576040805162461bcd60e51b815260206004820152601660248201527514121250550e881b9bdd1a1a5b99c81d1bc81b5a5b9d60521b604482015290519081900360640190fd5b6001600160a01b038216600090815260096020526040812055610f6d610f67610959565b82611720565b816001600160a01b0316610f7f610959565b6001600160a01b03167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8836040518082815260200191505060405180910390a35050565b610fcb611630565b6001600160a01b0316610fdc610cd3565b6001600160a01b031614611025576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000642f32d042106110835760405162461bcd60e51b815260040180806020018281038252602f815260200180611eb7602f913960400191505060405180910390fd5b600081116110c25760405162461bcd60e51b8152600401808060200182810382526025815260200180611c456025913960400191505060405180910390fd5b6110ca610959565b6001600160a01b0316826001600160a01b0316141561111a5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b61116481604051806060016040528060278152602001611d246027913960096000611143610959565b6001600160a01b031681526020810191909152604001600020549190611812565b60096000611170610959565b6001600160a01b03908116825260208083019390935260409182016000908120949094558516835260099091529020546111aa9082611913565b6001600160a01b0390921660009081526009602052604090209190915550565b6111d2611630565b6001600160a01b03166111e3610959565b6001600160a01b0316146112285760405162461bcd60e51b815260040180806020018281038252602b815260200180611cd0602b913960400191505060405180910390fd5b6001600160a01b03811661126d5760405162461bcd60e51b8152600401808060200182810382526031815260200180611df36031913960400191505060405180910390fd5b60006009600061127b610959565b6001600160a01b03168152602081019190915260400160002054905080156112fd57600960006112a9610959565b6001600160a01b03908116825260208083019390935260409182016000908120819055908516815260099092529020546112e39082611913565b6001600160a01b0383166000908152600960205260409020555b61130682611974565b5050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61133d611630565b6001600160a01b031661134e610cd3565b6001600160a01b031614611397576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b6001600160a01b0381166113dc5760405162461bcd60e51b8152600401808060200182810382526026815260200180611bd76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61143f611630565b6001600160a01b0316611450610cd3565b6001600160a01b031614611499576040805162461bcd60e51b81526020600482018190526024820152600080516020611dd3833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000642f32d042106114f75760405162461bcd60e51b815260040180806020018281038252602f815260200180611d4b602f913960400191505060405180910390fd5b6114ff610959565b6001600160a01b0316826001600160a01b0316141561154f5760405162461bcd60e51b8152600401808060200182810382526031815260200180611d7a6031913960400191505060405180910390fd5b600060096000846001600160a01b03166001600160a01b031681526020019081526020016000205490506115c682604051806060016040528060278152602001611d2460279139610b8c84600960006115a6610959565b6001600160a01b0316815260208101919091526040016000205490611913565b600960006115d2610959565b6001600160a01b031681526020810191909152604001600020558161160f576001600160a01b03831660009081526009602052604081205561162b565b6001600160a01b03831660009081526009602052604090208290555b505050565b3390565b6001600160a01b0383166116795760405162461bcd60e51b8152600401808060200182810382526024815260200180611e496024913960400191505060405180910390fd5b6001600160a01b0382166116be5760405162461bcd60e51b8152600401808060200182810382526022815260200180611bfd6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03821661177b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611787600083836119d0565b6003546117949082611913565b6003556001600160a01b0382166000908152600160205260409020546117ba9082611913565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081848411156118a15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561186657818101518382015260200161184e565b50505050905090810190601f1680156118935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b7f00000000000000000000000000000000000000000000000000000000643084504210156119085760405162461bcd60e51b8152600401808060200182810382526029815260200180611cfb6029913960400191505060405180910390fd5b61162b838383611a56565b60008282018381101561196d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6008546040516001600160a01b038084169216907febebcc22237fa047dcfebf54b185ec126c9b24d45f4bd2a18e4fa02e07308c4090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b6119db83838361162b565b6001600160a01b03831661162b576119f16108dc565b611a03826119fd61085b565b90611913565b111561162b576040805162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015290519081900360640190fd5b6001600160a01b038316611a9b5760405162461bcd60e51b8152600401808060200182810382526025815260200180611e246025913960400191505060405180910390fd5b6001600160a01b038216611ae05760405162461bcd60e51b8152600401808060200182810382526023815260200180611bb46023913960400191505060405180910390fd5b611aeb8383836119d0565b611b2881604051806060016040528060268152602001611caa602691396001600160a01b0386166000908152600160205260409020549190611812565b6001600160a01b038085166000908152600160205260408082209390935590841681522054611b579082611913565b6001600160a01b0380841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737350484941543a2043616e6e6f74206d696e74206265666f7265206d696e74207374617274656450484941543a204d65616e696e676c65737320746f20616464207a65726f20616d6f756e7450484941543a204e6f206578706972656420746f6b656e20666f7220747265617375727920746f206d696e74206265666f7265206d696e74206578706972656445524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636554726561737572794f776e61626c653a2063616c6c6572206973206e6f742074686520747265617375727950484941543a2043616e6e6f74207472616e73666572206265666f7265206d696e742073746172747350484941543a20616d6f756e742065786365656473206d6178696d756d20616c6c6f77616e636550484941543a2043616e6e6f7420736574206d696e7420616d6f756e74206166746572206d696e74206c6f636b656450484941543a2053686f756c64206e6f742061646a757374206d696e7420616d6f756e7420666f7220747265617375727945524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657254726561737572794f776e61626c653a206e657720747265617375727920697320746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737350484941543a2043616e6e6f74206d696e74206166746572206d696e74206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f50484941543a2043616e6e6f7420616464206d696e7420616d6f756e74206166746572206d696e74206c6f636b6564a26469706673582212204bef3169bbb5bd9be72bd93319794404afc5d23118a5e457016ad7cd22e3782964736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000642f32d00000000000000000000000000000000000000000000000000000000064308450000000000000000000000000000000000000000000000000000000006611b7d000000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a30000000000000000000000000000000000000000000000000000000000000006655068696174000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066550686961740000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : symbol (string): ePhiat
Arg [1] : name (string): ePhiat
Arg [2] : mintLockTime_ (uint256): 1680814800
Arg [3] : mintStartTime_ (uint256): 1680901200
Arg [4] : mintExpirationTime_ (uint256): 1712437200
Arg [5] : treasury_ (address): 0x64E7Ff734848DC7b04D00DA71615649d321c04A3
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000000000000000000000000000000000000642f32d0
Arg [3] : 0000000000000000000000000000000000000000000000000000000064308450
Arg [4] : 000000000000000000000000000000000000000000000000000000006611b7d0
Arg [5] : 00000000000000000000000064e7ff734848dc7b04d00da71615649d321c04a3
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 6550686961740000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 6550686961740000000000000000000000000000000000000000000000000000
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.