Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AirdropFlashLoanReceiver
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; import "../interfaces/IFlashLoanReceiver.sol"; import "../interfaces/IBNFT.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; contract AirdropFlashLoanReceiver is IFlashLoanReceiver, ERC721Holder, ERC1155Holder { address public immutable bnftRegistry; constructor(address bnftRegistry_) { bnftRegistry = bnftRegistry_; } struct ExecuteOperationLocalVars { uint256[] airdropTokenTypes; address[] airdropTokenAddresses; uint256[] airdropTokenIds; address airdropContract; bytes airdropParams; uint256 airdropBalance; uint256 airdropTokenId; } function executeOperation( address nftAsset, uint256[] calldata nftTokenIds, address initiator, address operator, bytes calldata params ) external override returns (bool) { ExecuteOperationLocalVars memory vars; require(nftTokenIds.length > 0, "empty token list"); // decode parameters ( vars.airdropTokenTypes, vars.airdropTokenAddresses, vars.airdropTokenIds, vars.airdropContract, vars.airdropParams ) = abi.decode(params, (uint256[], address[], uint256[], address, bytes)); require(vars.airdropTokenTypes.length > 0, "invalid airdrop token type"); require(vars.airdropTokenAddresses.length == vars.airdropTokenTypes.length, "invalid airdrop token address length"); require(vars.airdropTokenIds.length == vars.airdropTokenTypes.length, "invalid airdrop token id length"); require(vars.airdropContract != address(0), "invalid airdrop contract address"); require(vars.airdropParams.length >= 4, "invalid airdrop parameters"); // allow operator transfer borrowed nfts back to bnft IERC721(nftAsset).setApprovalForAll(operator, true); // call project aidrop contract Address.functionCall(vars.airdropContract, vars.airdropParams, "call airdrop method failed"); // transfer airdrop tokens to borrower for (uint256 typeIndex = 0; typeIndex < vars.airdropTokenTypes.length; typeIndex++) { require(vars.airdropTokenAddresses[typeIndex] != address(0), "invalid airdrop token address"); if (vars.airdropTokenTypes[typeIndex] == 1) { // ERC20 vars.airdropBalance = IERC20(vars.airdropTokenAddresses[typeIndex]).balanceOf(address(this)); if (vars.airdropBalance > 0) { IERC20(vars.airdropTokenAddresses[typeIndex]).transfer(initiator, vars.airdropBalance); } } else if (vars.airdropTokenTypes[typeIndex] == 2) { // ERC721 vars.airdropBalance = IERC721(vars.airdropTokenAddresses[typeIndex]).balanceOf(address(this)); for (uint256 i = 0; i < vars.airdropBalance; i++) { vars.airdropTokenId = IERC721Enumerable(vars.airdropTokenAddresses[typeIndex]).tokenOfOwnerByIndex( address(this), 0 ); IERC721Enumerable(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenId ); } } else if (vars.airdropTokenTypes[typeIndex] == 3) { // ERC1155 vars.airdropBalance = IERC1155(vars.airdropTokenAddresses[typeIndex]).balanceOf( address(this), vars.airdropTokenIds[typeIndex] ); IERC1155(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenIds[typeIndex], vars.airdropBalance, new bytes(0) ); } } return true; } function encodeFlashLoanParams( uint256[] calldata airdropTokenTypes, address[] calldata airdropTokenAddresses, uint256[] calldata airdropTokenIds, address airdropContract, bytes calldata airdropParams ) public pure returns (bytes memory) { return abi.encode(airdropTokenTypes, airdropTokenAddresses, airdropTokenIds, airdropContract, airdropParams); } }
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; /** * @title IFlashLoanReceiver interface * @notice Interface for the IFlashLoanReceiver. * @author BEND * @dev implement this interface to develop a flashloan-compatible flashLoanReceiver contract **/ interface IFlashLoanReceiver { function executeOperation( address asset, uint256[] calldata tokenIds, address initiator, address operator, bytes calldata params ) external returns (bool); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; interface IBNFT { /** * @dev Emitted when an bNFT is initialized * @param underlyingAsset_ The address of the underlying asset **/ event Initialized(address indexed underlyingAsset_); /** * @dev Emitted when the ownership is transferred * @param oldOwner The address of the old owner * @param newOwner The address of the new owner **/ event OwnershipTransferred(address oldOwner, address newOwner); /** * @dev Emitted when the claim admin is updated * @param oldAdmin The address of the old admin * @param newAdmin The address of the new admin **/ event ClaimAdminUpdated(address oldAdmin, address newAdmin); /** * @dev Emitted on mint * @param user The address initiating the burn * @param nftAsset address of the underlying asset of NFT * @param nftTokenId token id of the underlying asset of NFT * @param owner The owner address receive the bNFT token **/ event Mint(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner); /** * @dev Emitted on burn * @param user The address initiating the burn * @param nftAsset address of the underlying asset of NFT * @param nftTokenId token id of the underlying asset of NFT * @param owner The owner address of the burned bNFT token **/ event Burn(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner); /** * @dev Emitted on flashLoan * @param target The address of the flash loan receiver contract * @param initiator The address initiating the flash loan * @param nftAsset address of the underlying asset of NFT * @param tokenId The token id of the asset being flash borrowed **/ event FlashLoan(address indexed target, address indexed initiator, address indexed nftAsset, uint256 tokenId); event ClaimERC20Airdrop(address indexed token, address indexed to, uint256 amount); event ClaimERC721Airdrop(address indexed token, address indexed to, uint256[] ids); event ClaimERC1155Airdrop(address indexed token, address indexed to, uint256[] ids, uint256[] amounts, bytes data); /** * @dev Initializes the bNFT * @param underlyingAsset_ The address of the underlying asset of this bNFT (E.g. PUNK for bPUNK) */ function initialize( address underlyingAsset_, string calldata bNftName, string calldata bNftSymbol, address owner_, address claimAdmin_ ) external; /** * @dev Mints bNFT token to the user address * * Requirements: * - The caller can be contract address and EOA. * - `nftTokenId` must not exist. * * @param to The owner address receive the bNFT token * @param tokenId token id of the underlying asset of NFT **/ function mint(address to, uint256 tokenId) external; /** * @dev Burns user bNFT token * * Requirements: * - The caller can be contract address and EOA. * - `tokenId` must exist. * * @param tokenId token id of the underlying asset of NFT **/ function burn(uint256 tokenId) external; /** * @dev Allows smartcontracts to access the tokens within one transaction, as long as the tokens taken is returned. * * Requirements: * - `nftTokenIds` must exist. * * @param receiverAddress The address of the contract receiving the tokens, implementing the IFlashLoanReceiver interface * @param nftTokenIds token ids of the underlying asset * @param params Variadic packed params to pass to the receiver as extra information */ function flashLoan( address receiverAddress, uint256[] calldata nftTokenIds, bytes calldata params ) external; function claimERC20Airdrop( address token, address to, uint256 amount ) external; function claimERC721Airdrop( address token, address to, uint256[] calldata ids ) external; function claimERC1155Airdrop( address token, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; /** * @dev Returns the owner of the `nftTokenId` token. * * Requirements: * - `tokenId` must exist. * * @param tokenId token id of the underlying asset of NFT */ function minterOf(uint256 tokenId) external view returns (address); /** * @dev Returns the address of the underlying asset. */ function underlyingAsset() external view returns (address); /** * @dev Returns the contract-level metadata. */ function contractURI() external view returns (string memory); }
// 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.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 be 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 (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// 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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "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":"bnftRegistry_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"bnftRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"airdropTokenTypes","type":"uint256[]"},{"internalType":"address[]","name":"airdropTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"airdropTokenIds","type":"uint256[]"},{"internalType":"address","name":"airdropContract","type":"address"},{"internalType":"bytes","name":"airdropParams","type":"bytes"}],"name":"encodeFlashLoanParams","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"address","name":"initiator","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","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":"","type":"uint256"},{"internalType":"uint256","name":"","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":"","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":"view","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161166138038061166183398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c6115d1610090600039600061011901526115d16000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806347048c991161005b57806347048c9914610101578063b8e851a314610114578063bc197c8114610153578063f23a6e611461017257600080fd5b806301ffc9a714610082578063150b7a02146100aa57806346178da2146100e1575b600080fd5b610095610090366004611304565b610191565b60405190151581526020015b60405180910390f35b6100c86100b8366004610fa9565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020016100a1565b6100f46100ef366004611123565b6101c8565b6040516100a191906114ae565b61009561010f36600461107a565b610209565b61013b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100a1565b6100c8610161366004610eff565b63bc197c8160e01b95945050505050565b6100c8610180366004611013565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806101c257506301ffc9a760e01b6001600160e01b03198316145b92915050565b60608989898989898989896040516020016101eb999897969594939291906113fa565b60405160208183030381529060405290509998505050505050505050565b60006102546040518060e0016040528060608152602001606081526020016060815260200160006001600160a01b031681526020016060815260200160008152602001600081525090565b866102995760405162461bcd60e51b815260206004820152601060248201526f195b5c1d1e481d1bdad95b881b1a5cdd60821b60448201526064015b60405180910390fd5b6102a5838501856111f9565b60808601526001600160a01b0316606085015260408401526020830152808252516103125760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020746f6b656e20747970650000000000006044820152606401610290565b805151602082015151146103745760405162461bcd60e51b8152602060048201526024808201527f696e76616c69642061697264726f7020746f6b656e2061646472657373206c656044820152630dccee8d60e31b6064820152608401610290565b805151604082015151146103ca5760405162461bcd60e51b815260206004820152601f60248201527f696e76616c69642061697264726f7020746f6b656e206964206c656e677468006044820152606401610290565b60608101516001600160a01b03166104245760405162461bcd60e51b815260206004820181905260248201527f696e76616c69642061697264726f7020636f6e747261637420616464726573736044820152606401610290565b6004816080015151101561047a5760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020706172616d65746572730000000000006044820152606401610290565b60405163a22cb46560e01b81526001600160a01b038681166004830152600160248301528a169063a22cb46590604401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b50505050610524816060015182608001516040518060400160405280601a81526020017f63616c6c2061697264726f70206d6574686f64206661696c6564000000000000815250610c08565b5060005b815151811015610bf85760006001600160a01b03168260200151828151811061056157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156105c05760405162461bcd60e51b815260206004820152601d60248201527f696e76616c69642061697264726f7020746f6b656e20616464726573730000006044820152606401610290565b81518051829081106105e257634e487b7160e01b600052603260045260246000fd5b602002602001015160011415610763578160200151818151811061061657634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561066157600080fd5b505afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610699919061132c565b60a083018190521561075e57816020015181815181106106c957634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a083015160405163a9059cbb60e01b81526001600160a01b038a81166004830152602482019290925291169063a9059cbb90604401602060405180830381600087803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c91906112e4565b505b610be6565b815180518290811061078557634e487b7160e01b600052603260045260246000fd5b6020026020010151600214156109b457816020015181815181106107b957634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561080457600080fd5b505afa158015610818573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083c919061132c565b60a083015260005b8260a0015181101561075c578260200151828151811061087457634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604051632f745c5960e01b8152306004820152600060248201526001600160a01b0390911690632f745c599060440160206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe919061132c565b60c0840152602083015180518390811061092857634e487b7160e01b600052603260045260246000fd5b602090810291909101015160c0840151604051632142170760e11b81523060048201526001600160a01b038b8116602483015260448201929092529116906342842e0e90606401600060405180830381600087803b15801561098957600080fd5b505af115801561099d573d6000803e3d6000fd5b5050505080806109ac90611546565b915050610844565b81518051829081106109d657634e487b7160e01b600052603260045260246000fd5b602002602001015160031415610be65781602001518181518110610a0a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031662fdd58e3084604001518481518110610a4457634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401610a7d9291906001600160a01b03929092168252602082015260400190565b60206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd919061132c565b60a08301526020820151805182908110610af757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663f242432a308985604001518581518110610b3357634e487b7160e01b600052603260045260246000fd5b60200260200101518660a00151600067ffffffffffffffff811115610b6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610b92576020820181803683370190505b506040518663ffffffff1660e01b8152600401610bb39594939291906113c0565b600060405180830381600087803b158015610bcd57600080fd5b505af1158015610be1573d6000803e3d6000fd5b505050505b80610bf081611546565b915050610528565b5060019998505050505050505050565b6060610c178484600085610c21565b90505b9392505050565b606082471015610c825760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610290565b6001600160a01b0385163b610cd95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610290565b600080866001600160a01b03168587604051610cf591906113a4565b60006040518083038185875af1925050503d8060008114610d32576040519150601f19603f3d011682016040523d82523d6000602084013e610d37565b606091505b5091509150610d47828286610d52565b979650505050505050565b60608315610d61575081610c1a565b825115610d715782518084602001fd5b8160405162461bcd60e51b815260040161029091906114ae565b8035610d9681611583565b919050565b60008083601f840112610dac578182fd5b50813567ffffffffffffffff811115610dc3578182fd5b6020830191508360208260051b8501011115610dde57600080fd5b9250929050565b600082601f830112610df5578081fd5b81356020610e0a610e05836114f2565b6114c1565b80838252828201915082860187848660051b8901011115610e29578586fd5b855b85811015610e4757813584529284019290840190600101610e2b565b5090979650505050505050565b60008083601f840112610e65578182fd5b50813567ffffffffffffffff811115610e7c578182fd5b602083019150836020828501011115610dde57600080fd5b600082601f830112610ea4578081fd5b813567ffffffffffffffff811115610ebe57610ebe61156d565b610ed1601f8201601f19166020016114c1565b818152846020838601011115610ee5578283fd5b816020850160208301379081016020019190915292915050565b600080600080600060a08688031215610f16578081fd5b8535610f2181611583565b94506020860135610f3181611583565b9350604086013567ffffffffffffffff80821115610f4d578283fd5b610f5989838a01610de5565b94506060880135915080821115610f6e578283fd5b610f7a89838a01610de5565b93506080880135915080821115610f8f578283fd5b50610f9c88828901610e94565b9150509295509295909350565b60008060008060808587031215610fbe578384fd5b8435610fc981611583565b93506020850135610fd981611583565b925060408501359150606085013567ffffffffffffffff811115610ffb578182fd5b61100787828801610e94565b91505092959194509250565b600080600080600060a0868803121561102a578081fd5b853561103581611583565b9450602086013561104581611583565b93506040860135925060608601359150608086013567ffffffffffffffff81111561106e578182fd5b610f9c88828901610e94565b600080600080600080600060a0888a031215611094578182fd5b873561109f81611583565b9650602088013567ffffffffffffffff808211156110bb578384fd5b6110c78b838c01610d9b565b909850965060408a013591506110dc82611583565b9094506060890135906110ee82611583565b90935060808901359080821115611103578384fd5b506111108a828b01610e54565b989b979a50959850939692959293505050565b600080600080600080600080600060a08a8c031215611140578283fd5b893567ffffffffffffffff80821115611157578485fd5b6111638d838e01610d9b565b909b50995060208c013591508082111561117b578485fd5b6111878d838e01610d9b565b909950975060408c013591508082111561119f578485fd5b6111ab8d838e01610d9b565b909750955060608c013591506111c082611583565b90935060808b013590808211156111d5578384fd5b506111e28c828d01610e54565b915080935050809150509295985092959850929598565b600080600080600060a08688031215611210578283fd5b853567ffffffffffffffff80821115611227578485fd5b61123389838a01610de5565b9650602091508188013581811115611249578586fd5b8801601f81018a13611259578586fd5b8035611267610e05826114f2565b8082825285820191508584018d878560051b870101111561128657898afd5b8994505b838510156112b157803561129d81611583565b83526001949094019391860191860161128a565b50985050505060408801359150808211156112ca578485fd5b6112d689838a01610de5565b9450610f7a60608901610d8b565b6000602082840312156112f5578081fd5b81518015158114610c1a578182fd5b600060208284031215611315578081fd5b81356001600160e01b031981168114610c1a578182fd5b60006020828403121561133d578081fd5b5051919050565b81835260006001600160fb1b0383111561135c578081fd5b8260051b80836020870137939093016020019283525090919050565b60008151808452611390816020860160208601611516565b601f01601f19169290920160200192915050565b600082516113b6818460208701611516565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d4790830184611378565b60a08152600061140e60a083018b8d611344565b8281036020848101919091528982528a918101835b8b81101561145157833561143681611583565b6001600160a01b031682529282019290820190600101611423565b508481036040860152611465818a8c611344565b6001600160a01b0389166060870152858103608087015286815292508590508682840137818501810192909252601f909301601f19169092019091019998505050505050505050565b602081526000610c1a6020830184611378565b604051601f8201601f1916810167ffffffffffffffff811182821017156114ea576114ea61156d565b604052919050565b600067ffffffffffffffff82111561150c5761150c61156d565b5060051b60200190565b60005b83811015611531578181015183820152602001611519565b83811115611540576000848401525b50505050565b600060001982141561156657634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461159857600080fd5b5056fea2646970667358221220ce27072191518d21056ee1d32fd3ce426c79aefdbd412eba0ca33d5227770c7264736f6c6343000804003300000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806347048c991161005b57806347048c9914610101578063b8e851a314610114578063bc197c8114610153578063f23a6e611461017257600080fd5b806301ffc9a714610082578063150b7a02146100aa57806346178da2146100e1575b600080fd5b610095610090366004611304565b610191565b60405190151581526020015b60405180910390f35b6100c86100b8366004610fa9565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020016100a1565b6100f46100ef366004611123565b6101c8565b6040516100a191906114ae565b61009561010f36600461107a565b610209565b61013b7f00000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d81565b6040516001600160a01b0390911681526020016100a1565b6100c8610161366004610eff565b63bc197c8160e01b95945050505050565b6100c8610180366004611013565b63f23a6e6160e01b95945050505050565b60006001600160e01b03198216630271189760e51b14806101c257506301ffc9a760e01b6001600160e01b03198316145b92915050565b60608989898989898989896040516020016101eb999897969594939291906113fa565b60405160208183030381529060405290509998505050505050505050565b60006102546040518060e0016040528060608152602001606081526020016060815260200160006001600160a01b031681526020016060815260200160008152602001600081525090565b866102995760405162461bcd60e51b815260206004820152601060248201526f195b5c1d1e481d1bdad95b881b1a5cdd60821b60448201526064015b60405180910390fd5b6102a5838501856111f9565b60808601526001600160a01b0316606085015260408401526020830152808252516103125760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020746f6b656e20747970650000000000006044820152606401610290565b805151602082015151146103745760405162461bcd60e51b8152602060048201526024808201527f696e76616c69642061697264726f7020746f6b656e2061646472657373206c656044820152630dccee8d60e31b6064820152608401610290565b805151604082015151146103ca5760405162461bcd60e51b815260206004820152601f60248201527f696e76616c69642061697264726f7020746f6b656e206964206c656e677468006044820152606401610290565b60608101516001600160a01b03166104245760405162461bcd60e51b815260206004820181905260248201527f696e76616c69642061697264726f7020636f6e747261637420616464726573736044820152606401610290565b6004816080015151101561047a5760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020706172616d65746572730000000000006044820152606401610290565b60405163a22cb46560e01b81526001600160a01b038681166004830152600160248301528a169063a22cb46590604401600060405180830381600087803b1580156104c457600080fd5b505af11580156104d8573d6000803e3d6000fd5b50505050610524816060015182608001516040518060400160405280601a81526020017f63616c6c2061697264726f70206d6574686f64206661696c6564000000000000815250610c08565b5060005b815151811015610bf85760006001600160a01b03168260200151828151811061056157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156105c05760405162461bcd60e51b815260206004820152601d60248201527f696e76616c69642061697264726f7020746f6b656e20616464726573730000006044820152606401610290565b81518051829081106105e257634e487b7160e01b600052603260045260246000fd5b602002602001015160011415610763578160200151818151811061061657634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561066157600080fd5b505afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610699919061132c565b60a083018190521561075e57816020015181815181106106c957634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a083015160405163a9059cbb60e01b81526001600160a01b038a81166004830152602482019290925291169063a9059cbb90604401602060405180830381600087803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c91906112e4565b505b610be6565b815180518290811061078557634e487b7160e01b600052603260045260246000fd5b6020026020010151600214156109b457816020015181815181106107b957634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561080457600080fd5b505afa158015610818573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083c919061132c565b60a083015260005b8260a0015181101561075c578260200151828151811061087457634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604051632f745c5960e01b8152306004820152600060248201526001600160a01b0390911690632f745c599060440160206040518083038186803b1580156108c657600080fd5b505afa1580156108da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fe919061132c565b60c0840152602083015180518390811061092857634e487b7160e01b600052603260045260246000fd5b602090810291909101015160c0840151604051632142170760e11b81523060048201526001600160a01b038b8116602483015260448201929092529116906342842e0e90606401600060405180830381600087803b15801561098957600080fd5b505af115801561099d573d6000803e3d6000fd5b5050505080806109ac90611546565b915050610844565b81518051829081106109d657634e487b7160e01b600052603260045260246000fd5b602002602001015160031415610be65781602001518181518110610a0a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031662fdd58e3084604001518481518110610a4457634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401610a7d9291906001600160a01b03929092168252602082015260400190565b60206040518083038186803b158015610a9557600080fd5b505afa158015610aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acd919061132c565b60a08301526020820151805182908110610af757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663f242432a308985604001518581518110610b3357634e487b7160e01b600052603260045260246000fd5b60200260200101518660a00151600067ffffffffffffffff811115610b6857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610b92576020820181803683370190505b506040518663ffffffff1660e01b8152600401610bb39594939291906113c0565b600060405180830381600087803b158015610bcd57600080fd5b505af1158015610be1573d6000803e3d6000fd5b505050505b80610bf081611546565b915050610528565b5060019998505050505050505050565b6060610c178484600085610c21565b90505b9392505050565b606082471015610c825760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610290565b6001600160a01b0385163b610cd95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610290565b600080866001600160a01b03168587604051610cf591906113a4565b60006040518083038185875af1925050503d8060008114610d32576040519150601f19603f3d011682016040523d82523d6000602084013e610d37565b606091505b5091509150610d47828286610d52565b979650505050505050565b60608315610d61575081610c1a565b825115610d715782518084602001fd5b8160405162461bcd60e51b815260040161029091906114ae565b8035610d9681611583565b919050565b60008083601f840112610dac578182fd5b50813567ffffffffffffffff811115610dc3578182fd5b6020830191508360208260051b8501011115610dde57600080fd5b9250929050565b600082601f830112610df5578081fd5b81356020610e0a610e05836114f2565b6114c1565b80838252828201915082860187848660051b8901011115610e29578586fd5b855b85811015610e4757813584529284019290840190600101610e2b565b5090979650505050505050565b60008083601f840112610e65578182fd5b50813567ffffffffffffffff811115610e7c578182fd5b602083019150836020828501011115610dde57600080fd5b600082601f830112610ea4578081fd5b813567ffffffffffffffff811115610ebe57610ebe61156d565b610ed1601f8201601f19166020016114c1565b818152846020838601011115610ee5578283fd5b816020850160208301379081016020019190915292915050565b600080600080600060a08688031215610f16578081fd5b8535610f2181611583565b94506020860135610f3181611583565b9350604086013567ffffffffffffffff80821115610f4d578283fd5b610f5989838a01610de5565b94506060880135915080821115610f6e578283fd5b610f7a89838a01610de5565b93506080880135915080821115610f8f578283fd5b50610f9c88828901610e94565b9150509295509295909350565b60008060008060808587031215610fbe578384fd5b8435610fc981611583565b93506020850135610fd981611583565b925060408501359150606085013567ffffffffffffffff811115610ffb578182fd5b61100787828801610e94565b91505092959194509250565b600080600080600060a0868803121561102a578081fd5b853561103581611583565b9450602086013561104581611583565b93506040860135925060608601359150608086013567ffffffffffffffff81111561106e578182fd5b610f9c88828901610e94565b600080600080600080600060a0888a031215611094578182fd5b873561109f81611583565b9650602088013567ffffffffffffffff808211156110bb578384fd5b6110c78b838c01610d9b565b909850965060408a013591506110dc82611583565b9094506060890135906110ee82611583565b90935060808901359080821115611103578384fd5b506111108a828b01610e54565b989b979a50959850939692959293505050565b600080600080600080600080600060a08a8c031215611140578283fd5b893567ffffffffffffffff80821115611157578485fd5b6111638d838e01610d9b565b909b50995060208c013591508082111561117b578485fd5b6111878d838e01610d9b565b909950975060408c013591508082111561119f578485fd5b6111ab8d838e01610d9b565b909750955060608c013591506111c082611583565b90935060808b013590808211156111d5578384fd5b506111e28c828d01610e54565b915080935050809150509295985092959850929598565b600080600080600060a08688031215611210578283fd5b853567ffffffffffffffff80821115611227578485fd5b61123389838a01610de5565b9650602091508188013581811115611249578586fd5b8801601f81018a13611259578586fd5b8035611267610e05826114f2565b8082825285820191508584018d878560051b870101111561128657898afd5b8994505b838510156112b157803561129d81611583565b83526001949094019391860191860161128a565b50985050505060408801359150808211156112ca578485fd5b6112d689838a01610de5565b9450610f7a60608901610d8b565b6000602082840312156112f5578081fd5b81518015158114610c1a578182fd5b600060208284031215611315578081fd5b81356001600160e01b031981168114610c1a578182fd5b60006020828403121561133d578081fd5b5051919050565b81835260006001600160fb1b0383111561135c578081fd5b8260051b80836020870137939093016020019283525090919050565b60008151808452611390816020860160208601611516565b601f01601f19169290920160200192915050565b600082516113b6818460208701611516565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610d4790830184611378565b60a08152600061140e60a083018b8d611344565b8281036020848101919091528982528a918101835b8b81101561145157833561143681611583565b6001600160a01b031682529282019290820190600101611423565b508481036040860152611465818a8c611344565b6001600160a01b0389166060870152858103608087015286815292508590508682840137818501810192909252601f909301601f19169092019091019998505050505050505050565b602081526000610c1a6020830184611378565b604051601f8201601f1916810167ffffffffffffffff811182821017156114ea576114ea61156d565b604052919050565b600067ffffffffffffffff82111561150c5761150c61156d565b5060051b60200190565b60005b83811015611531578181015183820152602001611519565b83811115611540576000848401525b50505050565b600060001982141561156657634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461159857600080fd5b5056fea2646970667358221220ce27072191518d21056ee1d32fd3ce426c79aefdbd412eba0ca33d5227770c7264736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d
-----Decoded View---------------
Arg [0] : bnftRegistry_ (address): 0x79d922DD382E42A156bC0A354861cDBC4F09110d
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.