Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 938 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 16326651 | 735 days ago | IN | 0 ETH | 0.00259766 | ||||
Unstake | 16306272 | 738 days ago | IN | 0 ETH | 0.00703698 | ||||
Unstake | 16290169 | 740 days ago | IN | 0 ETH | 0.00294158 | ||||
Unstake | 16208201 | 751 days ago | IN | 0 ETH | 0.00263991 | ||||
Unstake | 16183667 | 755 days ago | IN | 0 ETH | 0.00617 | ||||
Unstake | 16159095 | 758 days ago | IN | 0 ETH | 0.00234206 | ||||
Unstake | 16158523 | 758 days ago | IN | 0 ETH | 0.00261059 | ||||
Unstake | 16157032 | 758 days ago | IN | 0 ETH | 0.00257769 | ||||
Unstake | 16156103 | 758 days ago | IN | 0 ETH | 0.00507987 | ||||
Unstake | 16156050 | 758 days ago | IN | 0 ETH | 0.00254828 | ||||
Unstake | 16153649 | 759 days ago | IN | 0 ETH | 0.00272599 | ||||
Unstake | 16078884 | 769 days ago | IN | 0 ETH | 0.00226351 | ||||
Unstake | 16073216 | 770 days ago | IN | 0 ETH | 0.00180048 | ||||
Unstake | 16073213 | 770 days ago | IN | 0 ETH | 0.00169176 | ||||
Unstake | 16061825 | 772 days ago | IN | 0 ETH | 0.00261163 | ||||
Unstake | 16061099 | 772 days ago | IN | 0 ETH | 0.00262643 | ||||
Unstake | 16056783 | 772 days ago | IN | 0 ETH | 0.00179316 | ||||
Unstake | 16052322 | 773 days ago | IN | 0 ETH | 0.00198596 | ||||
Unstake | 16045621 | 774 days ago | IN | 0 ETH | 0.00458892 | ||||
Stake | 16045002 | 774 days ago | IN | 0 ETH | 0.00189516 | ||||
Stake | 16033709 | 776 days ago | IN | 0 ETH | 0.00425247 | ||||
Unstake | 16026237 | 777 days ago | IN | 0 ETH | 0.00193123 | ||||
Stake | 16018202 | 778 days ago | IN | 0 ETH | 0.00238206 | ||||
Unstake | 16018178 | 778 days ago | IN | 0 ETH | 0.00193086 | ||||
Stake | 16018130 | 778 days ago | IN | 0 ETH | 0.00263284 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PepeStaking
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./CollaborativeOwnable.sol"; import "./IFliesToken.sol"; contract PepeStaking is Pausable, IERC721Receiver, CollaborativeOwnable { using SafeMath for uint256; using Address for address; using Strings for uint256; address public pepeContractAddress = address(0); address public fliesContractAddress = address(0); uint256 public totalStaked = 0; struct WalletInfo { uint256[] stakedTokenIds; } mapping(address => WalletInfo) internal walletInfo; constructor() { _pause(); } function stake(uint256[] calldata _tokenIds) external { require(!paused(), "paused"); require(pepeContractAddress != address(0), "contract"); WalletInfo storage wallet = walletInfo[_msgSender()]; for (uint32 i = 0; i < _tokenIds.length; i++) { wallet.stakedTokenIds.push(_tokenIds[i]); } for (uint256 i = 0; i < _tokenIds.length; i++) { IERC721(pepeContractAddress).transferFrom(_msgSender(), address(this), _tokenIds[i]); } totalStaked += _tokenIds.length; onStake(_msgSender(), _tokenIds); } function unstake(uint256[] calldata _tokenIds) external { require(!paused(), "paused"); require(pepeContractAddress != address(0), "contract"); WalletInfo storage wallet = walletInfo[_msgSender()]; for (uint32 i = 0; i < _tokenIds.length; i++) { uint256 index = arrayIndexOf(wallet.stakedTokenIds, _tokenIds[i]); require(index < wallet.stakedTokenIds.length, "owner"); wallet.stakedTokenIds[index] = wallet.stakedTokenIds[wallet.stakedTokenIds.length - 1]; wallet.stakedTokenIds.pop(); } for (uint256 i = 0; i < _tokenIds.length; i++) { IERC721(pepeContractAddress).transferFrom(address(this), _msgSender(), _tokenIds[i]); } totalStaked -= _tokenIds.length; onUnstake(_msgSender(), _tokenIds); } function stakedTokensOfOwner(address owner) external view returns (uint256[] memory) { uint256[] memory stakedGenesis = walletInfo[owner].stakedTokenIds; return stakedGenesis; } /// For Collab.land to give a role based on staking status function balanceOf(address _ownerowner) public view returns (uint256) { uint256[] memory stakedTokenIds = walletInfo[_ownerowner].stakedTokenIds; return stakedTokenIds.length; } // Override ERC721 function onERC721Received( address operator, address from, uint256 id, bytes calldata data ) external returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } // // Internal // function onStake(address _owner, uint256[] memory _tokenIds) internal { if (fliesContractAddress != address(0)) { IFliesToken(fliesContractAddress).onStakeEvent(_owner, _tokenIds); } } function onUnstake(address _owner, uint256[] memory _tokenIds) internal { if (fliesContractAddress != address(0)) { IFliesToken(fliesContractAddress).onUnstakeEvent(_owner, _tokenIds); } } function arrayIndexOf(uint256[] memory _array, uint256 _item) pure internal returns (uint256) { for (uint256 i = 0; i < _array.length; i++) { if (_array[i] == _item) { return i; } } return _array.length; } // // Collaborator Access // function setPepeContractAddress(address _pepeContractAddress) external onlyCollaborator { pepeContractAddress = _pepeContractAddress; } function setFliesContractAddress(address _fliesContractAddress) external onlyCollaborator { fliesContractAddress = _fliesContractAddress; } function pause() external onlyCollaborator { _pause(); } function unpause() external onlyCollaborator { _unpause(); } function emergencyUnstake(address _owner, bool _suppressMessage) external onlyCollaborator { WalletInfo storage wallet = walletInfo[_owner]; for (uint256 i = 0; i < wallet.stakedTokenIds.length; i++) { IERC721(pepeContractAddress).transferFrom(address(this), _owner, wallet.stakedTokenIds[i]); } if (!_suppressMessage) { onUnstake(_owner, wallet.stakedTokenIds); } totalStaked -= wallet.stakedTokenIds.length; while (wallet.stakedTokenIds.length > 0) { wallet.stakedTokenIds.pop(); } } // // Owner Access // function emergencyTransfer(address _owner, uint256[] calldata _tokenIds) external onlyOwner { for (uint256 i = 0; i < _tokenIds.length; i++) { IERC721(pepeContractAddress).transferFrom(address(this), _owner, _tokenIds[i]); } } function updateWalletInfo(address _addr, uint256[] calldata _stakedTokenIds) external onlyOwner { WalletInfo storage wallet = walletInfo[_addr]; wallet.stakedTokenIds = _stakedTokenIds; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IFliesToken { function onStakeEvent(address addr, uint256[] calldata tokenIds) external; function onUnstakeEvent(address addr, uint256[] calldata tokenIds) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract CollaborativeOwnable is Ownable { using Address for address; mapping(address => bool) private _collaborators; uint256 private _collaboratorCount; constructor() { } function isCollaborator(address collaboratorAddress) public view virtual returns (bool) { return _collaborators[collaboratorAddress]; } modifier onlyCollaborator() { require(owner() == _msgSender() || _collaborators[_msgSender()], "CO1"); _; } function addCollaborator(address collaboratorAddress) public onlyCollaborator { require(collaboratorAddress != address(0), "CO2"); require(!_collaborators[collaboratorAddress], "CO3"); _collaborators[collaboratorAddress] = true; _collaboratorCount++; } function removeCollaborator(address collaboratorAddress) public onlyCollaborator { require(collaboratorAddress != address(0), "CO4"); require(_collaborators[collaboratorAddress], "CO4"); require(_collaboratorCount > 1, "CO4"); _collaborators[collaboratorAddress] = false; _collaboratorCount--; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 (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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"addCollaborator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ownerowner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"emergencyTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"bool","name":"_suppressMessage","type":"bool"}],"name":"emergencyUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fliesContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"isCollaborator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pepeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"removeCollaborator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fliesContractAddress","type":"address"}],"name":"setFliesContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pepeContractAddress","type":"address"}],"name":"setPepeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"stakedTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256[]","name":"_stakedTokenIds","type":"uint256[]"}],"name":"updateWalletInfo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600380546001600160a01b031990811690915560048054909116905560006005553480156200003257600080fd5b506000805460ff19169055620000483362000058565b62000052620000b1565b6200014f565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff1615620000fc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001323390565b6040516001600160a01b03909116815260200160405180910390a1565b611ec1806200015f6000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063c9c5c0b31161008c578063e449f34111610066578063e449f341146103b6578063f2fde38b146103c9578063f8059ebc146103dc57600080fd5b8063c9c5c0b314610370578063ccdbe6a614610383578063da005acb1461039657600080fd5b80638456cb59116100bd5780638456cb59146103325780638da5cb5b1461033a5780638e5c4d671461035d57600080fd5b8063715018a614610321578063817b1cd21461032957600080fd5b80633316a4781161013a5780635c975abb116101145780635c975abb146102b05780636af8c4e7146102c757806370a082311461030057600080fd5b80633316a478146102435780633f4ba83a146102885780635887e3251461029057600080fd5b8063150b7a021161016b578063150b7a02146101af5780631c03c62d1461021d5780633109c19d1461023057600080fd5b80630ba4a076146101875780630fbf0a931461019c575b600080fd5b61019a610195366004611ade565b6103ef565b005b61019a6101aa366004611b4c565b6104c2565b6101e76101bd366004611b8e565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b61019a61022b366004611c29565b610729565b61019a61023e366004611ade565b610880565b6003546102639073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610214565b61019a610a92565b6102a361029e366004611ade565b610b23565b6040516102149190611cb7565b60005460ff165b6040519015158152602001610214565b6102b76102d5366004611ade565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b61031361030e366004611ade565b610b9c565b604051908152602001610214565b61019a610c14565b61031360055481565b61019a610c8b565b600054610100900473ffffffffffffffffffffffffffffffffffffffff16610263565b61019a61036b366004611ade565b610d1a565b61019a61037e366004611cca565b610de8565b61019a610391366004611ade565b61102e565b6004546102639073ffffffffffffffffffffffffffffffffffffffff1681565b61019a6103c4366004611b4c565b6111ec565b61019a6103d7366004611ade565b611552565b61019a6103ea366004611c29565b611654565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633148061042a57503360009081526001602052604090205460ff165b61047b5760405162461bcd60e51b815260206004820152600360248201527f434f31000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005460ff16156105155760405162461bcd60e51b815260206004820152600660248201527f70617573656400000000000000000000000000000000000000000000000000006044820152606401610472565b60035473ffffffffffffffffffffffffffffffffffffffff1661057a5760405162461bcd60e51b815260206004820152600860248201527f636f6e74726163740000000000000000000000000000000000000000000000006044820152606401610472565b336000908152600660205260408120905b63ffffffff81168311156105e65781848463ffffffff84168181106105b2576105b2611d06565b83546001810185556000948552602094859020919094029290920135919092015550806105de81611d64565b91505061058b565b5060005b828110156106cb5760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd333087878681811061062457610624611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156106a057600080fd5b505af11580156106b4573d6000803e3d6000fd5b5050505080806106c390611d88565b9150506105ea565b5082829050600560008282546106e19190611dc1565b909155506107249050338484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506116f892505050565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146107965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b60005b8181101561087a5760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd30868686868181106107d3576107d3611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561084f57600080fd5b505af1158015610863573d6000803e3d6000fd5b50505050808061087290611d88565b915050610799565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314806108bb57503360009081526001602052604090205460ff165b6109075760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811661096a5760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166109df5760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b600160025411610a315760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556002805491610a8a83611dd9565b919050555050565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610acd57503360009081526001602052604090205460ff165b610b195760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b610b216117a4565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320805482518185028101850190935280835260609493830182828015610b8f57602002820191906000526020600020905b815481526020019060010190808311610b7b575b5093979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832080548251818502810185019093528083528493830182828015610c0657602002820191906000526020600020905b815481526020019060010190808311610bf2575b505092519695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610c815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b610b21600061186b565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610cc657503360009081526001602052604090205460ff165b610d125760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b610b216118e8565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610d5557503360009081526001602052604090205460ff165b610da15760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610e2357503360009081526001602052604090205460ff165b610e6f5760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120905b8154811015610f8457600354825473ffffffffffffffffffffffffffffffffffffffff909116906323b872dd9030908790869086908110610ed957610ed9611d06565b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b158015610f5957600080fd5b505af1158015610f6d573d6000803e3d6000fd5b505050508080610f7c90611d88565b915050610e96565b5081610fe157805460408051602080840282018101909252828152610fe1928692859190830182828015610fd757602002820191906000526020600020905b815481526020019060010190808311610fc3575b505050505061198e565b805460058054600090610ff5908490611e0e565b90915550505b80541561072457805481908061101357611013611e25565b60019003818190600052602060002001600090559055610ffb565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633148061106957503360009081526001602052604090205460ff165b6110b55760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166111185760405162461bcd60e51b815260206004820152600360248201527f434f3200000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561118e5760405162461bcd60e51b815260206004820152600360248201527f434f3300000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160208190526040822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790556002805491610a8a83611d88565b60005460ff161561123f5760405162461bcd60e51b815260206004820152600660248201527f70617573656400000000000000000000000000000000000000000000000000006044820152606401610472565b60035473ffffffffffffffffffffffffffffffffffffffff166112a45760405162461bcd60e51b815260206004820152600860248201527f636f6e74726163740000000000000000000000000000000000000000000000006044820152606401610472565b336000908152600660205260408120905b63ffffffff81168311156114145781546040805160208084028201810190925282815260009261133a9286919083018282801561131157602002820191906000526020600020905b8154815260200190600101908083116112fd575b505050505086868563ffffffff1681811061132e5761132e611d06565b90506020020135611a03565b8354909150811061138d5760405162461bcd60e51b815260206004820152600560248201527f6f776e65720000000000000000000000000000000000000000000000000000006044820152606401610472565b8254839061139d90600190611e0e565b815481106113ad576113ad611d06565b90600052602060002001548360000182815481106113cd576113cd611d06565b60009182526020909120015582548390806113ea576113ea611e25565b6001900381819060005260206000200160009055905550808061140c90611d64565b9150506112b5565b5060005b828110156114f95760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd303387878681811061145257611452611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505080806114f190611d88565b915050611418565b50828290506005600082825461150f9190611e0e565b9091555061072490503384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061198e92505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146115bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166116485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610472565b6116518161186b565b50565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146116c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604090206116f1818484611a55565b5050505050565b60045473ffffffffffffffffffffffffffffffffffffffff16156117a057600480546040517feda24f3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169163eda24f3d9161176d918691869101611e54565b600060405180830381600087803b15801561178757600080fd5b505af115801561179b573d6000803e3d6000fd5b505050505b5050565b60005460ff166117f65760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610472565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff161561193b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610472565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118413390565b60045473ffffffffffffffffffffffffffffffffffffffff16156117a057600480546040517f0878a6c700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911691630878a6c79161176d918691869101611e54565b6000805b8351811015611a4a5782848281518110611a2357611a23611d06565b60200260200101511415611a38579050611a4f565b80611a4281611d88565b915050611a07565b505081515b92915050565b828054828255906000526020600020908101928215611a90579160200282015b82811115611a90578235825591602001919060010190611a75565b50611a9c929150611aa0565b5090565b5b80821115611a9c5760008155600101611aa1565b803573ffffffffffffffffffffffffffffffffffffffff81168114611ad957600080fd5b919050565b600060208284031215611af057600080fd5b611af982611ab5565b9392505050565b60008083601f840112611b1257600080fd5b50813567ffffffffffffffff811115611b2a57600080fd5b6020830191508360208260051b8501011115611b4557600080fd5b9250929050565b60008060208385031215611b5f57600080fd5b823567ffffffffffffffff811115611b7657600080fd5b611b8285828601611b00565b90969095509350505050565b600080600080600060808688031215611ba657600080fd5b611baf86611ab5565b9450611bbd60208701611ab5565b935060408601359250606086013567ffffffffffffffff80821115611be157600080fd5b818801915088601f830112611bf557600080fd5b813581811115611c0457600080fd5b896020828501011115611c1657600080fd5b9699959850939650602001949392505050565b600080600060408486031215611c3e57600080fd5b611c4784611ab5565b9250602084013567ffffffffffffffff811115611c6357600080fd5b611c6f86828701611b00565b9497909650939450505050565b600081518084526020808501945080840160005b83811015611cac57815187529582019590820190600101611c90565b509495945050505050565b602081526000611af96020830184611c7c565b60008060408385031215611cdd57600080fd5b611ce683611ab5565b915060208301358015158114611cfb57600080fd5b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600063ffffffff80831681811415611d7e57611d7e611d35565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611dba57611dba611d35565b5060010190565b60008219821115611dd457611dd4611d35565b500190565b600081611de857611de8611d35565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600082821015611e2057611e20611d35565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000611e836040830184611c7c565b94935050505056fea2646970667358221220fc768b92e2fac3ff47040d5ba31cd5ce06b33740bf2a18cbfe9b8ed8869ad8b264736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063c9c5c0b31161008c578063e449f34111610066578063e449f341146103b6578063f2fde38b146103c9578063f8059ebc146103dc57600080fd5b8063c9c5c0b314610370578063ccdbe6a614610383578063da005acb1461039657600080fd5b80638456cb59116100bd5780638456cb59146103325780638da5cb5b1461033a5780638e5c4d671461035d57600080fd5b8063715018a614610321578063817b1cd21461032957600080fd5b80633316a4781161013a5780635c975abb116101145780635c975abb146102b05780636af8c4e7146102c757806370a082311461030057600080fd5b80633316a478146102435780633f4ba83a146102885780635887e3251461029057600080fd5b8063150b7a021161016b578063150b7a02146101af5780631c03c62d1461021d5780633109c19d1461023057600080fd5b80630ba4a076146101875780630fbf0a931461019c575b600080fd5b61019a610195366004611ade565b6103ef565b005b61019a6101aa366004611b4c565b6104c2565b6101e76101bd366004611b8e565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b61019a61022b366004611c29565b610729565b61019a61023e366004611ade565b610880565b6003546102639073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610214565b61019a610a92565b6102a361029e366004611ade565b610b23565b6040516102149190611cb7565b60005460ff165b6040519015158152602001610214565b6102b76102d5366004611ade565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b61031361030e366004611ade565b610b9c565b604051908152602001610214565b61019a610c14565b61031360055481565b61019a610c8b565b600054610100900473ffffffffffffffffffffffffffffffffffffffff16610263565b61019a61036b366004611ade565b610d1a565b61019a61037e366004611cca565b610de8565b61019a610391366004611ade565b61102e565b6004546102639073ffffffffffffffffffffffffffffffffffffffff1681565b61019a6103c4366004611b4c565b6111ec565b61019a6103d7366004611ade565b611552565b61019a6103ea366004611c29565b611654565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633148061042a57503360009081526001602052604090205460ff165b61047b5760405162461bcd60e51b815260206004820152600360248201527f434f31000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005460ff16156105155760405162461bcd60e51b815260206004820152600660248201527f70617573656400000000000000000000000000000000000000000000000000006044820152606401610472565b60035473ffffffffffffffffffffffffffffffffffffffff1661057a5760405162461bcd60e51b815260206004820152600860248201527f636f6e74726163740000000000000000000000000000000000000000000000006044820152606401610472565b336000908152600660205260408120905b63ffffffff81168311156105e65781848463ffffffff84168181106105b2576105b2611d06565b83546001810185556000948552602094859020919094029290920135919092015550806105de81611d64565b91505061058b565b5060005b828110156106cb5760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd333087878681811061062457610624611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156106a057600080fd5b505af11580156106b4573d6000803e3d6000fd5b5050505080806106c390611d88565b9150506105ea565b5082829050600560008282546106e19190611dc1565b909155506107249050338484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506116f892505050565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146107965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b60005b8181101561087a5760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd30868686868181106107d3576107d3611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561084f57600080fd5b505af1158015610863573d6000803e3d6000fd5b50505050808061087290611d88565b915050610799565b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314806108bb57503360009081526001602052604090205460ff165b6109075760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811661096a5760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166109df5760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b600160025411610a315760405162461bcd60e51b815260206004820152600360248201527f434f3400000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556002805491610a8a83611dd9565b919050555050565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610acd57503360009081526001602052604090205460ff165b610b195760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b610b216117a4565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320805482518185028101850190935280835260609493830182828015610b8f57602002820191906000526020600020905b815481526020019060010190808311610b7b575b5093979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832080548251818502810185019093528083528493830182828015610c0657602002820191906000526020600020905b815481526020019060010190808311610bf2575b505092519695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610c815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b610b21600061186b565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610cc657503360009081526001602052604090205460ff165b610d125760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b610b216118e8565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610d5557503360009081526001602052604090205460ff165b610da15760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff61010090910416331480610e2357503360009081526001602052604090205460ff165b610e6f5760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660205260408120905b8154811015610f8457600354825473ffffffffffffffffffffffffffffffffffffffff909116906323b872dd9030908790869086908110610ed957610ed9611d06565b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b158015610f5957600080fd5b505af1158015610f6d573d6000803e3d6000fd5b505050508080610f7c90611d88565b915050610e96565b5081610fe157805460408051602080840282018101909252828152610fe1928692859190830182828015610fd757602002820191906000526020600020905b815481526020019060010190808311610fc3575b505050505061198e565b805460058054600090610ff5908490611e0e565b90915550505b80541561072457805481908061101357611013611e25565b60019003818190600052602060002001600090559055610ffb565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633148061106957503360009081526001602052604090205460ff165b6110b55760405162461bcd60e51b815260206004820152600360248201527f434f3100000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166111185760405162461bcd60e51b815260206004820152600360248201527f434f3200000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561118e5760405162461bcd60e51b815260206004820152600360248201527f434f3300000000000000000000000000000000000000000000000000000000006044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160208190526040822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690911790556002805491610a8a83611d88565b60005460ff161561123f5760405162461bcd60e51b815260206004820152600660248201527f70617573656400000000000000000000000000000000000000000000000000006044820152606401610472565b60035473ffffffffffffffffffffffffffffffffffffffff166112a45760405162461bcd60e51b815260206004820152600860248201527f636f6e74726163740000000000000000000000000000000000000000000000006044820152606401610472565b336000908152600660205260408120905b63ffffffff81168311156114145781546040805160208084028201810190925282815260009261133a9286919083018282801561131157602002820191906000526020600020905b8154815260200190600101908083116112fd575b505050505086868563ffffffff1681811061132e5761132e611d06565b90506020020135611a03565b8354909150811061138d5760405162461bcd60e51b815260206004820152600560248201527f6f776e65720000000000000000000000000000000000000000000000000000006044820152606401610472565b8254839061139d90600190611e0e565b815481106113ad576113ad611d06565b90600052602060002001548360000182815481106113cd576113cd611d06565b60009182526020909120015582548390806113ea576113ea611e25565b6001900381819060005260206000200160009055905550808061140c90611d64565b9150506112b5565b5060005b828110156114f95760035473ffffffffffffffffffffffffffffffffffffffff166323b872dd303387878681811061145257611452611d06565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b5050505080806114f190611d88565b915050611418565b50828290506005600082825461150f9190611e0e565b9091555061072490503384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061198e92505050565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146115bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff81166116485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610472565b6116518161186b565b50565b60005473ffffffffffffffffffffffffffffffffffffffff6101009091041633146116c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610472565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602052604090206116f1818484611a55565b5050505050565b60045473ffffffffffffffffffffffffffffffffffffffff16156117a057600480546040517feda24f3d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169163eda24f3d9161176d918691869101611e54565b600060405180830381600087803b15801561178757600080fd5b505af115801561179b573d6000803e3d6000fd5b505050505b5050565b60005460ff166117f65760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610472565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff161561193b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610472565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118413390565b60045473ffffffffffffffffffffffffffffffffffffffff16156117a057600480546040517f0878a6c700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911691630878a6c79161176d918691869101611e54565b6000805b8351811015611a4a5782848281518110611a2357611a23611d06565b60200260200101511415611a38579050611a4f565b80611a4281611d88565b915050611a07565b505081515b92915050565b828054828255906000526020600020908101928215611a90579160200282015b82811115611a90578235825591602001919060010190611a75565b50611a9c929150611aa0565b5090565b5b80821115611a9c5760008155600101611aa1565b803573ffffffffffffffffffffffffffffffffffffffff81168114611ad957600080fd5b919050565b600060208284031215611af057600080fd5b611af982611ab5565b9392505050565b60008083601f840112611b1257600080fd5b50813567ffffffffffffffff811115611b2a57600080fd5b6020830191508360208260051b8501011115611b4557600080fd5b9250929050565b60008060208385031215611b5f57600080fd5b823567ffffffffffffffff811115611b7657600080fd5b611b8285828601611b00565b90969095509350505050565b600080600080600060808688031215611ba657600080fd5b611baf86611ab5565b9450611bbd60208701611ab5565b935060408601359250606086013567ffffffffffffffff80821115611be157600080fd5b818801915088601f830112611bf557600080fd5b813581811115611c0457600080fd5b896020828501011115611c1657600080fd5b9699959850939650602001949392505050565b600080600060408486031215611c3e57600080fd5b611c4784611ab5565b9250602084013567ffffffffffffffff811115611c6357600080fd5b611c6f86828701611b00565b9497909650939450505050565b600081518084526020808501945080840160005b83811015611cac57815187529582019590820190600101611c90565b509495945050505050565b602081526000611af96020830184611c7c565b60008060408385031215611cdd57600080fd5b611ce683611ab5565b915060208301358015158114611cfb57600080fd5b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600063ffffffff80831681811415611d7e57611d7e611d35565b6001019392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611dba57611dba611d35565b5060010190565b60008219821115611dd457611dd4611d35565b500190565b600081611de857611de8611d35565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600082821015611e2057611e20611d35565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000611e836040830184611c7c565b94935050505056fea2646970667358221220fc768b92e2fac3ff47040d5ba31cd5ce06b33740bf2a18cbfe9b8ed8869ad8b264736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.