Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 sFROG
Holders
2,485
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 sFROGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StakeFrogs
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC-BY-NC-4.0 pragma solidity ^0.8.13; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; import {UntransferableERC721} from "./extensions/UntransferableERC721.sol"; /** * MMMMMMMMMMMMMMMMMMWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMWXOxdlllloxOKNWNXXK000OOO000KXXX0OOkOO0XWMMMMMMMMMMMMMMMM * MMMMMMMMMMMW0o:,''''''''';cc:;;,,,'''''',,;;;,''''',;cd0WMMMMMMMMMMMMM * MMMMMMMMMMNx;'''''''''''''''''''''''''''''''''''''''''',dXMMMMMMMMMMMM * MMMMMMMMMM0:',lol;'.';cllc,',''',,,,,''''',''''''''''''''dNMMMMMMMMMMM * MMMMMMMMMM0c':kkc'';;;d00x;'',,'','''''',lxl,....,:cll;'';xXWMMMMMMMMM * MMMMMMMMMMXo';dx;.':;'lOkc,'',,,,,'''''';dOc'.;c;,o00Ol'''':xXMMMMMMMM * MMMMMMMMMWO:'';:,'..'';::,',''''','''''',cd;..,:,,d0Od;''''''lKWMMMMMM * MMMMMMMMMKl,''''''''','''',,',,',,'''''''','''''',clc,''''''''cKMMMMMM * MMMMMMMMNd,''''','''''''''''''''''',,,'''''''''''''''''''''''''dNMMMMM * MMMMMMMWk;'','''''''''''''''''''''''''''''''''''','','','''''''cKMMMMM * MMMMMMW0c,','',''''''''''''''',,,,'''''''''''''',,,,;;;,,''''''cKMMMMM * MMMMMNkl::;,,,,,,'''''''''''''''',''''''',,,,;;::ccccllc;''''''oNMMMMM * MMMMMXo:lllllc:;;;;,,,,,,,,,,,,,,,;;;;::::::ccccllllllc;,''''':OMMMMMM * MMMMMWx:cccccccccc::::::::::::::::::::ccccccccllllcc:;,'''''';kWMMMMMM * MMMMMW0occlllllcccccccccccccccccccccclllllllcc::;,,,'''''''':OWMMMMMMM * MMMMMMWN0xoc:::::ccccclllllllccccccc::::;;,,,,'''''''''''',oKWMMMMMMMM * MMMMMMMMMMWX0koc,'',,,,,,,,,,,,,,,''''''',,''''''''''''';o0WMMMMMMMMMM * MMMMMMMMMMMMMMWN0xo;'''''''''''''''''''''''''''''''.';lxKWMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMWKko:,''''''''''''''''''''''.',;cdkKWMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMWNKOxolc:;,,'''''',,,;:codk0XWMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMMMWNNXK000OOO00KKXNWMMMMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM * * @title StakeFrogs * @custom:website www.plaguenft.com * @author @lozzereth (www.allthingsweb3.com) * @custom:contributor Riley Holterhus (@rileyholterhus) * @notice NFT Staking contract for The Plague. Staking will entitle its holders to a * staked nft and yield token. Contract is the custodian of a fixed amount of * token which is then distributed as rewards to its holders. */ contract StakeFrogs is UntransferableERC721, IERC721Receiver { using Math for uint256; /// @notice Contract addresses address public immutable erc721Address; address public erc20Address; /// @notice First is default, followed by bonusIntervals rates uint256[3] public periodEmissions = [100, 200, 300]; /// @notice Period that one full emission occurs uint256 public periodDenominator = 30 days; /// @notice Minimum interval (interval * demoninator) to begin bonus emissions uint256[2] public bonusIntervals = [3, 6]; /// @notice Track the deposit and claim state of tokens struct StakedToken { uint256 depositedAt; uint256 claimedAt; } mapping(uint256 => StakedToken) public staked; /// @notice Token non-existent error TokenNonExistent(uint256 tokenId); /// @notice Not an owner of the frog error TokenNonOwner(uint256 tokenId); /// @notice Using a non-zero value error NonZeroValue(); constructor(address _erc721Address, address _erc20Address) UntransferableERC721("The Plague Staked", "sFROG") { erc721Address = _erc721Address; erc20Address = _erc20Address; setBaseURI("ipfs://QmNyaURfnPtYQzDepeEFLDxTWdJHXRBP37HwxyJUvgMSm3/"); } /** * @notice Track deposits of an account * @dev Intended for off-chain computation having O(totalSupply) complexity * @param account - Account to query * @return tokenIds */ function depositsOf(address account) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; uint256 tokenIdsLength = balanceOf(account); uint256[] memory tokenIds = new uint256[](tokenIdsLength); for (uint256 i; tokenIdsIdx != tokenIdsLength; ++i) { if (!_exists(i)) { continue; } if (ownerOf(i) == account) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } /** * @dev Control the staking bonus for when denominator crosses * @param tokens - an array of intervals, denominated by {periodDenominator} * i.e. [3, 6] being respectively [3 months, 6 months] iff * {periodDenominator} = 1 month */ function setBonusInterval(uint256[2] calldata tokens) external onlyOwner { bonusIntervals = tokens; } /** * @dev Adjust the emission rate (in wei) * @param rates - an array such that [default, bonusIntervals[0], bonusIntervals[1] */ function setPeriodEmission(uint256[3] calldata rates) external onlyOwner { periodEmissions = rates; } /** * @dev Adjust the period of emission * @param interval - the interval, could be 1 day, 1 month, etc... */ function setPeriodDenominator(uint256 interval) external onlyOwner { if (interval == 0) revert NonZeroValue(); periodDenominator = interval; } /** * @notice Calculates the rewards for specific tokens under an address * @param account - account to check * @param tokenIds - token ids to check against * @return rewards */ function calculateRewards(address account, uint256[] memory tokenIds) external view returns (uint256[] memory rewards) { rewards = new uint256[](tokenIds.length); for (uint256 i; i < tokenIds.length; i++) { rewards[i] = calculateReward(account, tokenIds[i]); } return rewards; } /** * @notice Calculates the rewards for specific token * @param account - account to check * @param tokenId - token id to check against * @return total */ function calculateReward(address account, uint256 tokenId) public view returns (uint256 total) { if (!_exists(tokenId)) { revert TokenNonExistent(tokenId); } if (ownerOf(tokenId) != account) { revert TokenNonOwner(tokenId); } unchecked { // tiny gas save uint256 interval = periodDenominator; uint256 depositedAt = staked[tokenId].depositedAt; uint256 claimedAt = staked[tokenId].claimedAt; // calculate rewards since deposit uint256 sinceDeposit = (block.timestamp - depositedAt) / interval; uint256 accrued = _accruedRewards(sinceDeposit); // deduct all claims made to date if (claimedAt > depositedAt) { uint256 sinceClaim = (claimedAt - depositedAt) / interval; accrued -= _accruedRewards(sinceClaim); } return accrued; } } /** * @notice Represent the staked information of specific token ids as an array of bytes. * Intended for off-chain computation. * @param tokenIds - token ids to check against * @return stakedInfoBytes */ function stakedInfoOf(uint256[] memory tokenIds) external view returns (bytes[] memory) { bytes[] memory stakedTimes = new bytes[](tokenIds.length); for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; stakedTimes[i] = abi.encodePacked( tokenId, staked[tokenId].depositedAt, staked[tokenId].claimedAt ); } return stakedTimes; } /** * @dev Finds the accrued rewards for a period relative to {periodDenominator} * @param period - Period of time, i.e 12 [days/months/...] * @return Rewards */ function _accruedRewards(uint256 period) private view returns (uint256) { return Math.min(bonusIntervals[0], period) * periodEmissions[0] + Math.min( bonusIntervals[0] > period ? 0 : period - bonusIntervals[0], bonusIntervals[0] ) * periodEmissions[1] + (bonusIntervals[1] > period ? 0 : period - bonusIntervals[1]) * periodEmissions[2]; } /** * @notice Claim the rewards for the tokens * @param tokenIds - Array of token ids */ function claimRewards(uint256[] calldata tokenIds) public { uint256 reward; for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; unchecked { reward += calculateReward(msg.sender, tokenId); } staked[tokenId].claimedAt = block.timestamp; } if (reward > 0) { _safeTransferRewards(msg.sender, reward * 1e18); } } /** * @notice Deposit tokens into the contract * @param tokenIds - Array of token ids to stake */ function deposit(uint256[] calldata tokenIds) public { for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; staked[tokenId].depositedAt = block.timestamp; IERC721(erc721Address).safeTransferFrom( msg.sender, address(this), tokenId, "" ); _mint(msg.sender, tokenId); } } /** * @notice Withdraw tokens from the contract * @param tokenIds - Array of token ids to stake */ function withdraw(uint256[] calldata tokenIds) public { claimRewards(tokenIds); _withdraw(tokenIds); } /** * @notice Withdraw tokens from the contract without any rewards * @param tokenIds - Array of token ids to stake */ function emergencyWithdraw(uint256[] calldata tokenIds) public { _withdraw(tokenIds); } /** * @dev Withdraw token IDs from the contract * @param tokenIds - Array of token ids to stake */ function _withdraw(uint256[] calldata tokenIds) private { for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; if (!_exists(tokenId)) { revert TokenNonExistent(tokenId); } if (ownerOf(tokenId) != msg.sender) { revert TokenNonOwner(tokenId); } _burn(tokenId); IERC721(erc721Address).safeTransferFrom( address(this), msg.sender, tokenId, "" ); } } /** * @notice Withdraw tokens from the staking contract * @param amount - Amount in wei to withdraw */ function withdrawTokens(uint256 amount) external onlyOwner { _safeTransferRewards(msg.sender, amount); } /** * @dev Issues tokens only if there is a sufficient balance in the contract * @param recipient - receiving address * @param amount - amount in wei to transfer */ function _safeTransferRewards(address recipient, uint256 amount) private { uint256 balance = IERC20(erc20Address).balanceOf(address(this)); if (amount <= balance) { IERC20(erc20Address).transfer(recipient, amount); } } /** * @dev Modify the ERC20 token being emitted * @param tokenAddress - address of token to emit */ function setErc20Address(address tokenAddress) external onlyOwner { erc20Address = tokenAddress; } /** * @dev Receive ERC721 tokens */ function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title UntransferableERC721 * @author @lozzereth (www.allthingsweb3.com) * @notice An NFT implementation that cannot be transfered no matter what * unless minting or burning. */ contract UntransferableERC721 is ERC721, Ownable { /// @dev Base URI for the underlying token string private baseURI; /// @dev Thrown when an approval is made while untransferable error Unapprovable(); /// @dev Thrown when making an transfer while untransferable error Untransferable(); constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {} /** * @dev Prevent token transfer unless burn */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721) { if (to != address(0) && from != address(0)) { revert Untransferable(); } super._beforeTokenTransfer(from, to, tokenId); } /** * @dev Prevent approvals of staked token */ function approve(address, uint256) public virtual override { revert Unapprovable(); } /** * @dev Prevent approval of staked token */ function setApprovalForAll(address, bool) public virtual override { revert Unapprovable(); } /** * @notice Set the base URI for the NFT */ function setBaseURI(string memory baseURI_) public virtual onlyOwner { baseURI = baseURI_; } /** * @dev Returns the base URI */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
{ "optimizer": { "enabled": true, "runs": 800 }, "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":"_erc721Address","type":"address"},{"internalType":"address","name":"_erc20Address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NonZeroValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenNonExistent","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenNonOwner","type":"error"},{"inputs":[],"name":"Unapprovable","type":"error"},{"inputs":[],"name":"Untransferable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonusIntervals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc20Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"periodEmissions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"tokens","type":"uint256[2]"}],"name":"setBonusInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setErc20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"interval","type":"uint256"}],"name":"setPeriodDenominator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[3]","name":"rates","type":"uint256[3]"}],"name":"setPeriodEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"staked","outputs":[{"internalType":"uint256","name":"depositedAt","type":"uint256"},{"internalType":"uint256","name":"claimedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakedInfoOf","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610100604052606460a090815260c860c05261012c60e0526200002790600990600362000234565b5062278d00600c556040805180820190915260038152600660208201526200005490600d9060026200027d565b503480156200006257600080fd5b5060405162002caf38038062002caf833981016040819052620000859162000364565b6040805180820182526011815270151a1948141b1859dd594814dd185ad959607a1b6020808301918252835180850190945260058452647346524f4760d81b90840152815191929183918391620000df91600091620002b3565b508051620000f5906001906020840190620002b3565b505050620001126200010c6200016660201b60201c565b6200016a565b50506001600160a01b03828116608052600880546001600160a01b031916918316919091179055604080516060810190915260368082526200015e919062002c796020830139620001bc565b5050620003d8565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b031633146200021b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b805162000230906007906020840190620002b3565b5050565b82600381019282156200026b579160200282015b828111156200026b578251829061ffff1690559160200191906001019062000248565b506200027992915062000330565b5090565b82600281019282156200026b579160200282015b828111156200026b578251829060ff1690559160200191906001019062000291565b828054620002c1906200039c565b90600052602060002090601f016020900481019282620002e557600085556200026b565b82601f106200030057805160ff19168380011785556200026b565b828001600101855582156200026b579182015b828111156200026b57825182559160200191906001019062000313565b5b8082111562000279576000815560010162000331565b80516001600160a01b03811681146200035f57600080fd5b919050565b600080604083850312156200037857600080fd5b620003838362000347565b9150620003936020840162000347565b90509250929050565b600181811c90821680620003b157607f821691505b602082108103620003d257634e487b7160e01b600052602260045260246000fd5b50919050565b608051612877620004026000396000818161037701528181610cf90152611a7901526128776000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80635e1bef321161016057806395d89b41116100d8578063c87b56dd1161008c578063e3a9db1a11610071578063e3a9db1a14610596578063e985e9c5146105a9578063f2fde38b146105e557600080fd5b8063c87b56dd14610570578063d1941b061461058357600080fd5b80639a70c540116100bd5780639a70c5401461053c578063a22cb4651461054f578063b88d4fde1461055d57600080fd5b806395d89b4114610521578063983d95ce1461052957600080fd5b806370a082311161012f57806374e10e3f1161011457806374e10e3f146104f45780638da5cb5b146105075780639276760c1461051857600080fd5b806370a08231146104d9578063715018a6146104ec57600080fd5b80635e1bef32146104645780635eac6239146104a05780636352211e146104b3578063709d8f02146104c657600080fd5b8063276184ae116101f357806342842e0e116101c25780634a39fa80116101a75780634a39fa801461042b57806355f804b31461043e578063598b8e711461045157600080fd5b806342842e0e14610405578063472c0cac1461041857600080fd5b8063276184ae146103ac5780632764c427146103bf578063315a095d146103d2578063335e15a2146103e557600080fd5b8063095ea7b31161024a5780631852e8d91161022f5780631852e8d9146103515780632352a8641461037257806323b872dd1461039957600080fd5b8063095ea7b314610304578063150b7a021461031957600080fd5b806301ffc9a71461027c578063068c526f146102a457806306fdde03146102c4578063081812fc146102d9575b600080fd5b61028f61028a36600461206c565b6105f8565b60405190151581526020015b60405180910390f35b6102b76102b2366004612161565b61064a565b60405161029b91906121af565b6102cc6106f7565b60405161029b919061224b565b6102ec6102e736600461225e565b610789565b6040516001600160a01b03909116815260200161029b565b610317610312366004612277565b610823565b005b6103386103273660046122a1565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161029b565b61036461035f366004612277565b61083c565b60405190815260200161029b565b6102ec7f000000000000000000000000000000000000000000000000000000000000000081565b6103176103a736600461233c565b610926565b6008546102ec906001600160a01b031681565b6103646103cd36600461225e565b6109b2565b6103176103e036600461225e565b6109c9565b6103f86103f3366004612378565b610a30565b60405161029b91906123ad565b61031761041336600461233c565b610b1d565b61031761042636600461240f565b610b38565b610317610439366004612437565b610ba3565b61031761044c3660046124aa565b610c1f565b61031761045f3660046124f3565b610c8c565b61048b61047236600461225e565b600f602052600090815260409020805460019091015482565b6040805192835260208301919091520161029b565b6103176104ae3660046124f3565b610d7a565b6102ec6104c136600461225e565b610dfb565b6103646104d436600461225e565b610e86565b6103646104e7366004612437565b610e96565b610317610f30565b61031761050236600461225e565b610f96565b6006546001600160a01b03166102ec565b610364600c5481565b6102cc611016565b6103176105373660046124f3565b611025565b61031761054a366004612568565b611039565b610317610312366004612598565b61031761056b3660046125cf565b6110a0565b6102cc61057e36600461225e565b61112e565b6103176105913660046124f3565b61102f565b6102b76105a4366004612437565b611217565b61028f6105b736600461264b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103176105f3366004612437565b6112ed565b60006001600160e01b031982166380ac58cd60e01b148061062957506001600160e01b03198216635b5e139f60e01b145b8061064457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060815167ffffffffffffffff811115610666576106666120a5565b60405190808252806020026020018201604052801561068f578160200160208202803683370190505b50905060005b82518110156106f0576106c1848483815181106106b4576106b461267e565b602002602001015161083c565b8282815181106106d3576106d361267e565b6020908102919091010152806106e8816126aa565b915050610695565b5092915050565b606060008054610706906126c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610732906126c3565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108075760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60405163595162dd60e01b815260040160405180910390fd5b6000818152600260205260408120546001600160a01b031661087457604051631e97bf7b60e11b8152600481018390526024016107fe565b826001600160a01b031661088783610dfb565b6001600160a01b0316146108b157604051632eda401960e21b8152600481018390526024016107fe565b600c546000838152600f60205260408120805460019091015490918342849003816108de576108de6126f7565b04905060006108ec826113cc565b90508383111561091b5760008585850381610909576109096126f7565b049050610915816113cc565b82039150505b979650505050505050565b6109303382611460565b6109a25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107fe565b6109ad838383611557565b505050565b600d81600281106109c257600080fd5b0154905081565b6006546001600160a01b03163314610a235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610a2d3382611716565b50565b60606000825167ffffffffffffffff811115610a4e57610a4e6120a5565b604051908082528060200260200182016040528015610a8157816020015b6060815260200190600190039081610a6c5790505b50905060005b83518110156106f0576000848281518110610aa457610aa461267e565b6020908102919091018101516000818152600f8352604090819020805460019091015482519485018490529184015260608301529150608001604051602081830303815290604052838381518110610afe57610afe61267e565b6020026020010181905250508080610b15906126aa565b915050610a87565b6109ad838383604051806020016040528060008152506110a0565b6006546001600160a01b03163314610b925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610b9f6009826003611f62565b5050565b6006546001600160a01b03163314610bfd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b8051610b9f906007906020840190611fa0565b60005b818110156109ad576000838383818110610cab57610cab61267e565b602090810292909201356000818152600f909352604080842042905551635c46a7ef60e11b8152336004820152306024820152604481018290526080606482015260848101939093529250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b88d4fde9060a401600060405180830381600087803b158015610d4557600080fd5b505af1158015610d59573d6000803e3d6000fd5b50505050610d673382611803565b5080610d72816126aa565b915050610c8f565b6000805b82811015610dd9576000848483818110610d9a57610d9a61267e565b905060200201359050610dad338261083c565b6000918252600f6020526040909120426001909101559091019080610dd1816126aa565b915050610d7e565b5080156109ad576109ad33610df683670de0b6b3a764000061270d565b611716565b6000818152600260205260408120546001600160a01b0316806106445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107fe565b600981600381106109c257600080fd5b60006001600160a01b038216610f145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107fe565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610f946000611951565b565b6006546001600160a01b03163314610ff05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b806000036110115760405163e320176b60e01b815260040160405180910390fd5b600c55565b606060018054610706906126c3565b61102f8282610d7a565b610b9f82826119a3565b6006546001600160a01b031633146110935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610b9f600d826002612014565b6110aa3383611460565b61111c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107fe565b61112884848484611af1565b50505050565b6000818152600260205260409020546060906001600160a01b03166111bb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107fe565b60006111c5611b7a565b905060008151116111e55760405180602001604052806000815250611210565b806111ef84611b89565b60405160200161120092919061272c565b6040516020818303038152906040525b9392505050565b606060008061122584610e96565b905060008167ffffffffffffffff811115611242576112426120a5565b60405190808252806020026020018201604052801561126b578160200160208202803683370190505b50905060005b8284146112e4576000818152600260205260409020546001600160a01b0316156112dc57856001600160a01b03166112a882610dfb565b6001600160a01b0316036112dc57808285806001019650815181106112cf576112cf61267e565b6020026020010181815250505b600101611271565b50949350505050565b6006546001600160a01b031633146113475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b6001600160a01b0381166113c35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fe565b610a2d81611951565b600b54600e546000919083106113ee57600e546113e9908461275b565b6113f1565b60005b6113fb919061270d565b600a54600d5461142890851061141d57600d54611418908661275b565b611420565b60005b600d54611ca2565b611432919061270d565b600954600d546114429086611ca2565b61144c919061270d565b6114569190612772565b6106449190612772565b6000818152600260205260408120546001600160a01b03166114d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107fe565b60006114e483610dfb565b9050806001600160a01b0316846001600160a01b0316148061151f5750836001600160a01b031661151484610789565b6001600160a01b0316145b8061154f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661156a82610dfb565b6001600160a01b0316146115e65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b0382166116485760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107fe565b611653838383611cb8565b61165e600082611cf6565b6001600160a01b038316600090815260036020526040812080546001929061168790849061275b565b90915550506001600160a01b03821660009081526003602052604081208054600192906116b5908490612772565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611783919061278a565b90508082116109ad5760085460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af11580156117df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112891906127a3565b6001600160a01b0382166118595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107fe565b6000818152600260205260409020546001600160a01b0316156118be5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107fe565b6118ca60008383611cb8565b6001600160a01b03821660009081526003602052604081208054600192906118f3908490612772565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b818110156109ad5760008383838181106119c2576119c261267e565b9050602002013590506119ec816000908152600260205260409020546001600160a01b0316151590565b611a0c57604051631e97bf7b60e11b8152600481018290526024016107fe565b33611a1682610dfb565b6001600160a01b031614611a4057604051632eda401960e21b8152600481018290526024016107fe565b611a4981611d64565b604051635c46a7ef60e11b81523060048201523360248201526044810182905260806064820152600060848201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b88d4fde9060a401600060405180830381600087803b158015611ac557600080fd5b505af1158015611ad9573d6000803e3d6000fd5b50505050508080611ae9906126aa565b9150506119a6565b611afc848484611557565b611b0884848484611e0b565b6111285760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107fe565b606060078054610706906126c3565b606081600003611bb05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bda5780611bc4816126aa565b9150611bd39050600a836127c0565b9150611bb4565b60008167ffffffffffffffff811115611bf557611bf56120a5565b6040519080825280601f01601f191660200182016040528015611c1f576020820181803683370190505b5090505b841561154f57611c3460018361275b565b9150611c41600a866127d4565b611c4c906030612772565b60f81b818381518110611c6157611c6161267e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c9b600a866127c0565b9450611c23565b6000818310611cb15781611210565b5090919050565b6001600160a01b03821615801590611cd857506001600160a01b03831615155b156109ad5760405163072b78c760e01b815260040160405180910390fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d2b82610dfb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6f82610dfb565b9050611d7d81600084611cb8565b611d88600083611cf6565b6001600160a01b0381166000908152600360205260408120805460019290611db190849061275b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b15611f5757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e4f9033908990889088906004016127e8565b6020604051808303816000875af1925050508015611e8a575060408051601f3d908101601f19168201909252611e8791810190612824565b60015b611f3d573d808015611eb8576040519150601f19603f3d011682016040523d82523d6000602084013e611ebd565b606091505b508051600003611f355760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107fe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061154f565b506001949350505050565b8260038101928215611f90579160200282015b82811115611f90578235825591602001919060010190611f75565b50611f9c929150612041565b5090565b828054611fac906126c3565b90600052602060002090601f016020900481019282611fce5760008555611f90565b82601f10611fe757805160ff1916838001178555611f90565b82800160010185558215611f90579182015b82811115611f90578251825591602001919060010190611ff9565b8260028101928215611f905791602002820182811115611f90578235825591602001919060010190611f75565b5b80821115611f9c5760008155600101612042565b6001600160e01b031981168114610a2d57600080fd5b60006020828403121561207e57600080fd5b813561121081612056565b80356001600160a01b03811681146120a057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156120e4576120e46120a5565b604052919050565b600082601f8301126120fd57600080fd5b8135602067ffffffffffffffff821115612119576121196120a5565b8160051b6121288282016120bb565b928352848101820192828101908785111561214257600080fd5b83870192505b8483101561091b57823582529183019190830190612148565b6000806040838503121561217457600080fd5b61217d83612089565b9150602083013567ffffffffffffffff81111561219957600080fd5b6121a5858286016120ec565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156121e7578351835292840192918401916001016121cb565b50909695505050505050565b60005b8381101561220e5781810151838201526020016121f6565b838111156111285750506000910152565b600081518084526122378160208601602086016121f3565b601f01601f19169290920160200192915050565b602081526000611210602083018461221f565b60006020828403121561227057600080fd5b5035919050565b6000806040838503121561228a57600080fd5b61229383612089565b946020939093013593505050565b6000806000806000608086880312156122b957600080fd5b6122c286612089565b94506122d060208701612089565b935060408601359250606086013567ffffffffffffffff808211156122f457600080fd5b818801915088601f83011261230857600080fd5b81358181111561231757600080fd5b89602082850101111561232957600080fd5b9699959850939650602001949392505050565b60008060006060848603121561235157600080fd5b61235a84612089565b925061236860208501612089565b9150604084013590509250925092565b60006020828403121561238a57600080fd5b813567ffffffffffffffff8111156123a157600080fd5b61154f848285016120ec565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561240257603f198886030184526123f085835161221f565b945092850192908501906001016123d4565b5092979650505050505050565b60006060828403121561242157600080fd5b8260608301111561243157600080fd5b50919050565b60006020828403121561244957600080fd5b61121082612089565b600067ffffffffffffffff83111561246c5761246c6120a5565b61247f601f8401601f19166020016120bb565b905082815283838301111561249357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156124bc57600080fd5b813567ffffffffffffffff8111156124d357600080fd5b8201601f810184136124e457600080fd5b61154f84823560208401612452565b6000806020838503121561250657600080fd5b823567ffffffffffffffff8082111561251e57600080fd5b818501915085601f83011261253257600080fd5b81358181111561254157600080fd5b8660208260051b850101111561255657600080fd5b60209290920196919550909350505050565b60006040828403121561257a57600080fd5b8260408301111561243157600080fd5b8015158114610a2d57600080fd5b600080604083850312156125ab57600080fd5b6125b483612089565b915060208301356125c48161258a565b809150509250929050565b600080600080608085870312156125e557600080fd5b6125ee85612089565b93506125fc60208601612089565b925060408501359150606085013567ffffffffffffffff81111561261f57600080fd5b8501601f8101871361263057600080fd5b61263f87823560208401612452565b91505092959194509250565b6000806040838503121561265e57600080fd5b61266783612089565b915061267560208401612089565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016126bc576126bc612694565b5060010190565b600181811c908216806126d757607f821691505b60208210810361243157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600081600019048311821515161561272757612727612694565b500290565b6000835161273e8184602088016121f3565b8351908301906127528183602088016121f3565b01949350505050565b60008282101561276d5761276d612694565b500390565b6000821982111561278557612785612694565b500190565b60006020828403121561279c57600080fd5b5051919050565b6000602082840312156127b557600080fd5b81516112108161258a565b6000826127cf576127cf6126f7565b500490565b6000826127e3576127e36126f7565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261281a608083018461221f565b9695505050505050565b60006020828403121561283657600080fd5b81516112108161205656fea264697066735822122013fc52aebb70e33f99b3a012cdf5fb4c2f71fa850c3f4d6f9442deb5e38288cf64736f6c634300080d0033697066733a2f2f516d4e79615552666e507459517a4465706545464c44785457644a48585242503337487778794a5576674d536d332f0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea9563000000000000000000000000726516b20c4692a6bea3900971a37e0ccf7a6bff
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102775760003560e01c80635e1bef321161016057806395d89b41116100d8578063c87b56dd1161008c578063e3a9db1a11610071578063e3a9db1a14610596578063e985e9c5146105a9578063f2fde38b146105e557600080fd5b8063c87b56dd14610570578063d1941b061461058357600080fd5b80639a70c540116100bd5780639a70c5401461053c578063a22cb4651461054f578063b88d4fde1461055d57600080fd5b806395d89b4114610521578063983d95ce1461052957600080fd5b806370a082311161012f57806374e10e3f1161011457806374e10e3f146104f45780638da5cb5b146105075780639276760c1461051857600080fd5b806370a08231146104d9578063715018a6146104ec57600080fd5b80635e1bef32146104645780635eac6239146104a05780636352211e146104b3578063709d8f02146104c657600080fd5b8063276184ae116101f357806342842e0e116101c25780634a39fa80116101a75780634a39fa801461042b57806355f804b31461043e578063598b8e711461045157600080fd5b806342842e0e14610405578063472c0cac1461041857600080fd5b8063276184ae146103ac5780632764c427146103bf578063315a095d146103d2578063335e15a2146103e557600080fd5b8063095ea7b31161024a5780631852e8d91161022f5780631852e8d9146103515780632352a8641461037257806323b872dd1461039957600080fd5b8063095ea7b314610304578063150b7a021461031957600080fd5b806301ffc9a71461027c578063068c526f146102a457806306fdde03146102c4578063081812fc146102d9575b600080fd5b61028f61028a36600461206c565b6105f8565b60405190151581526020015b60405180910390f35b6102b76102b2366004612161565b61064a565b60405161029b91906121af565b6102cc6106f7565b60405161029b919061224b565b6102ec6102e736600461225e565b610789565b6040516001600160a01b03909116815260200161029b565b610317610312366004612277565b610823565b005b6103386103273660046122a1565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161029b565b61036461035f366004612277565b61083c565b60405190815260200161029b565b6102ec7f0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea956381565b6103176103a736600461233c565b610926565b6008546102ec906001600160a01b031681565b6103646103cd36600461225e565b6109b2565b6103176103e036600461225e565b6109c9565b6103f86103f3366004612378565b610a30565b60405161029b91906123ad565b61031761041336600461233c565b610b1d565b61031761042636600461240f565b610b38565b610317610439366004612437565b610ba3565b61031761044c3660046124aa565b610c1f565b61031761045f3660046124f3565b610c8c565b61048b61047236600461225e565b600f602052600090815260409020805460019091015482565b6040805192835260208301919091520161029b565b6103176104ae3660046124f3565b610d7a565b6102ec6104c136600461225e565b610dfb565b6103646104d436600461225e565b610e86565b6103646104e7366004612437565b610e96565b610317610f30565b61031761050236600461225e565b610f96565b6006546001600160a01b03166102ec565b610364600c5481565b6102cc611016565b6103176105373660046124f3565b611025565b61031761054a366004612568565b611039565b610317610312366004612598565b61031761056b3660046125cf565b6110a0565b6102cc61057e36600461225e565b61112e565b6103176105913660046124f3565b61102f565b6102b76105a4366004612437565b611217565b61028f6105b736600461264b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103176105f3366004612437565b6112ed565b60006001600160e01b031982166380ac58cd60e01b148061062957506001600160e01b03198216635b5e139f60e01b145b8061064457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060815167ffffffffffffffff811115610666576106666120a5565b60405190808252806020026020018201604052801561068f578160200160208202803683370190505b50905060005b82518110156106f0576106c1848483815181106106b4576106b461267e565b602002602001015161083c565b8282815181106106d3576106d361267e565b6020908102919091010152806106e8816126aa565b915050610695565b5092915050565b606060008054610706906126c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610732906126c3565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108075760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60405163595162dd60e01b815260040160405180910390fd5b6000818152600260205260408120546001600160a01b031661087457604051631e97bf7b60e11b8152600481018390526024016107fe565b826001600160a01b031661088783610dfb565b6001600160a01b0316146108b157604051632eda401960e21b8152600481018390526024016107fe565b600c546000838152600f60205260408120805460019091015490918342849003816108de576108de6126f7565b04905060006108ec826113cc565b90508383111561091b5760008585850381610909576109096126f7565b049050610915816113cc565b82039150505b979650505050505050565b6109303382611460565b6109a25760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107fe565b6109ad838383611557565b505050565b600d81600281106109c257600080fd5b0154905081565b6006546001600160a01b03163314610a235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610a2d3382611716565b50565b60606000825167ffffffffffffffff811115610a4e57610a4e6120a5565b604051908082528060200260200182016040528015610a8157816020015b6060815260200190600190039081610a6c5790505b50905060005b83518110156106f0576000848281518110610aa457610aa461267e565b6020908102919091018101516000818152600f8352604090819020805460019091015482519485018490529184015260608301529150608001604051602081830303815290604052838381518110610afe57610afe61267e565b6020026020010181905250508080610b15906126aa565b915050610a87565b6109ad838383604051806020016040528060008152506110a0565b6006546001600160a01b03163314610b925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610b9f6009826003611f62565b5050565b6006546001600160a01b03163314610bfd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610c795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b8051610b9f906007906020840190611fa0565b60005b818110156109ad576000838383818110610cab57610cab61267e565b602090810292909201356000818152600f909352604080842042905551635c46a7ef60e11b8152336004820152306024820152604481018290526080606482015260848101939093529250507f0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea95636001600160a01b03169063b88d4fde9060a401600060405180830381600087803b158015610d4557600080fd5b505af1158015610d59573d6000803e3d6000fd5b50505050610d673382611803565b5080610d72816126aa565b915050610c8f565b6000805b82811015610dd9576000848483818110610d9a57610d9a61267e565b905060200201359050610dad338261083c565b6000918252600f6020526040909120426001909101559091019080610dd1816126aa565b915050610d7e565b5080156109ad576109ad33610df683670de0b6b3a764000061270d565b611716565b6000818152600260205260408120546001600160a01b0316806106445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107fe565b600981600381106109c257600080fd5b60006001600160a01b038216610f145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107fe565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f8a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610f946000611951565b565b6006546001600160a01b03163314610ff05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b806000036110115760405163e320176b60e01b815260040160405180910390fd5b600c55565b606060018054610706906126c3565b61102f8282610d7a565b610b9f82826119a3565b6006546001600160a01b031633146110935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b610b9f600d826002612014565b6110aa3383611460565b61111c5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107fe565b61112884848484611af1565b50505050565b6000818152600260205260409020546060906001600160a01b03166111bb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016107fe565b60006111c5611b7a565b905060008151116111e55760405180602001604052806000815250611210565b806111ef84611b89565b60405160200161120092919061272c565b6040516020818303038152906040525b9392505050565b606060008061122584610e96565b905060008167ffffffffffffffff811115611242576112426120a5565b60405190808252806020026020018201604052801561126b578160200160208202803683370190505b50905060005b8284146112e4576000818152600260205260409020546001600160a01b0316156112dc57856001600160a01b03166112a882610dfb565b6001600160a01b0316036112dc57808285806001019650815181106112cf576112cf61267e565b6020026020010181815250505b600101611271565b50949350505050565b6006546001600160a01b031633146113475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fe565b6001600160a01b0381166113c35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fe565b610a2d81611951565b600b54600e546000919083106113ee57600e546113e9908461275b565b6113f1565b60005b6113fb919061270d565b600a54600d5461142890851061141d57600d54611418908661275b565b611420565b60005b600d54611ca2565b611432919061270d565b600954600d546114429086611ca2565b61144c919061270d565b6114569190612772565b6106449190612772565b6000818152600260205260408120546001600160a01b03166114d95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107fe565b60006114e483610dfb565b9050806001600160a01b0316846001600160a01b0316148061151f5750836001600160a01b031661151484610789565b6001600160a01b0316145b8061154f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661156a82610dfb565b6001600160a01b0316146115e65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b0382166116485760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107fe565b611653838383611cb8565b61165e600082611cf6565b6001600160a01b038316600090815260036020526040812080546001929061168790849061275b565b90915550506001600160a01b03821660009081526003602052604081208054600192906116b5908490612772565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6008546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611783919061278a565b90508082116109ad5760085460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af11580156117df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112891906127a3565b6001600160a01b0382166118595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107fe565b6000818152600260205260409020546001600160a01b0316156118be5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107fe565b6118ca60008383611cb8565b6001600160a01b03821660009081526003602052604081208054600192906118f3908490612772565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b818110156109ad5760008383838181106119c2576119c261267e565b9050602002013590506119ec816000908152600260205260409020546001600160a01b0316151590565b611a0c57604051631e97bf7b60e11b8152600481018290526024016107fe565b33611a1682610dfb565b6001600160a01b031614611a4057604051632eda401960e21b8152600481018290526024016107fe565b611a4981611d64565b604051635c46a7ef60e11b81523060048201523360248201526044810182905260806064820152600060848201527f0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea95636001600160a01b03169063b88d4fde9060a401600060405180830381600087803b158015611ac557600080fd5b505af1158015611ad9573d6000803e3d6000fd5b50505050508080611ae9906126aa565b9150506119a6565b611afc848484611557565b611b0884848484611e0b565b6111285760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107fe565b606060078054610706906126c3565b606081600003611bb05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bda5780611bc4816126aa565b9150611bd39050600a836127c0565b9150611bb4565b60008167ffffffffffffffff811115611bf557611bf56120a5565b6040519080825280601f01601f191660200182016040528015611c1f576020820181803683370190505b5090505b841561154f57611c3460018361275b565b9150611c41600a866127d4565b611c4c906030612772565b60f81b818381518110611c6157611c6161267e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c9b600a866127c0565b9450611c23565b6000818310611cb15781611210565b5090919050565b6001600160a01b03821615801590611cd857506001600160a01b03831615155b156109ad5760405163072b78c760e01b815260040160405180910390fd5b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d2b82610dfb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6f82610dfb565b9050611d7d81600084611cb8565b611d88600083611cf6565b6001600160a01b0381166000908152600360205260408120805460019290611db190849061275b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b15611f5757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611e4f9033908990889088906004016127e8565b6020604051808303816000875af1925050508015611e8a575060408051601f3d908101601f19168201909252611e8791810190612824565b60015b611f3d573d808015611eb8576040519150601f19603f3d011682016040523d82523d6000602084013e611ebd565b606091505b508051600003611f355760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107fe565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061154f565b506001949350505050565b8260038101928215611f90579160200282015b82811115611f90578235825591602001919060010190611f75565b50611f9c929150612041565b5090565b828054611fac906126c3565b90600052602060002090601f016020900481019282611fce5760008555611f90565b82601f10611fe757805160ff1916838001178555611f90565b82800160010185558215611f90579182015b82811115611f90578251825591602001919060010190611ff9565b8260028101928215611f905791602002820182811115611f90578235825591602001919060010190611f75565b5b80821115611f9c5760008155600101612042565b6001600160e01b031981168114610a2d57600080fd5b60006020828403121561207e57600080fd5b813561121081612056565b80356001600160a01b03811681146120a057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156120e4576120e46120a5565b604052919050565b600082601f8301126120fd57600080fd5b8135602067ffffffffffffffff821115612119576121196120a5565b8160051b6121288282016120bb565b928352848101820192828101908785111561214257600080fd5b83870192505b8483101561091b57823582529183019190830190612148565b6000806040838503121561217457600080fd5b61217d83612089565b9150602083013567ffffffffffffffff81111561219957600080fd5b6121a5858286016120ec565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156121e7578351835292840192918401916001016121cb565b50909695505050505050565b60005b8381101561220e5781810151838201526020016121f6565b838111156111285750506000910152565b600081518084526122378160208601602086016121f3565b601f01601f19169290920160200192915050565b602081526000611210602083018461221f565b60006020828403121561227057600080fd5b5035919050565b6000806040838503121561228a57600080fd5b61229383612089565b946020939093013593505050565b6000806000806000608086880312156122b957600080fd5b6122c286612089565b94506122d060208701612089565b935060408601359250606086013567ffffffffffffffff808211156122f457600080fd5b818801915088601f83011261230857600080fd5b81358181111561231757600080fd5b89602082850101111561232957600080fd5b9699959850939650602001949392505050565b60008060006060848603121561235157600080fd5b61235a84612089565b925061236860208501612089565b9150604084013590509250925092565b60006020828403121561238a57600080fd5b813567ffffffffffffffff8111156123a157600080fd5b61154f848285016120ec565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561240257603f198886030184526123f085835161221f565b945092850192908501906001016123d4565b5092979650505050505050565b60006060828403121561242157600080fd5b8260608301111561243157600080fd5b50919050565b60006020828403121561244957600080fd5b61121082612089565b600067ffffffffffffffff83111561246c5761246c6120a5565b61247f601f8401601f19166020016120bb565b905082815283838301111561249357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156124bc57600080fd5b813567ffffffffffffffff8111156124d357600080fd5b8201601f810184136124e457600080fd5b61154f84823560208401612452565b6000806020838503121561250657600080fd5b823567ffffffffffffffff8082111561251e57600080fd5b818501915085601f83011261253257600080fd5b81358181111561254157600080fd5b8660208260051b850101111561255657600080fd5b60209290920196919550909350505050565b60006040828403121561257a57600080fd5b8260408301111561243157600080fd5b8015158114610a2d57600080fd5b600080604083850312156125ab57600080fd5b6125b483612089565b915060208301356125c48161258a565b809150509250929050565b600080600080608085870312156125e557600080fd5b6125ee85612089565b93506125fc60208601612089565b925060408501359150606085013567ffffffffffffffff81111561261f57600080fd5b8501601f8101871361263057600080fd5b61263f87823560208401612452565b91505092959194509250565b6000806040838503121561265e57600080fd5b61266783612089565b915061267560208401612089565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016126bc576126bc612694565b5060010190565b600181811c908216806126d757607f821691505b60208210810361243157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600081600019048311821515161561272757612727612694565b500290565b6000835161273e8184602088016121f3565b8351908301906127528183602088016121f3565b01949350505050565b60008282101561276d5761276d612694565b500390565b6000821982111561278557612785612694565b500190565b60006020828403121561279c57600080fd5b5051919050565b6000602082840312156127b557600080fd5b81516112108161258a565b6000826127cf576127cf6126f7565b500490565b6000826127e3576127e36126f7565b500690565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261281a608083018461221f565b9695505050505050565b60006020828403121561283657600080fd5b81516112108161205656fea264697066735822122013fc52aebb70e33f99b3a012cdf5fb4c2f71fa850c3f4d6f9442deb5e38288cf64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea9563000000000000000000000000726516b20c4692a6bea3900971a37e0ccf7a6bff
-----Decoded View---------------
Arg [0] : _erc721Address (address): 0x8c3FB10693B228E8b976FF33cE88f97Ce2EA9563
Arg [1] : _erc20Address (address): 0x726516B20c4692a6beA3900971a37e0cCf7A6BFf
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008c3fb10693b228e8b976ff33ce88f97ce2ea9563
Arg [1] : 000000000000000000000000726516b20c4692a6bea3900971a37e0ccf7a6bff
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.