More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 175 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 20598638 | 40 days ago | IN | 0 ETH | 0.00005907 | ||||
Approve | 19704627 | 165 days ago | IN | 0 ETH | 0.00026963 | ||||
Approve | 19701050 | 166 days ago | IN | 0 ETH | 0.00028911 | ||||
Transfer | 19700046 | 166 days ago | IN | 0 ETH | 0.00032774 | ||||
Approve | 19693047 | 167 days ago | IN | 0 ETH | 0.0002783 | ||||
Claim Tokens | 19486325 | 196 days ago | IN | 0 ETH | 0.00175263 | ||||
Claim Tokens | 19417258 | 206 days ago | IN | 0 ETH | 0.00309814 | ||||
Approve | 19401312 | 208 days ago | IN | 0 ETH | 0.00281263 | ||||
Approve | 19352930 | 214 days ago | IN | 0 ETH | 0.0009406 | ||||
Approve | 19342935 | 216 days ago | IN | 0 ETH | 0.00273104 | ||||
Approve | 19331142 | 218 days ago | IN | 0 ETH | 0.00212778 | ||||
Approve | 19314084 | 220 days ago | IN | 0 ETH | 0.00152164 | ||||
Approve | 19305929 | 221 days ago | IN | 0 ETH | 0.00170037 | ||||
Approve | 19262700 | 227 days ago | IN | 0 ETH | 0.0020623 | ||||
Claim Tokens | 19262680 | 227 days ago | IN | 0 ETH | 0.0026919 | ||||
Approve | 19254860 | 228 days ago | IN | 0 ETH | 0.00098772 | ||||
Approve | 19252391 | 229 days ago | IN | 0 ETH | 0.00066944 | ||||
Claim Tokens | 19245341 | 230 days ago | IN | 0 ETH | 0.00088055 | ||||
Approve | 19243758 | 230 days ago | IN | 0 ETH | 0.00069536 | ||||
Approve | 19242820 | 230 days ago | IN | 0 ETH | 0.00131188 | ||||
Claim Tokens | 19242339 | 230 days ago | IN | 0 ETH | 0.00170664 | ||||
Claim Tokens | 19242044 | 230 days ago | IN | 0 ETH | 0.00203182 | ||||
Approve | 19241769 | 230 days ago | IN | 0 ETH | 0.00153498 | ||||
Approve | 19241491 | 230 days ago | IN | 0 ETH | 0.0018388 | ||||
Claim Tokens | 19241449 | 230 days ago | IN | 0 ETH | 0.00230062 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Doubloons
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT /* ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ 0xPA DAO, LLC https://0xpa.net/ https://snprbot.com/ */ pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Doubloons is ERC20, Ownable, ReentrancyGuard { mapping(address => uint256) public whitelist; bool public claimPeriodOn = false; uint256 public tokensPerNFT; bool private setupComplete = false; // Ensure setup can only happen once event ClaimPeriodStatusChanged(bool newStatus); event TokensClaimed(address claimant, uint256 amount); event WhitelistUpdated(address indexed account, uint256 nftCount); constructor() ERC20("Doubloons", "DBLN") Ownable(msg.sender) { } function setUp(uint256 initialSupply, uint256 _tokensPerNFT) external onlyOwner { require(!setupComplete, "Setup already completed"); _mint(address(this), initialSupply); tokensPerNFT = _tokensPerNFT; setupComplete = true; // Prevents this function from being called again } function updateWhitelist(address[] calldata addresses, uint256[] calldata nftsHeld) external onlyOwner { require(setupComplete, "Contract setup not completed"); require(addresses.length == nftsHeld.length, "Mismatched inputs"); for (uint i = 0; i < addresses.length; i++) { whitelist[addresses[i]] = nftsHeld[i]; emit WhitelistUpdated(addresses[i], nftsHeld[i]); } claimPeriodOn = true; emit ClaimPeriodStatusChanged(true); } function claimTokens() external nonReentrant { require(claimPeriodOn, "Claim period is not active"); uint256 amount = whitelist[msg.sender] * tokensPerNFT; require(amount > 0, "No tokens available for claim"); require(balanceOf(address(this)) >= amount, "Insufficient token supply"); _transfer(address(this), msg.sender, amount); emit TokensClaimed(msg.sender, amount); whitelist[msg.sender] = 0; // Prevent re-claim if (balanceOf(address(this)) == 0) { claimPeriodOn = false; emit ClaimPeriodStatusChanged(false); } } function renounceOwnership() public override onlyOwner { transferOwnership(0x000000000000000000000000000000000000dEaD); } function changeOwner(address newOwner) public onlyOwner { transferOwnership(newOwner); } function toggleClaimPeriod(bool _status) external onlyOwner { require(setupComplete, "Contract setup not completed"); claimPeriodOn = _status; emit ClaimPeriodStatusChanged(_status); } function isWhitelisted(address _address) public view returns (bool, uint256) { uint256 nftCount = whitelist[_address]; bool eligible = nftCount > 0; return (eligible, nftCount); } function withdrawERC20(IERC20 token, uint256 amount) external onlyOwner { require(setupComplete, "Contract setup not completed"); require(token.transfer(msg.sender, amount), "Transfer failed"); } function withdrawEther(uint256 amount) external onlyOwner { require(setupComplete, "Contract setup not completed"); payable(msg.sender).transfer(amount); } }
// 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 v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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; 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 require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // 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) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"ClaimPeriodStatusChanged","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":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftCount","type":"uint256"}],"name":"WhitelistUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPeriodOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint256","name":"_tokensPerNFT","type":"uint256"}],"name":"setUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"toggleClaimPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokensPerNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"nftsHeld","type":"uint256[]"}],"name":"updateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff19908116909155600a8054909116905534801562000026575f80fd5b503360405180604001604052806009815260200168446f75626c6f6f6e7360b81b815250604051806040016040528060048152602001632221262760e11b8152508160039081620000789190620001c0565b506004620000878282620001c0565b5050506001600160a01b038116620000b857604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000c381620000cf565b50600160065562000288565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200014957607f821691505b6020821081036200016857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001bb575f81815260208120601f850160051c81016020861015620001965750805b601f850160051c820191505b81811015620001b757828155600101620001a2565b5050505b505050565b81516001600160401b03811115620001dc57620001dc62000120565b620001f481620001ed845462000134565b846200016e565b602080601f8311600181146200022a575f8415620002125750858301515b5f19600386901b1c1916600185901b178555620001b7565b5f85815260208120601f198616915b828110156200025a5788860151825594840194600190910190840162000239565b50858210156200027857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b61119c80620002965f395ff3fe608060405234801561000f575f80fd5b5060043610610148575f3560e01c8063715018a6116100bf578063a1db978211610079578063a1db9782146102ce578063a6f9dae1146102e1578063a9059cbb146102f4578063c94f387014610307578063dd62ed3e1461031a578063f2fde38b14610352575f80fd5b8063715018a6146102645780638d28e25d1461026c5780638da5cb5b1461027957806395d89b41146102945780639b19251a1461029c5780639c0f81e9146102bb575f80fd5b806334ca41f31161011057806334ca41f3146101c15780633af32abf146101d65780633bed33ce1461021857806348c54b9d1461022b5780635afcc2f51461023357806370a082311461023c575f80fd5b806306fdde031461014c578063095ea7b31461016a57806318160ddd1461018d57806323b872dd1461019f578063313ce567146101b2575b5f80fd5b610154610365565b6040516101619190610e44565b60405180910390f35b61017d610178366004610ea3565b6103f5565b6040519015158152602001610161565b6002545b604051908152602001610161565b61017d6101ad366004610ecd565b61040e565b60405160128152602001610161565b6101d46101cf366004610f18565b610431565b005b6102016101e4366004610f3a565b6001600160a01b03165f9081526007602052604090205480151591565b604080519215158352602083019190915201610161565b6101d4610226366004610f55565b6104ab565b6101d4610503565b61019160095481565b61019161024a366004610f3a565b6001600160a01b03165f9081526020819052604090205490565b6101d46106dc565b60085461017d9060ff1681565b6005546040516001600160a01b039091168152602001610161565b6101546106ef565b6101916102aa366004610f3a565b60076020525f908152604090205481565b6101d46102c9366004610f6c565b6106fe565b6101d46102dc366004610ea3565b610776565b6101d46102ef366004610f3a565b61084c565b61017d610302366004610ea3565b610860565b6101d4610315366004610fd4565b61086d565b61019161032836600461103b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6101d4610360366004610f3a565b610a1d565b60606003805461037490611072565b80601f01602080910402602001604051908101604052809291908181526020018280546103a090611072565b80156103eb5780601f106103c2576101008083540402835291602001916103eb565b820191905f5260205f20905b8154815290600101906020018083116103ce57829003601f168201915b5050505050905090565b5f33610402818585610a57565b60019150505b92915050565b5f3361041b858285610a69565b610426858585610ae4565b506001949350505050565b610439610b41565b600a5460ff166104645760405162461bcd60e51b815260040161045b906110aa565b60405180910390fd5b6008805460ff19168215159081179091556040519081527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a150565b6104b3610b41565b600a5460ff166104d55760405162461bcd60e51b815260040161045b906110aa565b604051339082156108fc029083905f818181858888f193505050501580156104ff573d5f803e3d5ffd5b5050565b61050b610b6e565b60085460ff1661055d5760405162461bcd60e51b815260206004820152601a60248201527f436c61696d20706572696f64206973206e6f7420616374697665000000000000604482015260640161045b565b600954335f90815260076020526040812054909161057a916110f5565b90505f81116105cb5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20746f6b656e7320617661696c61626c6520666f7220636c61696d000000604482015260640161045b565b305f908152602081905260409020548111156106295760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420746f6b656e20737570706c7900000000000000604482015260640161045b565b610634303383610ae4565b60408051338152602081018390527f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430910160405180910390a1335f908152600760209081526040808320839055308352908290529020545f036106cf576008805460ff191690556040515f81527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a15b506106da6001600655565b565b6106e4610b41565b6106da61dead610a1d565b60606004805461037490611072565b610706610b41565b600a5460ff16156107595760405162461bcd60e51b815260206004820152601760248201527f536574757020616c726561647920636f6d706c65746564000000000000000000604482015260640161045b565b6107633083610bc7565b60095550600a805460ff19166001179055565b61077e610b41565b600a5460ff166107a05760405162461bcd60e51b815260040161045b906110aa565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303815f875af11580156107ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061080e919061110c565b6104ff5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161045b565b610854610b41565b61085d81610a1d565b50565b5f33610402818585610ae4565b610875610b41565b600a5460ff166108975760405162461bcd60e51b815260040161045b906110aa565b8281146108da5760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b604482015260640161045b565b5f5b838110156109d3578282828181106108f6576108f6611127565b9050602002013560075f87878581811061091257610912611127565b90506020020160208101906109279190610f3a565b6001600160a01b0316815260208101919091526040015f205584848281811061095257610952611127565b90506020020160208101906109679190610f3a565b6001600160a01b03167f226d670a329c4a93cf8c1a5baeceda320e89031fe0a65343c51678bd8b5a652e8484848181106109a3576109a3611127565b905060200201356040516109b991815260200190565b60405180910390a2806109cb8161113b565b9150506108dc565b506008805460ff191660019081179091556040519081527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a150505050565b610a25610b41565b6001600160a01b038116610a4e57604051631e4fbdf760e01b81525f600482015260240161045b565b61085d81610bfb565b610a648383836001610c4c565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610ade5781811015610ad057604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161045b565b610ade84848484035f610c4c565b50505050565b6001600160a01b038316610b0d57604051634b637e8f60e11b81525f600482015260240161045b565b6001600160a01b038216610b365760405163ec442f0560e01b81525f600482015260240161045b565b610a64838383610d1e565b6005546001600160a01b031633146106da5760405163118cdaa760e01b815233600482015260240161045b565b600260065403610bc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045b565b6002600655565b6001600160a01b038216610bf05760405163ec442f0560e01b81525f600482015260240161045b565b6104ff5f8383610d1e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610c755760405163e602df0560e01b81525f600482015260240161045b565b6001600160a01b038316610c9e57604051634a1406b160e11b81525f600482015260240161045b565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610ade57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d1091815260200190565b60405180910390a350505050565b6001600160a01b038316610d48578060025f828254610d3d9190611153565b90915550610db89050565b6001600160a01b0383165f9081526020819052604090205481811015610d9a5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161045b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610dd457600280548290039055610df2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e3791815260200190565b60405180910390a3505050565b5f6020808352835180828501525f5b81811015610e6f57858101830151858201604001528201610e53565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461085d575f80fd5b5f8060408385031215610eb4575f80fd5b8235610ebf81610e8f565b946020939093013593505050565b5f805f60608486031215610edf575f80fd5b8335610eea81610e8f565b92506020840135610efa81610e8f565b929592945050506040919091013590565b801515811461085d575f80fd5b5f60208284031215610f28575f80fd5b8135610f3381610f0b565b9392505050565b5f60208284031215610f4a575f80fd5b8135610f3381610e8f565b5f60208284031215610f65575f80fd5b5035919050565b5f8060408385031215610f7d575f80fd5b50508035926020909101359150565b5f8083601f840112610f9c575f80fd5b50813567ffffffffffffffff811115610fb3575f80fd5b6020830191508360208260051b8501011115610fcd575f80fd5b9250929050565b5f805f8060408587031215610fe7575f80fd5b843567ffffffffffffffff80821115610ffe575f80fd5b61100a88838901610f8c565b90965094506020870135915080821115611022575f80fd5b5061102f87828801610f8c565b95989497509550505050565b5f806040838503121561104c575f80fd5b823561105781610e8f565b9150602083013561106781610e8f565b809150509250929050565b600181811c9082168061108657607f821691505b6020821081036110a457634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252601c908201527f436f6e7472616374207365747570206e6f7420636f6d706c6574656400000000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610408576104086110e1565b5f6020828403121561111c575f80fd5b8151610f3381610f0b565b634e487b7160e01b5f52603260045260245ffd5b5f6001820161114c5761114c6110e1565b5060010190565b80820180821115610408576104086110e156fea2646970667358221220da6451c6409ba864f4b540f3b11a261490fd6f91a440252ced43479af993199064736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610148575f3560e01c8063715018a6116100bf578063a1db978211610079578063a1db9782146102ce578063a6f9dae1146102e1578063a9059cbb146102f4578063c94f387014610307578063dd62ed3e1461031a578063f2fde38b14610352575f80fd5b8063715018a6146102645780638d28e25d1461026c5780638da5cb5b1461027957806395d89b41146102945780639b19251a1461029c5780639c0f81e9146102bb575f80fd5b806334ca41f31161011057806334ca41f3146101c15780633af32abf146101d65780633bed33ce1461021857806348c54b9d1461022b5780635afcc2f51461023357806370a082311461023c575f80fd5b806306fdde031461014c578063095ea7b31461016a57806318160ddd1461018d57806323b872dd1461019f578063313ce567146101b2575b5f80fd5b610154610365565b6040516101619190610e44565b60405180910390f35b61017d610178366004610ea3565b6103f5565b6040519015158152602001610161565b6002545b604051908152602001610161565b61017d6101ad366004610ecd565b61040e565b60405160128152602001610161565b6101d46101cf366004610f18565b610431565b005b6102016101e4366004610f3a565b6001600160a01b03165f9081526007602052604090205480151591565b604080519215158352602083019190915201610161565b6101d4610226366004610f55565b6104ab565b6101d4610503565b61019160095481565b61019161024a366004610f3a565b6001600160a01b03165f9081526020819052604090205490565b6101d46106dc565b60085461017d9060ff1681565b6005546040516001600160a01b039091168152602001610161565b6101546106ef565b6101916102aa366004610f3a565b60076020525f908152604090205481565b6101d46102c9366004610f6c565b6106fe565b6101d46102dc366004610ea3565b610776565b6101d46102ef366004610f3a565b61084c565b61017d610302366004610ea3565b610860565b6101d4610315366004610fd4565b61086d565b61019161032836600461103b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6101d4610360366004610f3a565b610a1d565b60606003805461037490611072565b80601f01602080910402602001604051908101604052809291908181526020018280546103a090611072565b80156103eb5780601f106103c2576101008083540402835291602001916103eb565b820191905f5260205f20905b8154815290600101906020018083116103ce57829003601f168201915b5050505050905090565b5f33610402818585610a57565b60019150505b92915050565b5f3361041b858285610a69565b610426858585610ae4565b506001949350505050565b610439610b41565b600a5460ff166104645760405162461bcd60e51b815260040161045b906110aa565b60405180910390fd5b6008805460ff19168215159081179091556040519081527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a150565b6104b3610b41565b600a5460ff166104d55760405162461bcd60e51b815260040161045b906110aa565b604051339082156108fc029083905f818181858888f193505050501580156104ff573d5f803e3d5ffd5b5050565b61050b610b6e565b60085460ff1661055d5760405162461bcd60e51b815260206004820152601a60248201527f436c61696d20706572696f64206973206e6f7420616374697665000000000000604482015260640161045b565b600954335f90815260076020526040812054909161057a916110f5565b90505f81116105cb5760405162461bcd60e51b815260206004820152601d60248201527f4e6f20746f6b656e7320617661696c61626c6520666f7220636c61696d000000604482015260640161045b565b305f908152602081905260409020548111156106295760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420746f6b656e20737570706c7900000000000000604482015260640161045b565b610634303383610ae4565b60408051338152602081018390527f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e430910160405180910390a1335f908152600760209081526040808320839055308352908290529020545f036106cf576008805460ff191690556040515f81527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a15b506106da6001600655565b565b6106e4610b41565b6106da61dead610a1d565b60606004805461037490611072565b610706610b41565b600a5460ff16156107595760405162461bcd60e51b815260206004820152601760248201527f536574757020616c726561647920636f6d706c65746564000000000000000000604482015260640161045b565b6107633083610bc7565b60095550600a805460ff19166001179055565b61077e610b41565b600a5460ff166107a05760405162461bcd60e51b815260040161045b906110aa565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303815f875af11580156107ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061080e919061110c565b6104ff5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161045b565b610854610b41565b61085d81610a1d565b50565b5f33610402818585610ae4565b610875610b41565b600a5460ff166108975760405162461bcd60e51b815260040161045b906110aa565b8281146108da5760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b604482015260640161045b565b5f5b838110156109d3578282828181106108f6576108f6611127565b9050602002013560075f87878581811061091257610912611127565b90506020020160208101906109279190610f3a565b6001600160a01b0316815260208101919091526040015f205584848281811061095257610952611127565b90506020020160208101906109679190610f3a565b6001600160a01b03167f226d670a329c4a93cf8c1a5baeceda320e89031fe0a65343c51678bd8b5a652e8484848181106109a3576109a3611127565b905060200201356040516109b991815260200190565b60405180910390a2806109cb8161113b565b9150506108dc565b506008805460ff191660019081179091556040519081527f560c9c41dc184eaea34967f34bea5b38c5ce6f7e90042f498da5125dfa7730ab9060200160405180910390a150505050565b610a25610b41565b6001600160a01b038116610a4e57604051631e4fbdf760e01b81525f600482015260240161045b565b61085d81610bfb565b610a648383836001610c4c565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610ade5781811015610ad057604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161045b565b610ade84848484035f610c4c565b50505050565b6001600160a01b038316610b0d57604051634b637e8f60e11b81525f600482015260240161045b565b6001600160a01b038216610b365760405163ec442f0560e01b81525f600482015260240161045b565b610a64838383610d1e565b6005546001600160a01b031633146106da5760405163118cdaa760e01b815233600482015260240161045b565b600260065403610bc05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161045b565b6002600655565b6001600160a01b038216610bf05760405163ec442f0560e01b81525f600482015260240161045b565b6104ff5f8383610d1e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416610c755760405163e602df0560e01b81525f600482015260240161045b565b6001600160a01b038316610c9e57604051634a1406b160e11b81525f600482015260240161045b565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610ade57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d1091815260200190565b60405180910390a350505050565b6001600160a01b038316610d48578060025f828254610d3d9190611153565b90915550610db89050565b6001600160a01b0383165f9081526020819052604090205481811015610d9a5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161045b565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610dd457600280548290039055610df2565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e3791815260200190565b60405180910390a3505050565b5f6020808352835180828501525f5b81811015610e6f57858101830151858201604001528201610e53565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461085d575f80fd5b5f8060408385031215610eb4575f80fd5b8235610ebf81610e8f565b946020939093013593505050565b5f805f60608486031215610edf575f80fd5b8335610eea81610e8f565b92506020840135610efa81610e8f565b929592945050506040919091013590565b801515811461085d575f80fd5b5f60208284031215610f28575f80fd5b8135610f3381610f0b565b9392505050565b5f60208284031215610f4a575f80fd5b8135610f3381610e8f565b5f60208284031215610f65575f80fd5b5035919050565b5f8060408385031215610f7d575f80fd5b50508035926020909101359150565b5f8083601f840112610f9c575f80fd5b50813567ffffffffffffffff811115610fb3575f80fd5b6020830191508360208260051b8501011115610fcd575f80fd5b9250929050565b5f805f8060408587031215610fe7575f80fd5b843567ffffffffffffffff80821115610ffe575f80fd5b61100a88838901610f8c565b90965094506020870135915080821115611022575f80fd5b5061102f87828801610f8c565b95989497509550505050565b5f806040838503121561104c575f80fd5b823561105781610e8f565b9150602083013561106781610e8f565b809150509250929050565b600181811c9082168061108657607f821691505b6020821081036110a457634e487b7160e01b5f52602260045260245ffd5b50919050565b6020808252601c908201527f436f6e7472616374207365747570206e6f7420636f6d706c6574656400000000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610408576104086110e1565b5f6020828403121561111c575f80fd5b8151610f3381610f0b565b634e487b7160e01b5f52603260045260245ffd5b5f6001820161114c5761114c6110e1565b5060010190565b80820180821115610408576104086110e156fea2646970667358221220da6451c6409ba864f4b540f3b11a261490fd6f91a440252ced43479af993199064736f6c63430008140033
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.