Source Code
Overview
ETH Balance
9.328654929768667337 ETH
Token Holdings
More Info
ContractCreator
TokenTracker
Multichain Info
N/A
Latest 25 from a total of 15,795 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 10661518 | 17 days ago | IN | 0 ETH | 0.00061555 | ||||
Transfer | 10661327 | 17 days ago | IN | 0 ETH | 0.00053612 | ||||
Approve | 10660047 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10660000 | 18 days ago | IN | 0 ETH | 0.00004604 | ||||
Approve | 10659982 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659754 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659753 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659741 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659738 | 18 days ago | IN | 0 ETH | 0.00004604 | ||||
Approve | 10659666 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659635 | 18 days ago | IN | 0 ETH | 0.00002614 | ||||
Approve | 10659604 | 18 days ago | IN | 0 ETH | 0.00004604 | ||||
Transfer | 10659558 | 18 days ago | IN | 0 ETH | 0.00009311 | ||||
Deposit | 10659554 | 18 days ago | IN | 0.09 ETH | 0.00006736 | ||||
Transfer | 10647118 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10647102 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10647089 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10647076 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10647066 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10647028 | 21 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10646287 | 22 days ago | IN | 0 ETH | 0.00007699 | ||||
Transfer | 10646151 | 22 days ago | IN | 0 ETH | 0.00007699 | ||||
Transfer | 10646110 | 22 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10646038 | 22 days ago | IN | 0 ETH | 0.00007701 | ||||
Transfer | 10646011 | 22 days ago | IN | 0 ETH | 0.00007701 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
10660051 | 18 days ago | 0 ETH | ||||
10660051 | 18 days ago | 0 ETH | ||||
10660051 | 18 days ago | 0 ETH | ||||
10660048 | 18 days ago | 0 ETH | ||||
10660048 | 18 days ago | 0 ETH | ||||
10659987 | 18 days ago | 0 ETH | ||||
10659987 | 18 days ago | 0 ETH | ||||
10659987 | 18 days ago | 0 ETH | ||||
10659983 | 18 days ago | 0 ETH | ||||
10659983 | 18 days ago | 0 ETH | ||||
10659759 | 18 days ago | 0 ETH | ||||
10659759 | 18 days ago | 0 ETH | ||||
10659759 | 18 days ago | 0 ETH | ||||
10659744 | 18 days ago | 0 ETH | ||||
10659744 | 18 days ago | 0 ETH | ||||
10659744 | 18 days ago | 0 ETH | ||||
10659730 | 18 days ago | 0 ETH | ||||
10659730 | 18 days ago | 0 ETH | ||||
10659730 | 18 days ago | 0 ETH | ||||
10659667 | 18 days ago | 0 ETH | ||||
10659667 | 18 days ago | 0 ETH | ||||
10659571 | 18 days ago | 2.12305977 ETH | ||||
10659571 | 18 days ago | 0 ETH | ||||
10659510 | 18 days ago | 0.99574961 ETH | ||||
10659510 | 18 days ago | 0 ETH |
Loading...
Loading
Contract Name:
WETH
Compiler Version
v0.7.1+commit.f4a555be
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-06-02 */ // SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2015, 2016, 2017 Dapphub // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. pragma solidity ^0.7.0; // solhint-disable /** * @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are * supported. */ function _require(bool condition, uint256 errorCode) pure { if (!condition) _revert(errorCode); } /** * @dev Reverts with a revert reason containing `errorCode`. Only codes up to 999 are supported. */ function _revert(uint256 errorCode) pure { // We're going to dynamically create a revert string based on the error code, with the following format: // 'BAL#{errorCode}' // where the code is left-padded with zeroes to three digits (so they range from 000 to 999). // // We don't have revert strings embedded in the contract to save bytecode size: it takes much less space to store a // number (8 to 16 bits) than the individual string characters. // // The dynamic string creation algorithm that follows could be implemented in Solidity, but assembly allows for a // much denser implementation, again saving bytecode size. Given this function unconditionally reverts, this is a // safe place to rely on it without worrying about how its usage might affect e.g. memory contents. assembly { // First, we need to compute the ASCII representation of the error code. We assume that it is in the 0-999 // range, so we only need to convert three digits. To convert the digits to ASCII, we add 0x30, the value for // the '0' character. let units := add(mod(errorCode, 10), 0x30) errorCode := div(errorCode, 10) let tenths := add(mod(errorCode, 10), 0x30) errorCode := div(errorCode, 10) let hundreds := add(mod(errorCode, 10), 0x30) // With the individual characters, we can now construct the full string. The "BAL#" part is a known constant // (0x42414c23): we simply shift this by 24 (to provide space for the 3 bytes of the error code), and add the // characters to it, each shifted by a multiple of 8. // The revert reason is then shifted left by 200 bits (256 minus the length of the string, 7 characters * 8 bits // per character = 56) to locate it in the most significant part of the 256 slot (the beginning of a byte // array). let revertReason := shl(200, add(0x42414c23000000, add(add(units, shl(8, tenths)), shl(16, hundreds)))) // We can now encode the reason in memory, which can be safely overwritten as we're about to revert. The encoded // message will have the following layout: // [ revert reason identifier ] [ string location offset ] [ string length ] [ string contents ] // The Solidity revert reason identifier is 0x08c739a0, the function selector of the Error(string) function. We // also write zeroes to the next 28 bytes of memory, but those are about to be overwritten. mstore(0x0, 0x08c379a000000000000000000000000000000000000000000000000000000000) // Next is the offset to the location of the string, which will be placed immediately after (20 bytes away). mstore(0x04, 0x0000000000000000000000000000000000000000000000000000000000000020) // The string length is fixed: 7 characters. mstore(0x24, 7) // Finally, the string itself is stored. mstore(0x44, revertReason) // Even if the string is only 7 bytes long, we need to return a full 32 byte slot containing it. The length of // the encoded message is therefore 4 + 32 + 32 + 32 = 100. revert(0, 100) } } library Errors { // Math uint256 internal constant ADD_OVERFLOW = 0; uint256 internal constant SUB_OVERFLOW = 1; uint256 internal constant SUB_UNDERFLOW = 2; uint256 internal constant MUL_OVERFLOW = 3; uint256 internal constant ZERO_DIVISION = 4; uint256 internal constant DIV_INTERNAL = 5; uint256 internal constant X_OUT_OF_BOUNDS = 6; uint256 internal constant Y_OUT_OF_BOUNDS = 7; uint256 internal constant PRODUCT_OUT_OF_BOUNDS = 8; uint256 internal constant INVALID_EXPONENT = 9; // Input uint256 internal constant OUT_OF_BOUNDS = 100; uint256 internal constant UNSORTED_ARRAY = 101; uint256 internal constant UNSORTED_TOKENS = 102; uint256 internal constant INPUT_LENGTH_MISMATCH = 103; uint256 internal constant ZERO_TOKEN = 104; // Shared pools uint256 internal constant MIN_TOKENS = 200; uint256 internal constant MAX_TOKENS = 201; uint256 internal constant MAX_SWAP_FEE_PERCENTAGE = 202; uint256 internal constant MIN_SWAP_FEE_PERCENTAGE = 203; uint256 internal constant MINIMUM_BPT = 204; uint256 internal constant CALLER_NOT_VAULT = 205; uint256 internal constant UNINITIALIZED = 206; uint256 internal constant BPT_IN_MAX_AMOUNT = 207; uint256 internal constant BPT_OUT_MIN_AMOUNT = 208; uint256 internal constant EXPIRED_PERMIT = 209; // Pools uint256 internal constant MIN_AMP = 300; uint256 internal constant MAX_AMP = 301; uint256 internal constant MIN_WEIGHT = 302; uint256 internal constant MAX_STABLE_TOKENS = 303; uint256 internal constant MAX_IN_RATIO = 304; uint256 internal constant MAX_OUT_RATIO = 305; uint256 internal constant MIN_BPT_IN_FOR_TOKEN_OUT = 306; uint256 internal constant MAX_OUT_BPT_FOR_TOKEN_IN = 307; uint256 internal constant NORMALIZED_WEIGHT_INVARIANT = 308; uint256 internal constant INVALID_TOKEN = 309; uint256 internal constant UNHANDLED_JOIN_KIND = 310; uint256 internal constant ZERO_INVARIANT = 311; uint256 internal constant ORACLE_INVALID_SECONDS_QUERY = 312; uint256 internal constant ORACLE_NOT_INITIALIZED = 313; uint256 internal constant ORACLE_QUERY_TOO_OLD = 314; uint256 internal constant ORACLE_INVALID_INDEX = 315; uint256 internal constant ORACLE_BAD_SECS = 316; // Lib uint256 internal constant REENTRANCY = 400; uint256 internal constant SENDER_NOT_ALLOWED = 401; uint256 internal constant PAUSED = 402; uint256 internal constant PAUSE_WINDOW_EXPIRED = 403; uint256 internal constant MAX_PAUSE_WINDOW_DURATION = 404; uint256 internal constant MAX_BUFFER_PERIOD_DURATION = 405; uint256 internal constant INSUFFICIENT_BALANCE = 406; uint256 internal constant INSUFFICIENT_ALLOWANCE = 407; uint256 internal constant ERC20_TRANSFER_FROM_ZERO_ADDRESS = 408; uint256 internal constant ERC20_TRANSFER_TO_ZERO_ADDRESS = 409; uint256 internal constant ERC20_MINT_TO_ZERO_ADDRESS = 410; uint256 internal constant ERC20_BURN_FROM_ZERO_ADDRESS = 411; uint256 internal constant ERC20_APPROVE_FROM_ZERO_ADDRESS = 412; uint256 internal constant ERC20_APPROVE_TO_ZERO_ADDRESS = 413; uint256 internal constant ERC20_TRANSFER_EXCEEDS_ALLOWANCE = 414; uint256 internal constant ERC20_DECREASED_ALLOWANCE_BELOW_ZERO = 415; uint256 internal constant ERC20_TRANSFER_EXCEEDS_BALANCE = 416; uint256 internal constant ERC20_BURN_EXCEEDS_ALLOWANCE = 417; uint256 internal constant SAFE_ERC20_CALL_FAILED = 418; uint256 internal constant ADDRESS_INSUFFICIENT_BALANCE = 419; uint256 internal constant ADDRESS_CANNOT_SEND_VALUE = 420; uint256 internal constant SAFE_CAST_VALUE_CANT_FIT_INT256 = 421; uint256 internal constant GRANT_SENDER_NOT_ADMIN = 422; uint256 internal constant REVOKE_SENDER_NOT_ADMIN = 423; uint256 internal constant RENOUNCE_SENDER_NOT_ALLOWED = 424; uint256 internal constant BUFFER_PERIOD_EXPIRED = 425; // Vault uint256 internal constant INVALID_POOL_ID = 500; uint256 internal constant CALLER_NOT_POOL = 501; uint256 internal constant SENDER_NOT_ASSET_MANAGER = 502; uint256 internal constant USER_DOESNT_ALLOW_RELAYER = 503; uint256 internal constant INVALID_SIGNATURE = 504; uint256 internal constant EXIT_BELOW_MIN = 505; uint256 internal constant JOIN_ABOVE_MAX = 506; uint256 internal constant SWAP_LIMIT = 507; uint256 internal constant SWAP_DEADLINE = 508; uint256 internal constant CANNOT_SWAP_SAME_TOKEN = 509; uint256 internal constant UNKNOWN_AMOUNT_IN_FIRST_SWAP = 510; uint256 internal constant MALCONSTRUCTED_MULTIHOP_SWAP = 511; uint256 internal constant INTERNAL_BALANCE_OVERFLOW = 512; uint256 internal constant INSUFFICIENT_INTERNAL_BALANCE = 513; uint256 internal constant INVALID_ETH_INTERNAL_BALANCE = 514; uint256 internal constant INVALID_POST_LOAN_BALANCE = 515; uint256 internal constant INSUFFICIENT_ETH = 516; uint256 internal constant UNALLOCATED_ETH = 517; uint256 internal constant ETH_TRANSFER = 518; uint256 internal constant CANNOT_USE_ETH_SENTINEL = 519; uint256 internal constant TOKENS_MISMATCH = 520; uint256 internal constant TOKEN_NOT_REGISTERED = 521; uint256 internal constant TOKEN_ALREADY_REGISTERED = 522; uint256 internal constant TOKENS_ALREADY_SET = 523; uint256 internal constant TOKENS_LENGTH_MUST_BE_2 = 524; uint256 internal constant NONZERO_TOKEN_BALANCE = 525; uint256 internal constant BALANCE_TOTAL_OVERFLOW = 526; uint256 internal constant POOL_NO_TOKENS = 527; uint256 internal constant INSUFFICIENT_FLASH_LOAN_BALANCE = 528; // Fees uint256 internal constant SWAP_FEE_PERCENTAGE_TOO_HIGH = 600; uint256 internal constant FLASH_LOAN_FEE_PERCENTAGE_TOO_HIGH = 601; uint256 internal constant INSUFFICIENT_FLASH_LOAN_FEE_AMOUNT = 602; } /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // The original OpenZeppelin implementation uses a generic Set type with bytes32 values: this was replaced with // AddressSet, which uses address keys natively, resulting in more dense bytecode. struct AddressSet { // Storage of set values address[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(address => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { if (!contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. address lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { _require(set._values.length > index, Errors.OUT_OF_BOUNDS); return unchecked_at(set, index); } /** * @dev Same as {at}, except this doesn't revert if `index` it outside of the set (i.e. if it is equal or larger * than {length}). O(1). * * This function performs one less storage read than {at}, but should only be used when `index` is known to be * within bounds. */ function unchecked_at(AddressSet storage set, uint256 index) internal view returns (address) { return set._values[index]; } } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * 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 { using EnumerableSet for EnumerableSet.AddressSet; struct RoleData { EnumerableSet.AddressSet 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 Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 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 { _require(hasRole(_roles[role].adminRole, msg.sender), Errors.GRANT_SENDER_NOT_ADMIN); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had already been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { _require(hasRole(_roles[role].adminRole, msg.sender), Errors.REVOKE_SENDER_NOT_ADMIN); _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 { _require(account == msg.sender, Errors.RENOUNCE_SENDER_NOT_ALLOWED); _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, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, msg.sender); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, msg.sender); } } } /** * @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); } /** * @dev Interface for the WETH token contract used internally for wrapping and unwrapping, to support * sending and receiving ETH in joins, swaps, and internal balance deposits and withdrawals. */ interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint256 amount) external; } contract WETH is AccessControl, IWETH { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); string public name = "Wrapped Ether"; string public symbol = "WETH"; uint8 public decimals = 18; event Deposit(address indexed dst, uint256 wad); event Withdrawal(address indexed src, uint256 wad); mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; constructor(address minter) { _setupRole(DEFAULT_ADMIN_ROLE, minter); _setupRole(MINTER_ROLE, minter); } receive() external payable { deposit(); } function deposit() public payable override { balanceOf[msg.sender] += msg.value; emit Deposit(msg.sender, msg.value); } function withdraw(uint256 wad) public override { require(balanceOf[msg.sender] >= wad, "INSUFFICIENT_BALANCE"); balanceOf[msg.sender] -= wad; msg.sender.transfer(wad); emit Withdrawal(msg.sender, wad); } // For testing purposes - this creates WETH that cannot be redeemed for ETH via 'withdraw' function mint(address destinatary, uint256 amount) external { require(hasRole(MINTER_ROLE, msg.sender), "NOT_MINTER"); balanceOf[destinatary] += amount; emit Deposit(destinatary, amount); } function totalSupply() public view override returns (uint256) { return address(this).balance; } function approve(address guy, uint256 wad) public override returns (bool) { allowance[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function transfer(address dst, uint256 wad) public override returns (bool) { return transferFrom(msg.sender, dst, wad); } function transferFrom( address src, address dst, uint256 wad ) public override returns (bool) { require(balanceOf[src] >= wad, "INSUFFICIENT_BALANCE"); if (src != msg.sender && allowance[src][msg.sender] != uint256(-1)) { require(allowance[src][msg.sender] >= wad, "INSUFFICIENT_ALLOWANCE"); allowance[src][msg.sender] -= wad; } balanceOf[src] -= wad; balanceOf[dst] += wad; emit Transfer(src, dst, wad); return true; } }
[{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destinatary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600d60808190526c2bb930b83832b21022ba3432b960991b60a0908152620000309160019190620001e2565b50604080518082019091526004808252630ae8aa8960e31b60209092019182526200005e91600291620001e2565b506003805460ff191660121790553480156200007957600080fd5b506040516200141738038062001417833981810160405260208110156200009f57600080fd5b5051620000ae600082620000e1565b620000da7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682620000e1565b506200027e565b620000ed8282620000f1565b5050565b6000828152602081815260409091206200011691839062000d9162000158821b17901c565b15620000ed5760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b6000620001668383620001c1565b620001b757508154600180820184556000848152602080822090930180546001600160a01b0319166001600160a01b03861690811790915585549082528286019093526040902091909155620001bb565b5060005b92915050565b6001600160a01b031660009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022557805160ff191683800117855562000255565b8280016001018555821562000255579182015b828111156200025557825182559160200191906001019062000238565b506200026392915062000267565b5090565b5b8082111562000263576000815560010162000268565b611189806200028e6000396000f3fe60806040526004361061016e5760003560e01c806370a08231116100cb578063a9059cbb1161007f578063d539139311610059578063d5391393146105af578063d547741f146105c4578063dd62ed3e1461060a5761017d565b8063a9059cbb14610537578063ca15c8731461057d578063d0e30db0146105a75761017d565b806391d14854116100b057806391d14854146104c757806395d89b411461050d578063a217fddf146105225761017d565b806370a082311461042e5780639010d07c1461046e5761017d565b80632e1a7d4d11610122578063313ce56711610107578063313ce5671461037757806336568abe146103a257806340c10f19146103e85761017d565b80632e1a7d4d146103075780632f2ff15d146103315761017d565b806318160ddd1161015357806318160ddd1461026657806323b872dd1461028d578063248a9ca3146102dd5761017d565b806306fdde0314610182578063095ea7b31461020c5761017d565b3661017d5761017b610652565b005b600080fd5b34801561018e57600080fd5b506101976106a1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d15781810151838201526020016101b9565b50505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561021857600080fd5b506102526004803603604081101561022f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561072e565b604080519115158252519081900360200190f35b34801561027257600080fd5b5061027b6107a2565b60408051918252519081900360200190f35b34801561029957600080fd5b50610252600480360360608110156102b057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356107a6565b3480156102e957600080fd5b5061027b6004803603602081101561030057600080fd5b50356109ec565b34801561031357600080fd5b5061017b6004803603602081101561032a57600080fd5b5035610a01565b34801561033d57600080fd5b5061017b6004803603604081101561035457600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610af8565b34801561038357600080fd5b5061038c610b2e565b6040805160ff9092168252519081900360200190f35b3480156103ae57600080fd5b5061017b600480360360408110156103c557600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610b37565b3480156103f457600080fd5b5061017b6004803603604081101561040b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b65565b34801561043a57600080fd5b5061027b6004803603602081101561045157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c5e565b34801561047a57600080fd5b5061049e6004803603604081101561049157600080fd5b5080359060200135610c70565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156104d357600080fd5b50610252600480360360408110156104ea57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610c8f565b34801561051957600080fd5b50610197610ca7565b34801561052e57600080fd5b5061027b610cff565b34801561054357600080fd5b506102526004803603604081101561055a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610d04565b34801561058957600080fd5b5061027b600480360360208110156105a057600080fd5b5035610d11565b61017b610652565b3480156105bb57600080fd5b5061027b610d28565b3480156105d057600080fd5b5061017b600480360360408110156105e757600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610d4c565b34801561061657600080fd5b5061027b6004803603604081101561062d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610d74565b33600081815260046020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107265780601f106106fb57610100808354040283529160200191610726565b820191906000526020600020905b81548152906001019060200180831161070957829003601f168201915b505050505081565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b4790565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205482111561083a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e53554646494349454e545f42414c414e4345000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff84163314801590610892575073ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205460001914155b1561096e5773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205482111561093657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f494e53554646494349454e545f414c4c4f57414e434500000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526005602090815260408083203384529091529020805483900390555b73ffffffffffffffffffffffffffffffffffffffff808516600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60009081526020819052604090206002015490565b33600090815260046020526040902054811115610a7f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e53554646494349454e545f42414c414e4345000000000000000000000000604482015290519081900360640190fd5b33600081815260046020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610abe573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b600082815260208190526040902060020154610b2090610b189033610c8f565b6101a6610e19565b610b2a8282610e27565b5050565b60035460ff1681565b610b5b73ffffffffffffffffffffffffffffffffffffffff821633146101a8610e19565b610b2a8282610e8d565b610b8f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610c8f565b610bfa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e54455200000000000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600081815260046020908152604091829020805485019055815184815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a25050565b60046020526000908152604090205481565b6000828152602081905260408120610c889083610ef3565b9392505050565b6000828152602081905260408120610c889083610f0f565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156107265780601f106106fb57610100808354040283529160200191610726565b600081565b6000610c883384846107a6565b600081815260208190526040812061079c90610f3d565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5b90610d6c9033610c8f565b6101a7610e19565b600560209081526000928352604080842090915290825290205481565b6000610d9d8383610f0f565b610e1157508154600180820184556000848152602080822090930180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86169081179091558554908252828601909352604090209190915561079c565b50600061079c565b81610b2a57610b2a81610f41565b6000828152602081905260409020610e3f9082610d91565b15610b2a57604051339073ffffffffffffffffffffffffffffffffffffffff83169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b6000828152602081905260409020610ea59082610fae565b15610b2a57604051339073ffffffffffffffffffffffffffffffffffffffff83169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b8154600090610f059083106064610e19565b610c888383611119565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001919091016020526040902054151590565b5490565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600183016020526040812054801561110f5783546000198083019190810190600090879083908110610ff857fe5b600091825260209091200154875473ffffffffffffffffffffffffffffffffffffffff9091169150819088908590811061102e57fe5b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff94851617905591831681526001898101909252604090209084019055865487908061109c57fe5b60008281526020808220830160001990810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff8816825260018981019091526040822091909155945061079c9350505050565b600091505061079c565b600082600001828154811061112a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16939250505056fea26469706673582212207bc6ad7d9918842035ef89567fb4f665f048831fbd722948b6a89ac104263ddc64736f6c63430007010033000000000000000000000000697a71353a4bc1eb1356763018a229c27a3fba0c
Deployed Bytecode
0x60806040526004361061016e5760003560e01c806370a08231116100cb578063a9059cbb1161007f578063d539139311610059578063d5391393146105af578063d547741f146105c4578063dd62ed3e1461060a5761017d565b8063a9059cbb14610537578063ca15c8731461057d578063d0e30db0146105a75761017d565b806391d14854116100b057806391d14854146104c757806395d89b411461050d578063a217fddf146105225761017d565b806370a082311461042e5780639010d07c1461046e5761017d565b80632e1a7d4d11610122578063313ce56711610107578063313ce5671461037757806336568abe146103a257806340c10f19146103e85761017d565b80632e1a7d4d146103075780632f2ff15d146103315761017d565b806318160ddd1161015357806318160ddd1461026657806323b872dd1461028d578063248a9ca3146102dd5761017d565b806306fdde0314610182578063095ea7b31461020c5761017d565b3661017d5761017b610652565b005b600080fd5b34801561018e57600080fd5b506101976106a1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d15781810151838201526020016101b9565b50505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561021857600080fd5b506102526004803603604081101561022f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561072e565b604080519115158252519081900360200190f35b34801561027257600080fd5b5061027b6107a2565b60408051918252519081900360200190f35b34801561029957600080fd5b50610252600480360360608110156102b057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356107a6565b3480156102e957600080fd5b5061027b6004803603602081101561030057600080fd5b50356109ec565b34801561031357600080fd5b5061017b6004803603602081101561032a57600080fd5b5035610a01565b34801561033d57600080fd5b5061017b6004803603604081101561035457600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610af8565b34801561038357600080fd5b5061038c610b2e565b6040805160ff9092168252519081900360200190f35b3480156103ae57600080fd5b5061017b600480360360408110156103c557600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610b37565b3480156103f457600080fd5b5061017b6004803603604081101561040b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b65565b34801561043a57600080fd5b5061027b6004803603602081101561045157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c5e565b34801561047a57600080fd5b5061049e6004803603604081101561049157600080fd5b5080359060200135610c70565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156104d357600080fd5b50610252600480360360408110156104ea57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610c8f565b34801561051957600080fd5b50610197610ca7565b34801561052e57600080fd5b5061027b610cff565b34801561054357600080fd5b506102526004803603604081101561055a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610d04565b34801561058957600080fd5b5061027b600480360360208110156105a057600080fd5b5035610d11565b61017b610652565b3480156105bb57600080fd5b5061027b610d28565b3480156105d057600080fd5b5061017b600480360360408110156105e757600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610d4c565b34801561061657600080fd5b5061027b6004803603604081101561062d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610d74565b33600081815260046020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107265780601f106106fb57610100808354040283529160200191610726565b820191906000526020600020905b81548152906001019060200180831161070957829003601f168201915b505050505081565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b4790565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205482111561083a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e53554646494349454e545f42414c414e4345000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff84163314801590610892575073ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205460001914155b1561096e5773ffffffffffffffffffffffffffffffffffffffff8416600090815260056020908152604080832033845290915290205482111561093657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f494e53554646494349454e545f414c4c4f57414e434500000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526005602090815260408083203384529091529020805483900390555b73ffffffffffffffffffffffffffffffffffffffff808516600081815260046020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60009081526020819052604090206002015490565b33600090815260046020526040902054811115610a7f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f494e53554646494349454e545f42414c414e4345000000000000000000000000604482015290519081900360640190fd5b33600081815260046020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610abe573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b600082815260208190526040902060020154610b2090610b189033610c8f565b6101a6610e19565b610b2a8282610e27565b5050565b60035460ff1681565b610b5b73ffffffffffffffffffffffffffffffffffffffff821633146101a8610e19565b610b2a8282610e8d565b610b8f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610c8f565b610bfa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4e4f545f4d494e54455200000000000000000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600081815260046020908152604091829020805485019055815184815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a25050565b60046020526000908152604090205481565b6000828152602081905260408120610c889083610ef3565b9392505050565b6000828152602081905260408120610c889083610f0f565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156107265780601f106106fb57610100808354040283529160200191610726565b600081565b6000610c883384846107a6565b600081815260208190526040812061079c90610f3d565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b600082815260208190526040902060020154610b5b90610d6c9033610c8f565b6101a7610e19565b600560209081526000928352604080842090915290825290205481565b6000610d9d8383610f0f565b610e1157508154600180820184556000848152602080822090930180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86169081179091558554908252828601909352604090209190915561079c565b50600061079c565b81610b2a57610b2a81610f41565b6000828152602081905260409020610e3f9082610d91565b15610b2a57604051339073ffffffffffffffffffffffffffffffffffffffff83169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b6000828152602081905260409020610ea59082610fae565b15610b2a57604051339073ffffffffffffffffffffffffffffffffffffffff83169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b8154600090610f059083106064610e19565b610c888383611119565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001919091016020526040902054151590565b5490565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600183016020526040812054801561110f5783546000198083019190810190600090879083908110610ff857fe5b600091825260209091200154875473ffffffffffffffffffffffffffffffffffffffff9091169150819088908590811061102e57fe5b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff94851617905591831681526001898101909252604090209084019055865487908061109c57fe5b60008281526020808220830160001990810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590920190925573ffffffffffffffffffffffffffffffffffffffff8816825260018981019091526040822091909155945061079c9350505050565b600091505061079c565b600082600001828154811061112a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16939250505056fea26469706673582212207bc6ad7d9918842035ef89567fb4f665f048831fbd722948b6a89ac104263ddc64736f6c63430007010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000697a71353a4bc1eb1356763018a229c27a3fba0c
-----Decoded View---------------
Arg [0] : minter (address): 0x697A71353A4BC1eb1356763018a229c27a3fbA0C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000697a71353a4bc1eb1356763018a229c27a3fba0c
Deployed Bytecode Sourcemap
25814:2427:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26472:9;:7;:9::i;:::-;25814:2427;;;;;25930:36;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27341:193;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27341:193:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;27224:109;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;27685:553;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27685:553:0;;;;;;;;;;;;;;;;;;:::i;19564:114::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19564:114:0;;:::i;26647:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26647:244:0;;:::i;19940:206::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19940:206:0;;;;;;;;;:::i;26009:26::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21115:193;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21115:193:0;;;;;;;;;:::i;26995:221::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26995:221:0;;;;;;;;;:::i;26157:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26157:53:0;;;;:::i;19237:138::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19237:138:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18190:147;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18190:147:0;;;;;;;;;:::i;25973:29::-;;;;;;;;;;;;;:::i;16935:49::-;;;;;;;;;;;;;:::i;27542:135::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27542:135:0;;;;;;;;;:::i;18511:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18511:127:0;;:::i;26497:142::-;;;:::i;25859:62::-;;;;;;;;;;;;;:::i;20399:209::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20399:209:0;;;;;;;;;:::i;26217:73::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26217:73:0;;;;;;;;;;;:::i;26497:142::-;26561:10;26551:21;;;;:9;:21;;;;;;;;;:34;;26576:9;26551:34;;;;;;26601:30;;;;;;;;;;;;;;;;;26497:142::o;25930:36::-;;;;;;;;;;;;;;;-1:-1:-1;;25930:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;27341:193::-;27436:10;27409:4;27426:21;;;:9;:21;;;;;;;;;:26;;;;;;;;;;;:32;;;27474:30;;;;;;;27409:4;;27426:26;;27436:10;;27474:30;;;;;;;;-1:-1:-1;27522:4:0;27341:193;;;;;:::o;27224:109::-;27304:21;27224:109;:::o;27685:553::-;27830:14;;;27805:4;27830:14;;;:9;:14;;;;;;:21;-1:-1:-1;27830:21:0;27822:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27893:17;;;27900:10;27893:17;;;;:62;;-1:-1:-1;27914:14:0;;;;;;;:9;:14;;;;;;;;27929:10;27914:26;;;;;;;;-1:-1:-1;;27914:41:0;;27893:62;27889:211;;;27980:14;;;;;;;:9;:14;;;;;;;;27995:10;27980:26;;;;;;;;:33;-1:-1:-1;27980:33:0;27972:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28055:14;;;;;;;:9;:14;;;;;;;;28070:10;28055:26;;;;;;;:33;;;;;;;27889:211;28112:14;;;;;;;;:9;:14;;;;;;;;:21;;;;;;;28144:14;;;;;;;;;;:21;;;;;;28183:23;;;;;;;28144:14;;28183:23;;;;;;;;;;;-1:-1:-1;28226:4:0;27685:553;;;;;:::o;19564:114::-;19621:7;19648:12;;;;;;;;;;:22;;;;19564:114::o;26647:244::-;26723:10;26713:21;;;;:9;:21;;;;;;:28;-1:-1:-1;26713:28:0;26705:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26787:10;26777:21;;;;:9;:21;;;;;;:28;;;;;;;26816:24;;;;;;26802:3;;26816:24;;26777:21;26816:24;26802:3;26787:10;26816:24;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26856:27:0;;;;;;;;26867:10;;26856:27;;;;;;;;;;26647:244;:::o;19940:206::-;20033:6;:12;;;;;;;;;;:22;;;20016:84;;20025:43;;20057:10;20025:7;:43::i;:::-;8222:3;20016:8;:84::i;:::-;20113:25;20124:4;20130:7;20113:10;:25::i;:::-;19940:206;;:::o;26009:26::-;;;;;;:::o;21115:193::-;21194:67;21203:21;;;21214:10;21203:21;8350:3;21194:8;:67::i;:::-;21274:26;21286:4;21292:7;21274:11;:26::i;26995:221::-;27074:32;25897:24;27095:10;27074:7;:32::i;:::-;27066:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27132:22;;;;;;;:9;:22;;;;;;;;;:32;;;;;;27180:28;;;;;;;;;;;;;;;;;26995:221;;:::o;26157:53::-;;;;;;;;;;;;;:::o;19237:138::-;19310:7;19337:12;;;;;;;;;;:30;;19361:5;19337:23;:30::i;:::-;19330:37;19237:138;-1:-1:-1;;;19237:138:0:o;18190:147::-;18267:4;18291:12;;;;;;;;;;:38;;18321:7;18291:29;:38::i;25973:29::-;;;;;;;;;;;;;;-1:-1:-1;;25973:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16935:49;16980:4;16935:49;:::o;27542:135::-;27611:4;27635:34;27648:10;27660:3;27665;27635:12;:34::i;18511:127::-;18574:7;18601:12;;;;;;;;;;:29;;:27;:29::i;25859:62::-;25897:24;25859:62;:::o;20399:209::-;20493:6;:12;;;;;;;;;;:22;;;20476:85;;20485:43;;20517:10;20485:7;:43::i;:::-;8284:3;20476:8;:85::i;26217:73::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;11767:420::-;11837:4;11859:20;11868:3;11873:5;11859:8;:20::i;:::-;11854:326;;-1:-1:-1;11896:23:0;;;;;;;;-1:-1:-1;11896:23:0;;;;;;;;;;;;;;;;;;;;;;;12079:18;;12057:19;;;:12;;;:19;;;;;;:40;;;;12112:11;;11854:326;-1:-1:-1;12163:5:0;12156:12;;933:103;1003:9;998:34;;1014:18;1022:9;1014:7;:18::i;22342:186::-;22416:6;:12;;;;;;;;;;:33;;22441:7;22416:24;:33::i;:::-;22412:109;;;22471:38;;22498:10;;22471:38;;;;22483:4;;22471:38;;;;;22342:186;;:::o;22536:190::-;22611:6;:12;;;;;;;;;;:36;;22639:7;22611:27;:36::i;:::-;22607:112;;;22669:38;;22696:10;;22669:38;;;;22681:4;;22669:38;;;;;22536:190;;:::o;14705:202::-;14808:18;;14779:7;;14799:58;;14808:26;-1:-1:-1;4979:3:0;14799:8;:58::i;:::-;14875:24;14888:3;14893:5;14875:12;:24::i;14013:136::-;14117:19;;14093:4;14117:19;;;:12;;;;;:19;;;;;;:24;;;14013:136::o;14235:116::-;14325:18;;14235:116::o;1148:3223::-;3706:66;3701:3;3694:79;;;3914:66;3908:4;3901:80;4058:1;4052:4;4045:15;3104:73;2300:2;2335:18;;;2381;;;2305:4;2377:29;;;3145:1;3141:14;2285:18;;;;3130:26;;;;2431:18;;;;2479;;;2475:29;;;3162:2;3158:17;3126:50;;;;3104:73;3099:3;3095:83;4127:4;4120:26;4357:3;;4347:14;12363:1564;12575:19;;;12436:4;12575:19;;;:12;;;:19;;;;;;12611:15;;12607:1313;;13059:18;;-1:-1:-1;;13010:14:0;;;;13059:22;;;;12986:21;;13059:3;;:22;;13346;;;;;;;;;;;;;;;;13463:26;;13346:22;;;;;-1:-1:-1;13346:22:0;;13463:3;;13475:13;;13463:26;;;;;;;;;;;;;;;;;;:38;;;;;;;;;;;13569:23;;;;;-1:-1:-1;13569:12:0;;;:23;;;;;;13595:17;;;13569:43;;13721:17;;13569:12;;13721:17;;;;;;;;;;;;;;;-1:-1:-1;;13721:17:0;;;;;;;;;;;;;;;;13816:19;;;;13721:17;13816:12;;;:19;;;;;;13809:26;;;;13721:17;-1:-1:-1;13852:11:0;;-1:-1:-1;;;;13852:11:0;12607:1313;13903:5;13896:12;;;;;15228:137;15312:7;15339:3;:11;;15351:5;15339:18;;;;;;;;;;;;;;;;;;;;;15228:137;-1:-1:-1;;;15228:137:0:o
Swarm Source
ipfs://7bc6ad7d9918842035ef89567fb4f665f048831fbd722948b6a89ac104263ddc
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.