Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 344 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18820560 | 400 days ago | IN | 0 ETH | 0.00186746 | ||||
Buy Tokens | 18820516 | 400 days ago | IN | 0.086 ETH | 0.00324305 | ||||
Buy Tokens | 18820495 | 400 days ago | IN | 0.22 ETH | 0.00296462 | ||||
Buy Tokens | 18820495 | 400 days ago | IN | 0.22 ETH | 0.00296462 | ||||
Buy Tokens | 18820495 | 400 days ago | IN | 0.22 ETH | 0.00296462 | ||||
Buy Tokens | 18820494 | 400 days ago | IN | 0.22 ETH | 0.00292958 | ||||
Buy Tokens | 18820494 | 400 days ago | IN | 0.22 ETH | 0.00292958 | ||||
Buy Tokens | 18820493 | 400 days ago | IN | 0.22 ETH | 0.00296092 | ||||
Buy Tokens | 18820492 | 400 days ago | IN | 0.22 ETH | 0.00308348 | ||||
Buy Tokens | 18820492 | 400 days ago | IN | 0.22 ETH | 0.00308348 | ||||
Buy Tokens | 18820491 | 400 days ago | IN | 0.22 ETH | 0.00305808 | ||||
Buy Tokens | 18820490 | 400 days ago | IN | 0.22 ETH | 0.0030307 | ||||
Buy Tokens | 18820489 | 400 days ago | IN | 0.22 ETH | 0.00311127 | ||||
Buy Tokens | 18820487 | 400 days ago | IN | 0.069 ETH | 0.0031367 | ||||
Buy Tokens | 18820483 | 400 days ago | IN | 0.22 ETH | 0.00294932 | ||||
Buy Tokens | 18820483 | 400 days ago | IN | 0.22 ETH | 0.00294932 | ||||
Buy Tokens | 18820481 | 400 days ago | IN | 0.22 ETH | 0.00270051 | ||||
Buy Tokens | 18820481 | 400 days ago | IN | 0.22 ETH | 0.00270051 | ||||
Buy Tokens | 18820480 | 400 days ago | IN | 0.22 ETH | 0.0026311 | ||||
Buy Tokens | 18820480 | 400 days ago | IN | 0.22 ETH | 0.0026311 | ||||
Buy Tokens | 18820479 | 400 days ago | IN | 0.22 ETH | 0.00267979 | ||||
Buy Tokens | 18820478 | 400 days ago | IN | 0.22 ETH | 0.00264034 | ||||
Buy Tokens | 18820478 | 400 days ago | IN | 0.22 ETH | 0.00264034 | ||||
Buy Tokens | 18820477 | 400 days ago | IN | 0.22 ETH | 0.00263549 | ||||
Buy Tokens | 18820476 | 400 days ago | IN | 0.22 ETH | 0.00266203 |
Latest 8 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
MetaOasis
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; contract MetaOasis is AccessControl, Ownable { bytes32 public constant SETUP_ROLE = keccak256("SETUP_ROLE"); using SafeMath for uint256; using EnumerableSet for EnumerableSet.AddressSet; uint256 timeSaleWhiteStart; uint256 timeSaleWhiteEnd; uint256 timeSaleStart; uint256 timeSaleEnd; uint256 maxSalePrice; uint256 minSalePrice; uint256 salePrice; uint256 saleMax; uint256 saleCount = 0; mapping (address => uint256) private whitelist; bool isModeWhiteSale = true; event EventPurchased(address to, uint256 value); constructor( uint256 _timeSaleWhiteStart, uint256 _timeSaleWhiteEnd, uint256 _timeSaleStart, uint256 _timeSaleEnd, uint256 _maxSalePrice, uint256 _minSalePrice, uint256 _salePrice, uint256 _saleMax, address _owners ) public { timeSaleWhiteStart = _timeSaleWhiteStart; timeSaleWhiteEnd = _timeSaleWhiteEnd; timeSaleStart = _timeSaleStart; timeSaleEnd = _timeSaleEnd; maxSalePrice = _maxSalePrice; minSalePrice = _minSalePrice; salePrice = _salePrice; saleMax = _saleMax; _grantRole(DEFAULT_ADMIN_ROLE, _owners); _grantRole(SETUP_ROLE, _owners); } function buyTokens() external payable { if (isModeWhiteSale == true) { require(timeSaleWhiteStart <= block.timestamp && block.timestamp <= timeSaleWhiteEnd, 'Not on White Sale'); } if (isModeWhiteSale == false) { require(timeSaleStart <= block.timestamp && block.timestamp <= timeSaleEnd, 'Not for sale yet'); } require(isModeWhiteSale == false || (isModeWhiteSale == true && whitelist[msg.sender] > 0), 'You are not Whitelist !'); require(minSalePrice <= msg.value && msg.value <= maxSalePrice, 'Invalid sales amount.'); require(msg.sender != address(0), 'wrong address'); saleCount = saleCount + uint256(SafeMath.div(msg.value, salePrice)); require(saleCount <= saleMax, 'Sold out'); if (isModeWhiteSale == true) { require(whitelist[msg.sender] > 0, 'No longer available to purchase'); whitelist[msg.sender] = whitelist[msg.sender] - msg.value; } emit EventPurchased(msg.sender, msg.value); } // ***** white list ***** function addWhitelist (address user) public onlyRole(SETUP_ROLE) { whitelist[user] = maxSalePrice; } function addWhitelists (address[] memory users) public onlyRole(SETUP_ROLE) { for (uint256 i = 0 ; i < users.length; i++) { whitelist[users[i]] = maxSalePrice; } } function containsWhitelist (address user) public view returns (uint256) { return whitelist[user]; } function removeWhitelist (address user) public onlyRole(SETUP_ROLE) { whitelist[user] = 0; } function setWhitelistForce (address user, uint256 value) public onlyRole(SETUP_ROLE) { whitelist[user] = value; } function getWhiteListCount (address user) public view returns (uint256) { return whitelist[user]; } function getIsModeWhiteList () public view returns (bool) { return isModeWhiteSale; } // ***** onlyRole(SETUP_ROLE) ***** function getMaxSalePrice() public view returns (uint256) { return maxSalePrice; } function setMaxSalePrice (uint256 _maxSalePrice) public onlyRole(SETUP_ROLE) { maxSalePrice = _maxSalePrice; } function getMinSalePrice() public view returns (uint256) { return minSalePrice; } function setMinSalePrice (uint256 _minSalePrice) public onlyRole(SETUP_ROLE) { minSalePrice = _minSalePrice; } function getSaleCount() public view returns (uint256) { return saleCount; } function getSalePrice() public view returns (uint256) { return salePrice; } function setSalePrice (uint256 _salePrice) public onlyRole(SETUP_ROLE) { salePrice = _salePrice; } function getSaleMax() public view returns (uint256) { return saleMax; } function setSaleMax (uint256 _saleMax) public onlyRole(SETUP_ROLE) { saleMax = _saleMax; } function getTimeSaleWhiteStart () public view returns (uint256) { return timeSaleWhiteStart; } function setTimeSaleWhiteStart (uint256 _timeSaleWhiteStart) public onlyRole(SETUP_ROLE) { timeSaleWhiteStart = _timeSaleWhiteStart; } function getSaleEndTime () public view returns (uint256) { return timeSaleWhiteEnd; } function setSaleEndTime (uint256 _timeSaleWhiteEnd) public onlyRole(SETUP_ROLE) { timeSaleWhiteEnd = _timeSaleWhiteEnd; } function getTimeSaleStart () public view returns (uint256) { return timeSaleStart; } function setTimeSaleStart (uint256 _timeSaleStart) public onlyRole(SETUP_ROLE) { timeSaleStart = _timeSaleStart; } function getTimeSaleEnd () public view returns (uint256) { return timeSaleEnd; } function setTimeSaleEnd (uint256 _timeSaleEnd) public onlyRole(SETUP_ROLE) { timeSaleEnd = _timeSaleEnd; } function setIsModeWhiteSale (bool _isModeWhiteSale) public onlyRole(SETUP_ROLE) { isModeWhiteSale = _isModeWhiteSale; } function withdraw (address payable _account) public onlyRole(SETUP_ROLE) { require ( address(_account) != address(0) && address(_account) != address(this), 'wrong address'); _account.transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => 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(Set storage set, bytes32 value) private 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(Set storage set, bytes32 value) private 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; if (lastIndex != toDeleteIndex) { bytes32 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] = valueIndex; // Replace lastValue's index to valueIndex } // 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(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private 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(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @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(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @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) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @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) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @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) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @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(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @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(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @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(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 {AccessControl-_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) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @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) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @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) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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 { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_timeSaleWhiteStart","type":"uint256"},{"internalType":"uint256","name":"_timeSaleWhiteEnd","type":"uint256"},{"internalType":"uint256","name":"_timeSaleStart","type":"uint256"},{"internalType":"uint256","name":"_timeSaleEnd","type":"uint256"},{"internalType":"uint256","name":"_maxSalePrice","type":"uint256"},{"internalType":"uint256","name":"_minSalePrice","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"},{"internalType":"uint256","name":"_saleMax","type":"uint256"},{"internalType":"address","name":"_owners","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"EventPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SETUP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"addWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"containsWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIsModeWhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeSaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeSaleWhiteStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getWhiteListCount","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bool","name":"_isModeWhiteSale","type":"bool"}],"name":"setIsModeWhiteSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSalePrice","type":"uint256"}],"name":"setMaxSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minSalePrice","type":"uint256"}],"name":"setMinSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSaleWhiteEnd","type":"uint256"}],"name":"setSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleMax","type":"uint256"}],"name":"setSaleMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSaleEnd","type":"uint256"}],"name":"setTimeSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSaleStart","type":"uint256"}],"name":"setTimeSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSaleWhiteStart","type":"uint256"}],"name":"setTimeSaleWhiteStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setWhitelistForce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_account","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a55600c805460ff191660011790553480156200002357600080fd5b5060405162001828380380620018288339810160408190526200004691620001b4565b6200005133620000c1565b600289905560038890556004879055600586905560068590556007849055600883905560098290556200008660008262000113565b620000b27f1153057e7a3c8d42df44caa2902d90737a048ee746d653a72beb49a4213bf38b8262000113565b50505050505050505062000233565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001b0576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200016f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60008060008060008060008060006101208a8c031215620001d3578485fd5b8951985060208a0151975060408a0151965060608a0151955060808a0151945060a08a0151935060c08a0151925060e08a015191506101008a015160018060a01b038116811462000222578182fd5b809150509295985092959850929598565b6115e580620002436000396000f3fe6080604052600436106102255760003560e01c80636b0ac17c11610123578063bff734c2116100ab578063d547741f1161006f578063d547741f1461060a578063dd037bb314610577578063f2fde38b1461062a578063f80f5dd51461064a578063fe2050511461066a57600080fd5b8063bff734c214610577578063c24521c6146105ad578063c8eaf28f146105c2578063d0febe4c146105e2578063d132391a146105ea57600080fd5b806386718946116100f257806386718946146104da5780638da5cb5b146104fa57806391d14854146105225780639b908dbc14610542578063a217fddf1461056257600080fd5b80636b0ac17c146104705780636e1313bf14610485578063715018a6146104a557806378c8cda7146104ba57600080fd5b806328c0b09f116101b157806337d4dd891161017557806337d4dd89146103f15780633ba306a21461041157806351cff8d91461042657806361f6b71d1461044657806369ef657e1461045b57600080fd5b806328c0b09f146103675780632f0fc8b91461037c5780632f2ff15d1461039c5780632fbc0bf1146103bc57806336568abe146103d157600080fd5b80631919fed7116101f85780631919fed7146102b55780631abec890146102d55780631c4b0da6146102f55780632263730114610315578063248a9ca31461033757600080fd5b806301ffc9a71461022a578063080a1b771461025f57806314b452e41461028157806315d3b908146102a0575b600080fd5b34801561023657600080fd5b5061024a6102453660046113ae565b610682565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027f61027a366004611367565b6106b9565b005b34801561028d57600080fd5b506003545b604051908152602001610256565b3480156102ac57600080fd5b50600654610292565b3480156102c157600080fd5b5061027f6102d0366004611367565b6106d7565b3480156102e157600080fd5b5061027f6102f0366004611367565b6106f5565b34801561030157600080fd5b5061027f610310366004611367565b610713565b34801561032157600080fd5b5061029260008051602061159083398151915281565b34801561034357600080fd5b50610292610352366004611367565b60009081526020819052604090206001015490565b34801561037357600080fd5b50600454610292565b34801561038857600080fd5b5061027f610397366004611255565b610731565b3480156103a857600080fd5b5061027f6103b736600461137f565b610766565b3480156103c857600080fd5b50600854610292565b3480156103dd57600080fd5b5061027f6103ec36600461137f565b610790565b3480156103fd57600080fd5b5061027f61040c366004611367565b610813565b34801561041d57600080fd5b50600954610292565b34801561043257600080fd5b5061027f610441366004611239565b610831565b34801561045257600080fd5b50600554610292565b34801561046757600080fd5b50600754610292565b34801561047c57600080fd5b50600254610292565b34801561049157600080fd5b5061027f6104a0366004611367565b6108db565b3480156104b157600080fd5b5061027f6108f9565b3480156104c657600080fd5b5061027f6104d5366004611239565b61090d565b3480156104e657600080fd5b5061027f6104f5366004611367565b610940565b34801561050657600080fd5b506001546040516001600160a01b039091168152602001610256565b34801561052e57600080fd5b5061024a61053d36600461137f565b61095e565b34801561054e57600080fd5b5061027f61055d366004611347565b610987565b34801561056e57600080fd5b50610292600081565b34801561058357600080fd5b50610292610592366004611239565b6001600160a01b03166000908152600b602052604090205490565b3480156105b957600080fd5b50600a54610292565b3480156105ce57600080fd5b5061027f6105dd366004611280565b6109b3565b61027f610a3d565b3480156105f657600080fd5b5061027f610605366004611367565b610d3d565b34801561061657600080fd5b5061027f61062536600461137f565b610d5b565b34801561063657600080fd5b5061027f610645366004611239565b610d80565b34801561065657600080fd5b5061027f610665366004611239565b610df9565b34801561067657600080fd5b50600c5460ff1661024a565b60006001600160e01b03198216637965db0b60e01b14806106b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000805160206115908339815191526106d181610e31565b50600655565b6000805160206115908339815191526106ef81610e31565b50600855565b60008051602061159083398151915261070d81610e31565b50600555565b60008051602061159083398151915261072b81610e31565b50600755565b60008051602061159083398151915261074981610e31565b506001600160a01b039091166000908152600b6020526040902055565b60008281526020819052604090206001015461078181610e31565b61078b8383610e3b565b505050565b6001600160a01b03811633146108055760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61080f8282610ebf565b5050565b60008051602061159083398151915261082b81610e31565b50600955565b60008051602061159083398151915261084981610e31565b6001600160a01b0382161580159061086a57506001600160a01b0382163014155b6108a65760405162461bcd60e51b815260206004820152600d60248201526c77726f6e67206164647265737360981b60448201526064016107fc565b6040516001600160a01b038316904780156108fc02916000818181858888f1935050505015801561078b573d6000803e3d6000fd5b6000805160206115908339815191526108f381610e31565b50600455565b610901610f24565b61090b6000610f7e565b565b60008051602061159083398151915261092581610e31565b506001600160a01b03166000908152600b6020526040812055565b60008051602061159083398151915261095881610e31565b50600255565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008051602061159083398151915261099f81610e31565b50600c805460ff1916911515919091179055565b6000805160206115908339815191526109cb81610e31565b60005b825181101561078b57600654600b60008584815181106109fe57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610a3590611533565b9150506109ce565b600c5460ff16151560011415610aa1574260025411158015610a6157506003544211155b610aa15760405162461bcd60e51b81526020600482015260116024820152704e6f74206f6e2057686974652053616c6560781b60448201526064016107fc565b600c5460ff16610afe574260045411158015610abf57506005544211155b610afe5760405162461bcd60e51b815260206004820152601060248201526f139bdd08199bdc881cd85b19481e595d60821b60448201526064016107fc565b600c5460ff161580610b305750600c5460ff1615156001148015610b305750336000908152600b602052604090205415155b610b7c5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742057686974656c697374202100000000000000000060448201526064016107fc565b3460075411158015610b9057506006543411155b610bd45760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21039b0b632b99030b6b7bab73a1760591b60448201526064016107fc565b33610c115760405162461bcd60e51b815260206004820152600d60248201526c77726f6e67206164647265737360981b60448201526064016107fc565b610c1d34600854610fd0565b600a54610c2a919061147e565b600a8190556009541015610c6b5760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016107fc565b600c5460ff16151560011415610d0357336000908152600b6020526040902054610cd75760405162461bcd60e51b815260206004820152601f60248201527f4e6f206c6f6e67657220617661696c61626c6520746f2070757263686173650060448201526064016107fc565b336000908152600b6020526040902054610cf29034906114d5565b336000908152600b60205260409020555b604080513381523460208201527f333122b2d8a4b6fe8d0e6b7c66126584ae7a620a5be7ce7a8ac3d4ba635c63d8910160405180910390a1565b600080516020611590833981519152610d5581610e31565b50600355565b600082815260208190526040902060010154610d7681610e31565b61078b8383610ebf565b610d88610f24565b6001600160a01b038116610ded5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fc565b610df681610f7e565b50565b600080516020611590833981519152610e1181610e31565b506006546001600160a01b039091166000908152600b6020526040902055565b610df68133610fe3565b610e45828261095e565b61080f576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e7b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ec9828261095e565b1561080f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001546001600160a01b0316331461090b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610fdc8284611496565b9392505050565b610fed828261095e565b61080f57611005816001600160a01b03166014611047565b611010836020611047565b6040516020016110219291906113d6565b60408051601f198184030181529082905262461bcd60e51b82526107fc9160040161144b565b606060006110568360026114b6565b61106190600261147e565b67ffffffffffffffff81111561108757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156110b1576020820181803683370190505b509050600360fc1b816000815181106110da57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061111757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061113b8460026114b6565b61114690600161147e565b90505b60018111156111da576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061118857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106111ac57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936111d38161151c565b9050611149565b508315610fdc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fc565b80356112348161157a565b919050565b60006020828403121561124a578081fd5b8135610fdc8161157a565b60008060408385031215611267578081fd5b82356112728161157a565b946020939093013593505050565b60006020808385031215611292578182fd5b823567ffffffffffffffff808211156112a9578384fd5b818501915085601f8301126112bc578384fd5b8135818111156112ce576112ce611564565b8060051b604051601f19603f830116810181811085821117156112f3576112f3611564565b604052828152858101935084860182860187018a1015611311578788fd5b8795505b8386101561133a5761132681611229565b855260019590950194938601938601611315565b5098975050505050505050565b600060208284031215611358578081fd5b81358015158114610fdc578182fd5b600060208284031215611378578081fd5b5035919050565b60008060408385031215611391578182fd5b8235915060208301356113a38161157a565b809150509250929050565b6000602082840312156113bf578081fd5b81356001600160e01b031981168114610fdc578182fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161140e8160178501602088016114ec565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161143f8160288401602088016114ec565b01602801949350505050565b602081526000825180602084015261146a8160408501602087016114ec565b601f01601f19169190910160400192915050565b600082198211156114915761149161154e565b500190565b6000826114b157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156114d0576114d061154e565b500290565b6000828210156114e7576114e761154e565b500390565b60005b838110156115075781810151838201526020016114ef565b83811115611516576000848401525b50505050565b60008161152b5761152b61154e565b506000190190565b60006000198214156115475761154761154e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df657600080fdfe1153057e7a3c8d42df44caa2902d90737a048ee746d653a72beb49a4213bf38ba2646970667358221220246f9418b6e80acecfd969f721010dd386fb14dedacbf17f6eacd342a54ba15c64736f6c63430008040033000000000000000000000000000000000000000000000000000000006580263000000000000000000000000000000000000000000000000000000000658169a000000000000000000000000000000000000000000000000000000000658177b0000000000000000000000000000000000000000000000000000000006582c930000000000000000000000000000000000000000000000000030d98d59a960000000000000000000000000000000000000000000000000000009c51c4521e000000000000000000000000000000000000000000000000000000000600aea7d000000000000000000000000000000000000000000000000000000000000098968000000000000000000000000065dcb588e39d8cfd4cf351dc99ab6f42143ee4c8
Deployed Bytecode
0x6080604052600436106102255760003560e01c80636b0ac17c11610123578063bff734c2116100ab578063d547741f1161006f578063d547741f1461060a578063dd037bb314610577578063f2fde38b1461062a578063f80f5dd51461064a578063fe2050511461066a57600080fd5b8063bff734c214610577578063c24521c6146105ad578063c8eaf28f146105c2578063d0febe4c146105e2578063d132391a146105ea57600080fd5b806386718946116100f257806386718946146104da5780638da5cb5b146104fa57806391d14854146105225780639b908dbc14610542578063a217fddf1461056257600080fd5b80636b0ac17c146104705780636e1313bf14610485578063715018a6146104a557806378c8cda7146104ba57600080fd5b806328c0b09f116101b157806337d4dd891161017557806337d4dd89146103f15780633ba306a21461041157806351cff8d91461042657806361f6b71d1461044657806369ef657e1461045b57600080fd5b806328c0b09f146103675780632f0fc8b91461037c5780632f2ff15d1461039c5780632fbc0bf1146103bc57806336568abe146103d157600080fd5b80631919fed7116101f85780631919fed7146102b55780631abec890146102d55780631c4b0da6146102f55780632263730114610315578063248a9ca31461033757600080fd5b806301ffc9a71461022a578063080a1b771461025f57806314b452e41461028157806315d3b908146102a0575b600080fd5b34801561023657600080fd5b5061024a6102453660046113ae565b610682565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027f61027a366004611367565b6106b9565b005b34801561028d57600080fd5b506003545b604051908152602001610256565b3480156102ac57600080fd5b50600654610292565b3480156102c157600080fd5b5061027f6102d0366004611367565b6106d7565b3480156102e157600080fd5b5061027f6102f0366004611367565b6106f5565b34801561030157600080fd5b5061027f610310366004611367565b610713565b34801561032157600080fd5b5061029260008051602061159083398151915281565b34801561034357600080fd5b50610292610352366004611367565b60009081526020819052604090206001015490565b34801561037357600080fd5b50600454610292565b34801561038857600080fd5b5061027f610397366004611255565b610731565b3480156103a857600080fd5b5061027f6103b736600461137f565b610766565b3480156103c857600080fd5b50600854610292565b3480156103dd57600080fd5b5061027f6103ec36600461137f565b610790565b3480156103fd57600080fd5b5061027f61040c366004611367565b610813565b34801561041d57600080fd5b50600954610292565b34801561043257600080fd5b5061027f610441366004611239565b610831565b34801561045257600080fd5b50600554610292565b34801561046757600080fd5b50600754610292565b34801561047c57600080fd5b50600254610292565b34801561049157600080fd5b5061027f6104a0366004611367565b6108db565b3480156104b157600080fd5b5061027f6108f9565b3480156104c657600080fd5b5061027f6104d5366004611239565b61090d565b3480156104e657600080fd5b5061027f6104f5366004611367565b610940565b34801561050657600080fd5b506001546040516001600160a01b039091168152602001610256565b34801561052e57600080fd5b5061024a61053d36600461137f565b61095e565b34801561054e57600080fd5b5061027f61055d366004611347565b610987565b34801561056e57600080fd5b50610292600081565b34801561058357600080fd5b50610292610592366004611239565b6001600160a01b03166000908152600b602052604090205490565b3480156105b957600080fd5b50600a54610292565b3480156105ce57600080fd5b5061027f6105dd366004611280565b6109b3565b61027f610a3d565b3480156105f657600080fd5b5061027f610605366004611367565b610d3d565b34801561061657600080fd5b5061027f61062536600461137f565b610d5b565b34801561063657600080fd5b5061027f610645366004611239565b610d80565b34801561065657600080fd5b5061027f610665366004611239565b610df9565b34801561067657600080fd5b50600c5460ff1661024a565b60006001600160e01b03198216637965db0b60e01b14806106b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000805160206115908339815191526106d181610e31565b50600655565b6000805160206115908339815191526106ef81610e31565b50600855565b60008051602061159083398151915261070d81610e31565b50600555565b60008051602061159083398151915261072b81610e31565b50600755565b60008051602061159083398151915261074981610e31565b506001600160a01b039091166000908152600b6020526040902055565b60008281526020819052604090206001015461078181610e31565b61078b8383610e3b565b505050565b6001600160a01b03811633146108055760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61080f8282610ebf565b5050565b60008051602061159083398151915261082b81610e31565b50600955565b60008051602061159083398151915261084981610e31565b6001600160a01b0382161580159061086a57506001600160a01b0382163014155b6108a65760405162461bcd60e51b815260206004820152600d60248201526c77726f6e67206164647265737360981b60448201526064016107fc565b6040516001600160a01b038316904780156108fc02916000818181858888f1935050505015801561078b573d6000803e3d6000fd5b6000805160206115908339815191526108f381610e31565b50600455565b610901610f24565b61090b6000610f7e565b565b60008051602061159083398151915261092581610e31565b506001600160a01b03166000908152600b6020526040812055565b60008051602061159083398151915261095881610e31565b50600255565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008051602061159083398151915261099f81610e31565b50600c805460ff1916911515919091179055565b6000805160206115908339815191526109cb81610e31565b60005b825181101561078b57600654600b60008584815181106109fe57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610a3590611533565b9150506109ce565b600c5460ff16151560011415610aa1574260025411158015610a6157506003544211155b610aa15760405162461bcd60e51b81526020600482015260116024820152704e6f74206f6e2057686974652053616c6560781b60448201526064016107fc565b600c5460ff16610afe574260045411158015610abf57506005544211155b610afe5760405162461bcd60e51b815260206004820152601060248201526f139bdd08199bdc881cd85b19481e595d60821b60448201526064016107fc565b600c5460ff161580610b305750600c5460ff1615156001148015610b305750336000908152600b602052604090205415155b610b7c5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742057686974656c697374202100000000000000000060448201526064016107fc565b3460075411158015610b9057506006543411155b610bd45760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21039b0b632b99030b6b7bab73a1760591b60448201526064016107fc565b33610c115760405162461bcd60e51b815260206004820152600d60248201526c77726f6e67206164647265737360981b60448201526064016107fc565b610c1d34600854610fd0565b600a54610c2a919061147e565b600a8190556009541015610c6b5760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016107fc565b600c5460ff16151560011415610d0357336000908152600b6020526040902054610cd75760405162461bcd60e51b815260206004820152601f60248201527f4e6f206c6f6e67657220617661696c61626c6520746f2070757263686173650060448201526064016107fc565b336000908152600b6020526040902054610cf29034906114d5565b336000908152600b60205260409020555b604080513381523460208201527f333122b2d8a4b6fe8d0e6b7c66126584ae7a620a5be7ce7a8ac3d4ba635c63d8910160405180910390a1565b600080516020611590833981519152610d5581610e31565b50600355565b600082815260208190526040902060010154610d7681610e31565b61078b8383610ebf565b610d88610f24565b6001600160a01b038116610ded5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fc565b610df681610f7e565b50565b600080516020611590833981519152610e1181610e31565b506006546001600160a01b039091166000908152600b6020526040902055565b610df68133610fe3565b610e45828261095e565b61080f576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610e7b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ec9828261095e565b1561080f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001546001600160a01b0316331461090b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610fdc8284611496565b9392505050565b610fed828261095e565b61080f57611005816001600160a01b03166014611047565b611010836020611047565b6040516020016110219291906113d6565b60408051601f198184030181529082905262461bcd60e51b82526107fc9160040161144b565b606060006110568360026114b6565b61106190600261147e565b67ffffffffffffffff81111561108757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156110b1576020820181803683370190505b509050600360fc1b816000815181106110da57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061111757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061113b8460026114b6565b61114690600161147e565b90505b60018111156111da576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061118857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106111ac57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936111d38161151c565b9050611149565b508315610fdc5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fc565b80356112348161157a565b919050565b60006020828403121561124a578081fd5b8135610fdc8161157a565b60008060408385031215611267578081fd5b82356112728161157a565b946020939093013593505050565b60006020808385031215611292578182fd5b823567ffffffffffffffff808211156112a9578384fd5b818501915085601f8301126112bc578384fd5b8135818111156112ce576112ce611564565b8060051b604051601f19603f830116810181811085821117156112f3576112f3611564565b604052828152858101935084860182860187018a1015611311578788fd5b8795505b8386101561133a5761132681611229565b855260019590950194938601938601611315565b5098975050505050505050565b600060208284031215611358578081fd5b81358015158114610fdc578182fd5b600060208284031215611378578081fd5b5035919050565b60008060408385031215611391578182fd5b8235915060208301356113a38161157a565b809150509250929050565b6000602082840312156113bf578081fd5b81356001600160e01b031981168114610fdc578182fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161140e8160178501602088016114ec565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161143f8160288401602088016114ec565b01602801949350505050565b602081526000825180602084015261146a8160408501602087016114ec565b601f01601f19169190910160400192915050565b600082198211156114915761149161154e565b500190565b6000826114b157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156114d0576114d061154e565b500290565b6000828210156114e7576114e761154e565b500390565b60005b838110156115075781810151838201526020016114ef565b83811115611516576000848401525b50505050565b60008161152b5761152b61154e565b506000190190565b60006000198214156115475761154761154e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df657600080fdfe1153057e7a3c8d42df44caa2902d90737a048ee746d653a72beb49a4213bf38ba2646970667358221220246f9418b6e80acecfd969f721010dd386fb14dedacbf17f6eacd342a54ba15c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000006580263000000000000000000000000000000000000000000000000000000000658169a000000000000000000000000000000000000000000000000000000000658177b0000000000000000000000000000000000000000000000000000000006582c930000000000000000000000000000000000000000000000000030d98d59a960000000000000000000000000000000000000000000000000000009c51c4521e000000000000000000000000000000000000000000000000000000000600aea7d000000000000000000000000000000000000000000000000000000000000098968000000000000000000000000065dcb588e39d8cfd4cf351dc99ab6f42143ee4c8
-----Decoded View---------------
Arg [0] : _timeSaleWhiteStart (uint256): 1702897200
Arg [1] : _timeSaleWhiteEnd (uint256): 1702980000
Arg [2] : _timeSaleStart (uint256): 1702983600
Arg [3] : _timeSaleEnd (uint256): 1703070000
Arg [4] : _maxSalePrice (uint256): 220000000000000000
Arg [5] : _minSalePrice (uint256): 44000000000000000
Arg [6] : _salePrice (uint256): 6600000000000
Arg [7] : _saleMax (uint256): 10000000
Arg [8] : _owners (address): 0x65dCb588E39d8cfD4cF351dc99aB6F42143Ee4C8
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000065802630
Arg [1] : 00000000000000000000000000000000000000000000000000000000658169a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000658177b0
Arg [3] : 000000000000000000000000000000000000000000000000000000006582c930
Arg [4] : 000000000000000000000000000000000000000000000000030d98d59a960000
Arg [5] : 000000000000000000000000000000000000000000000000009c51c4521e0000
Arg [6] : 00000000000000000000000000000000000000000000000000000600aea7d000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [8] : 00000000000000000000000065dcb588e39d8cfd4cf351dc99ab6f42143ee4c8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.