ERC-20
Overview
Max Total Supply
1,257,023,837,665,920,770,401.8112984113994 XUSDP
Holders
7,992
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XUSDPrime
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./ERC20.sol"; import "./ERC20Burnable.sol"; import "./ERC20Pausable.sol"; import "./TokenRecover.sol"; /** * @title ERC20Mint * @dev Implementation of the ERC20Mint */ contract XUSDPrime is ERC20, ERC20Burnable, TokenRecover { //@dev decalre the initialSupply uint public initialSupply = 650500000000; // indicates if minting is finished bool private _mintingFinished = false; /** * @dev Emitted during finish minting */ event MintFinished(); /** * @dev Tokens can be minted only before minting finished. */ modifier canMint() { require(!_mintingFinished, "XUSD Prime: minting is finished"); _; } constructor ( string memory name, string memory symbol) ERC20(name, symbol) { _setupDecimals(18); _mint(msg.sender, initialSupply); } /** * @return if minting is finished or not. */ function mintingFinished() public view returns (bool) { return _mintingFinished; } /** * @dev Function to mint tokens. * @param to The address that will receive the minted tokens * @param value The amount of tokens to mint */ function mint(address to, uint256 value) public canMint onlyOwner { _mint(to, value); } /** * @dev See {ERC20-_beforeTokenTransfer}. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20) { super._beforeTokenTransfer(from, to, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./Context.sol"; import "./IERC20.sol"; import "./SafeMath.sol"; import "./Address.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; 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) { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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 { _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 pragma solidity ^0.7.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.7.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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./Context.sol"; import "./ERC20.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 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./ERC20.sol"; import "./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. */ 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 pragma solidity ^0.7.0; import "./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. */ 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 Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { 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 pragma solidity ^0.7.0; import "./IERC20.sol"; import "./Ownable.sol"; /** * @title TokenRecover * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Allow to recover any ERC20 sent into the contract for error */ contract TokenRecover is Ownable { /** * @dev Remember that only owner can call so be careful when use on contracts generated from other contracts. * @param tokenAddress The token contract address * @param tokenAmount Number of tokens to be sent */ function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner { IERC20(tokenAddress).transfer(owner(), tokenAmount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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. */ 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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; } }
{ "evmVersion": "petersburg", "metadata": { "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 400 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"MintFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"}]
Contract Creation Code
6080604052649774d249006006556007805460ff191690553480156200002457600080fd5b506040516200178b3803806200178b833981810160405260408110156200004a57600080fd5b81019080805160405193929190846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011d57600080fd5b9083019060208201858111156200013357600080fd5b82516401000000008111828201881017156200014e57600080fd5b82525081516020918201929091019080838360005b838110156200017d57818101518382015260200162000163565b50505050905090810190601f168015620001ab5780820380516001836020036101000a031916815260200191505b50604052505082518391508290620001cb90600390602085019062000457565b508051620001e190600490602084019062000457565b50506005805460ff19166012179055506000620001fd6200027b565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200025f60126200027f565b62000273336006546200029560201b60201c565b505062000503565b3390565b6005805460ff191660ff92909216919091179055565b6001600160a01b0382166200030b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200031960008383620003be565b6200033581600254620003db60201b62000b381790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200036891839062000b38620003db821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b620003d6838383620003d660201b620007ff1760201c565b505050565b6000828201838110156200045057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200048f5760008555620004da565b82601f10620004aa57805160ff1916838001178555620004da565b82800160010185558215620004da579182015b82811115620004da578251825591602001919060010190620004bd565b50620004e8929150620004ec565b5090565b5b80821115620004e85760008155600101620004ed565b61127880620005136000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b411461038d578063a457c2d714610395578063a9059cbb146103c1578063dd62ed3e146103ed578063f2fde38b1461041b5761012c565b806370a08231146102e3578063715018a61461030957806379cc6790146103115780638980f11f1461033d5780638da5cb5b146103695761012c565b8063313ce567116100f4578063313ce56714610246578063378dc3dc14610264578063395093511461026c57806340c10f191461029857806342966c68146102c65761012c565b806305d2035b1461013157806306fdde031461014d578063095ea7b3146101ca57806318160ddd146101f657806323b872dd14610210575b600080fd5b610139610441565b604080519115158252519081900360200190f35b61015561044a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018f578181015183820152602001610177565b50505050905090810190601f1680156101bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610139600480360360408110156101e057600080fd5b506001600160a01b0381351690602001356104e0565b6101fe6104fd565b60408051918252519081900360200190f35b6101396004803603606081101561022657600080fd5b506001600160a01b03813581169160208101359091169060400135610503565b61024e61058a565b6040805160ff9092168252519081900360200190f35b6101fe610593565b6101396004803603604081101561028257600080fd5b506001600160a01b038135169060200135610599565b6102c4600480360360408110156102ae57600080fd5b506001600160a01b0381351690602001356105e7565b005b6102c4600480360360208110156102dc57600080fd5b50356106bc565b6101fe600480360360208110156102f957600080fd5b50356001600160a01b03166106d0565b6102c46106eb565b6102c46004803603604081101561032757600080fd5b506001600160a01b0381351690602001356107aa565b6102c46004803603604081101561035357600080fd5b506001600160a01b038135169060200135610804565b610371610901565b604080516001600160a01b039092168252519081900360200190f35b610155610915565b610139600480360360408110156103ab57600080fd5b506001600160a01b038135169060200135610976565b610139600480360360408110156103d757600080fd5b506001600160a01b0381351690602001356109de565b6101fe6004803603604081101561040357600080fd5b506001600160a01b03813581169160200135166109f2565b6102c46004803603602081101561043157600080fd5b50356001600160a01b0316610a1d565b60075460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d65780601f106104ab576101008083540402835291602001916104d6565b820191906000526020600020905b8154815290600101906020018083116104b957829003601f168201915b5050505050905090565b60006104f46104ed610b99565b8484610b9d565b50600192915050565b60025490565b6000610510848484610c89565b6105808461051c610b99565b61057b85604051806060016040528060288152602001611168602891396001600160a01b038a1660009081526001602052604081209061055a610b99565b6001600160a01b031681526020810191909152604001600020549190610de4565b610b9d565b5060019392505050565b60055460ff1690565b60065481565b60006104f46105a6610b99565b8461057b85600160006105b7610b99565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610b38565b60075460ff161561063f576040805162461bcd60e51b815260206004820152601f60248201527f58555344205072696d653a206d696e74696e672069732066696e697368656400604482015290519081900360640190fd5b610647610b99565b60055461010090046001600160a01b039081169116146106ae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106b88282610e7b565b5050565b6106cd6106c7610b99565b82610f6b565b50565b6001600160a01b031660009081526020819052604090205490565b6106f3610b99565b60055461010090046001600160a01b0390811691161461075a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60006107e182604051806060016040528060248152602001611190602491396107da866107d5610b99565b6109f2565b9190610de4565b90506107f5836107ef610b99565b83610b9d565b6107ff8383610f6b565b505050565b61080c610b99565b60055461010090046001600160a01b03908116911614610873576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b816001600160a01b031663a9059cbb61088a610901565b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b505050506040513d60208110156108fb57600080fd5b50505050565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d65780601f106104ab576101008083540402835291602001916104d6565b60006104f4610983610b99565b8461057b8560405180606001604052806025815260200161121e60259139600160006109ad610b99565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610de4565b60006104f46109eb610b99565b8484610c89565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a25610b99565b60055461010090046001600160a01b03908116911614610a8c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610ad15760405162461bcd60e51b81526004018080602001828103825260268152602001806110fa6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082820183811015610b92576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316610be25760405162461bcd60e51b81526004018080602001828103825260248152602001806111fa6024913960400191505060405180910390fd5b6001600160a01b038216610c275760405162461bcd60e51b81526004018080602001828103825260228152602001806111206022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610cce5760405162461bcd60e51b81526004018080602001828103825260258152602001806111d56025913960400191505060405180910390fd5b6001600160a01b038216610d135760405162461bcd60e51b81526004018080602001828103825260238152602001806110b56023913960400191505060405180910390fd5b610d1e838383611067565b610d5b81604051806060016040528060268152602001611142602691396001600160a01b0386166000908152602081905260409020549190610de4565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d8a9082610b38565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e735760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e38578181015183820152602001610e20565b50505050905090810190601f168015610e655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610ed6576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ee260008383611067565b600254610eef9082610b38565b6002556001600160a01b038216600090815260208190526040902054610f159082610b38565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610fb05760405162461bcd60e51b81526004018080602001828103825260218152602001806111b46021913960400191505060405180910390fd5b610fbc82600083611067565b610ff9816040518060600160405280602281526020016110d8602291396001600160a01b0385166000908152602081905260409020549190610de4565b6001600160a01b03831660009081526020819052604090205560025461101f9082611072565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6107ff8383836107ff565b6000610b9283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610de456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f0b8493b1209c7f8d300f2227c6c5c761f203fb060db2e947d1f204db940d80664736f6c6343000705003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f58555344205072696d6520436f696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055855534450000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b411461038d578063a457c2d714610395578063a9059cbb146103c1578063dd62ed3e146103ed578063f2fde38b1461041b5761012c565b806370a08231146102e3578063715018a61461030957806379cc6790146103115780638980f11f1461033d5780638da5cb5b146103695761012c565b8063313ce567116100f4578063313ce56714610246578063378dc3dc14610264578063395093511461026c57806340c10f191461029857806342966c68146102c65761012c565b806305d2035b1461013157806306fdde031461014d578063095ea7b3146101ca57806318160ddd146101f657806323b872dd14610210575b600080fd5b610139610441565b604080519115158252519081900360200190f35b61015561044a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018f578181015183820152602001610177565b50505050905090810190601f1680156101bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610139600480360360408110156101e057600080fd5b506001600160a01b0381351690602001356104e0565b6101fe6104fd565b60408051918252519081900360200190f35b6101396004803603606081101561022657600080fd5b506001600160a01b03813581169160208101359091169060400135610503565b61024e61058a565b6040805160ff9092168252519081900360200190f35b6101fe610593565b6101396004803603604081101561028257600080fd5b506001600160a01b038135169060200135610599565b6102c4600480360360408110156102ae57600080fd5b506001600160a01b0381351690602001356105e7565b005b6102c4600480360360208110156102dc57600080fd5b50356106bc565b6101fe600480360360208110156102f957600080fd5b50356001600160a01b03166106d0565b6102c46106eb565b6102c46004803603604081101561032757600080fd5b506001600160a01b0381351690602001356107aa565b6102c46004803603604081101561035357600080fd5b506001600160a01b038135169060200135610804565b610371610901565b604080516001600160a01b039092168252519081900360200190f35b610155610915565b610139600480360360408110156103ab57600080fd5b506001600160a01b038135169060200135610976565b610139600480360360408110156103d757600080fd5b506001600160a01b0381351690602001356109de565b6101fe6004803603604081101561040357600080fd5b506001600160a01b03813581169160200135166109f2565b6102c46004803603602081101561043157600080fd5b50356001600160a01b0316610a1d565b60075460ff1690565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d65780601f106104ab576101008083540402835291602001916104d6565b820191906000526020600020905b8154815290600101906020018083116104b957829003601f168201915b5050505050905090565b60006104f46104ed610b99565b8484610b9d565b50600192915050565b60025490565b6000610510848484610c89565b6105808461051c610b99565b61057b85604051806060016040528060288152602001611168602891396001600160a01b038a1660009081526001602052604081209061055a610b99565b6001600160a01b031681526020810191909152604001600020549190610de4565b610b9d565b5060019392505050565b60055460ff1690565b60065481565b60006104f46105a6610b99565b8461057b85600160006105b7610b99565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610b38565b60075460ff161561063f576040805162461bcd60e51b815260206004820152601f60248201527f58555344205072696d653a206d696e74696e672069732066696e697368656400604482015290519081900360640190fd5b610647610b99565b60055461010090046001600160a01b039081169116146106ae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106b88282610e7b565b5050565b6106cd6106c7610b99565b82610f6b565b50565b6001600160a01b031660009081526020819052604090205490565b6106f3610b99565b60055461010090046001600160a01b0390811691161461075a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60006107e182604051806060016040528060248152602001611190602491396107da866107d5610b99565b6109f2565b9190610de4565b90506107f5836107ef610b99565b83610b9d565b6107ff8383610f6b565b505050565b61080c610b99565b60055461010090046001600160a01b03908116911614610873576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b816001600160a01b031663a9059cbb61088a610901565b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b505050506040513d60208110156108fb57600080fd5b50505050565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104d65780601f106104ab576101008083540402835291602001916104d6565b60006104f4610983610b99565b8461057b8560405180606001604052806025815260200161121e60259139600160006109ad610b99565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610de4565b60006104f46109eb610b99565b8484610c89565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a25610b99565b60055461010090046001600160a01b03908116911614610a8c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610ad15760405162461bcd60e51b81526004018080602001828103825260268152602001806110fa6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082820183811015610b92576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316610be25760405162461bcd60e51b81526004018080602001828103825260248152602001806111fa6024913960400191505060405180910390fd5b6001600160a01b038216610c275760405162461bcd60e51b81526004018080602001828103825260228152602001806111206022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610cce5760405162461bcd60e51b81526004018080602001828103825260258152602001806111d56025913960400191505060405180910390fd5b6001600160a01b038216610d135760405162461bcd60e51b81526004018080602001828103825260238152602001806110b56023913960400191505060405180910390fd5b610d1e838383611067565b610d5b81604051806060016040528060268152602001611142602691396001600160a01b0386166000908152602081905260409020549190610de4565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d8a9082610b38565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e735760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e38578181015183820152602001610e20565b50505050905090810190601f168015610e655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b038216610ed6576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610ee260008383611067565b600254610eef9082610b38565b6002556001600160a01b038216600090815260208190526040902054610f159082610b38565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610fb05760405162461bcd60e51b81526004018080602001828103825260218152602001806111b46021913960400191505060405180910390fd5b610fbc82600083611067565b610ff9816040518060600160405280602281526020016110d8602291396001600160a01b0385166000908152602081905260409020549190610de4565b6001600160a01b03831660009081526020819052604090205560025461101f9082611072565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6107ff8383836107ff565b6000610b9283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610de456fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f0b8493b1209c7f8d300f2227c6c5c761f203fb060db2e947d1f204db940d80664736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f58555344205072696d6520436f696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055855534450000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): XUSD Prime Coin
Arg [1] : symbol (string): XUSDP
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 58555344205072696d6520436f696e0000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 5855534450000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
246:1358:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1002:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;2185:81:2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4221:166;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4221:166:2;;;;;;;;:::i;3228:98::-;;;:::i;:::-;;;;;;;;;;;;;;;;4847:317;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4847:317:2;;;;;;;;;;;;;;;;;:::i;3087:81::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;348:40:10;;;:::i;5559:215:2:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5559:215:2;;;;;;;;:::i;1269:99:10:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1269:99:10;;;;;;;;:::i;:::-;;506:89:3;;;;;;;;;;;;;;;;-1:-1:-1;506:89:3;;:::i;3384:117:2:-;;;;;;;;;;;;;;;;-1:-1:-1;3384:117:2;-1:-1:-1;;;;;3384:117:2;;:::i;1675:145:6:-;;;:::i;901:290:3:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;901:290:3;;;;;;;;:::i;547:150:9:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;547:150:9;;;;;;;;:::i;1052:77:6:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1052:77:6;;;;;;;;;;;;;;2379:85:2;;;:::i;6261:266::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6261:266:2;;;;;;;;:::i;3704:172::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3704:172:2;;;;;;;;:::i;3934:149::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3934:149:2;;;;;;;;;;:::i;1969:240:6:-;;;;;;;;;;;;;;;;-1:-1:-1;1969:240:6;-1:-1:-1;;;;;1969:240:6;;:::i;1002:94:10:-;1073:16;;;;1002:94;:::o;2185:81:2:-;2254:5;2247:12;;;;;;;;-1:-1:-1;;2247:12:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2222:13;;2247:12;;2254:5;;2247:12;;2254:5;2247:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2185:81;:::o;4221:166::-;4304:4;4320:39;4329:12;:10;:12::i;:::-;4343:7;4352:6;4320:8;:39::i;:::-;-1:-1:-1;4376:4:2;4221:166;;;;:::o;3228:98::-;3307:12;;3228:98;:::o;4847:317::-;4953:4;4969:36;4979:6;4987:9;4998:6;4969:9;:36::i;:::-;5015:121;5024:6;5032:12;:10;:12::i;:::-;5046:89;5084:6;5046:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5046:19:2;;;;;;:11;:19;;;;;;5066:12;:10;:12::i;:::-;-1:-1:-1;;;;;5046:33:2;;;;;;;;;;;;-1:-1:-1;5046:33:2;;;:89;:37;:89::i;:::-;5015:8;:121::i;:::-;-1:-1:-1;5153:4:2;4847:317;;;;;:::o;3087:81::-;3152:9;;;;3087:81;:::o;348:40:10:-;;;;:::o;5559:215:2:-;5647:4;5663:83;5672:12;:10;:12::i;:::-;5686:7;5695:50;5734:10;5695:11;:25;5707:12;:10;:12::i;:::-;-1:-1:-1;;;;;5695:25:2;;;;;;;;;;;;;;;;;-1:-1:-1;5695:25:2;;;:34;;;;;;;;;;;:38;:50::i;1269:99:10:-;681:16;;;;680:17;672:61;;;;;-1:-1:-1;;;672:61:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;1266:12:6::1;:10;:12::i;:::-;1256:6;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;1256:6:6;;::::1;:22:::0;::::1;;1248:67;;;::::0;;-1:-1:-1;;;1248:67:6;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1345:16:10::2;1351:2;1355:5;1345;:16::i;:::-;1269:99:::0;;:::o;506:89:3:-;561:27;567:12;:10;:12::i;:::-;581:6;561:5;:27::i;:::-;506:89;:::o;3384:117:2:-;-1:-1:-1;;;;;3476:18:2;3450:7;3476:18;;;;;;;;;;;;3384:117::o;1675:145:6:-;1266:12;:10;:12::i;:::-;1256:6;;;;;-1:-1:-1;;;;;1256:6:6;;;:22;;;1248:67;;;;;-1:-1:-1;;;1248:67:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1765:6:::1;::::0;1744:40:::1;::::0;1781:1:::1;::::0;1765:6:::1;::::0;::::1;-1:-1:-1::0;;;;;1765:6:6::1;::::0;1744:40:::1;::::0;1781:1;;1744:40:::1;1794:6;:19:::0;;-1:-1:-1;;;;;;1794:19:6::1;::::0;;1675:145::o;901:290:3:-;977:26;1006:84;1043:6;1006:84;;;;;;;;;;;;;;;;;:32;1016:7;1025:12;:10;:12::i;:::-;1006:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;977:113;;1101:51;1110:7;1119:12;:10;:12::i;:::-;1133:18;1101:8;:51::i;:::-;1162:22;1168:7;1177:6;1162:5;:22::i;:::-;901:290;;;:::o;547:150:9:-;1266:12:6;:10;:12::i;:::-;1256:6;;;;;-1:-1:-1;;;;;1256:6:6;;;:22;;;1248:67;;;;;-1:-1:-1;;;1248:67:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;646:12:9::1;-1:-1:-1::0;;;;;639:29:9::1;;669:7;:5;:7::i;:::-;678:11;639:51;;;;;;;;;;;;;-1:-1:-1::0;;;;;639:51:9::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;547:150:9:o;1052:77:6:-;1116:6;;;;;-1:-1:-1;;;;;1116:6:6;;1052:77::o;2379:85:2:-;2450:7;2443:14;;;;;;;;-1:-1:-1;;2443:14:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2418:13;;2443:14;;2450:7;;2443:14;;2450:7;2443:14;;;;;;;;;;;;;;;;;;;;;;;;6261:266;6354:4;6370:129;6379:12;:10;:12::i;:::-;6393:7;6402:96;6441:15;6402:96;;;;;;;;;;;;;;;;;:11;:25;6414:12;:10;:12::i;:::-;-1:-1:-1;;;;;6402:25:2;;;;;;;;;;;;;;;;;-1:-1:-1;6402:25:2;;;:34;;;;;;;;;;;:96;:38;:96::i;3704:172::-;3790:4;3806:42;3816:12;:10;:12::i;:::-;3830:9;3841:6;3806:9;:42::i;3934:149::-;-1:-1:-1;;;;;4049:18:2;;;4023:7;4049:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3934:149::o;1969:240:6:-;1266:12;:10;:12::i;:::-;1256:6;;;;;-1:-1:-1;;;;;1256:6:6;;;:22;;;1248:67;;;;;-1:-1:-1;;;1248:67:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2057:22:6;::::1;2049:73;;;;-1:-1:-1::0;;;2049:73:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:6;::::0;2137:38:::1;::::0;-1:-1:-1;;;;;2137:38:6;;::::1;::::0;2158:6:::1;::::0;::::1;;::::0;2137:38:::1;::::0;;;::::1;2185:6;:17:::0;;-1:-1:-1;;;;;2185:17:6;;::::1;;;-1:-1:-1::0;;;;;;2185:17:6;;::::1;::::0;;;::::1;::::0;;1969:240::o;874:176:8:-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;1042:1;874:176;-1:-1:-1;;;874:176:8:o;590:104:1:-;677:10;590:104;:::o;9323:340:2:-;-1:-1:-1;;;;;9424:19:2;;9416:68;;;;-1:-1:-1;;;9416:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9502:21:2;;9494:68;;;;-1:-1:-1;;;9494:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9573:18:2;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;9624:32;;;;;;;;;;;;;;;;;9323:340;;;:::o;7001:530::-;-1:-1:-1;;;;;7106:20:2;;7098:70;;;;-1:-1:-1;;;7098:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7186:23:2;;7178:71;;;;-1:-1:-1;;;7178:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7260:47;7281:6;7289:9;7300:6;7260:20;:47::i;:::-;7338:71;7360:6;7338:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7338:17:2;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;7318:17:2;;;:9;:17;;;;;;;;;;;:91;;;;7442:20;;;;;;;:32;;7467:6;7442:24;:32::i;:::-;-1:-1:-1;;;;;7419:20:2;;;:9;:20;;;;;;;;;;;;:55;;;;7489:35;;;;;;;7419:20;;7489:35;;;;;;;;;;;;;7001:530;;;:::o;1746:187:8:-;1832:7;1867:12;1859:6;;;;1851:29;;;;-1:-1:-1;;;1851:29:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1902:5:8;;;1746:187::o;7801:370:2:-;-1:-1:-1;;;;;7884:21:2;;7876:65;;;;;-1:-1:-1;;;7876:65:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;7952:49;7981:1;7985:7;7994:6;7952:20;:49::i;:::-;8027:12;;:24;;8044:6;8027:16;:24::i;:::-;8012:12;:39;-1:-1:-1;;;;;8082:18:2;;:9;:18;;;;;;;;;;;:30;;8105:6;8082:22;:30::i;:::-;-1:-1:-1;;;;;8061:18:2;;:9;:18;;;;;;;;;;;:51;;;;8127:37;;;;;;;8061:18;;:9;;8127:37;;;;;;;;;;7801:370;;:::o;8490:410::-;-1:-1:-1;;;;;8573:21:2;;8565:67;;;;-1:-1:-1;;;8565:67:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8643:49;8664:7;8681:1;8685:6;8643:20;:49::i;:::-;8724:68;8747:6;8724:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8724:18:2;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;8703:18:2;;:9;:18;;;;;;;;;;:89;8817:12;;:24;;8834:6;8817:16;:24::i;:::-;8802:12;:39;8856:37;;;;;;;;8882:1;;-1:-1:-1;;;;;8856:37:2;;;;;;;;;;;;8490:410;;:::o;1436:166:10:-;1551:44;1578:4;1584:2;1588:6;1551:26;:44::i;1321:134:8:-;1379:7;1405:43;1409:1;1412;1405:43;;;;;;;;;;;;;;;;;:3;:43::i
Swarm Source
ipfs://f0b8493b1209c7f8d300f2227c6c5c761f203fb060db2e947d1f204db940d806
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.