ERC-20
Overview
Max Total Supply
159,702.111342592592592545 IQ
Holders
46
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,418.387152777777777776 IQValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
IQ
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface iCryptoNerdz { function balanceOf(address owner) external view returns(uint256); } contract IQ is ERC20, Ownable { iCryptoNerdz public CryptoNerdz; uint256 constant public BASE_RATE = 5 ether; uint256 public immutable START; bool public rewardPaused = true; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; mapping(address => bool) public allowedAddresses; constructor(address cnAddress) ERC20("IQ Token", "IQ") { CryptoNerdz = iCryptoNerdz(cnAddress); START = block.timestamp - (7 days); } function updateReward(address from, address to) external { require(msg.sender == address(CryptoNerdz)); if(from != address(0)) { rewards[from] += getPendingReward(from); lastUpdate[from] = block.timestamp; } if(to != address(0)) { rewards[to] += getPendingReward(to); lastUpdate[to] = block.timestamp; } } function claimReward() external { require(!rewardPaused, "ClaimingPaused"); _mint(msg.sender, rewards[msg.sender] + getPendingReward(msg.sender)); rewards[msg.sender] = 0; lastUpdate[msg.sender] = block.timestamp; } function burn(address user, uint256 amount) external { require(allowedAddresses[msg.sender], "AddressCannotBurn"); _burn(user, amount); } function getTotalClaimable(address user) external view returns(uint256) { return rewards[user] + getPendingReward(user); } function getPendingReward(address user) internal view returns(uint256) { return CryptoNerdz.balanceOf(user) *BASE_RATE * (block.timestamp - (lastUpdate[user] >= START ? lastUpdate[user] : START)) / 86400; } function setAllowedAddresses(address _address, bool _access) public onlyOwner { allowedAddresses[_address] = _access; } function toggleReward() public onlyOwner { rewardPaused = !rewardPaused; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"cnAddress","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":"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":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CryptoNerdz","outputs":[{"internalType":"contract iCryptoNerdz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","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":"user","type":"address"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdate","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":[],"name":"rewardPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_access","type":"bool"}],"name":"setAllowedAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526006805460ff60a01b1916600160a01b1790553480156200002457600080fd5b50604051620015f3380380620015f38339810160408190526200004791620001f4565b604080518082018252600881526724a8902a37b5b2b760c11b602080830191825283518085019094526002845261495160f01b90840152815191929162000091916003916200014e565b508051620000a79060049060208401906200014e565b505050620000c4620000be620000f860201b60201c565b620000fc565b600680546001600160a01b0319166001600160a01b038316179055620000ee62093a804262000226565b6080525062000289565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200015c906200024c565b90600052602060002090601f016020900481019282620001805760008555620001cb565b82601f106200019b57805160ff1916838001178555620001cb565b82800160010185558215620001cb579182015b82811115620001cb578251825591602001919060010190620001ae565b50620001d9929150620001dd565b5090565b5b80821115620001d95760008155600101620001de565b6000602082840312156200020757600080fd5b81516001600160a01b03811681146200021f57600080fd5b9392505050565b6000828210156200024757634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200026157607f821691505b602082108114156200028357634e487b7160e01b600052602260045260246000fd5b50919050565b608051611340620002b36000396000818161037401528181610d0a0152610d3101526113406000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b88a802f11610097578063d230af3a11610071578063d230af3a146103b6578063d456729a146103c9578063dd62ed3e146103dc578063f2fde38b1461041557600080fd5b8063b88a802f14610367578063ba9a061a1461036f578063cb03fb1e1461039657600080fd5b8063a457c2d7116100d3578063a457c2d714610325578063a716151514610338578063a9059cbb1461034c578063ac8724cf1461035f57600080fd5b80638da5cb5b146102e557806395d89b411461030a5780639dc29fac1461031257600080fd5b8063313ce5671161016657806341910f901161014057806341910f901461029057806370a082311461029f578063715018a6146102c857806389781912146102d257600080fd5b8063313ce5671461024b578063395093511461025a5780634120657a1461026d57600080fd5b806306fdde03146101ae5780630700037d146101cc578063095ea7b3146101fa57806318160ddd1461021d57806323b872dd14610225578063267e8ab614610238575b600080fd5b6101b6610428565b6040516101c39190611093565b60405180910390f35b6101ec6101da366004611104565b60076020526000908152604090205481565b6040519081526020016101c3565b61020d610208366004611126565b6104ba565b60405190151581526020016101c3565b6002546101ec565b61020d610233366004611150565b6104d2565b6101ec610246366004611104565b6104f6565b604051601281526020016101c3565b61020d610268366004611126565b61052a565b61020d61027b366004611104565b60096020526000908152604090205460ff1681565b6101ec674563918244f4000081565b6101ec6102ad366004611104565b6001600160a01b031660009081526020819052604090205490565b6102d0610569565b005b6102d06102e036600461118c565b6105a8565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101c3565b6101b66105fd565b6102d0610320366004611126565b61060c565b61020d610333366004611126565b61066d565b60065461020d90600160a01b900460ff1681565b61020d61035a366004611126565b6106ff565b6102d061070d565b6102d0610758565b6101ec7f000000000000000000000000000000000000000000000000000000000000000081565b6101ec6103a4366004611104565b60086020526000908152604090205481565b6102d06103c43660046111c8565b6107f0565b6006546102f2906001600160a01b031681565b6101ec6103ea3660046111c8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102d0610423366004611104565b6108ca565b606060038054610437906111fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610463906111fb565b80156104b05780601f10610485576101008083540402835291602001916104b0565b820191906000526020600020905b81548152906001019060200180831161049357829003601f168201915b5050505050905090565b6000336104c8818585610965565b5060019392505050565b6000336104e0858285610a8a565b6104eb858585610b1c565b506001949350505050565b600061050182610cea565b6001600160a01b038316600090815260076020526040902054610524919061124c565b92915050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906104c8908290869061056490879061124c565b610965565b6005546001600160a01b0316331461059c5760405162461bcd60e51b815260040161059390611264565b60405180910390fd5b6105a66000610e1c565b565b6005546001600160a01b031633146105d25760405162461bcd60e51b815260040161059390611264565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b606060048054610437906111fb565b3360009081526009602052604090205460ff1661065f5760405162461bcd60e51b815260206004820152601160248201527020b2323932b9b9a1b0b73737ba213ab93760791b6044820152606401610593565b6106698282610e6e565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156106f25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610593565b6104eb8286868403610965565b6000336104c8818585610b1c565b6005546001600160a01b031633146107375760405162461bcd60e51b815260040161059390611264565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600654600160a01b900460ff16156107a35760405162461bcd60e51b815260206004820152600e60248201526d10db185a5b5a5b99d4185d5cd95960921b6044820152606401610593565b6107cf336107b033610cea565b336000908152600760205260409020546107ca919061124c565b610fb4565b33600090815260076020908152604080832083905560089091529020429055565b6006546001600160a01b0316331461080757600080fd5b6001600160a01b038216156108685761081f82610cea565b6001600160a01b0383166000908152600760205260408120805490919061084790849061124c565b90915550506001600160a01b03821660009081526008602052604090204290555b6001600160a01b038116156106695761088081610cea565b6001600160a01b038216600090815260076020526040812080549091906108a890849061124c565b90915550506001600160a01b0316600090815260086020526040902042905550565b6005546001600160a01b031633146108f45760405162461bcd60e51b815260040161059390611264565b6001600160a01b0381166109595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610593565b61096281610e1c565b50565b6001600160a01b0383166109c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610593565b6001600160a01b038216610a285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610593565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b165781811015610b095760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610593565b610b168484848403610965565b50505050565b6001600160a01b038316610b805760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610593565b6001600160a01b038216610be25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610593565b6001600160a01b03831660009081526020819052604090205481811015610c5a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610593565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610c9190849061124c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cdd91815260200190565b60405180910390a3610b16565b6001600160a01b03811660009081526008602052604081205462015180907f00000000000000000000000000000000000000000000000000000000000000001115610d55577f0000000000000000000000000000000000000000000000000000000000000000610d6f565b6001600160a01b0383166000908152600860205260409020545b610d799042611299565b6006546040516370a0823160e01b81526001600160a01b038681166004830152674563918244f400009216906370a082319060240160206040518083038186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe91906112b0565b610e0891906112c9565b610e1291906112c9565b61052491906112e8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610ece5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610593565b6001600160a01b03821660009081526020819052604090205481811015610f425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610593565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610f71908490611299565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a7d565b6001600160a01b03821661100a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610593565b806002600082825461101c919061124c565b90915550506001600160a01b0382166000908152602081905260408120805483929061104990849061124c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b818110156110c0578581018301518582016040015282016110a4565b818111156110d2576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146110ff57600080fd5b919050565b60006020828403121561111657600080fd5b61111f826110e8565b9392505050565b6000806040838503121561113957600080fd5b611142836110e8565b946020939093013593505050565b60008060006060848603121561116557600080fd5b61116e846110e8565b925061117c602085016110e8565b9150604084013590509250925092565b6000806040838503121561119f57600080fd5b6111a8836110e8565b9150602083013580151581146111bd57600080fd5b809150509250929050565b600080604083850312156111db57600080fd5b6111e4836110e8565b91506111f2602084016110e8565b90509250929050565b600181811c9082168061120f57607f821691505b6020821081141561123057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561125f5761125f611236565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156112ab576112ab611236565b500390565b6000602082840312156112c257600080fd5b5051919050565b60008160001904831182151516156112e3576112e3611236565b500290565b60008261130557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220305fff1df1e51a1f886568d763e718a355e34a2d68bc6152018ac3a304b9a48264736f6c634300080900330000000000000000000000005a192ff14810ecea58b977f7479f893ae919c55d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80638da5cb5b116100f9578063b88a802f11610097578063d230af3a11610071578063d230af3a146103b6578063d456729a146103c9578063dd62ed3e146103dc578063f2fde38b1461041557600080fd5b8063b88a802f14610367578063ba9a061a1461036f578063cb03fb1e1461039657600080fd5b8063a457c2d7116100d3578063a457c2d714610325578063a716151514610338578063a9059cbb1461034c578063ac8724cf1461035f57600080fd5b80638da5cb5b146102e557806395d89b411461030a5780639dc29fac1461031257600080fd5b8063313ce5671161016657806341910f901161014057806341910f901461029057806370a082311461029f578063715018a6146102c857806389781912146102d257600080fd5b8063313ce5671461024b578063395093511461025a5780634120657a1461026d57600080fd5b806306fdde03146101ae5780630700037d146101cc578063095ea7b3146101fa57806318160ddd1461021d57806323b872dd14610225578063267e8ab614610238575b600080fd5b6101b6610428565b6040516101c39190611093565b60405180910390f35b6101ec6101da366004611104565b60076020526000908152604090205481565b6040519081526020016101c3565b61020d610208366004611126565b6104ba565b60405190151581526020016101c3565b6002546101ec565b61020d610233366004611150565b6104d2565b6101ec610246366004611104565b6104f6565b604051601281526020016101c3565b61020d610268366004611126565b61052a565b61020d61027b366004611104565b60096020526000908152604090205460ff1681565b6101ec674563918244f4000081565b6101ec6102ad366004611104565b6001600160a01b031660009081526020819052604090205490565b6102d0610569565b005b6102d06102e036600461118c565b6105a8565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101c3565b6101b66105fd565b6102d0610320366004611126565b61060c565b61020d610333366004611126565b61066d565b60065461020d90600160a01b900460ff1681565b61020d61035a366004611126565b6106ff565b6102d061070d565b6102d0610758565b6101ec7f0000000000000000000000000000000000000000000000000000000062a3ddee81565b6101ec6103a4366004611104565b60086020526000908152604090205481565b6102d06103c43660046111c8565b6107f0565b6006546102f2906001600160a01b031681565b6101ec6103ea3660046111c8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102d0610423366004611104565b6108ca565b606060038054610437906111fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610463906111fb565b80156104b05780601f10610485576101008083540402835291602001916104b0565b820191906000526020600020905b81548152906001019060200180831161049357829003601f168201915b5050505050905090565b6000336104c8818585610965565b5060019392505050565b6000336104e0858285610a8a565b6104eb858585610b1c565b506001949350505050565b600061050182610cea565b6001600160a01b038316600090815260076020526040902054610524919061124c565b92915050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906104c8908290869061056490879061124c565b610965565b6005546001600160a01b0316331461059c5760405162461bcd60e51b815260040161059390611264565b60405180910390fd5b6105a66000610e1c565b565b6005546001600160a01b031633146105d25760405162461bcd60e51b815260040161059390611264565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b606060048054610437906111fb565b3360009081526009602052604090205460ff1661065f5760405162461bcd60e51b815260206004820152601160248201527020b2323932b9b9a1b0b73737ba213ab93760791b6044820152606401610593565b6106698282610e6e565b5050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156106f25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610593565b6104eb8286868403610965565b6000336104c8818585610b1c565b6005546001600160a01b031633146107375760405162461bcd60e51b815260040161059390611264565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600654600160a01b900460ff16156107a35760405162461bcd60e51b815260206004820152600e60248201526d10db185a5b5a5b99d4185d5cd95960921b6044820152606401610593565b6107cf336107b033610cea565b336000908152600760205260409020546107ca919061124c565b610fb4565b33600090815260076020908152604080832083905560089091529020429055565b6006546001600160a01b0316331461080757600080fd5b6001600160a01b038216156108685761081f82610cea565b6001600160a01b0383166000908152600760205260408120805490919061084790849061124c565b90915550506001600160a01b03821660009081526008602052604090204290555b6001600160a01b038116156106695761088081610cea565b6001600160a01b038216600090815260076020526040812080549091906108a890849061124c565b90915550506001600160a01b0316600090815260086020526040902042905550565b6005546001600160a01b031633146108f45760405162461bcd60e51b815260040161059390611264565b6001600160a01b0381166109595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610593565b61096281610e1c565b50565b6001600160a01b0383166109c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610593565b6001600160a01b038216610a285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610593565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b165781811015610b095760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610593565b610b168484848403610965565b50505050565b6001600160a01b038316610b805760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610593565b6001600160a01b038216610be25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610593565b6001600160a01b03831660009081526020819052604090205481811015610c5a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610593565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610c9190849061124c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cdd91815260200190565b60405180910390a3610b16565b6001600160a01b03811660009081526008602052604081205462015180907f0000000000000000000000000000000000000000000000000000000062a3ddee1115610d55577f0000000000000000000000000000000000000000000000000000000062a3ddee610d6f565b6001600160a01b0383166000908152600860205260409020545b610d799042611299565b6006546040516370a0823160e01b81526001600160a01b038681166004830152674563918244f400009216906370a082319060240160206040518083038186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe91906112b0565b610e0891906112c9565b610e1291906112c9565b61052491906112e8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216610ece5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610593565b6001600160a01b03821660009081526020819052604090205481811015610f425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610593565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610f71908490611299565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a7d565b6001600160a01b03821661100a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610593565b806002600082825461101c919061124c565b90915550506001600160a01b0382166000908152602081905260408120805483929061104990849061124c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b818110156110c0578581018301518582016040015282016110a4565b818111156110d2576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146110ff57600080fd5b919050565b60006020828403121561111657600080fd5b61111f826110e8565b9392505050565b6000806040838503121561113957600080fd5b611142836110e8565b946020939093013593505050565b60008060006060848603121561116557600080fd5b61116e846110e8565b925061117c602085016110e8565b9150604084013590509250925092565b6000806040838503121561119f57600080fd5b6111a8836110e8565b9150602083013580151581146111bd57600080fd5b809150509250929050565b600080604083850312156111db57600080fd5b6111e4836110e8565b91506111f2602084016110e8565b90509250929050565b600181811c9082168061120f57607f821691505b6020821081141561123057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561125f5761125f611236565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000828210156112ab576112ab611236565b500390565b6000602082840312156112c257600080fd5b5051919050565b60008160001904831182151516156112e3576112e3611236565b500290565b60008261130557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220305fff1df1e51a1f886568d763e718a355e34a2d68bc6152018ac3a304b9a48264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005a192ff14810ecea58b977f7479f893ae919c55d
-----Decoded View---------------
Arg [0] : cnAddress (address): 0x5A192ff14810EceA58b977f7479F893Ae919C55d
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005a192ff14810ecea58b977f7479f893ae919c55d
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.