Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,481 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Airdrop | 16866778 | 565 days ago | IN | 0 ETH | 0.09120457 | ||||
Airdrop | 16866758 | 565 days ago | IN | 0 ETH | 0.00112733 | ||||
Pause | 16866072 | 565 days ago | IN | 0 ETH | 0.0005759 | ||||
Allowlist Mint | 16865948 | 565 days ago | IN | 0 ETH | 0.0020666 | ||||
Allowlist Mint | 16865845 | 565 days ago | IN | 0 ETH | 0.00276867 | ||||
Allowlist Mint | 16865844 | 565 days ago | IN | 0 ETH | 0.00275759 | ||||
Allowlist Mint | 16865843 | 565 days ago | IN | 0 ETH | 0.00280711 | ||||
Allowlist Mint | 16865835 | 565 days ago | IN | 0 ETH | 0.00267514 | ||||
Allowlist Mint | 16865773 | 565 days ago | IN | 0 ETH | 0.00220027 | ||||
Allowlist Mint | 16865739 | 565 days ago | IN | 0 ETH | 0.00215555 | ||||
Allowlist Mint | 16865692 | 565 days ago | IN | 0 ETH | 0.00208706 | ||||
Allowlist Mint | 16865668 | 565 days ago | IN | 0 ETH | 0.00200697 | ||||
Allowlist Mint | 16865646 | 565 days ago | IN | 0 ETH | 0.00207146 | ||||
Allowlist Mint | 16865618 | 565 days ago | IN | 0 ETH | 0.0020914 | ||||
Allowlist Mint | 16865587 | 565 days ago | IN | 0 ETH | 0.00237695 | ||||
Allowlist Mint | 16865442 | 565 days ago | IN | 0 ETH | 0.00205211 | ||||
Allowlist Mint | 16865335 | 565 days ago | IN | 0 ETH | 0.00243022 | ||||
Allowlist Mint | 16865184 | 565 days ago | IN | 0 ETH | 0.00311821 | ||||
Allowlist Mint | 16865163 | 565 days ago | IN | 0 ETH | 0.00294184 | ||||
Allowlist Mint | 16865114 | 565 days ago | IN | 0 ETH | 0.00251554 | ||||
Allowlist Mint | 16865102 | 565 days ago | IN | 0 ETH | 0.00231955 | ||||
Allowlist Mint | 16865066 | 565 days ago | IN | 0 ETH | 0.0030829 | ||||
Allowlist Mint | 16864976 | 565 days ago | IN | 0 ETH | 0.00302521 | ||||
Allowlist Mint | 16864920 | 565 days ago | IN | 0 ETH | 0.00327773 | ||||
Allowlist Mint | 16864913 | 565 days ago | IN | 0 ETH | 0.00268358 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TolPassSeller
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "./ITolPass.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract TolPassSeller is AccessControl, Ownable, Pausable { ITolPass public tolPass; // Manage bytes32 public constant ADMIN = "ADMIN"; bytes32 public constant PIE = "PIE"; address public withdrawAddress; // SaleInfo uint256 public salesId; uint256 public maxSupply; uint256 public mintCost; bytes32 merkleRoot; mapping(uint256 => mapping(address => uint256)) public mintedAmountBySales; // Modifier modifier enoughEth(uint256 amount) { require(msg.value >= amount * mintCost, 'Not Enough Eth'); _; } modifier withinMaxSupply(uint256 amount) { require(tolPass.getTotalSupply() + amount <= maxSupply, 'Over Max Supply'); _; } modifier withinMintableAmount(address minter, uint256 amount, uint256 allowedAmount) { require(mintedAmountBySales[salesId][minter] + amount <= allowedAmount, 'Over Max Amount Per Address'); _; } modifier validProof(address minter, uint256 allowedAmount, bytes32[] calldata merkleProof) { bytes32 node = keccak256(abi.encodePacked(minter, allowedAmount)); require(MerkleProof.verifyCalldata(merkleProof, merkleRoot, node), "Invalid proof"); _; } // Constructor constructor(address _withdrawAddress) { _grantRole(ADMIN, msg.sender); withdrawAddress = _withdrawAddress; } // AirDrop function airdrop(address[] calldata _addresses, uint256[] calldata _amounts) payable external onlyRole(ADMIN) { require(_addresses.length == _amounts.length, 'Invalid Arguments'); uint256 supply = tolPass.getTotalSupply(); for (uint256 i = 0; i < _addresses.length; i++) { uint256 _amount = _amounts[i]; if (supply + _amount <= maxSupply) { tolPass.mint(_addresses[i], _amount); supply = supply + _amount; } } } // Mint function allowlistMint(uint256 _amount, uint256 _allowedAmount, bytes32[] calldata _merkleProof) external payable whenNotPaused withinMaxSupply(_amount) enoughEth(_amount) withinMintableAmount(msg.sender, _amount, _allowedAmount) validProof(msg.sender, _allowedAmount, _merkleProof) { mintCommon(msg.sender, _amount); } function pieMint(address _minter, uint256 _amount, uint256 _allowedAmount, bytes32[] calldata _merkleProof) external payable onlyRole(PIE) whenNotPaused withinMaxSupply(_amount) enoughEth(_amount) withinMintableAmount(_minter, _amount, _allowedAmount) validProof(_minter, _allowedAmount, _merkleProof) { mintCommon(_minter, _amount); } function mintCommon(address _minter, uint _amount) private { mintedAmountBySales[salesId][_minter] += _amount; tolPass.mint(_minter, _amount); } // Getter function totalSupply() external view returns (uint256) { return tolPass.getTotalSupply(); } // Setter function setTolPass(address _address) external onlyRole(ADMIN) { tolPass = ITolPass(_address); } function setWithdrawAddress(address _value) external onlyRole(ADMIN) { withdrawAddress = _value; } function setSalesInfo(uint256 _salesId, uint256 _maxSupply, uint256 _mintCost, bytes32 _merkleRoot) external onlyRole(ADMIN) { salesId = _salesId; maxSupply = _maxSupply; mintCost = _mintCost; merkleRoot = _merkleRoot; } function setSalesId(uint256 _value) external onlyRole(ADMIN) { salesId = _value; } function setMaxSupply(uint256 _value) external onlyRole(ADMIN) { maxSupply = _value; } function setMintCost(uint256 _value) external onlyRole(ADMIN) { mintCost = _value; } function setMerkleRoot(bytes32 _value) external onlyRole(ADMIN) { merkleRoot = _value; } // Metadata function withdraw() external payable onlyRole(ADMIN) { (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}(""); require(os); } // Pausable function pause() external onlyRole(ADMIN) { _pause(); } function unpause() external onlyRole(ADMIN) { _unpause(); } // AccessControl function grantRole(bytes32 role, address account) public override onlyOwner { _grantRole(role, account); } function revokeRole(bytes32 role, address account) public override onlyOwner { _revokeRole(role, account); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; interface ITolPass { function mint(address _address, uint256 _amount) external; function burn(uint256 _tokenId) external; function isTokenOwner(address _owner, uint256 _tokenId) view external returns (bool); function getTotalSupply() external view returns (uint256); }
// 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()); } } }
// 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 (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 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.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/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 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); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_withdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","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":"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedAmountBySales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_allowedAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"pieMint","outputs":[],"stateMutability":"payable","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":[],"name":"salesId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setSalesId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salesId","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_mintCost","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setSalesInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTolPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setWithdrawAddress","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":[],"name":"tolPass","outputs":[{"internalType":"contract ITolPass","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60803461013857601f6119be38819003918201601f191683019291906001600160401b0384118385101761013d57816020928492604096875283398101031261013857516001600160a01b038082169182900361013857600154600091339082167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08480a36001600160a81b0319163360ff60a01b198116919091176001556420a226a4a760d91b8083526020838152858420928452919091528382205490919060ff16156100ec575b5050600380546001600160a01b0319169190911790555161186a90816101548239f35b81815280602052838120338252602052838120600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339280a438806100c9565b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040908082526004908136101561001757600080fd5b600092833560e01c91826301ffc9a71461105a5750816311087c83146110395781631581b6001461101157816318160ddd14610f86578163248a9ca314610f5b578163285d47ea14610f195781632a0acc6a14610ef65781632d945cb914610dc15781632f2ff15d14610d265781633157125e14610cfe57816336568abe14610c5f5781633ab1a49414610c205781633ccfd60b14610ba25781633f4ba83a14610afc57816350f6b0251461076257816355cf3c7f146107235781635c975abb146106fc57816367243482146105155781636f8b44b0146104f3578163715018a6146104955781637cb64759146104735781638456cb59146104015781638545f4ea146103df5781638da5cb5b146103b7578163914374dc1461038357816391d148541461033d578163a217fddf14610322578163a30dd98814610303578163bdb4b848146102e4578163d547741f146102b5578163d5abeb0114610296578163f2fde38b146101b5575063f678fbad1461019157600080fd5b346101b15760203660031901126101b1576101aa61129d565b8035905580f35b5080fd5b91905034610292576020366003190112610292576101d16110c9565b906101da611185565b6001600160a01b03809216928315610229575050600154826001600160a01b0319821617600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b8390346101b157816003193601126101b1576020906005549051908152f35b905034610292573660031901126101b1576102e1906102d26110ae565b906102db611185565b35611110565b80f35b8390346101b157816003193601126101b1576020906006549051908152f35b9190503461029257826003193601126102925760209250549051908152f35b8390346101b157816003193601126101b15751908152602090f35b919050346102925781600319360112610292578160209360ff9261035f6110ae565b903582528186526001600160a01b0383832091168252855220541690519015158152f35b5050346101b15760803660031901126101b15761039e61129d565b8035905560243560055560443560065560643560075580f35b8390346101b157816003193601126101b1576020906001600160a01b03600154169051908152f35b5050346101b15760203660031901126101b1576103fa61129d565b3560065580f35b8390346101b157816003193601126101b15760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589161043f61129d565b61044761170c565b7401000000000000000000000000000000000000000060ff60a01b19600154161760015551338152a180f35b5050346101b15760203660031901126101b15761048e61129d565b3560075580f35b83346104f057806003193601126104f0576104ae611185565b806001600160a01b036001546001600160a01b03198116600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5050346101b15760203660031901126101b15761050e61129d565b3560055580f35b809291506003193601126102925767ffffffffffffffff81358181116106f85761054290369084016110df565b9390916024359081116106f45761055c90369085016110df565b92909361056761129d565b8386036106b1576001600160a01b0390600296816020848a54168751928380926362720d9160e11b82525afa9081156106a7578a91610672575b5095895b8281106105b0578a80f35b6105bb81838b61126a565b356105c6818a611290565b60055410156105df575b506105da90611245565b6105a5565b9097858b54168c6105f18b878b61126a565b3588811681036101b157823b156101b1578a516340c10f1960e01b81526001600160a01b03909116818901908152602081018690529092839182908490829060400103925af1801561066857916105da939161065293610659575b50611290565b97906105d0565b610662906111dd565b3861064c565b89513d8f823e3d90fd5b90506020813d821161069f575b8161068c60209383611223565b8101031261069b5751386105a1565b8980fd5b3d915061067f565b86513d8c823e3d90fd5b606490602084519162461bcd60e51b8352820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152fd5b8580fd5b8480fd5b8390346101b157816003193601126101b15760209060ff60015460a01c1690519015158152f35b83346104f05760203660031901126104f0576001600160a01b036107456110c9565b61074d61129d565b166001600160a01b0319600254161760025580f35b90506080366003190112610292576107786110c9565b602480359260443560643567ffffffffffffffff8111610af85761079f90369088016110df565b9390926250494560e81b91828a526020928a8452828b20338c52845260ff838c2054161561090d5750506107d161170c565b886001600160a01b038984826002541685519c8d80926362720d9160e11b82525afa9a8b1561090357839b6108c2575b5093836108718761086a8d6102e19f9861089d988f6108bd9f9d9b996108b89f9d61083c610832876108ab9e611290565b60055410156115dc565b61085361084b600654886114a9565b341015611628565b54835260088a528383209116825288522054611290565b1115611674565b519283918201948a8690916034926bffffffffffffffffffffffff199060601b16825260148201520190565b03601f198101835282611223565b5190209160075491611760565b6116c0565b6117be565b9795939a509195938088813d83116108fc575b6108df8183611223565b810103126108f857965199949693959294929183610801565b8680fd5b503d6108d5565b84513d85823e3d90fd5b918a8a9361091a336114cd565b83519161092683611207565b60428352878301936060368637835115610ae65760308553835190600191821015610ad45790607860218601536041915b818311610a6b57505050610a2b57836109fc604889610a1d9660449a99966109ed6109b8977f416363657373436f6e74726f6c3a206163636f756e74200000000000000000009b5198858a9687019d8e528251928391603789019101611486565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190611486565b01036028810185520183611223565b5196879562461bcd60e51b8752860152519283809286015285850190611486565b601f01601f19168101030190fd5b60648688878188519362461bcd60e51b85528401528201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015610ac2576f181899199a1a9b1b9c1cb0b131b232b360811b901a610a9b85886114bc565b53891c928015610ab057600019019190610957565b634e487b7160e01b825260118a528882fd5b634e487b7160e01b835260328b528983fd5b634e487b7160e01b8152603289528790fd5b634e487b7160e01b8152603288528690fd5b8780fd5b91905034610292578260031936011261029257610b1761129d565b6001549060ff8260a01c1615610b5f57507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9160ff60a01b196020921660015551338152a180f35b606490602084519162461bcd60e51b8352820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b838092506003193601126101b157610bb861129d565b818080806001600160a01b036003541647905af1903d15610c17573d67ffffffffffffffff8111610c0457610bfc92939450602090601f8019910116019051611223565b156104f05780f35b634e487b7160e01b845260418552602484fd5b50909150610bfc565b83346104f05760203660031901126104f0576001600160a01b03610c426110c9565b610c4a61129d565b166001600160a01b0319600354161760035580f35b8383346101b157826003193601126101b157610c796110ae565b90336001600160a01b03831603610c9557906102e19135611110565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b8390346101b157816003193601126101b1576020906001600160a01b03600254169051908152f35b919050346102925781600319360112610292573590610d436110ae565b90610d4c611185565b828452836020526001600160a01b0381852092169182855260205260ff818520541615610d77578380f35b828452836020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b90506060366003190112610292578135906024359060443567ffffffffffffffff81116106f457610df590369086016110df565b929091610e0061170c565b866001600160a01b036002541696825180986362720d9160e11b8252818360209b8c935afa908115610903578391610eb7575b506102e19884610e858761086a8c6108b89b99610eb19d9b9961089d99610e60610832856108ab9c611290565b610e6f61084b600654866114a9565b5481526008885281812033825288522054611290565b51928391820194338690916034926bffffffffffffffffffffffff199060601b16825260148201520190565b336117be565b91959396949290508882813d8311610eef575b610ed48183611223565b810103126104f05790519395929491939091906102e1610e33565b503d610eca565b8390346101b157816003193601126101b157602090516420a226a4a760d91b8152f35b919050346102925781600319360112610292576020928291610f396110ae565b90358252600885526001600160a01b0383832091168252845220549051908152f35b9190503461029257602036600319011261029257816020936001923581528085522001549051908152f35b90503461029257826003193601126102925760206001600160a01b03600254168251938480926362720d9160e11b82525afa918215611007578392610fd0575b6020838351908152f35b9091506020813d8211610fff575b81610feb60209383611223565b810103126102925760209250519038610fc6565b3d9150610fde565b81513d85823e3d90fd5b8390346101b157816003193601126101b1576020906001600160a01b03600354169051908152f35b8390346101b157816003193601126101b157516250494560e81b8152602090f35b84908434610292576020366003190112610292573563ffffffff60e01b81168091036102925760209250637965db0b60e01b811490811561109d575b5015158152f35b6301ffc9a760e01b14905083611096565b602435906001600160a01b03821682036110c457565b600080fd5b600435906001600160a01b03821682036110c457565b9181601f840112156110c45782359167ffffffffffffffff83116110c4576020808501948460051b0101116110c457565b90600091808352826020526001600160a01b036040842092169182845260205260ff60408420541661114157505050565b80835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360015416330361119957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b67ffffffffffffffff81116111f157604052565b634e487b7160e01b600052604160045260246000fd5b6080810190811067ffffffffffffffff8211176111f157604052565b90601f8019910116810190811067ffffffffffffffff8211176111f157604052565b60001981146112545760010190565b634e487b7160e01b600052601160045260246000fd5b919081101561127a5760051b0190565b634e487b7160e01b600052603260045260246000fd5b9190820180921161125457565b3360009081527fff164f808567eb9100129b1d5aead1611f532533c7a4cedced7e7f0a6271f5316020908152604080832054909291906420a226a4a760d91b9060ff16156112eb5750505050565b6112f4336114cd565b9084519061130182611207565b6042825283820194606036873782511561147257603086538251906001918210156114725790607860218501536041915b818311611404575050506113c2578461139e6048610a1d93604497985198899161138f898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526109b8815180928d603789019101611486565b01036028810189520187611223565b5194859362461bcd60e51b8552600485015251809281602486015285850190611486565b60648386519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f8116601081101561145e576f181899199a1a9b1b9c1cb0b131b232b360811b901a61143485876114bc565b5360041c92801561144a57600019019190611332565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b60005b8381106114995750506000910152565b8181015183820152602001611489565b8181029291811591840414171561125457565b90815181101561127a570160200190565b604051906060820182811067ffffffffffffffff8211176111f157604052602a825260208201604036823782511561127a5760309053815160019081101561127a57607860218401536029905b80821161156e57505061152a5790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156115c7576f181899199a1a9b1b9c1cb0b131b232b360811b901a61159d84866114bc565b5360041c9180156115b257600019019061151a565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b156115e357565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561162f57565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b1561167b57565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b156116c757565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b60ff60015460a01c1661171b57565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b9192916000915b808310611775575050501490565b90919261178384838561126a565b35906000828210156117ac57506000526020526117a560406000205b93611245565b9190611767565b6040916117a59382526020522061179f565b9190916004549060009182526008602052604082206001600160a01b03908183168452602052604083206117f3868254611290565b90556002541690813b15610292576040516340c10f1960e01b81526001600160a01b03919091166004820152602481019490945291929181908390604490829084905af190811561185157506118465750565b61184f906111dd565b565b604051903d90823e3d90fdfea164736f6c6343000811000a000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931
Deployed Bytecode
0x60806040908082526004908136101561001757600080fd5b600092833560e01c91826301ffc9a71461105a5750816311087c83146110395781631581b6001461101157816318160ddd14610f86578163248a9ca314610f5b578163285d47ea14610f195781632a0acc6a14610ef65781632d945cb914610dc15781632f2ff15d14610d265781633157125e14610cfe57816336568abe14610c5f5781633ab1a49414610c205781633ccfd60b14610ba25781633f4ba83a14610afc57816350f6b0251461076257816355cf3c7f146107235781635c975abb146106fc57816367243482146105155781636f8b44b0146104f3578163715018a6146104955781637cb64759146104735781638456cb59146104015781638545f4ea146103df5781638da5cb5b146103b7578163914374dc1461038357816391d148541461033d578163a217fddf14610322578163a30dd98814610303578163bdb4b848146102e4578163d547741f146102b5578163d5abeb0114610296578163f2fde38b146101b5575063f678fbad1461019157600080fd5b346101b15760203660031901126101b1576101aa61129d565b8035905580f35b5080fd5b91905034610292576020366003190112610292576101d16110c9565b906101da611185565b6001600160a01b03809216928315610229575050600154826001600160a01b0319821617600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b8390346101b157816003193601126101b1576020906005549051908152f35b905034610292573660031901126101b1576102e1906102d26110ae565b906102db611185565b35611110565b80f35b8390346101b157816003193601126101b1576020906006549051908152f35b9190503461029257826003193601126102925760209250549051908152f35b8390346101b157816003193601126101b15751908152602090f35b919050346102925781600319360112610292578160209360ff9261035f6110ae565b903582528186526001600160a01b0383832091168252855220541690519015158152f35b5050346101b15760803660031901126101b15761039e61129d565b8035905560243560055560443560065560643560075580f35b8390346101b157816003193601126101b1576020906001600160a01b03600154169051908152f35b5050346101b15760203660031901126101b1576103fa61129d565b3560065580f35b8390346101b157816003193601126101b15760207f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2589161043f61129d565b61044761170c565b7401000000000000000000000000000000000000000060ff60a01b19600154161760015551338152a180f35b5050346101b15760203660031901126101b15761048e61129d565b3560075580f35b83346104f057806003193601126104f0576104ae611185565b806001600160a01b036001546001600160a01b03198116600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5050346101b15760203660031901126101b15761050e61129d565b3560055580f35b809291506003193601126102925767ffffffffffffffff81358181116106f85761054290369084016110df565b9390916024359081116106f45761055c90369085016110df565b92909361056761129d565b8386036106b1576001600160a01b0390600296816020848a54168751928380926362720d9160e11b82525afa9081156106a7578a91610672575b5095895b8281106105b0578a80f35b6105bb81838b61126a565b356105c6818a611290565b60055410156105df575b506105da90611245565b6105a5565b9097858b54168c6105f18b878b61126a565b3588811681036101b157823b156101b1578a516340c10f1960e01b81526001600160a01b03909116818901908152602081018690529092839182908490829060400103925af1801561066857916105da939161065293610659575b50611290565b97906105d0565b610662906111dd565b3861064c565b89513d8f823e3d90fd5b90506020813d821161069f575b8161068c60209383611223565b8101031261069b5751386105a1565b8980fd5b3d915061067f565b86513d8c823e3d90fd5b606490602084519162461bcd60e51b8352820152601160248201527f496e76616c696420417267756d656e74730000000000000000000000000000006044820152fd5b8580fd5b8480fd5b8390346101b157816003193601126101b15760209060ff60015460a01c1690519015158152f35b83346104f05760203660031901126104f0576001600160a01b036107456110c9565b61074d61129d565b166001600160a01b0319600254161760025580f35b90506080366003190112610292576107786110c9565b602480359260443560643567ffffffffffffffff8111610af85761079f90369088016110df565b9390926250494560e81b91828a526020928a8452828b20338c52845260ff838c2054161561090d5750506107d161170c565b886001600160a01b038984826002541685519c8d80926362720d9160e11b82525afa9a8b1561090357839b6108c2575b5093836108718761086a8d6102e19f9861089d988f6108bd9f9d9b996108b89f9d61083c610832876108ab9e611290565b60055410156115dc565b61085361084b600654886114a9565b341015611628565b54835260088a528383209116825288522054611290565b1115611674565b519283918201948a8690916034926bffffffffffffffffffffffff199060601b16825260148201520190565b03601f198101835282611223565b5190209160075491611760565b6116c0565b6117be565b9795939a509195938088813d83116108fc575b6108df8183611223565b810103126108f857965199949693959294929183610801565b8680fd5b503d6108d5565b84513d85823e3d90fd5b918a8a9361091a336114cd565b83519161092683611207565b60428352878301936060368637835115610ae65760308553835190600191821015610ad45790607860218601536041915b818311610a6b57505050610a2b57836109fc604889610a1d9660449a99966109ed6109b8977f416363657373436f6e74726f6c3a206163636f756e74200000000000000000009b5198858a9687019d8e528251928391603789019101611486565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190611486565b01036028810185520183611223565b5196879562461bcd60e51b8752860152519283809286015285850190611486565b601f01601f19168101030190fd5b60648688878188519362461bcd60e51b85528401528201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015610ac2576f181899199a1a9b1b9c1cb0b131b232b360811b901a610a9b85886114bc565b53891c928015610ab057600019019190610957565b634e487b7160e01b825260118a528882fd5b634e487b7160e01b835260328b528983fd5b634e487b7160e01b8152603289528790fd5b634e487b7160e01b8152603288528690fd5b8780fd5b91905034610292578260031936011261029257610b1761129d565b6001549060ff8260a01c1615610b5f57507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9160ff60a01b196020921660015551338152a180f35b606490602084519162461bcd60e51b8352820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b838092506003193601126101b157610bb861129d565b818080806001600160a01b036003541647905af1903d15610c17573d67ffffffffffffffff8111610c0457610bfc92939450602090601f8019910116019051611223565b156104f05780f35b634e487b7160e01b845260418552602484fd5b50909150610bfc565b83346104f05760203660031901126104f0576001600160a01b03610c426110c9565b610c4a61129d565b166001600160a01b0319600354161760035580f35b8383346101b157826003193601126101b157610c796110ae565b90336001600160a01b03831603610c9557906102e19135611110565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b8390346101b157816003193601126101b1576020906001600160a01b03600254169051908152f35b919050346102925781600319360112610292573590610d436110ae565b90610d4c611185565b828452836020526001600160a01b0381852092169182855260205260ff818520541615610d77578380f35b828452836020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b90506060366003190112610292578135906024359060443567ffffffffffffffff81116106f457610df590369086016110df565b929091610e0061170c565b866001600160a01b036002541696825180986362720d9160e11b8252818360209b8c935afa908115610903578391610eb7575b506102e19884610e858761086a8c6108b89b99610eb19d9b9961089d99610e60610832856108ab9c611290565b610e6f61084b600654866114a9565b5481526008885281812033825288522054611290565b51928391820194338690916034926bffffffffffffffffffffffff199060601b16825260148201520190565b336117be565b91959396949290508882813d8311610eef575b610ed48183611223565b810103126104f05790519395929491939091906102e1610e33565b503d610eca565b8390346101b157816003193601126101b157602090516420a226a4a760d91b8152f35b919050346102925781600319360112610292576020928291610f396110ae565b90358252600885526001600160a01b0383832091168252845220549051908152f35b9190503461029257602036600319011261029257816020936001923581528085522001549051908152f35b90503461029257826003193601126102925760206001600160a01b03600254168251938480926362720d9160e11b82525afa918215611007578392610fd0575b6020838351908152f35b9091506020813d8211610fff575b81610feb60209383611223565b810103126102925760209250519038610fc6565b3d9150610fde565b81513d85823e3d90fd5b8390346101b157816003193601126101b1576020906001600160a01b03600354169051908152f35b8390346101b157816003193601126101b157516250494560e81b8152602090f35b84908434610292576020366003190112610292573563ffffffff60e01b81168091036102925760209250637965db0b60e01b811490811561109d575b5015158152f35b6301ffc9a760e01b14905083611096565b602435906001600160a01b03821682036110c457565b600080fd5b600435906001600160a01b03821682036110c457565b9181601f840112156110c45782359167ffffffffffffffff83116110c4576020808501948460051b0101116110c457565b90600091808352826020526001600160a01b036040842092169182845260205260ff60408420541661114157505050565b80835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360015416330361119957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b67ffffffffffffffff81116111f157604052565b634e487b7160e01b600052604160045260246000fd5b6080810190811067ffffffffffffffff8211176111f157604052565b90601f8019910116810190811067ffffffffffffffff8211176111f157604052565b60001981146112545760010190565b634e487b7160e01b600052601160045260246000fd5b919081101561127a5760051b0190565b634e487b7160e01b600052603260045260246000fd5b9190820180921161125457565b3360009081527fff164f808567eb9100129b1d5aead1611f532533c7a4cedced7e7f0a6271f5316020908152604080832054909291906420a226a4a760d91b9060ff16156112eb5750505050565b6112f4336114cd565b9084519061130182611207565b6042825283820194606036873782511561147257603086538251906001918210156114725790607860218501536041915b818311611404575050506113c2578461139e6048610a1d93604497985198899161138f898401987f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a526109b8815180928d603789019101611486565b01036028810189520187611223565b5194859362461bcd60e51b8552600485015251809281602486015285850190611486565b60648386519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f8116601081101561145e576f181899199a1a9b1b9c1cb0b131b232b360811b901a61143485876114bc565b5360041c92801561144a57600019019190611332565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b60005b8381106114995750506000910152565b8181015183820152602001611489565b8181029291811591840414171561125457565b90815181101561127a570160200190565b604051906060820182811067ffffffffffffffff8211176111f157604052602a825260208201604036823782511561127a5760309053815160019081101561127a57607860218401536029905b80821161156e57505061152a5790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f811660108110156115c7576f181899199a1a9b1b9c1cb0b131b232b360811b901a61159d84866114bc565b5360041c9180156115b257600019019061151a565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b156115e357565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561162f57565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b1561167b57565b60405162461bcd60e51b815260206004820152601b60248201527f4f766572204d617820416d6f756e7420506572204164647265737300000000006044820152606490fd5b156116c757565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b60ff60015460a01c1661171b57565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b9192916000915b808310611775575050501490565b90919261178384838561126a565b35906000828210156117ac57506000526020526117a560406000205b93611245565b9190611767565b6040916117a59382526020522061179f565b9190916004549060009182526008602052604082206001600160a01b03908183168452602052604083206117f3868254611290565b90556002541690813b15610292576040516340c10f1960e01b81526001600160a01b03919091166004820152602481019490945291929181908390604490829084905af190811561185157506118465750565b61184f906111dd565b565b604051903d90823e3d90fdfea164736f6c6343000811000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931
-----Decoded View---------------
Arg [0] : _withdrawAddress (address): 0x474f057fFd4184cE80236d39C88E8ECFe8589931
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000474f057ffd4184ce80236d39c88e8ecfe8589931
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.