Overview
ETH Balance
0.009 ETH
Eth Value
$22.72 (@ $2,524.82/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 54 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim All | 20176971 | 65 days ago | IN | 0 ETH | 0.00437744 | ||||
Claim All | 19893498 | 105 days ago | IN | 0 ETH | 0.00117198 | ||||
Claim All | 19761540 | 123 days ago | IN | 0 ETH | 0.00575023 | ||||
Claim All | 19761124 | 123 days ago | IN | 0 ETH | 0.00374089 | ||||
Claim All | 19761106 | 123 days ago | IN | 0 ETH | 0.00364627 | ||||
Claim All | 19760257 | 124 days ago | IN | 0 ETH | 0.00329245 | ||||
Claim All | 19759412 | 124 days ago | IN | 0 ETH | 0.00269419 | ||||
Claim All | 19757874 | 124 days ago | IN | 0 ETH | 0.00169362 | ||||
Claim All | 19757676 | 124 days ago | IN | 0 ETH | 0.00275774 | ||||
Claim All | 19757432 | 124 days ago | IN | 0 ETH | 0.00279265 | ||||
Claim All | 19756630 | 124 days ago | IN | 0 ETH | 0.0019137 | ||||
Claim All | 19756374 | 124 days ago | IN | 0 ETH | 0.00211697 | ||||
Claim All | 19755705 | 124 days ago | IN | 0 ETH | 0.00277066 | ||||
Claim All | 19755555 | 124 days ago | IN | 0 ETH | 0.00231958 | ||||
Claim All | 19755434 | 124 days ago | IN | 0 ETH | 0.00277563 | ||||
Claim All | 19755372 | 124 days ago | IN | 0 ETH | 0.0024665 | ||||
Set Treasury Wal... | 19755305 | 124 days ago | IN | 0 ETH | 0.0002352 | ||||
Withdraw | 19755287 | 124 days ago | IN | 0 ETH | 0.00218995 | ||||
Claim All | 19755187 | 124 days ago | IN | 0 ETH | 0.003605 | ||||
Claim All | 19755172 | 124 days ago | IN | 0 ETH | 0.00393459 | ||||
Claim All | 19755171 | 124 days ago | IN | 0 ETH | 0.00389572 | ||||
Bid | 19754958 | 124 days ago | IN | 0.043 ETH | 0.00473439 | ||||
Bid | 19754920 | 124 days ago | IN | 0.043 ETH | 0.00434976 | ||||
Bid | 19754917 | 124 days ago | IN | 0.043 ETH | 0.00441205 | ||||
Bid | 19754575 | 124 days ago | IN | 0.045 ETH | 0.00359982 |
Latest 18 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20176971 | 65 days ago | 0.006 ETH | ||||
19893498 | 105 days ago | 0.06 ETH | ||||
19761540 | 123 days ago | 0.022 ETH | ||||
19761124 | 123 days ago | 0.02 ETH | ||||
19761106 | 123 days ago | 0.016 ETH | ||||
19759412 | 124 days ago | 0.015 ETH | ||||
19757874 | 124 days ago | 0.005 ETH | ||||
19757676 | 124 days ago | 0.006 ETH | ||||
19757432 | 124 days ago | 0.009 ETH | ||||
19756630 | 124 days ago | 0.007 ETH | ||||
19756374 | 124 days ago | 0.005 ETH | ||||
19755705 | 124 days ago | 0.005 ETH | ||||
19755434 | 124 days ago | 0.076 ETH | ||||
19755372 | 124 days ago | 0.006 ETH | ||||
19755287 | 124 days ago | 1.112 ETH | ||||
19755187 | 124 days ago | 0.025 ETH | ||||
19755172 | 124 days ago | 0.003 ETH | ||||
19755171 | 124 days ago | 0.06 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GlitchAuction
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 10000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** * Developed by * _ _ _ _ * | | | | | (_) * __ _ _ __ ___ __| | ___| |_ _ _ __| |_ ___ * / _` | '__/ _ \ / _` | / __| __| | | |/ _` | |/ _ \ * | (_| | | | (_) | (_| |_\__ \ |_| |_| | (_| | | (_) | * \__,_|_| \___/ \__,_(_)___/\__|\__,_|\__,_|_|\___/ * * * @title English ranked auction with rebate contract * @author https://arod.studio/ * @dev Overview * The top 50 bids will secure a unique piece of art. We encourage our collectors to engage actively, * as there is no limit to the number of bids you can place. * Additionally, the more you bid, the higher your chances of winning multiple pieces. * * Bidding * Please note that once you place a bid, it is final and cannot be altered. * We advise all our collectors to bid carefully and consider their choices thoughtfully. * This rule ensures fairness and integrity in the auction process. * * Rebate * In our auction, fairness is key. If you are among the top 50 winners and your bid exceeds the lowest winning bid in this group, * you will receive a rebate. This rebate equals the difference between your bid and the lowest winning bid, * ensuring that all winners pay the same final amount for their art pieces. * * Non-winning bids * At the conclusion of the auction, non-winning participants are eligible to claim a full refund of their bid amounts. * This process is straightforward and ensures that if you don't win, you can retrieve your investment without any hassle. * * @website https://glitch.mishaderidder.com/ * SPDX-License-Identifier: MIT * @custom:security-contact [email protected] */ pragma solidity 0.8.23; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; import {MerkleProof} from '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import {ReentrancyGuard} from '@openzeppelin/contracts/utils/ReentrancyGuard.sol'; import {Pausable} from '@openzeppelin/contracts/utils/Pausable.sol'; import {Address} from '@openzeppelin/contracts/utils/Address.sol'; import {IGlitch} from './IGlitch.sol'; contract GlitchAuction is Ownable, ReentrancyGuard, Pausable { using Address for address payable; /** * @dev Enum representing the type of discount applied to the bid. * @custom:enum */ enum DiscountType { None, FirstTier } /** * @dev Represents a bid. * @param bidder The address of the bidder. * @param amount The amount of wei provided for the bid. * @param discountType The type of discount applied to the bid. */ struct Bid { address bidder; uint256 amount; DiscountType discountType; } /// @dev Represents the auction configuration. struct Config { /// @notice The start time of the auction. uint256 startTime; /// @notice The end time of the auction. uint256 endTime; /// @notice The minimum value to increase the current bid in WEI. uint256 minBidIncrementInWei; /// @notice The starting amount in WEI. uint256 startAmountInWei; } /// @dev Emitted when the amount of wei provided for a bid or starting bid is invalid. This usually means the amount is zero. error InvalidAmountInWei(); /// @dev Emitted when the provided minimum bid increment value is invalid. This usually means the value is either zero. error InvalidMinBidIncrementValue(); /// @dev Emitted when the provided start or end time for the auction is invalid. This usually means the start time is greater than the end time. error InvalidStartEndTime(uint256 startTime, uint256 endTime); error ConfigNotSet(); /// @dev Emitted when the config has not been set. error OnlyOwner(); /// @dev Emitted when the caller is not the owner of the contract. error InvalidAddress(); /// @dev Emitted when an invalid address is provided. error BidTooLow(); /// @dev Emitted when the bid amount is too low. error InsufficientFundsForBid(); /// @dev Emitted when caller does not have enough funds to bid. error BidDoesNotQualifyForTopBids(); /// @dev Emitted when bid does not qualify for top bids. error AuctionNotEnded(); /// @dev Emitted when the auction has not ended. error AlreadyClaimed(); /// @dev Emitted when the NFT and refund has already been claimed. error TransferFailed(); /// @dev Emitted when the NFT transfer has failed. event BidPlaced(address indexed bidder, uint256 amount); /// @dev Emitted when a bid is placed. event Outbidded(address indexed bidder, uint256 amount, uint256 lastBidPosition); /// @dev Emitted when a bid is outbidded. event Claimed(address indexed to, uint256 nftAmount, uint256 refundAmount); /// @dev Emitted when the NFT and refund have been claimed. /** * @notice MAX_TOP_BIDS represents the maximum number of top bids that can be stored. */ uint256 public constant MAX_TOP_BIDS = 50; /// @dev The merkle root for discount. 15% bytes32 public firstTierMerkleRoot; /** */ uint256 internal constant DISCOUNT_PERCENTAGE = 15; /** * @notice treasuryWallet stores the address of the treasury wallet where auction funds are sent. */ address payable public treasuryWallet; /** * @notice withdrawn indicates whether the auction funds have been withdrawn post-auction. */ bool public withdrawn; /** * @notice glitchAddress stores the address of the ERC721 token (Glitch NFT) being auctioned. */ IGlitch public glitchAddress; /** * @notice topBids stores the top bids in the auction up to a maximum of MAX_TOP_BIDS. */ Bid[MAX_TOP_BIDS] public topBids; /** * @notice bidBalances maps each bidder's address to their total bid amount in the auction. */ mapping(address bidder => uint256 balance) public bidBalances; /** * @notice claimed maps each bidder's address to a boolean indicating whether they have claimed their NFT and/or refund. */ mapping(address bidder => bool isClaimed) public claimed; /** * @dev _config stores the configuration of the auction, including start time, end time, and minimum bid increment. */ Config private _config; /** * @dev Modifier to check if the configuration is valid. * @dev Throws ConfigNotSet error if the start time is not set. */ modifier validConfig() { if (_config.startTime == 0) revert ConfigNotSet(); _; } /** * @dev Modifier to check if the current block timestamp is within the specified start and end time. * @dev Throws InvalidStartEndTime error if the current timestamp is not between the start and end time. */ modifier validTime() { if (block.timestamp >= _config.endTime || block.timestamp <= _config.startTime) revert InvalidStartEndTime(_config.startTime, _config.endTime); _; } /** * @dev Modifier to check if the caller is the owner */ modifier _onlyOwner() { if (_msgSender() != owner()) revert OnlyOwner(); _; } /** * @dev Constructor to initialize the auction with the owner and the ERC721 address. * @param _initialOwner The initial owner of the contract. * @param _glitchAddress The address of the ERC721 token to be auctioned. */ constructor(address _initialOwner, address _glitchAddress, address _treasuryWallet) Ownable(_initialOwner) { glitchAddress = IGlitch(_glitchAddress); treasuryWallet = payable(_treasuryWallet); } function _refundAndMint(address _to, bool _shouldMint) private returns (uint256 nftsMinted, uint256 amountSpent) { if (block.timestamp <= _config.endTime) revert AuctionNotEnded(); if (claimed[_to]) revert AlreadyClaimed(); DiscountType discountType = DiscountType.None; uint256 balance = bidBalances[_to]; claimed[_to] = true; for (uint256 i; i < MAX_TOP_BIDS; ) { if (topBids[i].bidder == _to) { if (_shouldMint) glitchAddress.mint(_to, i + 1); nftsMinted++; amountSpent += topBids[i].amount; if (topBids[i].discountType != DiscountType.None) { discountType = topBids[i].discountType; } } unchecked { ++i; } } uint256 refundAmount = balance + (amountSpent - (nftsMinted * getSettledPriceWithDiscount(discountType))); if (refundAmount > 0) { payable(_to).sendValue(refundAmount); } return (nftsMinted, amountSpent); } /** * @dev Returns the tier discount type of an address. * @param _merkleProof The merkle proof. * @param _addressToCheck The address to check. * @return The tier discount type. */ function _getTierDiscount(bytes32[] calldata _merkleProof, address _addressToCheck) private view returns (DiscountType) { if (checkMerkleProof(_merkleProof, _addressToCheck, firstTierMerkleRoot)) { return DiscountType.FirstTier; } return DiscountType.None; } /** * @dev Returns the last bid position. * @return lastBidPosition The last bid position. */ function _getLastBidPosition() private view returns (uint256 lastBidPosition) { lastBidPosition = MAX_TOP_BIDS; while (lastBidPosition > 0 && topBids[lastBidPosition - 1].amount == 0) { --lastBidPosition; } --lastBidPosition; } /** * @dev Internal function to process a bid. * @param _bidder The address of the bidder. * @param _amount The amount of the bid. */ function processBid(address _bidder, uint256 _amount, DiscountType _discountType) private { uint256 position; // Find the position of the new bid in the top bids while (position < MAX_TOP_BIDS && topBids[position].amount >= _amount) { unchecked { ++position; } } if (position >= MAX_TOP_BIDS) revert BidDoesNotQualifyForTopBids(); // Remove the old top bid Bid memory outbidded = topBids[MAX_TOP_BIDS - 1]; if (outbidded.bidder != address(0)) { emit Outbidded(outbidded.bidder, outbidded.amount, position); bidBalances[outbidded.bidder] = bidBalances[outbidded.bidder] + outbidded.amount; } // Insert the new bid for (uint256 i = MAX_TOP_BIDS - 1; i > position; i--) { topBids[i] = topBids[i - 1]; } emit BidPlaced(_bidder, _amount); topBids[position] = Bid(_bidder, _amount, _discountType); } /** * @dev Allows the owner to pause the auction. */ function pause() external onlyOwner { _pause(); } /** * @dev Allows the owner to unpause the auction. */ function unpause() external onlyOwner { _unpause(); } /** * @notice Sets the configuration parameters for the auction. * @dev This function can only be called by an admin. It can be used to set the start time, end time, * minimum bid increment in WEI, and starting bid amount. * @param _startTime Auction start time * @param _endTime Auction end time * @param _minBidIncrementInWei Auction minimum bid increment in WEI * @param _startAmountInWei Auction starting bid */ function setConfig(uint256 _startTime, uint256 _endTime, uint256 _minBidIncrementInWei, uint256 _startAmountInWei) external _onlyOwner { if (_startTime == 0 || _startTime >= _endTime) revert InvalidStartEndTime(_startTime, _endTime); if (_startAmountInWei == 0) revert InvalidAmountInWei(); if (_minBidIncrementInWei == 0) revert InvalidMinBidIncrementValue(); _config = Config({startTime: _startTime, endTime: _endTime, minBidIncrementInWei: _minBidIncrementInWei, startAmountInWei: _startAmountInWei}); } /** * @dev Allows the owner to set a new treasury wallet address. * @param _newWallet The new treasury wallet address. */ function setTreasuryWallet(address _newWallet) external _onlyOwner { if (_newWallet == address(0)) revert InvalidAddress(); treasuryWallet = payable(_newWallet); } /** * @dev Allows the owner to set a new treasury wallet address. * @param _glitchAddress The new treasury wallet address. */ function setGlitchAddress(address _glitchAddress) external _onlyOwner { if (_glitchAddress == address(0)) revert InvalidAddress(); glitchAddress = IGlitch(_glitchAddress); } /** * @dev Allows the owner to set the first tier merkle root. * @param _firstTierRoot The new first tier merkle root. */ function setMerkleRoots(bytes32 _firstTierRoot) external onlyOwner { firstTierMerkleRoot = _firstTierRoot; } /** * @dev Allows users to place bids on the auction. * @param _bidAmount The amount of the bid. */ function bid(uint256 _bidAmount, bytes32[] calldata _merkleProof) external payable validConfig validTime whenNotPaused nonReentrant { if (_bidAmount < getMinimumBid()) revert BidTooLow(); if (msg.value != _bidAmount) revert InsufficientFundsForBid(); processBid(_msgSender(), _bidAmount, _getTierDiscount(_merkleProof, _msgSender())); } /** * @dev Allows users to claim their NFTs and any refunds after the auction ends. * @param _to The claimer address. */ function claimAll(address _to) external validConfig whenNotPaused nonReentrant { (uint256 nftsMinted, uint256 refundAmount) = _refundAndMint(_to, true); emit Claimed(_to, nftsMinted, refundAmount); } /** * @dev Allows admin to force refund of users after the auction ends. It doesn't claim and mint the nfts. * @notice use only in emergency case. * @dev Only admin can force refund. * @param _to The claimer address. */ function forceRefund(address _to) external validConfig _onlyOwner nonReentrant { _refundAndMint(_to, false); } /** * @dev Allows the owner to mint the remaining NFTs after the auction ends. * @param _recipient The recipient address. */ function adminMintRemaining(address _recipient) external _onlyOwner validConfig { if (block.timestamp <= _config.endTime) revert AuctionNotEnded(); uint256 lastBidPosition = _getLastBidPosition(); for (uint256 i = lastBidPosition + 1; i < MAX_TOP_BIDS; ) { glitchAddress.mint(_recipient, i + 1); unchecked { ++i; } } } /** * @dev Allows the owner to withdraw the sales amount after the auction ends. */ function withdraw() external _onlyOwner nonReentrant { if (block.timestamp <= _config.endTime) revert AuctionNotEnded(); if (withdrawn) revert AlreadyClaimed(); withdrawn = true; uint256 givenFirstTierDiscount; uint256 salesAmountWithoutDiscount; for (uint256 i; i < MAX_TOP_BIDS; ) { if (topBids[i].bidder == address(0)) { break; } if (topBids[i].discountType == DiscountType.FirstTier) { givenFirstTierDiscount++; } else { salesAmountWithoutDiscount++; } unchecked { ++i; } } uint256 salesAmountWithDiscount = getSettledPriceWithDiscount(DiscountType.FirstTier) * givenFirstTierDiscount; uint256 salesAmount = getSettledPrice() * salesAmountWithoutDiscount; treasuryWallet.sendValue(salesAmountWithDiscount + salesAmount); } /** * @dev Checks if a merkle proof is valid. * @param _merkleProof The merkle proof to be checked. * @param _address The address to be checked. * @param _root The merkle root. */ function checkMerkleProof(bytes32[] calldata _merkleProof, address _address, bytes32 _root) public pure returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_address)); return MerkleProof.verify(_merkleProof, _root, leaf); } /** * @dev Returns the settled price of the auction. * @return The price of the lowest winning bid. */ function getSettledPrice() public view returns (uint256) { uint256 lastBidPosition = _getLastBidPosition(); uint256 lastBidAmount = topBids[lastBidPosition].amount; return lastBidAmount < _config.startAmountInWei ? _config.startAmountInWei : lastBidAmount; } /** * @dev Returns the settled price of the auction with discount. * @param _discountType The type of discount to apply. * @return The price of the lowest winning bid. */ function getSettledPriceWithDiscount(DiscountType _discountType) public view returns (uint256) { if (_discountType == DiscountType.FirstTier) { return (getSettledPrice() * (100 - DISCOUNT_PERCENTAGE)) / 100; } return getSettledPrice(); } /** * @dev Returns the minimum bid amount required to place a bid. * @return The minimum bid amount. */ function getMinimumBid() public view returns (uint256) { uint256 lastBidAmount = topBids[MAX_TOP_BIDS - 1].amount; return lastBidAmount < _config.startAmountInWei ? _config.startAmountInWei : lastBidAmount + _config.minBidIncrementInWei; } /** * @dev Returns the current configuration of the auction. * @return The auction configuration. */ function getConfig() external view returns (Config memory) { return _config; } /** * @dev Returns the top bids of the auction. * @return An array of the top bids. */ function getTopBids() external view returns (Bid[MAX_TOP_BIDS] memory) { return topBids; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @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} */ 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. */ 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} */ 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 simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ 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} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ 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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ 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 (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../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 { bool private _paused; /** * @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); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @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 { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @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 v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; interface IGlitch { error AddressInsufficientBalance(address account); error ERC721EnumerableForbiddenBatchMint(); error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); error ERC721InsufficientApproval(address operator, uint256 tokenId); error ERC721InvalidApprover(address approver); error ERC721InvalidOperator(address operator); error ERC721InvalidOwner(address owner); error ERC721InvalidReceiver(address receiver); error ERC721InvalidSender(address sender); error ERC721NonexistentToken(uint256 tokenId); error ERC721OutOfBoundsIndex(address owner, uint256 index); error FailedInnerCall(); error IdOutOfBounds(); error InvalidPrice(); error NotEnoughETH(); error OnlyMinter(); error OnlyOwner(); error OnlyTokenOwner(); error OwnableInvalidOwner(address owner); error OwnableUnauthorizedAccount(address account); error ReentrancyGuardReentrantCall(); error ZeroAddress(); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); event Burned(address indexed tokenOwner, uint256 indexed tokenId, uint256 indexed givenCode); event MetadataUpdate(uint256 _tokenId); event Minted(address indexed recipient, uint256 indexed tokenId); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event TokenRefreshed(uint256 indexed tokenId, address refresherAddress); event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); function adminMint(address recipient, uint256[] memory _ids) external; function approve(address to, uint256 tokenId) external; function balanceOf(address owner) external view returns (uint256); function burnToReedem(uint256 _tokenId, uint256 _givenCode) external; function fundsReceiverAddress() external view returns (address payable); function getAllTokensVersion() external view returns (string[] memory versions); function getApproved(uint256 tokenId) external view returns (address); function getTokenVersion(uint256 tokenId) external view returns (string memory versionStr); function getTokensByOwner(address _owner) external view returns (uint256[] memory tokenIds); function isApprovedForAll(address owner, address operator) external view returns (bool); function mint(address recipient, uint256 _id) external; function minterContractAddress() external view returns (address); function name() external view returns (string memory); function owner() external view returns (address); function ownerOf(uint256 tokenId) external view returns (address); function refreshToken(uint256 _tokenId) external payable; function refreshTokenPrice() external view returns (uint256); function renounceOwnership() external; function safeTransferFrom(address from, address to, uint256 tokenId) external; function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) external; function setApprovalForAll(address operator, bool approved) external; function setBaseURI(string memory newBaseURI) external; function setFundsReceiverAddress(address newFundsReceiverAddress) external; function setMinterContractAddress(address newMinterContractAddress) external; function setRefreshTokenPrice(uint256 newRefreshTokenPriceInWei) external; function supportsInterface(bytes4 interfaceId) external view returns (bool); function symbol() external view returns (string memory); function tokenByIndex(uint256 index) external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); function tokenURI(uint256 tokenId) external view returns (string memory); function totalSupply() external view returns (uint256); function transferFrom(address from, address to, uint256 tokenId) external; function transferOwnership(address newOwner) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "@openzeppelin/contracts/=node_modules_link/@openzeppelin/contracts/", "@prb/test/=node_modules_link/@prb/test/", "forge-std/=node_modules_link/forge-std/", "murky-merkle/=node_modules_link/murky-merkle/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "none", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_initialOwner","type":"address"},{"internalType":"address","name":"_glitchAddress","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"AuctionNotEnded","type":"error"},{"inputs":[],"name":"BidDoesNotQualifyForTopBids","type":"error"},{"inputs":[],"name":"BidTooLow","type":"error"},{"inputs":[],"name":"ConfigNotSet","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InsufficientFundsForBid","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidAmountInWei","type":"error"},{"inputs":[],"name":"InvalidMinBidIncrementValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"InvalidStartEndTime","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastBidPosition","type":"uint256"}],"name":"Outbidded","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TOP_BIDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"adminMintRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bidAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"}],"name":"bidBalances","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"checkMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"isClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstTierMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"forceRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getConfig","outputs":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"minBidIncrementInWei","type":"uint256"},{"internalType":"uint256","name":"startAmountInWei","type":"uint256"}],"internalType":"struct GlitchAuction.Config","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinimumBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSettledPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum GlitchAuction.DiscountType","name":"_discountType","type":"uint8"}],"name":"getSettledPriceWithDiscount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTopBids","outputs":[{"components":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"enum GlitchAuction.DiscountType","name":"discountType","type":"uint8"}],"internalType":"struct GlitchAuction.Bid[50]","name":"","type":"tuple[50]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glitchAddress","outputs":[{"internalType":"contract IGlitch","name":"","type":"address"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_minBidIncrementInWei","type":"uint256"},{"internalType":"uint256","name":"_startAmountInWei","type":"uint256"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_glitchAddress","type":"address"}],"name":"setGlitchAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_firstTierRoot","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newWallet","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"topBids","outputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"enum GlitchAuction.DiscountType","name":"discountType","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620023d6380380620023d683398101604081905262000034916200011e565b826001600160a01b0381166200006457604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200006f81620000b1565b50600180556002805460ff19169055600580546001600160a01b039384166001600160a01b031991821617909155600480549290931691161790555062000168565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200011957600080fd5b919050565b6000806000606084860312156200013457600080fd5b6200013f8462000101565b92506200014f6020850162000101565b91506200015f6040850162000101565b90509250925092565b61225e80620001786000396000f3fe6080604052600436106101c15760003560e01c8063715018a6116100f7578063a8602fea11610095578063c884ef8311610064578063c884ef8314610541578063d745f58f14610571578063e5c389cd14610591578063f2fde38b146105b157600080fd5b8063a8602fea14610492578063c3f909d4146104b2578063c5b63600146104fa578063c80ec5221461050f57600080fd5b80638456cb59116100d15780638456cb591461041f5780638da5cb5b1461043457806395d6a3cc1461045f578063a06a5b351461047f57600080fd5b8063715018a6146103d557806377329f35146103ea5780637e907e641461040a57600080fd5b80633f4ba83a1161016457806354f567411161013e57806354f567411461034257806357782419146103645780635c975abb1461038457806367ba5250146103a857600080fd5b80633f4ba83a146102bb5780633fb6c74e146102d05780634626402b146102f057600080fd5b80630d16e28c116101a05780630d16e28c1461025b57806319bcb4cd146102715780632931ec16146102865780633ccfd60b146102a657600080fd5b8062f2a368146101c6578063010d9813146101e8578063031778f914610220575b600080fd5b3480156101d257600080fd5b506101e66101e1366004611e94565b6105d1565b005b3480156101f457600080fd5b50610208610203366004611eaf565b61077b565b60405161021793929190611f32565b60405180910390f35b34801561022c57600080fd5b5061024d61023b366004611e94565b609c6020526000908152604090205481565b604051908152602001610217565b34801561026757600080fd5b5061024d60035481565b34801561027d57600080fd5b5061024d603281565b34801561029257600080fd5b506101e66102a1366004611eaf565b6107bc565b3480156102b257600080fd5b506101e66107c9565b3480156102c757600080fd5b506101e66109fe565b3480156102dc57600080fd5b506101e66102eb366004611e94565b610a0e565b3480156102fc57600080fd5b5060045461031d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610217565b34801561034e57600080fd5b50610357610abc565b6040516102179190611f63565b34801561037057600080fd5b5061024d61037f366004611fce565b610b62565b34801561039057600080fd5b5060025460ff165b6040519015158152602001610217565b3480156103b457600080fd5b5060055461031d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103e157600080fd5b506101e6610bb4565b3480156103f657600080fd5b506101e6610405366004611e94565b610bc6565b34801561041657600080fd5b5061024d610c88565b34801561042b57600080fd5b506101e6610cd1565b34801561044057600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661031d565b34801561046b57600080fd5b5061039861047a366004612034565b610ce1565b6101e661048d366004612090565b610d7c565b34801561049e57600080fd5b506101e66104ad366004611e94565b610ebe565b3480156104be57600080fd5b506104c7610fa3565b60405161021791908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561050657600080fd5b5061024d610ffb565b34801561051b57600080fd5b506004546103989074010000000000000000000000000000000000000000900460ff1681565b34801561054d57600080fd5b5061039861055c366004611e94565b609d6020526000908152604090205460ff1681565b34801561057d57600080fd5b506101e661058c366004611e94565b61104e565b34801561059d57600080fd5b506101e66105ac3660046120dc565b611133565b3480156105bd57600080fd5b506101e66105cc366004611e94565b61127a565b60005473ffffffffffffffffffffffffffffffffffffffff163314610622576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609e5460000361065e576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609f544211610699576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106a36112db565b905060006106b282600161213d565b90505b60328110156107765760055473ffffffffffffffffffffffffffffffffffffffff166340c10f19846106e884600161213d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561075357600080fd5b505af1158015610767573d6000803e3d6000fd5b505050508060010190506106b5565b505050565b6006816032811061078b57600080fd5b600302018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff909116925060ff1683565b6107c4611335565b600355565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081a576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610822611388565b609f54421161085d576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045474010000000000000000000000000000000000000000900460ff16156108b2576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055600080805b60328110156109925760006006826032811061091457610914612150565b600302015473ffffffffffffffffffffffffffffffffffffffff16146109925760016006826032811061094957610949612150565b600302016002015460ff16600181111561096557610965611ec8565b0361097c57826109748161217f565b93505061098a565b816109868161217f565b9250505b6001016108f6565b506000826109a06001610b62565b6109aa91906121b7565b90506000826109b7610c88565b6109c191906121b7565b90506109ef6109d0828461213d565b60045473ffffffffffffffffffffffffffffffffffffffff16906113cb565b505050506109fc60018055565b565b610a06611335565b6109fc6114a1565b609e54600003610a4a576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610a9b576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610aa3611388565b610aae81600061151e565b5050610ab960018055565b50565b610ac4611e24565b604080516106408101909152600660326000835b82821015610b595760408051606081018252600384028601805473ffffffffffffffffffffffffffffffffffffffff16825260018082015460208401526002820154929391929184019160ff1690811115610b3557610b35611ec8565b6001811115610b4657610b46611ec8565b8152505081526020019060010190610ad8565b50505050905090565b60006001826001811115610b7857610b78611ec8565b03610bac576064610b8a600f826121ce565b610b92610c88565b610b9c91906121b7565b610ba691906121e1565b92915050565b610ba6610c88565b610bbc611335565b6109fc6000611812565b609e54600003610c02576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c0a611887565b610c12611388565b600080610c2083600161151e565b915091508273ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8383604051610c75929190918252602082015260400190565b60405180910390a25050610ab960018055565b600080610c936112db565b9050600060068260328110610caa57610caa612150565b60030201600101549050609e600301548110610cc65780610cca565b60a1545b9250505090565b610cd9611335565b6109fc6118c4565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050610d7086868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525087925085915061191f9050565b9150505b949350505050565b609e54600003610db8576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609f5442101580610dcb5750609e544211155b15610e1657609e54609f546040517f2221fc9c000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b610e1e611887565b610e26611388565b610e2e610ffb565b831015610e67576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b823414610ea0576040517f4094c8bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eb53384610eb0858533611937565b61195e565b61077660018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f0f576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f5c576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610fce6040518060800160405280600081526020016000815260200160008152602001600081525090565b5060408051608081018252609e548152609f54602082015260a0549181019190915260a154606082015290565b600080600661100c600160326121ce565b6032811061101c5761101c612150565b60030201600101549050609e6003015481106110445760a05461103f908261213d565b611048565b60a1545b91505090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461109f576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166110ec576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611184576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8315806111915750828410155b156111d2576040517f2221fc9c0000000000000000000000000000000000000000000000000000000081526004810185905260248101849052604401610e0d565b8060000361120c576040517fee99522400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003611246576040517fb0fd644300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825285815260208101859052908101839052606001819052609e93909355609f9190915560a05560a155565b611282611335565b73ffffffffffffffffffffffffffffffffffffffff81166112d2576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610e0d565b610ab981611812565b60325b600081118015611312575060066112f66001836121ce565b6032811061130657611306612150565b60030201600101546000145b15611327576113208161221c565b90506112de565b6113308161221c565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109fc576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610e0d565b6002600154036113c4576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600155565b80471015611407576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401610e0d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611461576040519150601f19603f3d011682016040523d82523d6000602084013e611466565b606091505b5050905080610776576040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114a9611d79565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600080609e60010154421161155f576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152609d602052604090205460ff16156115bf576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152609c6020908152604080832054609d909252822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055815b60328110156117b5578673ffffffffffffffffffffffffffffffffffffffff166006826032811061164d5761164d612150565b600302015473ffffffffffffffffffffffffffffffffffffffff16036117ad5785156117215760055473ffffffffffffffffffffffffffffffffffffffff166340c10f198861169d84600161213d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b505050505b8461172b8161217f565b9550506006816032811061174157611741612150565b600302016001015484611754919061213d565b935060006006826032811061176b5761176b612150565b600302016002015460ff16600181111561178757611787611ec8565b146117ad576006816032811061179f5761179f612150565b600302016002015460ff1692505b60010161161a565b5060006117c183610b62565b6117cb90866121b7565b6117d590856121ce565b6117df908361213d565b905080156118075761180773ffffffffffffffffffffffffffffffffffffffff8816826113cb565b5050505b9250929050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156109fc576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118cc611887565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114f43390565b60008261192c8584611db5565b1490505b9392505050565b6000611947848484600354610ce1565b1561195457506001611930565b5060009392505050565b60005b60328110801561198b5750826006826032811061198057611980612150565b600302016001015410155b1561199857600101611961565b603281106119d2576040517ff8f9b73800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060066119e2600160326121ce565b603281106119f2576119f2612150565b6040805160608101825260039290920292909201805473ffffffffffffffffffffffffffffffffffffffff16825260018082015460208401526002820154929391929184019160ff1690811115611a4b57611a4b611ec8565b6001811115611a5c57611a5c611ec8565b905250805190915073ffffffffffffffffffffffffffffffffffffffff1615611b4057806000015173ffffffffffffffffffffffffffffffffffffffff167fa2cff9008d30bf3adae9404caec9ac9706b134b383d4c7868f2c0b557d2e3af3826020015184604051611ad8929190918252602082015260400190565b60405180910390a2602080820151825173ffffffffffffffffffffffffffffffffffffffff166000908152609c909252604090912054611b18919061213d565b815173ffffffffffffffffffffffffffffffffffffffff166000908152609c60205260409020555b6000611b4e600160326121ce565b90505b82811115611c47576006611b666001836121ce565b60328110611b7657611b76612150565b6003020160068260328110611b8d57611b8d612150565b82546003919091029190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117815560018083015481830155600280840154908301805460ff9092169290917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016908381811115611c2c57611c2c611ec8565b02179055509050508080611c3f9061221c565b915050611b51565b508473ffffffffffffffffffffffffffffffffffffffff167f3fabff0a9c3ecd6814702e247fa9733e5d0aa69e3a38590f92cb18f623a2254d85604051611c9091815260200190565b60405180910390a260405180606001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001846001811115611cd757611cd7611ec8565b905260068360328110611cec57611cec612150565b6003020160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a81548160ff02191690836001811115611d6b57611d6b611ec8565b021790555050505050505050565b60025460ff166109fc576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815b8451811015611df057611de682868381518110611dd957611dd9612150565b6020026020010151611df8565b9150600101611dba565b509392505050565b6000818310611e14576000828152602084905260409020611930565b5060009182526020526040902090565b6040518061064001604052806032905b611e5560408051606081018252600080825260208201819052909182015290565b815260200190600190039081611e345790505090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611e8f57600080fd5b919050565b600060208284031215611ea657600080fd5b61193082611e6b565b600060208284031215611ec157600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028110611f2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b73ffffffffffffffffffffffffffffffffffffffff841681526020810183905260608101610d746040830184611ef7565b6112c08101818360005b6032811015611fc5578151805173ffffffffffffffffffffffffffffffffffffffff1684526020808201518186015260409182015191611faf81870184611ef7565b5060609490940193929092019150600101611f6d565b50505092915050565b600060208284031215611fe057600080fd5b81356002811061193057600080fd5b60008083601f84011261200157600080fd5b50813567ffffffffffffffff81111561201957600080fd5b6020830191508360208260051b850101111561180b57600080fd5b6000806000806060858703121561204a57600080fd5b843567ffffffffffffffff81111561206157600080fd5b61206d87828801611fef565b9095509350612080905060208601611e6b565b9396929550929360400135925050565b6000806000604084860312156120a557600080fd5b83359250602084013567ffffffffffffffff8111156120c357600080fd5b6120cf86828701611fef565b9497909650939450505050565b600080600080608085870312156120f257600080fd5b5050823594602084013594506040840135936060013592509050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610ba657610ba661210e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036121b0576121b061210e565b5060010190565b8082028115828204841417610ba657610ba661210e565b81810381811115610ba657610ba661210e565b600082612217577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008161222b5761222b61210e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea164736f6c6343000817000a0000000000000000000000006a07feef7eb458a71ac0ae759ccd3c78c70139ca000000000000000000000000aa39b261b8d4fdaa8a1ed436cc14a723c0480ee9000000000000000000000000e3b32779000d86b3a3251afe2248b706d83d816b
Deployed Bytecode
0x6080604052600436106101c15760003560e01c8063715018a6116100f7578063a8602fea11610095578063c884ef8311610064578063c884ef8314610541578063d745f58f14610571578063e5c389cd14610591578063f2fde38b146105b157600080fd5b8063a8602fea14610492578063c3f909d4146104b2578063c5b63600146104fa578063c80ec5221461050f57600080fd5b80638456cb59116100d15780638456cb591461041f5780638da5cb5b1461043457806395d6a3cc1461045f578063a06a5b351461047f57600080fd5b8063715018a6146103d557806377329f35146103ea5780637e907e641461040a57600080fd5b80633f4ba83a1161016457806354f567411161013e57806354f567411461034257806357782419146103645780635c975abb1461038457806367ba5250146103a857600080fd5b80633f4ba83a146102bb5780633fb6c74e146102d05780634626402b146102f057600080fd5b80630d16e28c116101a05780630d16e28c1461025b57806319bcb4cd146102715780632931ec16146102865780633ccfd60b146102a657600080fd5b8062f2a368146101c6578063010d9813146101e8578063031778f914610220575b600080fd5b3480156101d257600080fd5b506101e66101e1366004611e94565b6105d1565b005b3480156101f457600080fd5b50610208610203366004611eaf565b61077b565b60405161021793929190611f32565b60405180910390f35b34801561022c57600080fd5b5061024d61023b366004611e94565b609c6020526000908152604090205481565b604051908152602001610217565b34801561026757600080fd5b5061024d60035481565b34801561027d57600080fd5b5061024d603281565b34801561029257600080fd5b506101e66102a1366004611eaf565b6107bc565b3480156102b257600080fd5b506101e66107c9565b3480156102c757600080fd5b506101e66109fe565b3480156102dc57600080fd5b506101e66102eb366004611e94565b610a0e565b3480156102fc57600080fd5b5060045461031d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610217565b34801561034e57600080fd5b50610357610abc565b6040516102179190611f63565b34801561037057600080fd5b5061024d61037f366004611fce565b610b62565b34801561039057600080fd5b5060025460ff165b6040519015158152602001610217565b3480156103b457600080fd5b5060055461031d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156103e157600080fd5b506101e6610bb4565b3480156103f657600080fd5b506101e6610405366004611e94565b610bc6565b34801561041657600080fd5b5061024d610c88565b34801561042b57600080fd5b506101e6610cd1565b34801561044057600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661031d565b34801561046b57600080fd5b5061039861047a366004612034565b610ce1565b6101e661048d366004612090565b610d7c565b34801561049e57600080fd5b506101e66104ad366004611e94565b610ebe565b3480156104be57600080fd5b506104c7610fa3565b60405161021791908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561050657600080fd5b5061024d610ffb565b34801561051b57600080fd5b506004546103989074010000000000000000000000000000000000000000900460ff1681565b34801561054d57600080fd5b5061039861055c366004611e94565b609d6020526000908152604090205460ff1681565b34801561057d57600080fd5b506101e661058c366004611e94565b61104e565b34801561059d57600080fd5b506101e66105ac3660046120dc565b611133565b3480156105bd57600080fd5b506101e66105cc366004611e94565b61127a565b60005473ffffffffffffffffffffffffffffffffffffffff163314610622576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609e5460000361065e576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609f544211610699576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106a36112db565b905060006106b282600161213d565b90505b60328110156107765760055473ffffffffffffffffffffffffffffffffffffffff166340c10f19846106e884600161213d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561075357600080fd5b505af1158015610767573d6000803e3d6000fd5b505050508060010190506106b5565b505050565b6006816032811061078b57600080fd5b600302018054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff909116925060ff1683565b6107c4611335565b600355565b60005473ffffffffffffffffffffffffffffffffffffffff16331461081a576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610822611388565b609f54421161085d576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60045474010000000000000000000000000000000000000000900460ff16156108b2576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055600080805b60328110156109925760006006826032811061091457610914612150565b600302015473ffffffffffffffffffffffffffffffffffffffff16146109925760016006826032811061094957610949612150565b600302016002015460ff16600181111561096557610965611ec8565b0361097c57826109748161217f565b93505061098a565b816109868161217f565b9250505b6001016108f6565b506000826109a06001610b62565b6109aa91906121b7565b90506000826109b7610c88565b6109c191906121b7565b90506109ef6109d0828461213d565b60045473ffffffffffffffffffffffffffffffffffffffff16906113cb565b505050506109fc60018055565b565b610a06611335565b6109fc6114a1565b609e54600003610a4a576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610a9b576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610aa3611388565b610aae81600061151e565b5050610ab960018055565b50565b610ac4611e24565b604080516106408101909152600660326000835b82821015610b595760408051606081018252600384028601805473ffffffffffffffffffffffffffffffffffffffff16825260018082015460208401526002820154929391929184019160ff1690811115610b3557610b35611ec8565b6001811115610b4657610b46611ec8565b8152505081526020019060010190610ad8565b50505050905090565b60006001826001811115610b7857610b78611ec8565b03610bac576064610b8a600f826121ce565b610b92610c88565b610b9c91906121b7565b610ba691906121e1565b92915050565b610ba6610c88565b610bbc611335565b6109fc6000611812565b609e54600003610c02576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c0a611887565b610c12611388565b600080610c2083600161151e565b915091508273ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8383604051610c75929190918252602082015260400190565b60405180910390a25050610ab960018055565b600080610c936112db565b9050600060068260328110610caa57610caa612150565b60030201600101549050609e600301548110610cc65780610cca565b60a1545b9250505090565b610cd9611335565b6109fc6118c4565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050610d7086868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525087925085915061191f9050565b9150505b949350505050565b609e54600003610db8576040517face124bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b609f5442101580610dcb5750609e544211155b15610e1657609e54609f546040517f2221fc9c000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044015b60405180910390fd5b610e1e611887565b610e26611388565b610e2e610ffb565b831015610e67576040517fa0d26eb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b823414610ea0576040517f4094c8bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eb53384610eb0858533611937565b61195e565b61077660018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f0f576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610f5c576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610fce6040518060800160405280600081526020016000815260200160008152602001600081525090565b5060408051608081018252609e548152609f54602082015260a0549181019190915260a154606082015290565b600080600661100c600160326121ce565b6032811061101c5761101c612150565b60030201600101549050609e6003015481106110445760a05461103f908261213d565b611048565b60a1545b91505090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461109f576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166110ec576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314611184576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8315806111915750828410155b156111d2576040517f2221fc9c0000000000000000000000000000000000000000000000000000000081526004810185905260248101849052604401610e0d565b8060000361120c576040517fee99522400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003611246576040517fb0fd644300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160808101825285815260208101859052908101839052606001819052609e93909355609f9190915560a05560a155565b611282611335565b73ffffffffffffffffffffffffffffffffffffffff81166112d2576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610e0d565b610ab981611812565b60325b600081118015611312575060066112f66001836121ce565b6032811061130657611306612150565b60030201600101546000145b15611327576113208161221c565b90506112de565b6113308161221c565b905090565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109fc576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610e0d565b6002600154036113c4576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600155565b80471015611407576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401610e0d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114611461576040519150601f19603f3d011682016040523d82523d6000602084013e611466565b606091505b5050905080610776576040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114a9611d79565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600080609e60010154421161155f576040517f6463738900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152609d602052604090205460ff16156115bf576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff84166000908152609c6020908152604080832054609d909252822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055815b60328110156117b5578673ffffffffffffffffffffffffffffffffffffffff166006826032811061164d5761164d612150565b600302015473ffffffffffffffffffffffffffffffffffffffff16036117ad5785156117215760055473ffffffffffffffffffffffffffffffffffffffff166340c10f198861169d84600161213d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561170857600080fd5b505af115801561171c573d6000803e3d6000fd5b505050505b8461172b8161217f565b9550506006816032811061174157611741612150565b600302016001015484611754919061213d565b935060006006826032811061176b5761176b612150565b600302016002015460ff16600181111561178757611787611ec8565b146117ad576006816032811061179f5761179f612150565b600302016002015460ff1692505b60010161161a565b5060006117c183610b62565b6117cb90866121b7565b6117d590856121ce565b6117df908361213d565b905080156118075761180773ffffffffffffffffffffffffffffffffffffffff8816826113cb565b5050505b9250929050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff16156109fc576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118cc611887565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114f43390565b60008261192c8584611db5565b1490505b9392505050565b6000611947848484600354610ce1565b1561195457506001611930565b5060009392505050565b60005b60328110801561198b5750826006826032811061198057611980612150565b600302016001015410155b1561199857600101611961565b603281106119d2576040517ff8f9b73800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060066119e2600160326121ce565b603281106119f2576119f2612150565b6040805160608101825260039290920292909201805473ffffffffffffffffffffffffffffffffffffffff16825260018082015460208401526002820154929391929184019160ff1690811115611a4b57611a4b611ec8565b6001811115611a5c57611a5c611ec8565b905250805190915073ffffffffffffffffffffffffffffffffffffffff1615611b4057806000015173ffffffffffffffffffffffffffffffffffffffff167fa2cff9008d30bf3adae9404caec9ac9706b134b383d4c7868f2c0b557d2e3af3826020015184604051611ad8929190918252602082015260400190565b60405180910390a2602080820151825173ffffffffffffffffffffffffffffffffffffffff166000908152609c909252604090912054611b18919061213d565b815173ffffffffffffffffffffffffffffffffffffffff166000908152609c60205260409020555b6000611b4e600160326121ce565b90505b82811115611c47576006611b666001836121ce565b60328110611b7657611b76612150565b6003020160068260328110611b8d57611b8d612150565b82546003919091029190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117815560018083015481830155600280840154908301805460ff9092169290917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016908381811115611c2c57611c2c611ec8565b02179055509050508080611c3f9061221c565b915050611b51565b508473ffffffffffffffffffffffffffffffffffffffff167f3fabff0a9c3ecd6814702e247fa9733e5d0aa69e3a38590f92cb18f623a2254d85604051611c9091815260200190565b60405180910390a260405180606001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001846001811115611cd757611cd7611ec8565b905260068360328110611cec57611cec612150565b6003020160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020160006101000a81548160ff02191690836001811115611d6b57611d6b611ec8565b021790555050505050505050565b60025460ff166109fc576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815b8451811015611df057611de682868381518110611dd957611dd9612150565b6020026020010151611df8565b9150600101611dba565b509392505050565b6000818310611e14576000828152602084905260409020611930565b5060009182526020526040902090565b6040518061064001604052806032905b611e5560408051606081018252600080825260208201819052909182015290565b815260200190600190039081611e345790505090565b803573ffffffffffffffffffffffffffffffffffffffff81168114611e8f57600080fd5b919050565b600060208284031215611ea657600080fd5b61193082611e6b565b600060208284031215611ec157600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60028110611f2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b73ffffffffffffffffffffffffffffffffffffffff841681526020810183905260608101610d746040830184611ef7565b6112c08101818360005b6032811015611fc5578151805173ffffffffffffffffffffffffffffffffffffffff1684526020808201518186015260409182015191611faf81870184611ef7565b5060609490940193929092019150600101611f6d565b50505092915050565b600060208284031215611fe057600080fd5b81356002811061193057600080fd5b60008083601f84011261200157600080fd5b50813567ffffffffffffffff81111561201957600080fd5b6020830191508360208260051b850101111561180b57600080fd5b6000806000806060858703121561204a57600080fd5b843567ffffffffffffffff81111561206157600080fd5b61206d87828801611fef565b9095509350612080905060208601611e6b565b9396929550929360400135925050565b6000806000604084860312156120a557600080fd5b83359250602084013567ffffffffffffffff8111156120c357600080fd5b6120cf86828701611fef565b9497909650939450505050565b600080600080608085870312156120f257600080fd5b5050823594602084013594506040840135936060013592509050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610ba657610ba661210e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036121b0576121b061210e565b5060010190565b8082028115828204841417610ba657610ba661210e565b81810381811115610ba657610ba661210e565b600082612217577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008161222b5761222b61210e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea164736f6c6343000817000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006a07feef7eb458a71ac0ae759ccd3c78c70139ca000000000000000000000000aa39b261b8d4fdaa8a1ed436cc14a723c0480ee9000000000000000000000000e3b32779000d86b3a3251afe2248b706d83d816b
-----Decoded View---------------
Arg [0] : _initialOwner (address): 0x6a07FEEF7Eb458A71Ac0AE759CCd3c78C70139cA
Arg [1] : _glitchAddress (address): 0xAa39B261b8d4FDaa8A1ED436cC14A723c0480eE9
Arg [2] : _treasuryWallet (address): 0xE3b32779000D86b3a3251Afe2248B706D83d816b
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006a07feef7eb458a71ac0ae759ccd3c78c70139ca
Arg [1] : 000000000000000000000000aa39b261b8d4fdaa8a1ed436cc14a723c0480ee9
Arg [2] : 000000000000000000000000e3b32779000d86b3a3251afe2248b706d83d816b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,524.82 | 0.009 | $22.72 |
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.