ERC-20
Overview
Max Total Supply
10,353,279.999999999999999634 ATIME
Holders
516
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AdventureTime
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 2500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.3; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; /// @title Adventure Time for Genesis Adventurer holders! /// @notice This contract mints Adventure Time for Loot holders and provides /// administrative functions to the Loot DAO. It allows: /// * Genesis Adventurer holders to claim Adventure Time /// * A DAO to set seasons for new opportunities to claim Adventure Time /// * A DAO to mint Adventure Time for use within the Loot ecosystem /// @custom:unaudited This contract has not been audited. Use at your own risk. contract AdventureTime is Context, Ownable, ERC20, ERC20Burnable { // Genesis Adventurer contract is available at https://etherscan.io/token/0x8db687aceb92c66f013e1d614137238cc698fedb address public SeasonContractAddress; IERC721Enumerable private SeasonContract; // Give out 100,000 Adventure Time for every Genesis Adventurer that a user holds uint256 public adventureTimePerTokenId = 100 * (10**decimals()); uint256 public tokenIdStart = 1; uint256 public tokenIdEnd = 8000; // Seasons are used to allow users to claim tokens regularly. // Seasons are decided by the DAO. uint256 public season = 0; // Track claimed tokens within a season // IMPORTANT: The format of the mapping is: // claimedForSeason[season][tokenId][claimed] mapping(uint256 => mapping(uint256 => bool)) public seasonClaimedByTokenId; constructor( address _CurrentSeasonContractAddress, address _genesisDaoAddress ) Ownable() ERC20("Adventure Time", "ATIME") { // Transfer ownership to the Genesis Project DAO // Ownable by OpenZeppelin automatically sets owner to msg.sender, but // we're going to be using a separate wallet for deployment transferOwnership(_genesisDaoAddress); SeasonContractAddress = _CurrentSeasonContractAddress; SeasonContract = IERC721Enumerable(SeasonContractAddress); } function claimById(uint256 _tokenId) external { // Follow the Checks-Effects-Interactions pattern // to prevent reentrancy attacks _markClaimedForSeason(_tokenId); _mint(_msgSender(), adventureTimePerTokenId); } function claimAllForOwner() external { uint256 tokenBalanceOwner = SeasonContract.balanceOf(_msgSender()); uint256[] memory tokensUnclaimed = new uint256[](tokenBalanceOwner); // Checks require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED"); for (uint256 i = 0; i < tokenBalanceOwner; i++) { if ( seasonClaimedByTokenId[season][ SeasonContract.tokenOfOwnerByIndex(_msgSender(), i) ] == false ) { tokensUnclaimed[i] = SeasonContract.tokenOfOwnerByIndex( _msgSender(), i ); } else { delete tokensUnclaimed[i]; } } // i < tokenBalanceOwner because tokenBalanceOwner is 1-indexed for (uint256 i = 0; i < tokensUnclaimed.length; i++) { if (tokensUnclaimed[i] != 0) { _markClaimedForSeason(tokensUnclaimed[i]); } else { tokenBalanceOwner--; } } require(tokenBalanceOwner > 0, "ALL_TOKENS_CLAIMED"); _mint(_msgSender(), adventureTimePerTokenId * tokenBalanceOwner); } function multiClaimByID(uint256[] memory _tokenId) external { for (uint256 i = 0; i < _tokenId.length; i++) { _markClaimedForSeason(_tokenId[i]); } _mint(_msgSender(), adventureTimePerTokenId * _tokenId.length); } /// @notice Checks for requirements then marks token complete for season /// @param _tokenId The tokenId of the NFT function _markClaimedForSeason(uint256 _tokenId) internal checkOwnerOfToken(_tokenId) checkTokenInRange(_tokenId) checkAlreadySeasonClaimed(_tokenId) { // Mark that Adventure Time has been claimed for this season for the token seasonClaimedByTokenId[season][_tokenId] = true; } modifier checkOwnerOfToken(uint256 _tokenId) { require( _msgSender() == SeasonContract.ownerOf(_tokenId), "MUST_OWN_TOKEN_ID" ); _; } modifier checkTokenInRange(uint256 _tokenId) { require( _tokenId >= tokenIdStart && _tokenId <= tokenIdEnd, "TOKEN_ID_OUT_OF_RANGE" ); _; } modifier checkAlreadySeasonClaimed(uint256 _tokenId) { require( !seasonClaimedByTokenId[season][_tokenId], "TIME_CLAIMED_FOR_TOKEN_ID" ); _; } /// @notice Allows the DAO to mint new tokens for use within the Loot /// Ecosystem /// @param amountDisplayValue The amount of Loot to mint. This should be /// input as the display value, not in raw decimals. If you want to mint /// 100 Loot, you should enter "100" rather than the value of 100 * 10^18. function daoMint(uint256 amountDisplayValue) external onlyOwner { _mint(owner(), amountDisplayValue * (10**decimals())); } /// @notice Allows the DAO to set a new contract address for Loot. This is /// relevant in the event that Loot migrates to a new contract. /// @param _SeasonContractAddress The new contract address for Loot function daoSetSeasonContractAddress(address _SeasonContractAddress) external onlyOwner { SeasonContractAddress = _SeasonContractAddress; SeasonContract = IERC721Enumerable(SeasonContractAddress); } /// @notice Allows the DAO to set the token IDs that are eligible to claim /// Loot /// @param _tokenIdStart The start of the eligible token range /// @param _tokenIdEnd The end of the eligible token range /// @dev This is relevant in case a future NFT contract has a different /// total supply of tokens function daoSetTokenIdRange(uint256 _tokenIdStart, uint256 _tokenIdEnd) external onlyOwner { tokenIdStart = _tokenIdStart; tokenIdEnd = _tokenIdEnd; } /// @notice Allows the DAO to set a season for new Adventure Time claims /// @param _season The season to use for claiming Loot function daoSetSeason(uint256 _season) public onlyOwner { season = _season; } /// @notice Allows the DAO to set the amount of Adventure Time that is /// claimed per token ID /// @param _adventureTimeDisplayValue The amount of Loot a user can claim. /// This should be input as the display value, not in raw decimals. If you /// want to mint 100 Loot, you should enter "100" rather than the value of /// 100 * 10^18. function daoSetAdventureTimePerTokenId(uint256 _adventureTimeDisplayValue) public onlyOwner { adventureTimePerTokenId = _adventureTimeDisplayValue * (10**decimals()); } /// @notice Allows the DAO to set the season and Adventure Time per token ID /// in one transaction. This ensures that there is not a gap where a user /// can claim more Adventure Time than others /// @param _season The season to use for claiming loot /// @param _adventureTimeDisplayValue The amount of Loot a user can claim. /// This should be input as the display value, not in raw decimals. If you /// want to mint 100 Loot, you should enter "100" rather than the value of /// 100 * 10^18. /// @dev We would save a tiny amount of gas by modifying the season and /// adventureTime variables directly. It is better practice for security, /// however, to avoid repeating code. This function is so rarely used that /// it's not worth moving these values into their own internal function to /// skip the gas used on the modifier check. function daoSetSeasonAndAdventureTimePerTokenId( uint256 _season, uint256 _adventureTimeDisplayValue ) external onlyOwner { daoSetSeason(_season); daoSetAdventureTimePerTokenId(_adventureTimeDisplayValue); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 value {ERC20} uses, unless this function is * 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 2500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_CurrentSeasonContractAddress","type":"address"},{"internalType":"address","name":"_genesisDaoAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"SeasonContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adventureTimePerTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"amount","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":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimById","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountDisplayValue","type":"uint256"}],"name":"daoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_adventureTimeDisplayValue","type":"uint256"}],"name":"daoSetAdventureTimePerTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"daoSetSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_season","type":"uint256"},{"internalType":"uint256","name":"_adventureTimeDisplayValue","type":"uint256"}],"name":"daoSetSeasonAndAdventureTimePerTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_SeasonContractAddress","type":"address"}],"name":"daoSetSeasonContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIdStart","type":"uint256"},{"internalType":"uint256","name":"_tokenIdEnd","type":"uint256"}],"name":"daoSetTokenIdRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenId","type":"uint256[]"}],"name":"multiClaimByID","outputs":[],"stateMutability":"nonpayable","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":[],"name":"season","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasonClaimedByTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdStart","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","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"}]
Contract Creation Code
6080604052620000126012600a6200039d565b6200001f9060646200046b565b6008556001600955611f40600a556000600b553480156200003f57600080fd5b50604051620021f3380380620021f383398101604081905262000062916200031d565b6040518060400160405280600e81526020016d416476656e747572652054696d6560901b815250604051806040016040528060058152602001644154494d4560d81b815250620000c1620000bb6200013160201b60201c565b62000135565b8151620000d69060049060208501906200025a565b508051620000ec9060059060208401906200025a565b50505062000100816200018560201b60201c565b50600680546001600160a01b039092166001600160a01b0319928316811790915560078054909216179055620004e0565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166200024c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001dc565b620002578162000135565b50565b82805462000268906200048d565b90600052602060002090601f0160209004810192826200028c5760008555620002d7565b82601f10620002a757805160ff1916838001178555620002d7565b82800160010185558215620002d7579182015b82811115620002d7578251825591602001919060010190620002ba565b50620002e5929150620002e9565b5090565b5b80821115620002e55760008155600101620002ea565b80516001600160a01b03811681146200031857600080fd5b919050565b6000806040838503121562000330578182fd5b6200033b8362000300565b91506200034b6020840162000300565b90509250929050565b600181815b8085111562000395578160001904821115620003795762000379620004ca565b808516156200038757918102915b93841c939080029062000359565b509250929050565b6000620003ae60ff841683620003b5565b9392505050565b600082620003c65750600162000465565b81620003d55750600062000465565b8160018114620003ee5760028114620003f95762000419565b600191505062000465565b60ff8411156200040d576200040d620004ca565b50506001821b62000465565b5060208310610133831016604e8410600b84101617156200043e575081810a62000465565b6200044a838362000354565b8060001904821115620004615762000461620004ca565b0290505b92915050565b6000816000190483118215151615620004885762000488620004ca565b500290565b600181811c90821680620004a257607f821691505b60208210811415620004c457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b611d0380620004f06000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80634da7808a1161010f578063a9059cbb116100a2578063cbf0b27611610071578063cbf0b276146103f5578063dd62ed3e146103fd578063e5e808cb14610436578063f2fde38b1461046457600080fd5b8063a9059cbb146103b3578063abc63475146103c6578063becf7741146103d9578063c50b0fb0146103ec57600080fd5b806379cc6790116100de57806379cc6790146103745780638da5cb5b1461038757806395d89b4114610398578063a457c2d7146103a057600080fd5b80634da7808a1461031d57806362759f6c1461033057806370a0823114610343578063715018a61461036c57600080fd5b80632a3890621161018757806340ab433c1161015657806340ab433c146102db57806342966c68146102ee57806342e473151461030157806343f428021461031457600080fd5b80632a3890621461029d5780632c34d65c146102a6578063313ce567146102b957806339509351146102c857600080fd5b80630b2e1fcc116101c35780630b2e1fcc1461024257806318160ddd1461025757806322036f6c1461025f57806323b872dd1461028a57600080fd5b806306fdde03146101ea578063089e601814610208578063095ea7b31461021f575b600080fd5b6101f2610477565b6040516101ff9190611a90565b60405180910390f35b61021160085481565b6040519081526020016101ff565b61023261022d366004611954565b610509565b60405190151581526020016101ff565b610255610250366004611a6f565b610520565b005b600354610211565b600654610272906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b610232610298366004611914565b610595565b61021160095481565b6102556102b436600461197f565b610654565b604051601281526020016101ff565b6102326102d6366004611954565b6106be565b6102556102e936600461189d565b6106fa565b6102556102fc366004611a3f565b610798565b61025561030f366004611a3f565b6107a2565b610211600a5481565b61025561032b366004611a6f565b610801565b61025561033e366004611a3f565b610866565b61021161035136600461189d565b6001600160a01b031660009081526001602052604090205490565b6102556108eb565b610255610382366004611954565b610951565b6000546001600160a01b0316610272565b6101f26109f0565b6102326103ae366004611954565b6109ff565b6102326103c1366004611954565b610ab0565b6102556103d4366004611a3f565b610abd565b6102556103e7366004611a3f565b610b33565b610211600b5481565b610255610b48565b61021161040b3660046118dc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610232610444366004611a6f565b600c60209081526000928352604080842090915290825290205460ff1681565b61025561047236600461189d565b610f71565b60606004805461048690611c36565b80601f01602080910402602001604051908101604052809291908181526020018280546104b290611c36565b80156104ff5780601f106104d4576101008083540402835291602001916104ff565b820191906000526020600020905b8154815290600101906020018083116104e257829003601f168201915b5050505050905090565b6000610516338484611050565b5060015b92915050565b6000546001600160a01b0316331461057f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610588826107a2565b61059181610abd565b5050565b60006105a28484846111a8565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561063c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610576565b6106498533858403611050565b506001949350505050565b60005b81518110156106a25761069082828151811061068357634e487b7160e01b600052603260045260246000fd5b60200260200101516113c0565b8061069a81611c71565b915050610657565b506106bb3382516008546106b69190611be9565b6115d1565b50565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916105169185906106f5908690611ae3565b611050565b6000546001600160a01b031633146107545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600680546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560078054909216179055565b6106bb33826116b0565b6000546001600160a01b031633146107fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600b55565b6000546001600160a01b0316331461085b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600991909155600a55565b6000546001600160a01b031633146108c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b6106bb6108d56000546001600160a01b031690565b6108e16012600a611b3e565b6106b69084611be9565b6000546001600160a01b031633146109455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b61094f6000611835565b565b600061095d833361040b565b9050818110156109d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610576565b6109e18333848403611050565b6109eb83836116b0565b505050565b60606005805461048690611c36565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610a995760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610576565b610aa63385858403611050565b5060019392505050565b60006105163384846111a8565b6000546001600160a01b03163314610b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b610b236012600a611b3e565b610b2d9082611be9565b60085550565b610b3c816113c0565b6106bb336008546115d1565b6007546000906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190611a57565b905060008167ffffffffffffffff811115610c1757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c40578160200160208202803683370190505b50905060008211610c935760405162461bcd60e51b815260206004820152600f60248201527f4e4f5f544f4b454e535f4f574e454400000000000000000000000000000000006044820152606401610576565b60005b82811015610e8a57600b546000908152600c602052604081206007549091906001600160a01b0316632f745c59336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810186905260440160206040518083038186803b158015610d2257600080fd5b505afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190611a57565b815260208101919091526040016000205460ff16610e4b576007546001600160a01b0316632f745c59336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015610de257600080fd5b505afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a9190611a57565b828281518110610e3a57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050610e78565b818181518110610e6b57634e487b7160e01b600052603260045260246000fd5b6020026020010160008152505b80610e8281611c71565b915050610c96565b5060005b8151811015610f0e57818181518110610eb757634e487b7160e01b600052603260045260246000fd5b6020026020010151600014610eee57610ee982828151811061068357634e487b7160e01b600052603260045260246000fd5b610efc565b82610ef881611c1f565b9350505b80610f0681611c71565b915050610e8e565b5060008211610f5f5760405162461bcd60e51b815260206004820152601260248201527f414c4c5f544f4b454e535f434c41494d454400000000000000000000000000006044820152606401610576565b61059133836008546106b69190611be9565b6000546001600160a01b03163314610fcb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b6001600160a01b0381166110475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610576565b6106bb81611835565b6001600160a01b0383166110cb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0382166111475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166112245760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0382166112a05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0383166000908152600160205260409020548181101561132f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290611366908490611ae3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113b291815260200190565b60405180910390a350505050565b6007546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905282916001600160a01b031690636352211e9060240160206040518083038186803b15801561141d57600080fd5b505afa158015611431573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145591906118c0565b6001600160a01b0316336001600160a01b0316146114b55760405162461bcd60e51b815260206004820152601160248201527f4d5553545f4f574e5f544f4b454e5f49440000000000000000000000000000006044820152606401610576565b8160095481101580156114ca5750600a548111155b6115165760405162461bcd60e51b815260206004820152601560248201527f544f4b454e5f49445f4f55545f4f465f52414e474500000000000000000000006044820152606401610576565b600b546000908152600c60209081526040808320868452909152902054839060ff16156115855760405162461bcd60e51b815260206004820152601960248201527f54494d455f434c41494d45445f464f525f544f4b454e5f4944000000000000006044820152606401610576565b5050600b546000908152600c602090815260408083209483529390529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550565b6001600160a01b0382166116275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610576565b80600360008282546116399190611ae3565b90915550506001600160a01b03821660009081526001602052604081208054839290611666908490611ae3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661172c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b038216600090815260016020526040902054818110156117bb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b03831660009081526001602052604081208383039055600380548492906117ea908490611c08565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156118ae578081fd5b81356118b981611cb8565b9392505050565b6000602082840312156118d1578081fd5b81516118b981611cb8565b600080604083850312156118ee578081fd5b82356118f981611cb8565b9150602083013561190981611cb8565b809150509250929050565b600080600060608486031215611928578081fd5b833561193381611cb8565b9250602084013561194381611cb8565b929592945050506040919091013590565b60008060408385031215611966578182fd5b823561197181611cb8565b946020939093013593505050565b60006020808385031215611991578182fd5b823567ffffffffffffffff808211156119a8578384fd5b818501915085601f8301126119bb578384fd5b8135818111156119cd576119cd611ca2565b8060051b604051601f19603f830116810181811085821117156119f2576119f2611ca2565b604052828152858101935084860182860187018a1015611a10578788fd5b8795505b83861015611a32578035855260019590950194938601938601611a14565b5098975050505050505050565b600060208284031215611a50578081fd5b5035919050565b600060208284031215611a68578081fd5b5051919050565b60008060408385031215611a81578182fd5b50508035926020909101359150565b6000602080835283518082850152825b81811015611abc57858101830151858201604001528201611aa0565b81811115611acd5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611af657611af6611c8c565b500190565b600181815b80851115611b36578160001904821115611b1c57611b1c611c8c565b80851615611b2957918102915b93841c9390800290611b00565b509250929050565b60006118b960ff841683600082611b575750600161051a565b81611b645750600061051a565b8160018114611b7a5760028114611b8457611ba0565b600191505061051a565b60ff841115611b9557611b95611c8c565b50506001821b61051a565b5060208310610133831016604e8410600b8410161715611bc3575081810a61051a565b611bcd8383611afb565b8060001904821115611be157611be1611c8c565b029392505050565b6000816000190483118215151615611c0357611c03611c8c565b500290565b600082821015611c1a57611c1a611c8c565b500390565b600081611c2e57611c2e611c8c565b506000190190565b600181811c90821680611c4a57607f821691505b60208210811415611c6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c8557611c85611c8c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146106bb57600080fdfea26469706673582212207d824cbffd3cbeb5a8d22f49583d47a49d7cb7669b997e8e6f1873caaf33788064736f6c634300080400330000000000000000000000007afe30cb3e53dba6801aa0ea647a0ecea7cbe18d00000000000000000000000096f47d56f25d2ba629db1f55db0517dee67640e1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80634da7808a1161010f578063a9059cbb116100a2578063cbf0b27611610071578063cbf0b276146103f5578063dd62ed3e146103fd578063e5e808cb14610436578063f2fde38b1461046457600080fd5b8063a9059cbb146103b3578063abc63475146103c6578063becf7741146103d9578063c50b0fb0146103ec57600080fd5b806379cc6790116100de57806379cc6790146103745780638da5cb5b1461038757806395d89b4114610398578063a457c2d7146103a057600080fd5b80634da7808a1461031d57806362759f6c1461033057806370a0823114610343578063715018a61461036c57600080fd5b80632a3890621161018757806340ab433c1161015657806340ab433c146102db57806342966c68146102ee57806342e473151461030157806343f428021461031457600080fd5b80632a3890621461029d5780632c34d65c146102a6578063313ce567146102b957806339509351146102c857600080fd5b80630b2e1fcc116101c35780630b2e1fcc1461024257806318160ddd1461025757806322036f6c1461025f57806323b872dd1461028a57600080fd5b806306fdde03146101ea578063089e601814610208578063095ea7b31461021f575b600080fd5b6101f2610477565b6040516101ff9190611a90565b60405180910390f35b61021160085481565b6040519081526020016101ff565b61023261022d366004611954565b610509565b60405190151581526020016101ff565b610255610250366004611a6f565b610520565b005b600354610211565b600654610272906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b610232610298366004611914565b610595565b61021160095481565b6102556102b436600461197f565b610654565b604051601281526020016101ff565b6102326102d6366004611954565b6106be565b6102556102e936600461189d565b6106fa565b6102556102fc366004611a3f565b610798565b61025561030f366004611a3f565b6107a2565b610211600a5481565b61025561032b366004611a6f565b610801565b61025561033e366004611a3f565b610866565b61021161035136600461189d565b6001600160a01b031660009081526001602052604090205490565b6102556108eb565b610255610382366004611954565b610951565b6000546001600160a01b0316610272565b6101f26109f0565b6102326103ae366004611954565b6109ff565b6102326103c1366004611954565b610ab0565b6102556103d4366004611a3f565b610abd565b6102556103e7366004611a3f565b610b33565b610211600b5481565b610255610b48565b61021161040b3660046118dc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610232610444366004611a6f565b600c60209081526000928352604080842090915290825290205460ff1681565b61025561047236600461189d565b610f71565b60606004805461048690611c36565b80601f01602080910402602001604051908101604052809291908181526020018280546104b290611c36565b80156104ff5780601f106104d4576101008083540402835291602001916104ff565b820191906000526020600020905b8154815290600101906020018083116104e257829003601f168201915b5050505050905090565b6000610516338484611050565b5060015b92915050565b6000546001600160a01b0316331461057f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610588826107a2565b61059181610abd565b5050565b60006105a28484846111a8565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561063c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610576565b6106498533858403611050565b506001949350505050565b60005b81518110156106a25761069082828151811061068357634e487b7160e01b600052603260045260246000fd5b60200260200101516113c0565b8061069a81611c71565b915050610657565b506106bb3382516008546106b69190611be9565b6115d1565b50565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916105169185906106f5908690611ae3565b611050565b6000546001600160a01b031633146107545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600680546001600160a01b039092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316811790915560078054909216179055565b6106bb33826116b0565b6000546001600160a01b031633146107fc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600b55565b6000546001600160a01b0316331461085b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b600991909155600a55565b6000546001600160a01b031633146108c05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b6106bb6108d56000546001600160a01b031690565b6108e16012600a611b3e565b6106b69084611be9565b6000546001600160a01b031633146109455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b61094f6000611835565b565b600061095d833361040b565b9050818110156109d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610576565b6109e18333848403611050565b6109eb83836116b0565b505050565b60606005805461048690611c36565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610a995760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610576565b610aa63385858403611050565b5060019392505050565b60006105163384846111a8565b6000546001600160a01b03163314610b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b610b236012600a611b3e565b610b2d9082611be9565b60085550565b610b3c816113c0565b6106bb336008546115d1565b6007546000906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bec9190611a57565b905060008167ffffffffffffffff811115610c1757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c40578160200160208202803683370190505b50905060008211610c935760405162461bcd60e51b815260206004820152600f60248201527f4e4f5f544f4b454e535f4f574e454400000000000000000000000000000000006044820152606401610576565b60005b82811015610e8a57600b546000908152600c602052604081206007549091906001600160a01b0316632f745c59336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810186905260440160206040518083038186803b158015610d2257600080fd5b505afa158015610d36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5a9190611a57565b815260208101919091526040016000205460ff16610e4b576007546001600160a01b0316632f745c59336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b0390911660048201526024810184905260440160206040518083038186803b158015610de257600080fd5b505afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a9190611a57565b828281518110610e3a57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050610e78565b818181518110610e6b57634e487b7160e01b600052603260045260246000fd5b6020026020010160008152505b80610e8281611c71565b915050610c96565b5060005b8151811015610f0e57818181518110610eb757634e487b7160e01b600052603260045260246000fd5b6020026020010151600014610eee57610ee982828151811061068357634e487b7160e01b600052603260045260246000fd5b610efc565b82610ef881611c1f565b9350505b80610f0681611c71565b915050610e8e565b5060008211610f5f5760405162461bcd60e51b815260206004820152601260248201527f414c4c5f544f4b454e535f434c41494d454400000000000000000000000000006044820152606401610576565b61059133836008546106b69190611be9565b6000546001600160a01b03163314610fcb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610576565b6001600160a01b0381166110475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610576565b6106bb81611835565b6001600160a01b0383166110cb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0382166111475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166112245760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0382166112a05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b0383166000908152600160205260409020548181101561132f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290611366908490611ae3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113b291815260200190565b60405180910390a350505050565b6007546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905282916001600160a01b031690636352211e9060240160206040518083038186803b15801561141d57600080fd5b505afa158015611431573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145591906118c0565b6001600160a01b0316336001600160a01b0316146114b55760405162461bcd60e51b815260206004820152601160248201527f4d5553545f4f574e5f544f4b454e5f49440000000000000000000000000000006044820152606401610576565b8160095481101580156114ca5750600a548111155b6115165760405162461bcd60e51b815260206004820152601560248201527f544f4b454e5f49445f4f55545f4f465f52414e474500000000000000000000006044820152606401610576565b600b546000908152600c60209081526040808320868452909152902054839060ff16156115855760405162461bcd60e51b815260206004820152601960248201527f54494d455f434c41494d45445f464f525f544f4b454e5f4944000000000000006044820152606401610576565b5050600b546000908152600c602090815260408083209483529390529190912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550565b6001600160a01b0382166116275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610576565b80600360008282546116399190611ae3565b90915550506001600160a01b03821660009081526001602052604081208054839290611666908490611ae3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661172c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b038216600090815260016020526040902054818110156117bb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610576565b6001600160a01b03831660009081526001602052604081208383039055600380548492906117ea908490611c08565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156118ae578081fd5b81356118b981611cb8565b9392505050565b6000602082840312156118d1578081fd5b81516118b981611cb8565b600080604083850312156118ee578081fd5b82356118f981611cb8565b9150602083013561190981611cb8565b809150509250929050565b600080600060608486031215611928578081fd5b833561193381611cb8565b9250602084013561194381611cb8565b929592945050506040919091013590565b60008060408385031215611966578182fd5b823561197181611cb8565b946020939093013593505050565b60006020808385031215611991578182fd5b823567ffffffffffffffff808211156119a8578384fd5b818501915085601f8301126119bb578384fd5b8135818111156119cd576119cd611ca2565b8060051b604051601f19603f830116810181811085821117156119f2576119f2611ca2565b604052828152858101935084860182860187018a1015611a10578788fd5b8795505b83861015611a32578035855260019590950194938601938601611a14565b5098975050505050505050565b600060208284031215611a50578081fd5b5035919050565b600060208284031215611a68578081fd5b5051919050565b60008060408385031215611a81578182fd5b50508035926020909101359150565b6000602080835283518082850152825b81811015611abc57858101830151858201604001528201611aa0565b81811115611acd5783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611af657611af6611c8c565b500190565b600181815b80851115611b36578160001904821115611b1c57611b1c611c8c565b80851615611b2957918102915b93841c9390800290611b00565b509250929050565b60006118b960ff841683600082611b575750600161051a565b81611b645750600061051a565b8160018114611b7a5760028114611b8457611ba0565b600191505061051a565b60ff841115611b9557611b95611c8c565b50506001821b61051a565b5060208310610133831016604e8410600b8410161715611bc3575081810a61051a565b611bcd8383611afb565b8060001904821115611be157611be1611c8c565b029392505050565b6000816000190483118215151615611c0357611c03611c8c565b500290565b600082821015611c1a57611c1a611c8c565b500390565b600081611c2e57611c2e611c8c565b506000190190565b600181811c90821680611c4a57607f821691505b60208210811415611c6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611c8557611c85611c8c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146106bb57600080fdfea26469706673582212207d824cbffd3cbeb5a8d22f49583d47a49d7cb7669b997e8e6f1873caaf33788064736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007afe30cb3e53dba6801aa0ea647a0ecea7cbe18d00000000000000000000000096f47d56f25d2ba629db1f55db0517dee67640e1
-----Decoded View---------------
Arg [0] : _CurrentSeasonContractAddress (address): 0x7AFe30cB3E53dba6801aa0EA647A0EcEA7cBe18d
Arg [1] : _genesisDaoAddress (address): 0x96f47d56F25D2bA629db1F55db0517deE67640e1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007afe30cb3e53dba6801aa0ea647a0ecea7cbe18d
Arg [1] : 00000000000000000000000096f47d56f25d2ba629db1f55db0517dee67640e1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.