Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
TokenTracker
Multichain Info
N/A
Latest 25 from a total of 4,695 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 7121739 | 15 days ago | IN | 0 ETH | 0.00305844 | ||||
Transfer | 6987835 | 36 days ago | IN | 0 ETH | 0.00020234 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019482 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6987831 | 36 days ago | IN | 0 ETH | 0.00019486 | ||||
Transfer | 6926579 | 45 days ago | IN | 0 ETH | 0.00001633 | ||||
Transfer | 6924396 | 45 days ago | IN | 0 ETH | 0.00006942 | ||||
Transfer | 6924350 | 45 days ago | IN | 0 ETH | 0.000083 | ||||
Transfer | 6924262 | 45 days ago | IN | 0 ETH | 0.0000948 | ||||
Transfer | 6924211 | 45 days ago | IN | 0 ETH | 0.00008875 | ||||
Transfer | 6924146 | 45 days ago | IN | 0 ETH | 0.00011246 | ||||
Transfer | 6924056 | 45 days ago | IN | 0 ETH | 0.0002362 | ||||
Transfer | 6924006 | 45 days ago | IN | 0 ETH | 0.00021231 | ||||
Transfer | 6843527 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 | ||||
Transfer | 6843526 | 58 days ago | IN | 0 ETH | 0.00065822 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
mintableShibToken
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-03-19 */ // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @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}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } } // File: mintableToken.sol pragma solidity ^0.8.0; contract mintableShibToken is ERC20 { bool private _transferSwitchOn; constructor(uint256 initialSupply, string memory name_, string memory symbol_) ERC20(name_, symbol_) { _mint(msg.sender, initialSupply); _transferSwitchOn = true; } /** * @dev get transferSwitch value */ function isTransferSwitchOn() public view virtual returns (bool) { return _transferSwitchOn; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. * - transfer Switch enabled */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { require(_transferSwitchOn == true, "transfer disabled"); _transfer(_msgSender(), recipient, amount); return true; } /** * @dev enable transfer */ function transferSwitchOn() public virtual returns (bool) { _transferSwitchOn = true; return true; } /** * @dev disable transfer */ function transferSwitchOff() public virtual returns (bool) { _transferSwitchOn = false; return true; } /** * @dev faucet */ function faucet(uint256 amount) public virtual returns (bool) { _mint(msg.sender, amount); return true; } }
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"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":"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"faucet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isTransferSwitchOn","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":"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferSwitchOff","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferSwitchOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f80fd5b50604051610c65380380610c6583398101604081905261002e91610270565b8181600361003c838261035c565b506004610049828261035c565b50505061005c338461007160201b60201c565b50506005805460ff1916600117905550610440565b6001600160a01b03821661009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6100aa5f83836100ae565b5050565b6001600160a01b0383166100d8578060025f8282546100cd919061041b565b909155506101489050565b6001600160a01b0383165f908152602081905260409020548181101561012a5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661016457600280548290039055610182565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516101c791815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126101f7575f80fd5b81516001600160401b0380821115610211576102116101d4565b604051601f8301601f19908116603f01168101908282118183101715610239576102396101d4565b81604052838152866020858801011115610251575f80fd5b8360208701602083015e5f602085830101528094505050505092915050565b5f805f60608486031215610282575f80fd5b835160208501519093506001600160401b03808211156102a0575f80fd5b6102ac878388016101e8565b935060408601519150808211156102c1575f80fd5b506102ce868287016101e8565b9150509250925092565b600181811c908216806102ec57607f821691505b60208210810361030a57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561035757805f5260205f20601f840160051c810160208510156103355750805b601f840160051c820191505b81811015610354575f8155600101610341565b50505b505050565b81516001600160401b03811115610375576103756101d4565b6103898161038384546102d8565b84610310565b602080601f8311600181146103bc575f84156103a55750858301515b5f19600386901b1c1916600185901b178555610413565b5f85815260208120601f198616915b828110156103ea578886015182559484019460019091019084016103cb565b508582101561040757878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b8082018082111561043a57634e487b7160e01b5f52601160045260245ffd5b92915050565b6108188061044d5f395ff3fe608060405234801561000f575f80fd5b50600436106100cb575f3560e01c8063579158971161008857806395d89b411161006357806395d89b411461019b578063a9059cbb146101a3578063d703dceb146101b6578063dd62ed3e146101cc575f80fd5b8063579158971461015557806370a082311461016857806388b7758014610190575f80fd5b806306fdde03146100cf578063095ea7b3146100ed5780630e5ad5b91461011057806318160ddd1461012157806323b872dd14610133578063313ce56714610146575b5f80fd5b6100d7610204565b6040516100e49190610672565b60405180910390f35b6101006100fb3660046106c2565b610294565b60405190151581526020016100e4565b6005805460ff191690556001610100565b6002545b6040519081526020016100e4565b6101006101413660046106ea565b6102ad565b604051601281526020016100e4565b610100610163366004610723565b6102d0565b61012561017636600461073a565b6001600160a01b03165f9081526020819052604090205490565b60055460ff16610100565b6100d76102e3565b6101006101b13660046106c2565b6102f2565b6101006005805460ff1916600190811790915590565b6101256101da36600461075a565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546102139061078b565b80601f016020809104026020016040519081016040528092919081815260200182805461023f9061078b565b801561028a5780601f106102615761010080835404028352916020019161028a565b820191905f5260205f20905b81548152906001019060200180831161026d57829003601f168201915b5050505050905090565b5f336102a1818585610358565b60019150505b92915050565b5f336102ba85828561036a565b6102c58585856103e5565b506001949350505050565b5f6102db3383610442565b506001919050565b6060600480546102139061078b565b6005545f9060ff1615156001146103445760405162461bcd60e51b81526020600482015260116024820152701d1c985b9cd9995c88191a5cd8589b1959607a1b60448201526064015b60405180910390fd5b61034f3384846103e5565b50600192915050565b610365838383600161047a565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146103df57818110156103d157604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161033b565b6103df84848484035f61047a565b50505050565b6001600160a01b03831661040e57604051634b637e8f60e11b81525f600482015260240161033b565b6001600160a01b0382166104375760405163ec442f0560e01b81525f600482015260240161033b565b61036583838361054c565b6001600160a01b03821661046b5760405163ec442f0560e01b81525f600482015260240161033b565b6104765f838361054c565b5050565b6001600160a01b0384166104a35760405163e602df0560e01b81525f600482015260240161033b565b6001600160a01b0383166104cc57604051634a1406b160e11b81525f600482015260240161033b565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156103df57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161053e91815260200190565b60405180910390a350505050565b6001600160a01b038316610576578060025f82825461056b91906107c3565b909155506105e69050565b6001600160a01b0383165f90815260208190526040902054818110156105c85760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161033b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661060257600280548290039055610620565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161066591815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146106bd575f80fd5b919050565b5f80604083850312156106d3575f80fd5b6106dc836106a7565b946020939093013593505050565b5f805f606084860312156106fc575f80fd5b610705846106a7565b9250610713602085016106a7565b9150604084013590509250925092565b5f60208284031215610733575f80fd5b5035919050565b5f6020828403121561074a575f80fd5b610753826106a7565b9392505050565b5f806040838503121561076b575f80fd5b610774836106a7565b9150610782602084016106a7565b90509250929050565b600181811c9082168061079f57607f821691505b6020821081036107bd57634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102a757634e487b7160e01b5f52601160045260245ffdfea2646970667358221220e98d341378972e44d6fa56b79eee51757e7be8eee5cf486b4f3a9338107746e364736f6c634300081900330000000000000000000000000000000000000000204fce5e3e25026110000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000343524f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343524f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100cb575f3560e01c8063579158971161008857806395d89b411161006357806395d89b411461019b578063a9059cbb146101a3578063d703dceb146101b6578063dd62ed3e146101cc575f80fd5b8063579158971461015557806370a082311461016857806388b7758014610190575f80fd5b806306fdde03146100cf578063095ea7b3146100ed5780630e5ad5b91461011057806318160ddd1461012157806323b872dd14610133578063313ce56714610146575b5f80fd5b6100d7610204565b6040516100e49190610672565b60405180910390f35b6101006100fb3660046106c2565b610294565b60405190151581526020016100e4565b6005805460ff191690556001610100565b6002545b6040519081526020016100e4565b6101006101413660046106ea565b6102ad565b604051601281526020016100e4565b610100610163366004610723565b6102d0565b61012561017636600461073a565b6001600160a01b03165f9081526020819052604090205490565b60055460ff16610100565b6100d76102e3565b6101006101b13660046106c2565b6102f2565b6101006005805460ff1916600190811790915590565b6101256101da36600461075a565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546102139061078b565b80601f016020809104026020016040519081016040528092919081815260200182805461023f9061078b565b801561028a5780601f106102615761010080835404028352916020019161028a565b820191905f5260205f20905b81548152906001019060200180831161026d57829003601f168201915b5050505050905090565b5f336102a1818585610358565b60019150505b92915050565b5f336102ba85828561036a565b6102c58585856103e5565b506001949350505050565b5f6102db3383610442565b506001919050565b6060600480546102139061078b565b6005545f9060ff1615156001146103445760405162461bcd60e51b81526020600482015260116024820152701d1c985b9cd9995c88191a5cd8589b1959607a1b60448201526064015b60405180910390fd5b61034f3384846103e5565b50600192915050565b610365838383600161047a565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146103df57818110156103d157604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161033b565b6103df84848484035f61047a565b50505050565b6001600160a01b03831661040e57604051634b637e8f60e11b81525f600482015260240161033b565b6001600160a01b0382166104375760405163ec442f0560e01b81525f600482015260240161033b565b61036583838361054c565b6001600160a01b03821661046b5760405163ec442f0560e01b81525f600482015260240161033b565b6104765f838361054c565b5050565b6001600160a01b0384166104a35760405163e602df0560e01b81525f600482015260240161033b565b6001600160a01b0383166104cc57604051634a1406b160e11b81525f600482015260240161033b565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156103df57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161053e91815260200190565b60405180910390a350505050565b6001600160a01b038316610576578060025f82825461056b91906107c3565b909155506105e69050565b6001600160a01b0383165f90815260208190526040902054818110156105c85760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161033b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661060257600280548290039055610620565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161066591815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146106bd575f80fd5b919050565b5f80604083850312156106d3575f80fd5b6106dc836106a7565b946020939093013593505050565b5f805f606084860312156106fc575f80fd5b610705846106a7565b9250610713602085016106a7565b9150604084013590509250925092565b5f60208284031215610733575f80fd5b5035919050565b5f6020828403121561074a575f80fd5b610753826106a7565b9392505050565b5f806040838503121561076b575f80fd5b610774836106a7565b9150610782602084016106a7565b90509250929050565b600181811c9082168061079f57607f821691505b6020821081036107bd57634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102a757634e487b7160e01b5f52601160045260245ffdfea2646970667358221220e98d341378972e44d6fa56b79eee51757e7be8eee5cf486b4f3a9338107746e364736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000204fce5e3e25026110000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000343524f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343524f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 10000000000000000000000000000
Arg [1] : name_ (string): CRO
Arg [2] : symbol_ (string): CRO
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000204fce5e3e25026110000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 43524f0000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 43524f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
22686:1459:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13297:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15590:190;;;;;;:::i;:::-;;:::i;:::-;;;1039:14:1;;1032:22;1014:41;;1002:2;987:18;15590:190:0;874:187:1;23845:125:0;23915:17;:25;;-1:-1:-1;;23915:25:0;;;-1:-1:-1;23845:125:0;;14399:99;14478:12;;14399:99;;;1212:25:1;;;1200:2;1185:18;14399:99:0;1066:177:1;16358:249:0;;;;;;:::i;:::-;;:::i;14250:84::-;;;14324:2;1723:36:1;;1711:2;1696:18;14250:84:0;1581:184:1;24014:128:0;;;;;;:::i;:::-;;:::i;14561:118::-;;;;;;:::i;:::-;-1:-1:-1;;;;;14653:18:0;14626:7;14653:18;;;;;;;;;;;;14561:118;23017:108;23100:17;;;;23017:108;;13507:95;;;:::i;23372:243::-;;;;;;:::i;:::-;;:::i;23668:123::-;;23737:17;:24;;-1:-1:-1;;23737:24:0;23757:4;23737:24;;;;;;23757:4;23668:123;15129:142;;;;;;:::i;:::-;-1:-1:-1;;;;;15236:18:0;;;15209:7;15236:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15129:142;13297:91;13342:13;13375:5;13368:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13297:91;:::o;15590:190::-;15663:4;7505:10;15719:31;7505:10;15735:7;15744:5;15719:8;:31::i;:::-;15768:4;15761:11;;;15590:190;;;;;:::o;16358:249::-;16445:4;7505:10;16503:37;16519:4;7505:10;16534:5;16503:15;:37::i;:::-;16551:26;16561:4;16567:2;16571:5;16551:9;:26::i;:::-;-1:-1:-1;16595:4:0;;16358:249;-1:-1:-1;;;;16358:249:0:o;24014:128::-;24070:4;24087:25;24093:10;24105:6;24087:5;:25::i;:::-;-1:-1:-1;24130:4:0;;24014:128;-1:-1:-1;24014:128:0:o;13507:95::-;13554:13;13587:7;13580:14;;;;;:::i;23372:243::-;23483:17;;23458:4;;23483:17;;:25;;:17;:25;23475:55;;;;-1:-1:-1;;;23475:55:0;;2998:2:1;23475:55:0;;;2980:21:1;3037:2;3017:18;;;3010:30;-1:-1:-1;;;3056:18:1;;;3049:47;3113:18;;23475:55:0;;;;;;;;;23543:42;7505:10;23567:9;23578:6;23543:9;:42::i;:::-;-1:-1:-1;23603:4:0;23372:243;;;;:::o;20417:130::-;20502:37;20511:5;20518:7;20527:5;20534:4;20502:8;:37::i;:::-;20417:130;;;:::o;22133:487::-;-1:-1:-1;;;;;15236:18:0;;;22233:24;15236:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;22300:37:0;;22296:317;;22377:5;22358:16;:24;22354:132;;;22410:60;;-1:-1:-1;;;22410:60:0;;-1:-1:-1;;;;;3362:32:1;;22410:60:0;;;3344:51:1;3411:18;;;3404:34;;;3454:18;;;3447:34;;;3317:18;;22410:60:0;3142:345:1;22354:132:0;22529:57;22538:5;22545:7;22573:5;22554:16;:24;22580:5;22529:8;:57::i;:::-;22222:398;22133:487;;;:::o;16992:308::-;-1:-1:-1;;;;;17076:18:0;;17072:88;;17118:30;;-1:-1:-1;;;17118:30:0;;17145:1;17118:30;;;3638:51:1;3611:18;;17118:30:0;3492:203:1;17072:88:0;-1:-1:-1;;;;;17174:16:0;;17170:88;;17214:32;;-1:-1:-1;;;17214:32:0;;17243:1;17214:32;;;3638:51:1;3611:18;;17214:32:0;3492:203:1;17170:88:0;17268:24;17276:4;17282:2;17286:5;17268:7;:24::i;19112:213::-;-1:-1:-1;;;;;19183:21:0;;19179:93;;19228:32;;-1:-1:-1;;;19228:32:0;;19257:1;19228:32;;;3638:51:1;3611:18;;19228:32:0;3492:203:1;19179:93:0;19282:35;19298:1;19302:7;19311:5;19282:7;:35::i;:::-;19112:213;;:::o;21398:443::-;-1:-1:-1;;;;;21511:19:0;;21507:91;;21554:32;;-1:-1:-1;;;21554:32:0;;21583:1;21554:32;;;3638:51:1;3611:18;;21554:32:0;3492:203:1;21507:91:0;-1:-1:-1;;;;;21612:21:0;;21608:92;;21657:31;;-1:-1:-1;;;21657:31:0;;21685:1;21657:31;;;3638:51:1;3611:18;;21657:31:0;3492:203:1;21608:92:0;-1:-1:-1;;;;;21710:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;21756:78;;;;21807:7;-1:-1:-1;;;;;21791:31:0;21800:5;-1:-1:-1;;;;;21791:31:0;;21816:5;21791:31;;;;1212:25:1;;1200:2;1185:18;;1066:177;21791:31:0;;;;;;;;21398:443;;;;:::o;17624:1135::-;-1:-1:-1;;;;;17714:18:0;;17710:552;;17868:5;17852:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;17710:552:0;;-1:-1:-1;17710:552:0;;-1:-1:-1;;;;;17928:15:0;;17906:19;17928:15;;;;;;;;;;;17962:19;;;17958:117;;;18009:50;;-1:-1:-1;;;18009:50:0;;-1:-1:-1;;;;;3362:32:1;;18009:50:0;;;3344:51:1;3411:18;;;3404:34;;;3454:18;;;3447:34;;;3317:18;;18009:50:0;3142:345:1;17958:117:0;-1:-1:-1;;;;;18198:15:0;;:9;:15;;;;;;;;;;18216:19;;;;18198:37;;17710:552;-1:-1:-1;;;;;18278:16:0;;18274:435;;18444:12;:21;;;;;;;18274:435;;;-1:-1:-1;;;;;18660:13:0;;:9;:13;;;;;;;;;;:22;;;;;;18274:435;18741:2;-1:-1:-1;;;;;18726:25:0;18735:4;-1:-1:-1;;;;;18726:25:0;;18745:5;18726:25;;;;1212::1;;1200:2;1185:18;;1066:177;18726:25:0;;;;;;;;17624:1135;;;:::o;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:254::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;859:2;844:18;;;;831:32;;-1:-1:-1;;;615:254:1:o;1248:328::-;1325:6;1333;1341;1394:2;1382:9;1373:7;1369:23;1365:32;1362:52;;;1410:1;1407;1400:12;1362:52;1433:29;1452:9;1433:29;:::i;:::-;1423:39;;1481:38;1515:2;1504:9;1500:18;1481:38;:::i;:::-;1471:48;;1566:2;1555:9;1551:18;1538:32;1528:42;;1248:328;;;;;:::o;1770:180::-;1829:6;1882:2;1870:9;1861:7;1857:23;1853:32;1850:52;;;1898:1;1895;1888:12;1850:52;-1:-1:-1;1921:23:1;;1770:180;-1:-1:-1;1770:180:1:o;1955:186::-;2014:6;2067:2;2055:9;2046:7;2042:23;2038:32;2035:52;;;2083:1;2080;2073:12;2035:52;2106:29;2125:9;2106:29;:::i;:::-;2096:39;1955:186;-1:-1:-1;;;1955:186:1:o;2146:260::-;2214:6;2222;2275:2;2263:9;2254:7;2250:23;2246:32;2243:52;;;2291:1;2288;2281:12;2243:52;2314:29;2333:9;2314:29;:::i;:::-;2304:39;;2362:38;2396:2;2385:9;2381:18;2362:38;:::i;:::-;2352:48;;2146:260;;;;;:::o;2411:380::-;2490:1;2486:12;;;;2533;;;2554:61;;2608:4;2600:6;2596:17;2586:27;;2554:61;2661:2;2653:6;2650:14;2630:18;2627:38;2624:161;;2707:10;2702:3;2698:20;2695:1;2688:31;2742:4;2739:1;2732:15;2770:4;2767:1;2760:15;2624:161;;2411:380;;;:::o;3700:222::-;3765:9;;;3786:10;;;3783:133;;;3838:10;3833:3;3829:20;3826:1;3819:31;3873:4;3870:1;3863:15;3901:4;3898:1;3891:15
Swarm Source
ipfs://e98d341378972e44d6fa56b79eee51757e7be8eee5cf486b4f3a9338107746e3
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.