ERC-20
Metaverse
Overview
Max Total Supply
2,000,000,000 ViCA
Holders
3,120 (0.00%)
Market
Price
$0.02 @ 0.000009 ETH (-3.69%)
Onchain Market Cap
$47,124,460.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
1 ViCAValue
$0.02 ( ~7.45631632364032E-06 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ViCA
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-02 */ // File: @openzeppelin/contracts/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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.8.0; /** * @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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, 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 defaut 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); _burn(account, amount); } } // File: eth-token-recover/contracts/TokenRecover.sol pragma solidity ^0.8.0; /** * @title TokenRecover * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Allows owner to recover any ERC20 sent into the contract */ contract TokenRecover is Ownable { /** * @dev Remember that only owner can call so be careful when use on contracts generated from other contracts. * @param tokenAddress The token contract address * @param tokenAmount Number of tokens to be sent */ function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner { IERC20(tokenAddress).transfer(owner(), tokenAmount); } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/utils/Strings.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/access/AccessControl.sol pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping (address => bool) members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if(!hasRole(role, account)) { revert(string(abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ))); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: contracts/ViCA.sol /* SPDX-License-Identifier: MIT The ViCA coin was created in compliance with the standard ERC20 regulations. */ pragma solidity ^0.8.0; contract ViCA is ERC20 { // 18 decimals constructor() ERC20("ViCA Token", "ViCA") { _mint(_msgSender(), 2_000_000_000 * (10 ** uint256(decimals()))); } function batchTransfer(address[] calldata destinations, uint256[] calldata amounts) public { uint256 n = destinations.length; address sender = _msgSender(); require(n == amounts.length, "ViCA: Invalid BatchTransfer"); for(uint256 i = 0; i < n; i++) _transfer(sender, destinations[i], amounts[i]); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"destinations","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600a8152692b34a1a0902a37b5b2b760b11b6020808301918252835180850190945260048452635669434160e01b9084015281519192916200006091600391620001a5565b50805162000076906004906020840190620001a5565b505050620000bd6200008d620000c360201b60201c565b62000097620000c7565b620000a79060ff16600a620002f3565b620000b7906377359400620003e8565b620000cc565b6200045d565b3390565b601290565b6001600160a01b038216620000fe5760405162461bcd60e51b8152600401620000f5906200024b565b60405180910390fd5b6200010c60008383620001a0565b80600260008282546200012091906200028b565b90915550506001600160a01b038216600090815260208190526040812080548392906200014f9084906200028b565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200019490859062000282565b60405180910390a35050565b505050565b828054620001b3906200040a565b90600052602060002090601f016020900481019282620001d7576000855562000222565b82601f10620001f257805160ff191683800117855562000222565b8280016001018555821562000222579182015b828111156200022257825182559160200191906001019062000205565b506200023092915062000234565b5090565b5b8082111562000230576000815560010162000235565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60008219821115620002a157620002a162000447565b500190565b80825b6001808611620002ba5750620002ea565b818704821115620002cf57620002cf62000447565b80861615620002dd57918102915b9490941c938002620002a9565b94509492505050565b60006200030460001984846200030b565b9392505050565b6000826200031c5750600162000304565b816200032b5750600062000304565b81600181146200034457600281146200034f5762000383565b600191505062000304565b60ff84111562000363576200036362000447565b6001841b9150848211156200037c576200037c62000447565b5062000304565b5060208310610133831016604e8410600b8410161715620003bb575081810a83811115620003b557620003b562000447565b62000304565b620003ca8484846001620002a6565b808604821115620003df57620003df62000447565b02949350505050565b600081600019048311821515161562000405576200040562000447565b500290565b6002810460018216806200041f57607f821691505b602082108114156200044157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b610bbb806200046d6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461014757806388d695b21461015a57806395d89b411461016f578063a457c2d714610177578063a9059cbb1461018a578063dd62ed3e1461019d576100b4565b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100f757806323b872dd1461010c578063313ce5671461011f5780633950935114610134575b600080fd5b6100c16101b0565b6040516100ce9190610868565b60405180910390f35b6100ea6100e53660046107cb565b610242565b6040516100ce919061085d565b6100ff61025f565b6040516100ce9190610ad3565b6100ea61011a366004610790565b610265565b610127610305565b6040516100ce9190610adc565b6100ea6101423660046107cb565b61030a565b6100ff61015536600461073d565b610359565b61016d6101683660046107f4565b610378565b005b6100c161042f565b6100ea6101853660046107cb565b61043e565b6100ea6101983660046107cb565b6104b9565b6100ff6101ab36600461075e565b6104cd565b6060600380546101bf90610b19565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610b19565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600061025661024f6104f8565b84846104fc565b50600192915050565b60025490565b60006102728484846105b0565b6001600160a01b0384166000908152600160205260408120816102936104f8565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156102df5760405162461bcd60e51b81526004016102d6906109bd565b60405180910390fd5b6102fa856102eb6104f8565b6102f58685610b02565b6104fc565b506001949350505050565b601290565b60006102566103176104f8565b8484600160006103256104f8565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546102f59190610aea565b6001600160a01b0381166000908152602081905260409020545b919050565b8260006103836104f8565b90508183146103a45760405162461bcd60e51b81526004016102d690610986565b60005b8281101561042657610414828888848181106103d357634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103e8919061073d565b87878581811061040857634e487b7160e01b600052603260045260246000fd5b905060200201356105b0565b8061041e81610b54565b9150506103a7565b50505050505050565b6060600480546101bf90610b19565b6000806001600061044d6104f8565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156104995760405162461bcd60e51b81526004016102d690610a8e565b6104af6104a46104f8565b856102f58685610b02565b5060019392505050565b60006102566104c66104f8565b84846105b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105225760405162461bcd60e51b81526004016102d690610a4a565b6001600160a01b0382166105485760405162461bcd60e51b81526004016102d6906108fe565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105a3908590610ad3565b60405180910390a3505050565b6001600160a01b0383166105d65760405162461bcd60e51b81526004016102d690610a05565b6001600160a01b0382166105fc5760405162461bcd60e51b81526004016102d6906108bb565b6106078383836106d8565b6001600160a01b038316600090815260208190526040902054818110156106405760405162461bcd60e51b81526004016102d690610940565b61064a8282610b02565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610680908490610aea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106ca9190610ad3565b60405180910390a350505050565b505050565b80356001600160a01b038116811461037357600080fd5b60008083601f840112610705578182fd5b50813567ffffffffffffffff81111561071c578182fd5b602083019150836020808302850101111561073657600080fd5b9250929050565b60006020828403121561074e578081fd5b610757826106dd565b9392505050565b60008060408385031215610770578081fd5b610779836106dd565b9150610787602084016106dd565b90509250929050565b6000806000606084860312156107a4578081fd5b6107ad846106dd565b92506107bb602085016106dd565b9150604084013590509250925092565b600080604083850312156107dd578182fd5b6107e6836106dd565b946020939093013593505050565b60008060008060408587031215610809578081fd5b843567ffffffffffffffff80821115610820578283fd5b61082c888389016106f4565b90965094506020870135915080821115610844578283fd5b50610851878288016106f4565b95989497509550505050565b901515815260200190565b6000602080835283518082850152825b8181101561089457858101830151858201604001528201610878565b818111156108a55783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601b908201527f566943413a20496e76616c69642042617463685472616e736665720000000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b60ff91909116815260200190565b60008219821115610afd57610afd610b6f565b500190565b600082821015610b1457610b14610b6f565b500390565b600281046001821680610b2d57607f821691505b60208210811415610b4e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415610b6857610b68610b6f565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220ff46c8e28d2fd094a2032ee37e92ee614e3988b7fe25388f31970c80cc388b2964736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461014757806388d695b21461015a57806395d89b411461016f578063a457c2d714610177578063a9059cbb1461018a578063dd62ed3e1461019d576100b4565b806306fdde03146100b9578063095ea7b3146100d757806318160ddd146100f757806323b872dd1461010c578063313ce5671461011f5780633950935114610134575b600080fd5b6100c16101b0565b6040516100ce9190610868565b60405180910390f35b6100ea6100e53660046107cb565b610242565b6040516100ce919061085d565b6100ff61025f565b6040516100ce9190610ad3565b6100ea61011a366004610790565b610265565b610127610305565b6040516100ce9190610adc565b6100ea6101423660046107cb565b61030a565b6100ff61015536600461073d565b610359565b61016d6101683660046107f4565b610378565b005b6100c161042f565b6100ea6101853660046107cb565b61043e565b6100ea6101983660046107cb565b6104b9565b6100ff6101ab36600461075e565b6104cd565b6060600380546101bf90610b19565b80601f01602080910402602001604051908101604052809291908181526020018280546101eb90610b19565b80156102385780601f1061020d57610100808354040283529160200191610238565b820191906000526020600020905b81548152906001019060200180831161021b57829003601f168201915b5050505050905090565b600061025661024f6104f8565b84846104fc565b50600192915050565b60025490565b60006102728484846105b0565b6001600160a01b0384166000908152600160205260408120816102936104f8565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156102df5760405162461bcd60e51b81526004016102d6906109bd565b60405180910390fd5b6102fa856102eb6104f8565b6102f58685610b02565b6104fc565b506001949350505050565b601290565b60006102566103176104f8565b8484600160006103256104f8565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546102f59190610aea565b6001600160a01b0381166000908152602081905260409020545b919050565b8260006103836104f8565b90508183146103a45760405162461bcd60e51b81526004016102d690610986565b60005b8281101561042657610414828888848181106103d357634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103e8919061073d565b87878581811061040857634e487b7160e01b600052603260045260246000fd5b905060200201356105b0565b8061041e81610b54565b9150506103a7565b50505050505050565b6060600480546101bf90610b19565b6000806001600061044d6104f8565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156104995760405162461bcd60e51b81526004016102d690610a8e565b6104af6104a46104f8565b856102f58685610b02565b5060019392505050565b60006102566104c66104f8565b84846105b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105225760405162461bcd60e51b81526004016102d690610a4a565b6001600160a01b0382166105485760405162461bcd60e51b81526004016102d6906108fe565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105a3908590610ad3565b60405180910390a3505050565b6001600160a01b0383166105d65760405162461bcd60e51b81526004016102d690610a05565b6001600160a01b0382166105fc5760405162461bcd60e51b81526004016102d6906108bb565b6106078383836106d8565b6001600160a01b038316600090815260208190526040902054818110156106405760405162461bcd60e51b81526004016102d690610940565b61064a8282610b02565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610680908490610aea565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516106ca9190610ad3565b60405180910390a350505050565b505050565b80356001600160a01b038116811461037357600080fd5b60008083601f840112610705578182fd5b50813567ffffffffffffffff81111561071c578182fd5b602083019150836020808302850101111561073657600080fd5b9250929050565b60006020828403121561074e578081fd5b610757826106dd565b9392505050565b60008060408385031215610770578081fd5b610779836106dd565b9150610787602084016106dd565b90509250929050565b6000806000606084860312156107a4578081fd5b6107ad846106dd565b92506107bb602085016106dd565b9150604084013590509250925092565b600080604083850312156107dd578182fd5b6107e6836106dd565b946020939093013593505050565b60008060008060408587031215610809578081fd5b843567ffffffffffffffff80821115610820578283fd5b61082c888389016106f4565b90965094506020870135915080821115610844578283fd5b50610851878288016106f4565b95989497509550505050565b901515815260200190565b6000602080835283518082850152825b8181101561089457858101830151858201604001528201610878565b818111156108a55783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601b908201527f566943413a20496e76616c69642042617463685472616e736665720000000000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b90815260200190565b60ff91909116815260200190565b60008219821115610afd57610afd610b6f565b500190565b600082821015610b1457610b14610b6f565b500390565b600281046001821680610b2d57607f821691505b60208210811415610b4e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415610b6857610b68610b6f565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220ff46c8e28d2fd094a2032ee37e92ee614e3988b7fe25388f31970c80cc388b2964736f6c63430008000033
Deployed Bytecode Sourcemap
51002:538:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8768:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10935:169;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;9888:108::-;;;:::i;:::-;;;;;;;:::i;11586:422::-;;;;;;:::i;:::-;;:::i;9730:93::-;;;:::i;:::-;;;;;;;:::i;12417:215::-;;;;;;:::i;:::-;;:::i;10059:127::-;;;;;;:::i;:::-;;:::i;51185:352::-;;;;;;:::i;:::-;;:::i;:::-;;8987:104;;;:::i;13135:377::-;;;;;;:::i;:::-;;:::i;10399:175::-;;;;;;:::i;:::-;;:::i;10637:151::-;;;;;;:::i;:::-;;:::i;8768:100::-;8822:13;8855:5;8848:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8768:100;:::o;10935:169::-;11018:4;11035:39;11044:12;:10;:12::i;:::-;11058:7;11067:6;11035:8;:39::i;:::-;-1:-1:-1;11092:4:0;10935:169;;;;:::o;9888:108::-;9976:12;;9888:108;:::o;11586:422::-;11692:4;11709:36;11719:6;11727:9;11738:6;11709:9;:36::i;:::-;-1:-1:-1;;;;;11785:19:0;;11758:24;11785:19;;;:11;:19;;;;;11758:24;11805:12;:10;:12::i;:::-;-1:-1:-1;;;;;11785:33:0;-1:-1:-1;;;;;11785:33:0;;;;;;;;;;;;;11758:60;;11857:6;11837:16;:26;;11829:79;;;;-1:-1:-1;;;11829:79:0;;;;;;;:::i;:::-;;;;;;;;;11919:57;11928:6;11936:12;:10;:12::i;:::-;11950:25;11969:6;11950:16;:25;:::i;:::-;11919:8;:57::i;:::-;-1:-1:-1;11996:4:0;;11586:422;-1:-1:-1;;;;11586:422:0:o;9730:93::-;9813:2;9730:93;:::o;12417:215::-;12505:4;12522:80;12531:12;:10;:12::i;:::-;12545:7;12591:10;12554:11;:25;12566:12;:10;:12::i;:::-;-1:-1:-1;;;;;12554:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;12554:25:0;;;:34;;;;;;;;;;:47;;;;:::i;10059:127::-;-1:-1:-1;;;;;10160:18:0;;10133:7;10160:18;;;;;;;;;;;10059:127;;;;:::o;51185:352::-;51299:12;51287:9;51346:12;:10;:12::i;:::-;51329:29;-1:-1:-1;51377:19:0;;;51369:59;;;;-1:-1:-1;;;51369:59:0;;;;;;;:::i;:::-;51443:9;51439:90;51462:1;51458;:5;51439:90;;;51483:46;51493:6;51501:12;;51514:1;51501:15;;;;;-1:-1:-1;;;51501:15:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51518:7;;51526:1;51518:10;;;;;-1:-1:-1;;;51518:10:0;;;;;;;;;;;;;;;51483:9;:46::i;:::-;51465:3;;;;:::i;:::-;;;;51439:90;;;;51185:352;;;;;;:::o;8987:104::-;9043:13;9076:7;9069:14;;;;;:::i;13135:377::-;13228:4;13245:24;13272:11;:25;13284:12;:10;:12::i;:::-;-1:-1:-1;;;;;13272:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;13272:25:0;;;:34;;;;;;;;;;;-1:-1:-1;13325:35:0;;;;13317:85;;;;-1:-1:-1;;;13317:85:0;;;;;;;:::i;:::-;13413:67;13422:12;:10;:12::i;:::-;13436:7;13445:34;13464:15;13445:16;:34;:::i;13413:67::-;-1:-1:-1;13500:4:0;;13135:377;-1:-1:-1;;;13135:377:0:o;10399:175::-;10485:4;10502:42;10512:12;:10;:12::i;:::-;10526:9;10537:6;10502:9;:42::i;10637:151::-;-1:-1:-1;;;;;10753:18:0;;;10726:7;10753:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;10637:151::o;620:98::-;700:10;620:98;:::o;16491:346::-;-1:-1:-1;;;;;16593:19:0;;16585:68;;;;-1:-1:-1;;;16585:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16672:21:0;;16664:68;;;;-1:-1:-1;;;16664:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16745:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;16797:32;;;;;16775:6;;16797:32;:::i;:::-;;;;;;;;16491:346;;;:::o;14002:604::-;-1:-1:-1;;;;;14108:20:0;;14100:70;;;;-1:-1:-1;;;14100:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;14189:23:0;;14181:71;;;;-1:-1:-1;;;14181:71:0;;;;;;;:::i;:::-;14265:47;14286:6;14294:9;14305:6;14265:20;:47::i;:::-;-1:-1:-1;;;;;14349:17:0;;14325:21;14349:17;;;;;;;;;;;14385:23;;;;14377:74;;;;-1:-1:-1;;;14377:74:0;;;;;;;:::i;:::-;14482:22;14498:6;14482:13;:22;:::i;:::-;-1:-1:-1;;;;;14462:17:0;;;:9;:17;;;;;;;;;;;:42;;;;14515:20;;;;;;;;:30;;14539:6;;14462:9;14515:30;;14539:6;;14515:30;:::i;:::-;;;;;;;;14580:9;-1:-1:-1;;;;;14563:35:0;14572:6;-1:-1:-1;;;;;14563:35:0;;14591:6;14563:35;;;;;;:::i;:::-;;;;;;;;14002:604;;;;:::o;17440:92::-;;;;:::o;14:175:1:-;84:20;;-1:-1:-1;;;;;133:31:1;;123:42;;113:2;;179:1;176;169:12;194:404;;;327:3;320:4;312:6;308:17;304:27;294:2;;352:8;342;335:26;294:2;-1:-1:-1;382:20:1;;425:18;414:30;;411:2;;;464:8;454;447:26;411:2;508:4;500:6;496:17;484:29;;571:3;564:4;556;548:6;544:17;536:6;532:30;528:41;525:50;522:2;;;588:1;585;578:12;522:2;284:314;;;;;:::o;603:198::-;;715:2;703:9;694:7;690:23;686:32;683:2;;;736:6;728;721:22;683:2;764:31;785:9;764:31;:::i;:::-;754:41;673:128;-1:-1:-1;;;673:128:1:o;806:274::-;;;935:2;923:9;914:7;910:23;906:32;903:2;;;956:6;948;941:22;903:2;984:31;1005:9;984:31;:::i;:::-;974:41;;1034:40;1070:2;1059:9;1055:18;1034:40;:::i;:::-;1024:50;;893:187;;;;;:::o;1085:342::-;;;;1231:2;1219:9;1210:7;1206:23;1202:32;1199:2;;;1252:6;1244;1237:22;1199:2;1280:31;1301:9;1280:31;:::i;:::-;1270:41;;1330:40;1366:2;1355:9;1351:18;1330:40;:::i;:::-;1320:50;;1417:2;1406:9;1402:18;1389:32;1379:42;;1189:238;;;;;:::o;1432:266::-;;;1561:2;1549:9;1540:7;1536:23;1532:32;1529:2;;;1582:6;1574;1567:22;1529:2;1610:31;1631:9;1610:31;:::i;:::-;1600:41;1688:2;1673:18;;;;1660:32;;-1:-1:-1;;;1519:179:1:o;1703:815::-;;;;;1902:2;1890:9;1881:7;1877:23;1873:32;1870:2;;;1923:6;1915;1908:22;1870:2;1968:9;1955:23;1997:18;2038:2;2030:6;2027:14;2024:2;;;2059:6;2051;2044:22;2024:2;2103:76;2171:7;2162:6;2151:9;2147:22;2103:76;:::i;:::-;2198:8;;-1:-1:-1;2077:102:1;-1:-1:-1;2286:2:1;2271:18;;2258:32;;-1:-1:-1;2302:16:1;;;2299:2;;;2336:6;2328;2321:22;2299:2;;2380:78;2450:7;2439:8;2428:9;2424:24;2380:78;:::i;:::-;1860:658;;;;-1:-1:-1;2477:8:1;-1:-1:-1;;;;1860:658:1:o;2523:187::-;2688:14;;2681:22;2663:41;;2651:2;2636:18;;2618:92::o;2715:603::-;;2856:2;2885;2874:9;2867:21;2917:6;2911:13;2960:6;2955:2;2944:9;2940:18;2933:34;2985:4;2998:140;3012:6;3009:1;3006:13;2998:140;;;3107:14;;;3103:23;;3097:30;3073:17;;;3092:2;3069:26;3062:66;3027:10;;2998:140;;;3156:6;3153:1;3150:13;3147:2;;;3226:4;3221:2;3212:6;3201:9;3197:22;3193:31;3186:45;3147:2;-1:-1:-1;3302:2:1;3281:15;-1:-1:-1;;3277:29:1;3262:45;;;;3309:2;3258:54;;2836:482;-1:-1:-1;;;2836:482:1:o;3323:399::-;3525:2;3507:21;;;3564:2;3544:18;;;3537:30;3603:34;3598:2;3583:18;;3576:62;-1:-1:-1;;;3669:2:1;3654:18;;3647:33;3712:3;3697:19;;3497:225::o;3727:398::-;3929:2;3911:21;;;3968:2;3948:18;;;3941:30;4007:34;4002:2;3987:18;;3980:62;-1:-1:-1;;;4073:2:1;4058:18;;4051:32;4115:3;4100:19;;3901:224::o;4130:402::-;4332:2;4314:21;;;4371:2;4351:18;;;4344:30;4410:34;4405:2;4390:18;;4383:62;-1:-1:-1;;;4476:2:1;4461:18;;4454:36;4522:3;4507:19;;4304:228::o;4537:351::-;4739:2;4721:21;;;4778:2;4758:18;;;4751:30;4817:29;4812:2;4797:18;;4790:57;4879:2;4864:18;;4711:177::o;4893:404::-;5095:2;5077:21;;;5134:2;5114:18;;;5107:30;5173:34;5168:2;5153:18;;5146:62;-1:-1:-1;;;5239:2:1;5224:18;;5217:38;5287:3;5272:19;;5067:230::o;5302:401::-;5504:2;5486:21;;;5543:2;5523:18;;;5516:30;5582:34;5577:2;5562:18;;5555:62;-1:-1:-1;;;5648:2:1;5633:18;;5626:35;5693:3;5678:19;;5476:227::o;5708:400::-;5910:2;5892:21;;;5949:2;5929:18;;;5922:30;5988:34;5983:2;5968:18;;5961:62;-1:-1:-1;;;6054:2:1;6039:18;;6032:34;6098:3;6083:19;;5882:226::o;6113:401::-;6315:2;6297:21;;;6354:2;6334:18;;;6327:30;6393:34;6388:2;6373:18;;6366:62;-1:-1:-1;;;6459:2:1;6444:18;;6437:35;6504:3;6489:19;;6287:227::o;6519:177::-;6665:25;;;6653:2;6638:18;;6620:76::o;6701:184::-;6873:4;6861:17;;;;6843:36;;6831:2;6816:18;;6798:87::o;6890:128::-;;6961:1;6957:6;6954:1;6951:13;6948:2;;;6967:18;;:::i;:::-;-1:-1:-1;7003:9:1;;6938:80::o;7023:125::-;;7091:1;7088;7085:8;7082:2;;;7096:18;;:::i;:::-;-1:-1:-1;7133:9:1;;7072:76::o;7153:380::-;7238:1;7228:12;;7285:1;7275:12;;;7296:2;;7350:4;7342:6;7338:17;7328:27;;7296:2;7403;7395:6;7392:14;7372:18;7369:38;7366:2;;;7449:10;7444:3;7440:20;7437:1;7430:31;7484:4;7481:1;7474:15;7512:4;7509:1;7502:15;7366:2;;7208:325;;;:::o;7538:135::-;;-1:-1:-1;;7598:17:1;;7595:2;;;7618:18;;:::i;:::-;-1:-1:-1;7665:1:1;7654:13;;7585:88::o;7678:127::-;7739:10;7734:3;7730:20;7727:1;7720:31;7770:4;7767:1;7760:15;7794:4;7791:1;7784:15
Swarm Source
ipfs://ff46c8e28d2fd094a2032ee37e92ee614e3988b7fe25388f31970c80cc388b29
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.