Overview
APE Balance
0 APE
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60808060 | 1620209 | 33 days ago | IN | 0 APE | 0.01364943 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MinterAgent
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import {IMinterAgent} from "../interfaces/IMinterAgent.sol"; import {IERC1155Receiver} from "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; /// @title MinterAgent /// @notice Mints tokens on behalf of an account. Meant to be cloned from the UniversalMinter span the life of a transaction, and be selfdestructed contract MinterAgent is IMinterAgent, IERC1155Receiver, IERC721Receiver { address private owner; address private receiver; bytes4 constant ON_ERC1155_RECEIVED_HASH = IERC1155Receiver.onERC1155Received.selector; bytes4 constant ON_BATCH_ERC1155_RECEIVED_HASH = IERC1155Receiver.onERC1155BatchReceived.selector; bytes4 constant ON_ERC721_RECEIVED_HASH = IERC721Receiver.onERC721Received.selector; bytes constant emptyCalldata = ""; /// @notice Initialize the agent with the receiver /// @param _owner - the owner of this contract, and the only one that can invoke forwardCall. Typically the UniversalMinter /// @param _receiver - will be forwarded all tokens minted function initialize(address _owner, address _receiver) external { if (owner != address(0)) { revert ALREADY_INITIALIZED(); } owner = _owner; receiver = _receiver; } /// Receive ERC1155 tokens and forward them to the receiver function onERC1155Received(address, address, uint256 id, uint256 value, bytes calldata) external returns (bytes4) { IERC1155(msg.sender).safeTransferFrom(address(this), receiver, id, value, emptyCalldata); return ON_ERC1155_RECEIVED_HASH; } /// Receive ERC1155 tokens and forward them to the receiver function onERC1155BatchReceived(address, address, uint256[] calldata ids, uint256[] calldata values, bytes calldata) external returns (bytes4) { IERC1155(msg.sender).safeBatchTransferFrom(address(this), receiver, ids, values, emptyCalldata); return ON_BATCH_ERC1155_RECEIVED_HASH; } /// Receive ERC721 tokens and forward them to the receiver function onERC721Received(address, address, uint256 tokenId, bytes calldata) external returns (bytes4) { IERC721(msg.sender).safeTransferFrom(address(this), receiver, tokenId); return ON_ERC721_RECEIVED_HASH; } /// Calls a target contract from the agent. Used to call minting functions. Can be used to recover tokens or value locked at this address. /// Only callable by the owner, which should be the UniversalMinter /// @param _target target address /// @param _cd calldata to send to the target contract /// @param _value Value to send to the target contract /// @return success if call succeeded /// @return data data returned from call function forwardCall(address _target, bytes calldata _cd, uint256 _value) external payable returns (bool success, bytes memory data) { if (msg.sender != owner) { revert ONLY_OWNER(); } return _target.call{value: _value}(_cd); } bytes constant EMTPY_DATA = ""; function forwardCallBatch( address[] calldata _targets, bytes[] calldata _calldatas, uint256[] calldata _values ) external payable returns (bool success, bytes memory data) { if (msg.sender != owner) { revert ONLY_OWNER(); } uint256 targetsLength = _targets.length; if (targetsLength == 0 || targetsLength != _calldatas.length || targetsLength != _values.length) { revert ARRAY_LENGTH_MISMATCH(); } for (uint256 i = 0; i < targetsLength; i++) { // mint the fokens for each target contract. These will be transferred to the msg.caller. (success, data) = _targets[i].call{value: _values[i]}(_calldatas[i]); // if any call fails, return false and the data from the failed call if (!success) { return (false, data); } } // if all calls succeeded, return true and the data from the last call success = true; data = EMTPY_DATA; } /// Needed to support the interface for the receiver function supportsInterface(bytes4 interfaceId) public pure override returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || interfaceId == type(IERC721).interfaceId; } /// If for whatever reason this contract receives ETH (i.e. in the case of a refund to a minter agent) - just forward it back to the receiver receive() external payable { (bool success, ) = payable(receiver).call{value: msg.value}(""); if (!success) revert("Failed to send"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; interface IMinterAgent { error ALREADY_INITIALIZED(); error ONLY_OWNER(); error ARRAY_LENGTH_MISMATCH(); function initialize(address _owner, address _receiver) external; function forwardCall(address _target, bytes calldata _cd, uint256 _value) external payable returns (bool success, bytes memory data); function forwardCallBatch( address[] calldata _targets, bytes[] calldata _calldatas, uint256[] calldata _values ) external payable returns (bool success, bytes memory data); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// 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.9.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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 (last updated v4.9.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: 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); }
{ "remappings": [ "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "erc721a-upgradeable/=lib/ERC721A-Upgradeable/contracts/", "forge-std/=lib/forge-std/src/", "ERC721A-Upgradeable/=lib/ERC721A-Upgradeable/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"ALREADY_INITIALIZED","type":"error"},{"inputs":[],"name":"ARRAY_LENGTH_MISMATCH","type":"error"},{"inputs":[],"name":"ONLY_OWNER","type":"error"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_cd","type":"bytes"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"forwardCall","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_targets","type":"address[]"},{"internalType":"bytes[]","name":"_calldatas","type":"bytes[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"forwardCallBatch","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608080604052346015576108bc908161001b8239f35b600080fdfe608060409080825260049081361015610076575b50361561001f57600080fd5b600080808060018060a01b036001541634905af161003b6106d5565b501561004357005b6020606492519162461bcd60e51b8352820152600e60248201526d11985a5b1959081d1bc81cd95b9960921b6044820152fd5b600090813560e01c90816301ffc9a71461052957508063150b7a021461047b578063485cc955146104095780638363da7214610383578063bc197c811461024c578063c0951d6b146101bc5763f23a6e6103610013579190346101b45760a03660031901126101b4576100e761057d565b506100f0610598565b5060843567ffffffffffffffff81116101b85761011090369083016105ae565b505060015482519184916001600160a01b03169061012d84610693565b828452333b156101b45761017685519485938493637921219560e11b8552309085015260248401526044356044840152606435606484015260a0608484015260a483019061060d565b038183335af180156101a85760209350610199575b505163f23a6e6160e01b8152f35b6101a290610669565b3861018b565b505051903d90823e3d90fd5b8280fd5b8380fd5b5082906060366003190112610249576101d361057d565b60243567ffffffffffffffff81116101b4576101f290369086016105ae565b83549091906001600160a01b031633036102395784955081849551928392833781018481520391604435905af161023561022a6106d5565b92519283928361064d565b0390f35b845163d238ed5960e01b81528690fd5b80fd5b509190346101b4578260031960a03682011261037f5761026a61057d565b50610273610598565b5067ffffffffffffffff926044358481116101b85761029590369083016105dc565b94909260643582811161037b576102af90369085016105dc565b92608435908111610377576102c790369086016105ae565b505060018060a01b0360015416948851916102e183610693565b878352333b156103735761034194610322610332938c519b8c9a8b9a631759616b60e11b8c5230908c015260248b015260a060448b015260a48a0191610862565b9185888403016064890152610862565b9184830301608485015261060d565b038183335af180156101a85760209350610364575b505163bc197c8160e01b8152f35b61036d90610669565b38610356565b8780fd5b8680fd5b8580fd5b5080fd5b50919060603660031901126101b45767ffffffffffffffff8135818111610405576103b190369084016105dc565b9490926024358381116101b4576103cb90369083016105dc565b9390926044359182116102495750916103f06102359794926103f896943691016105dc565b949093610720565b929091519283928361064d565b8480fd5b50823461037f578060031936011261037f5761042361057d565b61042b610598565b83546001600160a01b03939192909184831661046c5750839495506bffffffffffffffffffffffff60a01b9485911691161784551690600154161760015580f35b5163439a74c960e01b81528690fd5b509190346101b45760803660031901126101b45761049761057d565b506104a0610598565b5060643567ffffffffffffffff81116101b8576104c090369083016105ae565b50506001546001600160a01b0316333b156101b857825191632142170760e11b8352309083015260248201526044356044820152828160648183335af180156101a8576020935061051a575b5051630a85bd0160e11b8152f35b61052390610669565b3861050c565b905082346101b45760203660031901126101b4573563ffffffff60e01b81168091036101b45760209250630271189760e51b811490811561056c575b5015158152f35b6380ac58cd60e01b14905083610565565b600435906001600160a01b038216820361059357565b600080fd5b602435906001600160a01b038216820361059357565b9181601f840112156105935782359167ffffffffffffffff8311610593576020838186019501011161059357565b9181601f840112156105935782359167ffffffffffffffff8311610593576020808501948460051b01011161059357565b919082519283825260005b848110610639575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610618565b604090610666939215158152816020820152019061060d565b90565b67ffffffffffffffff811161067d57604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761067d57604052565b91908110156106bf5760051b0190565b634e487b7160e01b600052603260045260246000fd5b3d1561071b5767ffffffffffffffff903d82811161067d5760405192601f8201601f19908116603f011684019081118482101761067d5760405282523d6000602084013e565b606090565b600080549097919691956001600160a01b0394939091851633036108505780158015610846575b801561083c575b61082a57885b818110610779575050505050505090506001916040519061077482610693565b815290565b61078481838b6106af565b358681168103610826576107998286866106af565b35908883101561081257908b918360051b880135601e19893603018112156101b857880180359067ffffffffffffffff821161040557602001928136038413610405578493826040519384928337810185815203925af16107f86106d5565b90156108075750600101610754565b985050505050505050565b634e487b7160e01b8c52603260045260248cfd5b8a80fd5b604051634456f5e960e11b8152600490fd5b508281141561074e565b5085811415610747565b60405163d238ed5960e01b8152600490fd5b81835290916001600160fb1b0383116105935760209260051b80928483013701019056fea26469706673582212204f838d20e1bbad67690b51ed13b9571818dbf746a98d165a54ddb3f4c3d0857d64736f6c63430008190033
Deployed Bytecode
0x608060409080825260049081361015610076575b50361561001f57600080fd5b600080808060018060a01b036001541634905af161003b6106d5565b501561004357005b6020606492519162461bcd60e51b8352820152600e60248201526d11985a5b1959081d1bc81cd95b9960921b6044820152fd5b600090813560e01c90816301ffc9a71461052957508063150b7a021461047b578063485cc955146104095780638363da7214610383578063bc197c811461024c578063c0951d6b146101bc5763f23a6e6103610013579190346101b45760a03660031901126101b4576100e761057d565b506100f0610598565b5060843567ffffffffffffffff81116101b85761011090369083016105ae565b505060015482519184916001600160a01b03169061012d84610693565b828452333b156101b45761017685519485938493637921219560e11b8552309085015260248401526044356044840152606435606484015260a0608484015260a483019061060d565b038183335af180156101a85760209350610199575b505163f23a6e6160e01b8152f35b6101a290610669565b3861018b565b505051903d90823e3d90fd5b8280fd5b8380fd5b5082906060366003190112610249576101d361057d565b60243567ffffffffffffffff81116101b4576101f290369086016105ae565b83549091906001600160a01b031633036102395784955081849551928392833781018481520391604435905af161023561022a6106d5565b92519283928361064d565b0390f35b845163d238ed5960e01b81528690fd5b80fd5b509190346101b4578260031960a03682011261037f5761026a61057d565b50610273610598565b5067ffffffffffffffff926044358481116101b85761029590369083016105dc565b94909260643582811161037b576102af90369085016105dc565b92608435908111610377576102c790369086016105ae565b505060018060a01b0360015416948851916102e183610693565b878352333b156103735761034194610322610332938c519b8c9a8b9a631759616b60e11b8c5230908c015260248b015260a060448b015260a48a0191610862565b9185888403016064890152610862565b9184830301608485015261060d565b038183335af180156101a85760209350610364575b505163bc197c8160e01b8152f35b61036d90610669565b38610356565b8780fd5b8680fd5b8580fd5b5080fd5b50919060603660031901126101b45767ffffffffffffffff8135818111610405576103b190369084016105dc565b9490926024358381116101b4576103cb90369083016105dc565b9390926044359182116102495750916103f06102359794926103f896943691016105dc565b949093610720565b929091519283928361064d565b8480fd5b50823461037f578060031936011261037f5761042361057d565b61042b610598565b83546001600160a01b03939192909184831661046c5750839495506bffffffffffffffffffffffff60a01b9485911691161784551690600154161760015580f35b5163439a74c960e01b81528690fd5b509190346101b45760803660031901126101b45761049761057d565b506104a0610598565b5060643567ffffffffffffffff81116101b8576104c090369083016105ae565b50506001546001600160a01b0316333b156101b857825191632142170760e11b8352309083015260248201526044356044820152828160648183335af180156101a8576020935061051a575b5051630a85bd0160e11b8152f35b61052390610669565b3861050c565b905082346101b45760203660031901126101b4573563ffffffff60e01b81168091036101b45760209250630271189760e51b811490811561056c575b5015158152f35b6380ac58cd60e01b14905083610565565b600435906001600160a01b038216820361059357565b600080fd5b602435906001600160a01b038216820361059357565b9181601f840112156105935782359167ffffffffffffffff8311610593576020838186019501011161059357565b9181601f840112156105935782359167ffffffffffffffff8311610593576020808501948460051b01011161059357565b919082519283825260005b848110610639575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610618565b604090610666939215158152816020820152019061060d565b90565b67ffffffffffffffff811161067d57604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761067d57604052565b91908110156106bf5760051b0190565b634e487b7160e01b600052603260045260246000fd5b3d1561071b5767ffffffffffffffff903d82811161067d5760405192601f8201601f19908116603f011684019081118482101761067d5760405282523d6000602084013e565b606090565b600080549097919691956001600160a01b0394939091851633036108505780158015610846575b801561083c575b61082a57885b818110610779575050505050505090506001916040519061077482610693565b815290565b61078481838b6106af565b358681168103610826576107998286866106af565b35908883101561081257908b918360051b880135601e19893603018112156101b857880180359067ffffffffffffffff821161040557602001928136038413610405578493826040519384928337810185815203925af16107f86106d5565b90156108075750600101610754565b985050505050505050565b634e487b7160e01b8c52603260045260248cfd5b8a80fd5b604051634456f5e960e11b8152600490fd5b508281141561074e565b5085811415610747565b60405163d238ed5960e01b8152600490fd5b81835290916001600160fb1b0383116105935760209260051b80928483013701019056fea26469706673582212204f838d20e1bbad67690b51ed13b9571818dbf746a98d165a54ddb3f4c3d0857d64736f6c63430008190033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.