ERC-20
Overview
Max Total Supply
1,000,000,000 WFAIR
Holders
1,108
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,701.2357 WFAIRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WFAIRToken
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-10-05 */ // Sources flattened with hardhat v2.6.3 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] 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/[email protected] 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/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/token/ERC20/[email protected] 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 Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `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"); unchecked { _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"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `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"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/utils/[email protected] 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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/utils/introspection/[email protected] 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/[email protected] 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 erc-payable-token/contracts/token/ERC1363/[email protected] pragma solidity ^0.8.0; /** * @title IERC1363 Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for a Payable Token contract as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363 is IERC20, IERC165 { /** * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @return true unless throwing */ function transferAndCall(address recipient, uint256 amount) external returns (bool); /** * @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @param data bytes Additional data with no specified format, sent in call to `recipient` * @return true unless throwing */ function transferAndCall( address recipient, uint256 amount, bytes calldata data ) external returns (bool); /** * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver * @param sender address The address which you want to send tokens from * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @return true unless throwing */ function transferFromAndCall( address sender, address recipient, uint256 amount ) external returns (bool); /** * @notice Transfer tokens from one address to another and then call `onTransferReceived` on receiver * @param sender address The address which you want to send tokens from * @param recipient address The address which you want to transfer to * @param amount uint256 The amount of tokens to be transferred * @param data bytes Additional data with no specified format, sent in call to `recipient` * @return true unless throwing */ function transferFromAndCall( address sender, address recipient, uint256 amount, bytes calldata data ) external returns (bool); /** * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender * and then call `onApprovalReceived` on spender. * 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 * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent */ function approveAndCall(address spender, uint256 amount) external returns (bool); /** * @notice Approve the passed address to spend the specified amount of tokens on behalf of msg.sender * and then call `onApprovalReceived` on spender. * 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 * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent * @param data bytes Additional data with no specified format, sent in call to `spender` */ function approveAndCall( address spender, uint256 amount, bytes calldata data ) external returns (bool); } // File erc-payable-token/contracts/token/ERC1363/[email protected] pragma solidity ^0.8.0; /** * @title IERC1363Receiver Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for any contract that wants to support transferAndCall or transferFromAndCall * from ERC1363 token contracts as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363Receiver { /** * @notice Handle the receipt of ERC1363 tokens * @dev Any ERC1363 smart contract calls this function on the recipient * after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the * transfer. Return of other than the magic value MUST result in the * transaction being reverted. * Note: the token contract address is always the message sender. * @param operator address The address which called `transferAndCall` or `transferFromAndCall` function * @param sender address The address which are token transferred from * @param amount uint256 The amount of tokens transferred * @param data bytes Additional data with no specified format * @return `bytes4(keccak256("onTransferReceived(address,address,uint256,bytes)"))` unless throwing */ function onTransferReceived( address operator, address sender, uint256 amount, bytes calldata data ) external returns (bytes4); } // File erc-payable-token/contracts/token/ERC1363/[email protected] pragma solidity ^0.8.0; /** * @title IERC1363Spender Interface * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Interface for any contract that wants to support approveAndCall * from ERC1363 token contracts as defined in * https://eips.ethereum.org/EIPS/eip-1363 */ interface IERC1363Spender { /** * @notice Handle the approval of ERC1363 tokens * @dev Any ERC1363 smart contract calls this function on the recipient * after an `approve`. This function MAY throw to revert and reject the * approval. Return of other than the magic value MUST result in the * transaction being reverted. * Note: the token contract address is always the message sender. * @param sender address The address which called `approveAndCall` function * @param amount uint256 The amount of tokens to be spent * @param data bytes Additional data with no specified format * @return `bytes4(keccak256("onApprovalReceived(address,uint256,bytes)"))` unless throwing */ function onApprovalReceived( address sender, uint256 amount, bytes calldata data ) external returns (bytes4); } // File erc-payable-token/contracts/token/ERC1363/[email protected] pragma solidity ^0.8.0; /** * @title ERC1363 * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Implementation of an ERC1363 interface */ abstract contract ERC1363 is ERC20, IERC1363, ERC165 { using Address for address; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1363).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Transfer tokens to a specified address and then execute a callback on recipient. * @param recipient The address to transfer to. * @param amount The amount to be transferred. * @return A boolean that indicates if the operation was successful. */ function transferAndCall(address recipient, uint256 amount) public virtual override returns (bool) { return transferAndCall(recipient, amount, ""); } /** * @dev Transfer tokens to a specified address and then execute a callback on recipient. * @param recipient The address to transfer to * @param amount The amount to be transferred * @param data Additional data with no specified format * @return A boolean that indicates if the operation was successful. */ function transferAndCall( address recipient, uint256 amount, bytes memory data ) public virtual override returns (bool) { transfer(recipient, amount); require(_checkAndCallTransfer(_msgSender(), recipient, amount, data), "ERC1363: _checkAndCallTransfer reverts"); return true; } /** * @dev Transfer tokens from one address to another and then execute a callback on recipient. * @param sender The address which you want to send tokens from * @param recipient The address which you want to transfer to * @param amount The amount of tokens to be transferred * @return A boolean that indicates if the operation was successful. */ function transferFromAndCall( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { return transferFromAndCall(sender, recipient, amount, ""); } /** * @dev Transfer tokens from one address to another and then execute a callback on recipient. * @param sender The address which you want to send tokens from * @param recipient The address which you want to transfer to * @param amount The amount of tokens to be transferred * @param data Additional data with no specified format * @return A boolean that indicates if the operation was successful. */ function transferFromAndCall( address sender, address recipient, uint256 amount, bytes memory data ) public virtual override returns (bool) { transferFrom(sender, recipient, amount); require(_checkAndCallTransfer(sender, recipient, amount, data), "ERC1363: _checkAndCallTransfer reverts"); return true; } /** * @dev Approve spender to transfer tokens and then execute a callback on recipient. * @param spender The address allowed to transfer to * @param amount The amount allowed to be transferred * @return A boolean that indicates if the operation was successful. */ function approveAndCall(address spender, uint256 amount) public virtual override returns (bool) { return approveAndCall(spender, amount, ""); } /** * @dev Approve spender to transfer tokens and then execute a callback on recipient. * @param spender The address allowed to transfer to. * @param amount The amount allowed to be transferred. * @param data Additional data with no specified format. * @return A boolean that indicates if the operation was successful. */ function approveAndCall( address spender, uint256 amount, bytes memory data ) public virtual override returns (bool) { approve(spender, amount); require(_checkAndCallApprove(spender, amount, data), "ERC1363: _checkAndCallApprove reverts"); return true; } /** * @dev Internal function to invoke `onTransferReceived` on a target address * The call is not executed if the target address is not a contract * @param sender address Representing the previous owner of the given token value * @param recipient address Target address that will receive the tokens * @param amount uint256 The amount mount of tokens to be transferred * @param data bytes Optional data to send along with the call * @return whether the call correctly returned the expected magic value */ function _checkAndCallTransfer( address sender, address recipient, uint256 amount, bytes memory data ) internal virtual returns (bool) { if (!recipient.isContract()) { return false; } bytes4 retval = IERC1363Receiver(recipient).onTransferReceived(_msgSender(), sender, amount, data); return (retval == IERC1363Receiver(recipient).onTransferReceived.selector); } /** * @dev Internal function to invoke `onApprovalReceived` on a target address * The call is not executed if the target address is not a contract * @param spender address The address which will spend the funds * @param amount uint256 The amount of tokens to be spent * @param data bytes Optional data to send along with the call * @return whether the call correctly returned the expected magic value */ function _checkAndCallApprove( address spender, uint256 amount, bytes memory data ) internal virtual returns (bool) { if (!spender.isContract()) { return false; } bytes4 retval = IERC1363Spender(spender).onApprovalReceived(_msgSender(), amount, data); return (retval == IERC1363Spender(spender).onApprovalReceived.selector); } } // File contracts/WFAIRToken.sol pragma solidity ^0.8.7; contract WFAIRToken is ERC1363 { // create WFAIR token instance and immediately mint all tokens, no further minting will be possible constructor(uint256 totalSupply_) ERC20("WFAIR Token", "WFAIR") { _mint(msg.sender, totalSupply_); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"totalSupply_","type":"uint256"}],"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":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"approveAndCall","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":"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":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferFromAndCall","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":"transferFromAndCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620011e1380380620011e1833981016040819052620000349162000244565b604080518082018252600b81526a2ba320a4a9102a37b5b2b760a91b6020808301918252835180850190945260058452642ba320a4a960d91b90840152815191929162000084916003916200019e565b5080516200009a9060049060208401906200019e565b505050620000af3382620000b660201b60201c565b50620002c2565b6001600160a01b038216620001115760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200012591906200025e565b90915550506001600160a01b03821660009081526020819052604081208054839290620001549084906200025e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001ac9062000285565b90600052602060002090601f016020900481019282620001d057600085556200021b565b82601f10620001eb57805160ff19168380011785556200021b565b828001600101855582156200021b579182015b828111156200021b578251825591602001919060010190620001fe565b50620002299291506200022d565b5090565b5b808211156200022957600081556001016200022e565b6000602082840312156200025757600080fd5b5051919050565b600082198211156200028057634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200029a57607f821691505b60208210811415620002bc57634e487b7160e01b600052602260045260246000fd5b50919050565b610f0f80620002d26000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80634000aea0116100a2578063a9059cbb11610071578063a9059cbb1461022f578063c1d34b8914610242578063cae9ca5114610255578063d8fbe99414610268578063dd62ed3e1461027b57600080fd5b80634000aea0146101d857806370a08231146101eb57806395d89b4114610214578063a457c2d71461021c57600080fd5b806318160ddd116100e957806318160ddd1461017e57806323b872dd14610190578063313ce567146101a35780633177029f146101b257806339509351146101c557600080fd5b806301ffc9a71461011b57806306fdde0314610143578063095ea7b3146101585780631296ee621461016b575b600080fd5b61012e610129366004610cfc565b6102b4565b60405190151581526020015b60405180910390f35b61014b6102eb565b60405161013a9190610df0565b61012e610166366004610c7b565b61037d565b61012e610179366004610c7b565b610393565b6002545b60405190815260200161013a565b61012e61019e366004610bd7565b6103b6565b6040516012815260200161013a565b61012e6101c0366004610c7b565b610465565b61012e6101d3366004610c7b565b610481565b61012e6101e6366004610ca5565b6104bd565b6101826101f9366004610b89565b6001600160a01b031660009081526020819052604090205490565b61014b6104fc565b61012e61022a366004610c7b565b61050b565b61012e61023d366004610c7b565b61059a565b61012e610250366004610c13565b6105a7565b61012e610263366004610ca5565b6105e5565b61012e610276366004610bd7565b610657565b610182610289366004610ba4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006001600160e01b0319821663b0202a1160e01b14806102e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546102fa90610e6f565b80601f016020809104026020016040519081016040528092919081815260200182805461032690610e6f565b80156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b5050505050905090565b600061038a338484610674565b50600192915050565b60006103af8383604051806020016040528060008152506104bd565b9392505050565b60006103c3848484610798565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561044d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61045a8533858403610674565b506001949350505050565b60006103af8383604051806020016040528060008152506105e5565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161038a9185906104b8908690610e49565b610674565b60006104c9848461059a565b506104d633858585610967565b6104f25760405162461bcd60e51b815260040161044490610e03565b5060019392505050565b6060600480546102fa90610e6f565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561058d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610444565b6104f23385858403610674565b600061038a338484610798565b60006105b48585856103b6565b506105c185858585610967565b61045a5760405162461bcd60e51b815260040161044490610e03565b949350505050565b60006105f1848461037d565b506105fd848484610a25565b6104f25760405162461bcd60e51b815260206004820152602560248201527f455243313336333a205f636865636b416e6443616c6c417070726f7665207265604482015264766572747360d81b6064820152608401610444565b60006105dd848484604051806020016040528060008152506105a7565b6001600160a01b0383166106d65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610444565b6001600160a01b0382166107375760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610444565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107fc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610444565b6001600160a01b03821661085e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610444565b6001600160a01b038316600090815260208190526040902054818110156108d65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610444565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061090d908490610e49565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161095991815260200190565b60405180910390a350505050565b60006001600160a01b0384163b610980575060006105dd565b604051632229f29760e21b81526000906001600160a01b038616906388a7ca5c906109b59033908a9089908990600401610d83565b602060405180830381600087803b1580156109cf57600080fd5b505af11580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a079190610d19565b6001600160e01b031916632229f29760e21b14915050949350505050565b60006001600160a01b0384163b610a3e575060006103af565b6040516307b04a2d60e41b81526000906001600160a01b03861690637b04a2d090610a7190339088908890600401610dc0565b602060405180830381600087803b158015610a8b57600080fd5b505af1158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610d19565b6001600160e01b0319166307b04a2d60e41b149150509392505050565b80356001600160a01b0381168114610af757600080fd5b919050565b600082601f830112610b0d57600080fd5b813567ffffffffffffffff80821115610b2857610b28610eaa565b604051601f8301601f19908116603f01168101908282118183101715610b5057610b50610eaa565b81604052838152866020858801011115610b6957600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215610b9b57600080fd5b6103af82610ae0565b60008060408385031215610bb757600080fd5b610bc083610ae0565b9150610bce60208401610ae0565b90509250929050565b600080600060608486031215610bec57600080fd5b610bf584610ae0565b9250610c0360208501610ae0565b9150604084013590509250925092565b60008060008060808587031215610c2957600080fd5b610c3285610ae0565b9350610c4060208601610ae0565b925060408501359150606085013567ffffffffffffffff811115610c6357600080fd5b610c6f87828801610afc565b91505092959194509250565b60008060408385031215610c8e57600080fd5b610c9783610ae0565b946020939093013593505050565b600080600060608486031215610cba57600080fd5b610cc384610ae0565b925060208401359150604084013567ffffffffffffffff811115610ce657600080fd5b610cf286828701610afc565b9150509250925092565b600060208284031215610d0e57600080fd5b81356103af81610ec0565b600060208284031215610d2b57600080fd5b81516103af81610ec0565b6000815180845260005b81811015610d5c57602081850181015186830182015201610d40565b81811115610d6e576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610db690830184610d36565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000610de76060830184610d36565b95945050505050565b6020815260006103af6020830184610d36565b60208082526026908201527f455243313336333a205f636865636b416e6443616c6c5472616e73666572207260408201526565766572747360d01b606082015260800190565b60008219821115610e6a57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680610e8357607f821691505b60208210811415610ea457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ed657600080fd5b5056fea2646970667358221220f23adb095c44c97b7ea4c2099568b1e5c7002c9ed9137875cf108beeb6b50c1a64736f6c634300080700330000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80634000aea0116100a2578063a9059cbb11610071578063a9059cbb1461022f578063c1d34b8914610242578063cae9ca5114610255578063d8fbe99414610268578063dd62ed3e1461027b57600080fd5b80634000aea0146101d857806370a08231146101eb57806395d89b4114610214578063a457c2d71461021c57600080fd5b806318160ddd116100e957806318160ddd1461017e57806323b872dd14610190578063313ce567146101a35780633177029f146101b257806339509351146101c557600080fd5b806301ffc9a71461011b57806306fdde0314610143578063095ea7b3146101585780631296ee621461016b575b600080fd5b61012e610129366004610cfc565b6102b4565b60405190151581526020015b60405180910390f35b61014b6102eb565b60405161013a9190610df0565b61012e610166366004610c7b565b61037d565b61012e610179366004610c7b565b610393565b6002545b60405190815260200161013a565b61012e61019e366004610bd7565b6103b6565b6040516012815260200161013a565b61012e6101c0366004610c7b565b610465565b61012e6101d3366004610c7b565b610481565b61012e6101e6366004610ca5565b6104bd565b6101826101f9366004610b89565b6001600160a01b031660009081526020819052604090205490565b61014b6104fc565b61012e61022a366004610c7b565b61050b565b61012e61023d366004610c7b565b61059a565b61012e610250366004610c13565b6105a7565b61012e610263366004610ca5565b6105e5565b61012e610276366004610bd7565b610657565b610182610289366004610ba4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60006001600160e01b0319821663b0202a1160e01b14806102e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546102fa90610e6f565b80601f016020809104026020016040519081016040528092919081815260200182805461032690610e6f565b80156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b5050505050905090565b600061038a338484610674565b50600192915050565b60006103af8383604051806020016040528060008152506104bd565b9392505050565b60006103c3848484610798565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561044d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61045a8533858403610674565b506001949350505050565b60006103af8383604051806020016040528060008152506105e5565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161038a9185906104b8908690610e49565b610674565b60006104c9848461059a565b506104d633858585610967565b6104f25760405162461bcd60e51b815260040161044490610e03565b5060019392505050565b6060600480546102fa90610e6f565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561058d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610444565b6104f23385858403610674565b600061038a338484610798565b60006105b48585856103b6565b506105c185858585610967565b61045a5760405162461bcd60e51b815260040161044490610e03565b949350505050565b60006105f1848461037d565b506105fd848484610a25565b6104f25760405162461bcd60e51b815260206004820152602560248201527f455243313336333a205f636865636b416e6443616c6c417070726f7665207265604482015264766572747360d81b6064820152608401610444565b60006105dd848484604051806020016040528060008152506105a7565b6001600160a01b0383166106d65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610444565b6001600160a01b0382166107375760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610444565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166107fc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610444565b6001600160a01b03821661085e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610444565b6001600160a01b038316600090815260208190526040902054818110156108d65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610444565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061090d908490610e49565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161095991815260200190565b60405180910390a350505050565b60006001600160a01b0384163b610980575060006105dd565b604051632229f29760e21b81526000906001600160a01b038616906388a7ca5c906109b59033908a9089908990600401610d83565b602060405180830381600087803b1580156109cf57600080fd5b505af11580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a079190610d19565b6001600160e01b031916632229f29760e21b14915050949350505050565b60006001600160a01b0384163b610a3e575060006103af565b6040516307b04a2d60e41b81526000906001600160a01b03861690637b04a2d090610a7190339088908890600401610dc0565b602060405180830381600087803b158015610a8b57600080fd5b505af1158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610d19565b6001600160e01b0319166307b04a2d60e41b149150509392505050565b80356001600160a01b0381168114610af757600080fd5b919050565b600082601f830112610b0d57600080fd5b813567ffffffffffffffff80821115610b2857610b28610eaa565b604051601f8301601f19908116603f01168101908282118183101715610b5057610b50610eaa565b81604052838152866020858801011115610b6957600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215610b9b57600080fd5b6103af82610ae0565b60008060408385031215610bb757600080fd5b610bc083610ae0565b9150610bce60208401610ae0565b90509250929050565b600080600060608486031215610bec57600080fd5b610bf584610ae0565b9250610c0360208501610ae0565b9150604084013590509250925092565b60008060008060808587031215610c2957600080fd5b610c3285610ae0565b9350610c4060208601610ae0565b925060408501359150606085013567ffffffffffffffff811115610c6357600080fd5b610c6f87828801610afc565b91505092959194509250565b60008060408385031215610c8e57600080fd5b610c9783610ae0565b946020939093013593505050565b600080600060608486031215610cba57600080fd5b610cc384610ae0565b925060208401359150604084013567ffffffffffffffff811115610ce657600080fd5b610cf286828701610afc565b9150509250925092565b600060208284031215610d0e57600080fd5b81356103af81610ec0565b600060208284031215610d2b57600080fd5b81516103af81610ec0565b6000815180845260005b81811015610d5c57602081850181015186830182015201610d40565b81811115610d6e576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610db690830184610d36565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000610de76060830184610d36565b95945050505050565b6020815260006103af6020830184610d36565b60208082526026908201527f455243313336333a205f636865636b416e6443616c6c5472616e73666572207260408201526565766572747360d01b606082015260800190565b60008219821115610e6a57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680610e8357607f821691505b60208210811415610ea457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ed657600080fd5b5056fea2646970667358221220f23adb095c44c97b7ea4c2099568b1e5c7002c9ed9137875cf108beeb6b50c1a64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
-----Decoded View---------------
Arg [0] : totalSupply_ (uint256): 1000000000000000000000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Deployed Bytecode Sourcemap
39779:260:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33820:215;;;;;;:::i;:::-;;:::i;:::-;;;5000:14:1;;4993:22;4975:41;;4963:2;4948:18;33820:215:0;;;;;;;;6496:100;;;:::i;:::-;;;;;;;:::i;8663:169::-;;;;;;:::i;:::-;;:::i;34334:163::-;;;;;;:::i;:::-;;:::i;7616:108::-;7704:12;;7616:108;;;9050:25:1;;;9038:2;9023:18;7616:108:0;8904:177:1;9314:492:0;;;;;;:::i;:::-;;:::i;7458:93::-;;;7541:2;9228:36:1;;9216:2;9201:18;7458:93:0;9086:184:1;36963:157:0;;;;;;:::i;:::-;;:::i;10215:215::-;;;;;;:::i;:::-;;:::i;34855:342::-;;;;;;:::i;:::-;;:::i;7787:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;7888:18:0;7861:7;7888:18;;;;;;;;;;;;7787:127;6715:104;;;:::i;10933:413::-;;;;;;:::i;:::-;;:::i;8127:175::-;;;;;;:::i;:::-;;:::i;36279:377::-;;;;;;:::i;:::-;;:::i;37491:318::-;;;;;;:::i;:::-;;:::i;35593:229::-;;;;;;:::i;:::-;;:::i;8365:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;8481:18:0;;;8454:7;8481:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8365:151;33820:215;33922:4;-1:-1:-1;;;;;;33946:41:0;;-1:-1:-1;;;33946:41:0;;:81;;-1:-1:-1;;;;;;;;;;26332:40:0;;;33991:36;33939:88;33820:215;-1:-1:-1;;33820:215:0:o;6496:100::-;6550:13;6583:5;6576:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6496:100;:::o;8663:169::-;8746:4;8763:39;4283:10;8786:7;8795:6;8763:8;:39::i;:::-;-1:-1:-1;8820:4:0;8663:169;;;;:::o;34334:163::-;34427:4;34451:38;34467:9;34478:6;34451:38;;;;;;;;;;;;:15;:38::i;:::-;34444:45;34334:163;-1:-1:-1;;;34334:163:0:o;9314:492::-;9454:4;9471:36;9481:6;9489:9;9500:6;9471:9;:36::i;:::-;-1:-1:-1;;;;;9547:19:0;;9520:24;9547:19;;;:11;:19;;;;;;;;4283:10;9547:33;;;;;;;;9599:26;;;;9591:79;;;;-1:-1:-1;;;9591:79:0;;7480:2:1;9591:79:0;;;7462:21:1;7519:2;7499:18;;;7492:30;7558:34;7538:18;;;7531:62;-1:-1:-1;;;7609:18:1;;;7602:38;7657:19;;9591:79:0;;;;;;;;;9706:57;9715:6;4283:10;9756:6;9737:16;:25;9706:8;:57::i;:::-;-1:-1:-1;9794:4:0;;9314:492;-1:-1:-1;;;;9314:492:0:o;36963:157::-;37053:4;37077:35;37092:7;37101:6;37077:35;;;;;;;;;;;;:14;:35::i;10215:215::-;4283:10;10303:4;10352:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;10352:34:0;;;;;;;;;;10303:4;;10320:80;;10343:7;;10352:47;;10389:10;;10352:47;:::i;:::-;10320:8;:80::i;34855:342::-;35001:4;35018:27;35027:9;35038:6;35018:8;:27::i;:::-;-1:-1:-1;35064:60:0;4283:10;35100:9;35111:6;35119:4;35064:21;:60::i;:::-;35056:111;;;;-1:-1:-1;;;35056:111:0;;;;;;;:::i;:::-;-1:-1:-1;35185:4:0;34855:342;;;;;:::o;6715:104::-;6771:13;6804:7;6797:14;;;;;:::i;10933:413::-;4283:10;11026:4;11070:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;11070:34:0;;;;;;;;;;11123:35;;;;11115:85;;;;-1:-1:-1;;;11115:85:0;;8700:2:1;11115:85:0;;;8682:21:1;8739:2;8719:18;;;8712:30;8778:34;8758:18;;;8751:62;-1:-1:-1;;;8829:18:1;;;8822:35;8874:19;;11115:85:0;8498:401:1;11115:85:0;11236:67;4283:10;11259:7;11287:15;11268:16;:34;11236:8;:67::i;8127:175::-;8213:4;8230:42;4283:10;8254:9;8265:6;8230:9;:42::i;36279:377::-;36454:4;36471:39;36484:6;36492:9;36503:6;36471:12;:39::i;:::-;;36529:54;36551:6;36559:9;36570:6;36578:4;36529:21;:54::i;:::-;36521:105;;;;-1:-1:-1;;;36521:105:0;;;;;;;:::i;36279:377::-;;;;;;;:::o;37491:318::-;37634:4;37651:24;37659:7;37668:6;37651:7;:24::i;:::-;;37694:43;37715:7;37724:6;37732:4;37694:20;:43::i;:::-;37686:93;;;;-1:-1:-1;;;37686:93:0;;6260:2:1;37686:93:0;;;6242:21:1;6299:2;6279:18;;;6272:30;6338:34;6318:18;;;6311:62;-1:-1:-1;;;6389:18:1;;;6382:35;6434:19;;37686:93:0;6058:401:1;35593:229:0;35740:4;35764:50;35784:6;35792:9;35803:6;35764:50;;;;;;;;;;;;:19;:50::i;14617:380::-;-1:-1:-1;;;;;14753:19:0;;14745:68;;;;-1:-1:-1;;;14745:68:0;;8295:2:1;14745:68:0;;;8277:21:1;8334:2;8314:18;;;8307:30;8373:34;8353:18;;;8346:62;-1:-1:-1;;;8424:18:1;;;8417:34;8468:19;;14745:68:0;8093:400:1;14745:68:0;-1:-1:-1;;;;;14832:21:0;;14824:68;;;;-1:-1:-1;;;14824:68:0;;5857:2:1;14824:68:0;;;5839:21:1;5896:2;5876:18;;;5869:30;5935:34;5915:18;;;5908:62;-1:-1:-1;;;5986:18:1;;;5979:32;6028:19;;14824:68:0;5655:398:1;14824:68:0;-1:-1:-1;;;;;14905:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;14957:32;;9050:25:1;;;14957:32:0;;9023:18:1;14957:32:0;;;;;;;14617:380;;;:::o;11836:733::-;-1:-1:-1;;;;;11976:20:0;;11968:70;;;;-1:-1:-1;;;11968:70:0;;7889:2:1;11968:70:0;;;7871:21:1;7928:2;7908:18;;;7901:30;7967:34;7947:18;;;7940:62;-1:-1:-1;;;8018:18:1;;;8011:35;8063:19;;11968:70:0;7687:401:1;11968:70:0;-1:-1:-1;;;;;12057:23:0;;12049:71;;;;-1:-1:-1;;;12049:71:0;;5453:2:1;12049:71:0;;;5435:21:1;5492:2;5472:18;;;5465:30;5531:34;5511:18;;;5504:62;-1:-1:-1;;;5582:18:1;;;5575:33;5625:19;;12049:71:0;5251:399:1;12049:71:0;-1:-1:-1;;;;;12217:17:0;;12193:21;12217:17;;;;;;;;;;;12253:23;;;;12245:74;;;;-1:-1:-1;;;12245:74:0;;6666:2:1;12245:74:0;;;6648:21:1;6705:2;6685:18;;;6678:30;6744:34;6724:18;;;6717:62;-1:-1:-1;;;6795:18:1;;;6788:36;6841:19;;12245:74:0;6464:402:1;12245:74:0;-1:-1:-1;;;;;12355:17:0;;;:9;:17;;;;;;;;;;;12375:22;;;12355:42;;12419:20;;;;;;;;:30;;12391:6;;12355:9;12419:30;;12391:6;;12419:30;:::i;:::-;;;;;;;;12484:9;-1:-1:-1;;;;;12467:35:0;12476:6;-1:-1:-1;;;;;12467:35:0;;12495:6;12467:35;;;;9050:25:1;;9038:2;9023:18;;8904:177;12467:35:0;;;;;;;;11957:612;11836:733;;;:::o;38375:456::-;38545:4;-1:-1:-1;;;;;38567:20:0;;17554;38562:68;;-1:-1:-1;38613:5:0;38606:12;;38562:68;38656:82;;-1:-1:-1;;;38656:82:0;;38640:13;;-1:-1:-1;;;;;38656:46:0;;;;;:82;;4283:10;;38717:6;;38725;;38733:4;;38656:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;38757:65:0;-1:-1:-1;;;38757:65:0;;-1:-1:-1;;38375:456:0;;;;;;:::o;39291:412::-;39433:4;-1:-1:-1;;;;;39455:18:0;;17554:20;39450:66;;-1:-1:-1;39499:5:0;39492:12;;39450:66;39542:71;;-1:-1:-1;;;39542:71:0;;39526:13;;-1:-1:-1;;;;;39542:43:0;;;;;:71;;4283:10;;39600:6;;39608:4;;39542:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;39632:62:0;-1:-1:-1;;;39632:62:0;;-1:-1:-1;;39291:412:0;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:718::-;234:5;287:3;280:4;272:6;268:17;264:27;254:55;;305:1;302;295:12;254:55;341:6;328:20;367:18;404:2;400;397:10;394:36;;;410:18;;:::i;:::-;485:2;479:9;453:2;539:13;;-1:-1:-1;;535:22:1;;;559:2;531:31;527:40;515:53;;;583:18;;;603:22;;;580:46;577:72;;;629:18;;:::i;:::-;669:10;665:2;658:22;704:2;696:6;689:18;750:3;743:4;738:2;730:6;726:15;722:26;719:35;716:55;;;767:1;764;757:12;716:55;831:2;824:4;816:6;812:17;805:4;797:6;793:17;780:54;878:1;871:4;866:2;858:6;854:15;850:26;843:37;898:6;889:15;;;;;;192:718;;;;:::o;915:186::-;974:6;1027:2;1015:9;1006:7;1002:23;998:32;995:52;;;1043:1;1040;1033:12;995:52;1066:29;1085:9;1066:29;:::i;1106:260::-;1174:6;1182;1235:2;1223:9;1214:7;1210:23;1206:32;1203:52;;;1251:1;1248;1241:12;1203:52;1274:29;1293:9;1274:29;:::i;:::-;1264:39;;1322:38;1356:2;1345:9;1341:18;1322:38;:::i;:::-;1312:48;;1106:260;;;;;:::o;1371:328::-;1448:6;1456;1464;1517:2;1505:9;1496:7;1492:23;1488:32;1485:52;;;1533:1;1530;1523:12;1485:52;1556:29;1575:9;1556:29;:::i;:::-;1546:39;;1604:38;1638:2;1627:9;1623:18;1604:38;:::i;:::-;1594:48;;1689:2;1678:9;1674:18;1661:32;1651:42;;1371:328;;;;;:::o;1704:537::-;1799:6;1807;1815;1823;1876:3;1864:9;1855:7;1851:23;1847:33;1844:53;;;1893:1;1890;1883:12;1844:53;1916:29;1935:9;1916:29;:::i;:::-;1906:39;;1964:38;1998:2;1987:9;1983:18;1964:38;:::i;:::-;1954:48;;2049:2;2038:9;2034:18;2021:32;2011:42;;2104:2;2093:9;2089:18;2076:32;2131:18;2123:6;2120:30;2117:50;;;2163:1;2160;2153:12;2117:50;2186:49;2227:7;2218:6;2207:9;2203:22;2186:49;:::i;:::-;2176:59;;;1704:537;;;;;;;:::o;2246:254::-;2314:6;2322;2375:2;2363:9;2354:7;2350:23;2346:32;2343:52;;;2391:1;2388;2381:12;2343:52;2414:29;2433:9;2414:29;:::i;:::-;2404:39;2490:2;2475:18;;;;2462:32;;-1:-1:-1;;;2246:254:1:o;2505:462::-;2591:6;2599;2607;2660:2;2648:9;2639:7;2635:23;2631:32;2628:52;;;2676:1;2673;2666:12;2628:52;2699:29;2718:9;2699:29;:::i;:::-;2689:39;;2775:2;2764:9;2760:18;2747:32;2737:42;;2830:2;2819:9;2815:18;2802:32;2857:18;2849:6;2846:30;2843:50;;;2889:1;2886;2879:12;2843:50;2912:49;2953:7;2944:6;2933:9;2929:22;2912:49;:::i;:::-;2902:59;;;2505:462;;;;;:::o;2972:245::-;3030:6;3083:2;3071:9;3062:7;3058:23;3054:32;3051:52;;;3099:1;3096;3089:12;3051:52;3138:9;3125:23;3157:30;3181:5;3157:30;:::i;3222:249::-;3291:6;3344:2;3332:9;3323:7;3319:23;3315:32;3312:52;;;3360:1;3357;3350:12;3312:52;3392:9;3386:16;3411:30;3435:5;3411:30;:::i;3476:471::-;3517:3;3555:5;3549:12;3582:6;3577:3;3570:19;3607:1;3617:162;3631:6;3628:1;3625:13;3617:162;;;3693:4;3749:13;;;3745:22;;3739:29;3721:11;;;3717:20;;3710:59;3646:12;3617:162;;;3797:6;3794:1;3791:13;3788:87;;;3863:1;3856:4;3847:6;3842:3;3838:16;3834:27;3827:38;3788:87;-1:-1:-1;3929:2:1;3908:15;-1:-1:-1;;3904:29:1;3895:39;;;;3936:4;3891:50;;3476:471;-1:-1:-1;;3476:471:1:o;3952:488::-;-1:-1:-1;;;;;4221:15:1;;;4203:34;;4273:15;;4268:2;4253:18;;4246:43;4320:2;4305:18;;4298:34;;;4368:3;4363:2;4348:18;;4341:31;;;4146:4;;4389:45;;4414:19;;4406:6;4389:45;:::i;:::-;4381:53;3952:488;-1:-1:-1;;;;;;3952:488:1:o;4445:385::-;4677:1;4673;4668:3;4664:11;4660:19;4652:6;4648:32;4637:9;4630:51;4717:6;4712:2;4701:9;4697:18;4690:34;4760:2;4755;4744:9;4740:18;4733:30;4611:4;4780:44;4820:2;4809:9;4805:18;4797:6;4780:44;:::i;:::-;4772:52;4445:385;-1:-1:-1;;;;;4445:385:1:o;5027:219::-;5176:2;5165:9;5158:21;5139:4;5196:44;5236:2;5225:9;5221:18;5213:6;5196:44;:::i;6871:402::-;7073:2;7055:21;;;7112:2;7092:18;;;7085:30;7151:34;7146:2;7131:18;;7124:62;-1:-1:-1;;;7217:2:1;7202:18;;7195:36;7263:3;7248:19;;6871:402::o;9275:225::-;9315:3;9346:1;9342:6;9339:1;9336:13;9333:136;;;9391:10;9386:3;9382:20;9379:1;9372:31;9426:4;9423:1;9416:15;9454:4;9451:1;9444:15;9333:136;-1:-1:-1;9485:9:1;;9275:225::o;9505:380::-;9584:1;9580:12;;;;9627;;;9648:61;;9702:4;9694:6;9690:17;9680:27;;9648:61;9755:2;9747:6;9744:14;9724:18;9721:38;9718:161;;;9801:10;9796:3;9792:20;9789:1;9782:31;9836:4;9833:1;9826:15;9864:4;9861:1;9854:15;9718:161;;9505:380;;;:::o;9890:127::-;9951:10;9946:3;9942:20;9939:1;9932:31;9982:4;9979:1;9972:15;10006:4;10003:1;9996:15;10022:131;-1:-1:-1;;;;;;10096:32:1;;10086:43;;10076:71;;10143:1;10140;10133:12;10076:71;10022:131;:::o
Swarm Source
ipfs://f23adb095c44c97b7ea4c2099568b1e5c7002c9ed9137875cf108beeb6b50c1a
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.