Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15743280 | 722 days ago | IN | 0 ETH | 0.01084269 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NFTransfersFeature
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 /* CopyrightCopyright 2022 Element.Market Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.8.13; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "../interfaces/INFTransfersFeature.sol"; contract NFTransfersFeature is INFTransfersFeature { using Address for address; function transferItems(address to, TransferItem[] calldata items) external override { transferItemsEx(to, items, false); } function transferERC721s(address to, address[] calldata tokens, uint256[][] calldata tokenIds) external override { transferERC721sEx(to, tokens, tokenIds, false); } function transferItemsEx(address to, TransferItem[] calldata items, bool revertIfIncomplete) public override { unchecked { bool someSuccess; if (to.isContract()) { for (uint256 i = 0; i < items.length; ++i) { TransferItem calldata item = items[i]; if (item.itemType == ItemType.ERC721) { require(item.amounts.length == 0, "require(item.amounts.length==0)"); address token = item.token; uint256[] calldata ids = item.ids; uint256 lengthIds = ids.length; for (uint256 j = 0; j < lengthIds; ++j) { if (_safeTransferERC721(token, to, ids[j])) { someSuccess = true; } else { if (revertIfIncomplete) { revert("_safeTransferERC721/TRANSFER_FAILED"); } } } } else if (item.itemType == ItemType.ERC1155) { try IERC1155(item.token).safeBatchTransferFrom(msg.sender, to, item.ids, item.amounts, "") { someSuccess = true; } catch { if (revertIfIncomplete) { revert("_safeBatchTransferERC1155/TRANSFER_FAILED"); } } } else { revert("INVALID_ITEM_TYPE"); } } } else { for (uint256 i = 0; i < items.length; ++i) { TransferItem calldata item = items[i]; if (item.itemType == ItemType.ERC721) { require(item.amounts.length == 0, "require(item.amounts.length==0)"); address token = item.token; uint256[] calldata ids = item.ids; uint256 lengthIds = ids.length; for (uint256 j = 0; j < lengthIds; ++j) { if (_transferERC721(token, to, ids[j])) { someSuccess = true; } else { if (revertIfIncomplete) { revert("_transferERC721/TRANSFER_FAILED"); } } } } else if (item.itemType == ItemType.ERC1155) { try IERC1155(item.token).safeBatchTransferFrom(msg.sender, to, item.ids, item.amounts, "") { someSuccess = true; } catch { if (revertIfIncomplete) { revert("_safeBatchTransferERC1155/TRANSFER_FAILED"); } } } else { revert("INVALID_ITEM_TYPE"); } } } require(someSuccess, "transferItemsEx failed."); } } function transferERC721sEx(address to, address[] calldata tokens, uint256[][] calldata tokenIds, bool revertIfIncomplete) public override { require(tokens.length == tokenIds.length, "transferERC721sEx/ARRAY_LENGTH_MISMATCH"); unchecked { bool someSuccess; if (to.isContract()) { for (uint256 i = 0; i < tokens.length; ++i) { address token = tokens[i]; uint256[] calldata ids = tokenIds[i]; uint256 lengthIds = ids.length; for (uint256 j = 0; j < lengthIds; ++j) { if (_safeTransferERC721(token, to, ids[j])) { someSuccess = true; } else { if (revertIfIncomplete) { revert("_safeTransferERC721/TRANSFER_FAILED"); } } } } } else { for (uint256 i = 0; i < tokens.length; ++i) { address token = tokens[i]; uint256[] calldata ids = tokenIds[i]; uint256 lengthIds = ids.length; for (uint256 j = 0; j < lengthIds; ++j) { if (_transferERC721(token, to, ids[j])) { someSuccess = true; } else { if (revertIfIncomplete) { revert("_transferERC721/TRANSFER_FAILED"); } } } } } require(someSuccess, "transferERC721sEx failed."); } } function _transferERC721(address token, address to, uint256 tokenId) internal returns (bool success) { assembly { let ptr := mload(0x40) // free memory pointer // selector for transferFrom(address,address,uint256) mstore(ptr, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(ptr, 0x04), caller()) mstore(add(ptr, 0x24), to) mstore(add(ptr, 0x44), tokenId) success := call(gas(), token, 0, ptr, 0x64, 0, 0) } } function _safeTransferERC721(address token, address to, uint256 tokenId) internal returns (bool success) { assembly { let ptr := mload(0x40) // free memory pointer // selector for safeTransferFrom(address,address,uint256) mstore(ptr, 0x42842e0e00000000000000000000000000000000000000000000000000000000) mstore(add(ptr, 0x04), caller()) mstore(add(ptr, 0x24), to) mstore(add(ptr, 0x44), tokenId) success := call(gas(), token, 0, ptr, 0x64, 0, 0) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-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.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: Apache-2.0 /* CopyrightCopyright 2022 Element.Market Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity ^0.8.13; interface INFTransfersFeature { enum ItemType { ERC721, ERC1155 } struct TransferItem { ItemType itemType; address token; uint256[] ids; uint256[] amounts; } function transferItems(address to, TransferItem[] calldata items) external; function transferERC721s(address to, address[] calldata tokens, uint256[][] calldata tokenIds) external; function transferItemsEx(address to, TransferItem[] calldata items, bool revertIfIncomplete) external; function transferERC721sEx(address to, address[] calldata tokens, uint256[][] calldata tokenIds, bool revertIfIncomplete) external; }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":"to","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[][]","name":"tokenIds","type":"uint256[][]"}],"name":"transferERC721s","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[][]","name":"tokenIds","type":"uint256[][]"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"name":"transferERC721sEx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"enum INFTransfersFeature.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"internalType":"struct INFTransfersFeature.TransferItem[]","name":"items","type":"tuple[]"}],"name":"transferItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"enum INFTransfersFeature.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"internalType":"struct INFTransfersFeature.TransferItem[]","name":"items","type":"tuple[]"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"name":"transferItemsEx","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50610d5d806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806338016acd1461005157806389d56c8414610066578063cc90769d14610079578063e8d7e9851461008c575b600080fd5b61006461005f366004610958565b61009f565b005b6100646100743660046109ab565b6100b1565b610064610087366004610a3c565b6100c7565b61006461009a366004610aa1565b6105f5565b6100ac83838360006100c7565b505050565b6100c0858585858560006105f5565b5050505050565b60006001600160a01b0385163b1561034d5760005b8381101561034757368585838181106100f7576100f7610b31565b90506020028101906101099190610b47565b9050600061011a6020830183610b7d565b600181111561012b5761012b610b67565b036102275761013d6060820182610ba5565b1590506101915760405162461bcd60e51b815260206004820152601f60248201527f72657175697265286974656d2e616d6f756e74732e6c656e6774683d3d30290060448201526064015b60405180910390fd5b60006101a36040830160208401610bef565b90503660006101b56040850185610ba5565b90925090508060005b8181101561021d576101e9858d8686858181106101dd576101dd610b31565b90506020020135610886565b156101f75760019750610215565b88156102155760405162461bcd60e51b815260040161018890610c0a565b6001016101be565b505050505061033e565b60016102366020830183610b7d565b600181111561024757610247610b67565b036103025761025c6040820160208301610bef565b6001600160a01b0316632eb2c2d633896102796040860186610ba5565b6102866060880188610ba5565b6040518763ffffffff1660e01b81526004016102a796959493929190610c7f565b600060405180830381600087803b1580156102c157600080fd5b505af19250505080156102d2575060015b6102f95783156102f45760405162461bcd60e51b815260040161018890610cde565b61033e565b6001925061033e565b60405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f4954454d5f5459504560781b6044820152606401610188565b506001016100dc565b506105a8565b60005b838110156105a6573685858381811061036b5761036b610b31565b905060200281019061037d9190610b47565b9050600061038e6020830183610b7d565b600181111561039f5761039f610b67565b036104c6576103b16060820182610ba5565b1590506104005760405162461bcd60e51b815260206004820152601f60248201527f72657175697265286974656d2e616d6f756e74732e6c656e6774683d3d3029006044820152606401610188565b60006104126040830160208401610bef565b90503660006104246040850185610ba5565b90925090508060005b818110156104bc57610458858d86868581811061044c5761044c610b31565b905060200201356108bb565b1561046657600197506104b4565b88156104b45760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665724552433732312f5452414e534645525f4641494c4544006044820152606401610188565b60010161042d565b505050505061059d565b60016104d56020830183610b7d565b60018111156104e6576104e6610b67565b03610302576104fb6040820160208301610bef565b6001600160a01b0316632eb2c2d633896105186040860186610ba5565b6105256060880188610ba5565b6040518763ffffffff1660e01b815260040161054696959493929190610c7f565b600060405180830381600087803b15801561056057600080fd5b505af1925050508015610571575060015b6105985783156105935760405162461bcd60e51b815260040161018890610cde565b61059d565b600192505b50600101610350565b505b806100c05760405162461bcd60e51b815260206004820152601760248201527f7472616e736665724974656d734578206661696c65642e0000000000000000006044820152606401610188565b8382146106545760405162461bcd60e51b815260206004820152602760248201527f7472616e736665724552433732317345782f41525241595f4c454e4754485f4d604482015266092a69a82a886960cb1b6064820152608401610188565b60006001600160a01b0387163b156107355760005b8581101561072f57600087878381811061068557610685610b31565b905060200201602081019061069a9190610bef565b90503660008787858181106106b1576106b1610b31565b90506020028101906106c39190610ba5565b90925090508060005b8181101561071f576106eb858e8686858181106101dd576101dd610b31565b156106f95760019650610717565b87156107175760405162461bcd60e51b815260040161018890610c0a565b6001016106cc565b5050505050806001019050610669565b50610830565b60005b8581101561082e57600087878381811061075457610754610b31565b90506020020160208101906107699190610bef565b905036600087878581811061078057610780610b31565b90506020028101906107929190610ba5565b90925090508060005b8181101561081e576107ba858e86868581811061044c5761044c610b31565b156107c85760019650610816565b87156108165760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665724552433732312f5452414e534645525f4641494c4544006044820152606401610188565b60010161079b565b5050505050806001019050610738565b505b8061087d5760405162461bcd60e51b815260206004820152601960248201527f7472616e73666572455243373231734578206661696c65642e000000000000006044820152606401610188565b50505050505050565b6000604051632142170760e11b81523360048201528360248201528260448201526000806064836000895af195945050505050565b60006040516323b872dd60e01b81523360048201528360248201528260448201526000806064836000895af195945050505050565b80356001600160a01b038116811461090757600080fd5b919050565b60008083601f84011261091e57600080fd5b50813567ffffffffffffffff81111561093657600080fd5b6020830191508360208260051b850101111561095157600080fd5b9250929050565b60008060006040848603121561096d57600080fd5b610976846108f0565b9250602084013567ffffffffffffffff81111561099257600080fd5b61099e8682870161090c565b9497909650939450505050565b6000806000806000606086880312156109c357600080fd5b6109cc866108f0565b9450602086013567ffffffffffffffff808211156109e957600080fd5b6109f589838a0161090c565b90965094506040880135915080821115610a0e57600080fd5b50610a1b8882890161090c565b969995985093965092949392505050565b8035801515811461090757600080fd5b60008060008060608587031215610a5257600080fd5b610a5b856108f0565b9350602085013567ffffffffffffffff811115610a7757600080fd5b610a838782880161090c565b9094509250610a96905060408601610a2c565b905092959194509250565b60008060008060008060808789031215610aba57600080fd5b610ac3876108f0565b9550602087013567ffffffffffffffff80821115610ae057600080fd5b610aec8a838b0161090c565b90975095506040890135915080821115610b0557600080fd5b50610b1289828a0161090c565b9094509250610b25905060608801610a2c565b90509295509295509295565b634e487b7160e01b600052603260045260246000fd5b60008235607e19833603018112610b5d57600080fd5b9190910192915050565b634e487b7160e01b600052602160045260246000fd5b600060208284031215610b8f57600080fd5b813560028110610b9e57600080fd5b9392505050565b6000808335601e19843603018112610bbc57600080fd5b83018035915067ffffffffffffffff821115610bd757600080fd5b6020019150600581901b360382131561095157600080fd5b600060208284031215610c0157600080fd5b610b9e826108f0565b60208082526023908201527f5f736166655472616e736665724552433732312f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b81835260006001600160fb1b03831115610c6657600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0387811682528616602082015260a060408201819052600090610cac9083018688610c4d565b8281036060840152610cbf818587610c4d565b8381036080909401939093525050600081526020019695505050505050565b60208082526029908201527f5f7361666542617463685472616e73666572455243313135352f5452414e5346604082015268115497d1905253115160ba1b60608201526080019056fea26469706673582212205f31af10abd933a085edc68aa7f2d25fd70aa6a9b74d62cb2ae90a3134afc39e64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806338016acd1461005157806389d56c8414610066578063cc90769d14610079578063e8d7e9851461008c575b600080fd5b61006461005f366004610958565b61009f565b005b6100646100743660046109ab565b6100b1565b610064610087366004610a3c565b6100c7565b61006461009a366004610aa1565b6105f5565b6100ac83838360006100c7565b505050565b6100c0858585858560006105f5565b5050505050565b60006001600160a01b0385163b1561034d5760005b8381101561034757368585838181106100f7576100f7610b31565b90506020028101906101099190610b47565b9050600061011a6020830183610b7d565b600181111561012b5761012b610b67565b036102275761013d6060820182610ba5565b1590506101915760405162461bcd60e51b815260206004820152601f60248201527f72657175697265286974656d2e616d6f756e74732e6c656e6774683d3d30290060448201526064015b60405180910390fd5b60006101a36040830160208401610bef565b90503660006101b56040850185610ba5565b90925090508060005b8181101561021d576101e9858d8686858181106101dd576101dd610b31565b90506020020135610886565b156101f75760019750610215565b88156102155760405162461bcd60e51b815260040161018890610c0a565b6001016101be565b505050505061033e565b60016102366020830183610b7d565b600181111561024757610247610b67565b036103025761025c6040820160208301610bef565b6001600160a01b0316632eb2c2d633896102796040860186610ba5565b6102866060880188610ba5565b6040518763ffffffff1660e01b81526004016102a796959493929190610c7f565b600060405180830381600087803b1580156102c157600080fd5b505af19250505080156102d2575060015b6102f95783156102f45760405162461bcd60e51b815260040161018890610cde565b61033e565b6001925061033e565b60405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f4954454d5f5459504560781b6044820152606401610188565b506001016100dc565b506105a8565b60005b838110156105a6573685858381811061036b5761036b610b31565b905060200281019061037d9190610b47565b9050600061038e6020830183610b7d565b600181111561039f5761039f610b67565b036104c6576103b16060820182610ba5565b1590506104005760405162461bcd60e51b815260206004820152601f60248201527f72657175697265286974656d2e616d6f756e74732e6c656e6774683d3d3029006044820152606401610188565b60006104126040830160208401610bef565b90503660006104246040850185610ba5565b90925090508060005b818110156104bc57610458858d86868581811061044c5761044c610b31565b905060200201356108bb565b1561046657600197506104b4565b88156104b45760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665724552433732312f5452414e534645525f4641494c4544006044820152606401610188565b60010161042d565b505050505061059d565b60016104d56020830183610b7d565b60018111156104e6576104e6610b67565b03610302576104fb6040820160208301610bef565b6001600160a01b0316632eb2c2d633896105186040860186610ba5565b6105256060880188610ba5565b6040518763ffffffff1660e01b815260040161054696959493929190610c7f565b600060405180830381600087803b15801561056057600080fd5b505af1925050508015610571575060015b6105985783156105935760405162461bcd60e51b815260040161018890610cde565b61059d565b600192505b50600101610350565b505b806100c05760405162461bcd60e51b815260206004820152601760248201527f7472616e736665724974656d734578206661696c65642e0000000000000000006044820152606401610188565b8382146106545760405162461bcd60e51b815260206004820152602760248201527f7472616e736665724552433732317345782f41525241595f4c454e4754485f4d604482015266092a69a82a886960cb1b6064820152608401610188565b60006001600160a01b0387163b156107355760005b8581101561072f57600087878381811061068557610685610b31565b905060200201602081019061069a9190610bef565b90503660008787858181106106b1576106b1610b31565b90506020028101906106c39190610ba5565b90925090508060005b8181101561071f576106eb858e8686858181106101dd576101dd610b31565b156106f95760019650610717565b87156107175760405162461bcd60e51b815260040161018890610c0a565b6001016106cc565b5050505050806001019050610669565b50610830565b60005b8581101561082e57600087878381811061075457610754610b31565b90506020020160208101906107699190610bef565b905036600087878581811061078057610780610b31565b90506020028101906107929190610ba5565b90925090508060005b8181101561081e576107ba858e86868581811061044c5761044c610b31565b156107c85760019650610816565b87156108165760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665724552433732312f5452414e534645525f4641494c4544006044820152606401610188565b60010161079b565b5050505050806001019050610738565b505b8061087d5760405162461bcd60e51b815260206004820152601960248201527f7472616e73666572455243373231734578206661696c65642e000000000000006044820152606401610188565b50505050505050565b6000604051632142170760e11b81523360048201528360248201528260448201526000806064836000895af195945050505050565b60006040516323b872dd60e01b81523360048201528360248201528260448201526000806064836000895af195945050505050565b80356001600160a01b038116811461090757600080fd5b919050565b60008083601f84011261091e57600080fd5b50813567ffffffffffffffff81111561093657600080fd5b6020830191508360208260051b850101111561095157600080fd5b9250929050565b60008060006040848603121561096d57600080fd5b610976846108f0565b9250602084013567ffffffffffffffff81111561099257600080fd5b61099e8682870161090c565b9497909650939450505050565b6000806000806000606086880312156109c357600080fd5b6109cc866108f0565b9450602086013567ffffffffffffffff808211156109e957600080fd5b6109f589838a0161090c565b90965094506040880135915080821115610a0e57600080fd5b50610a1b8882890161090c565b969995985093965092949392505050565b8035801515811461090757600080fd5b60008060008060608587031215610a5257600080fd5b610a5b856108f0565b9350602085013567ffffffffffffffff811115610a7757600080fd5b610a838782880161090c565b9094509250610a96905060408601610a2c565b905092959194509250565b60008060008060008060808789031215610aba57600080fd5b610ac3876108f0565b9550602087013567ffffffffffffffff80821115610ae057600080fd5b610aec8a838b0161090c565b90975095506040890135915080821115610b0557600080fd5b50610b1289828a0161090c565b9094509250610b25905060608801610a2c565b90509295509295509295565b634e487b7160e01b600052603260045260246000fd5b60008235607e19833603018112610b5d57600080fd5b9190910192915050565b634e487b7160e01b600052602160045260246000fd5b600060208284031215610b8f57600080fd5b813560028110610b9e57600080fd5b9392505050565b6000808335601e19843603018112610bbc57600080fd5b83018035915067ffffffffffffffff821115610bd757600080fd5b6020019150600581901b360382131561095157600080fd5b600060208284031215610c0157600080fd5b610b9e826108f0565b60208082526023908201527f5f736166655472616e736665724552433732312f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b81835260006001600160fb1b03831115610c6657600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0387811682528616602082015260a060408201819052600090610cac9083018688610c4d565b8281036060840152610cbf818587610c4d565b8381036080909401939093525050600081526020019695505050505050565b60208082526029908201527f5f7361666542617463685472616e73666572455243313135352f5452414e5346604082015268115497d1905253115160ba1b60608201526080019056fea26469706673582212205f31af10abd933a085edc68aa7f2d25fd70aa6a9b74d62cb2ae90a3134afc39e64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.