Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14690249 | 930 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xE863b0d4...b60b43944 The constructor portion of the code might be different and could alter the actual behaviour of the contract
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 "../interfaces/IBNFTRegistry.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.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, ReentrancyGuard, Ownable, ERC721Holder, ERC1155Holder { address public immutable bnftRegistry; mapping(bytes32 => bool) public airdropClaimRecords; uint256 public deployType; constructor( address owner_, address bnftRegistry_, uint256 deployType_ ) { require(owner_ != address(0), "zero owner address"); require(bnftRegistry_ != address(0), "zero registry address"); bnftRegistry = bnftRegistry_; deployType = deployType_; _transferOwnership(owner_); } struct ExecuteOperationLocalVars { uint256[] airdropTokenTypes; address[] airdropTokenAddresses; uint256[] airdropTokenIds; address airdropContract; bytes airdropParams; uint256 airdropBalance; uint256 airdropTokenId; bytes32 airdropKeyHash; } function executeOperation( address nftAsset, uint256[] calldata nftTokenIds, address initiator, address operator, bytes calldata params ) external override returns (bool) { ExecuteOperationLocalVars memory vars; // check caller and owner (address bnftProxy, ) = IBNFTRegistry(bnftRegistry).getBNFTAddresses(nftAsset); require(bnftProxy == msg.sender, "caller not bnft"); if (deployType != 0) { require(initiator == owner(), "initiator not owner"); } 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"); vars.airdropKeyHash = getClaimKeyHash(initiator, nftAsset, nftTokenIds, params); airdropClaimRecords[vars.airdropKeyHash] = true; // 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 with Enumerate 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) ); } else if (vars.airdropTokenTypes[typeIndex] == 4) { // ERC721 without Enumerate IERC721Enumerable(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenIds[typeIndex] ); } } return true; } function transferERC20( address token, address to, uint256 amount ) external nonReentrant onlyOwner { IERC20(token).transfer(to, amount); } function transferERC721( address token, address to, uint256 id ) external nonReentrant onlyOwner { IERC721(token).safeTransferFrom(address(this), to, id); } function transferERC1155( address token, address to, uint256 id, uint256 amount ) external nonReentrant onlyOwner { IERC1155(token).safeTransferFrom(address(this), to, id, amount, new bytes(0)); } function transferEther(address to, uint256 amount) external nonReentrant onlyOwner { (bool success, ) = to.call{value: amount}(new bytes(0)); require(success, "ETH_TRANSFER_FAILED"); } function getAirdropClaimRecord( address initiator, address nftAsset, uint256[] calldata nftTokenIds, bytes calldata params ) public view returns (bool) { bytes32 airdropKeyHash = getClaimKeyHash(initiator, nftAsset, nftTokenIds, params); return airdropClaimRecords[airdropKeyHash]; } 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); } function getClaimKeyHash( address initiator, address nftAsset, uint256[] calldata nftTokenIds, bytes calldata params ) public pure returns (bytes32) { return keccak256(abi.encodePacked(initiator, nftAsset, nftTokenIds, params)); } }
// 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); event ExecuteAirdrop(address indexed airdropContract); /** * @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; function executeAirdrop(address airdropContract, bytes calldata airdropParams) 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: agpl-3.0 pragma solidity 0.8.4; interface IBNFTRegistry { event Initialized(address genericImpl, string namePrefix, string symbolPrefix); event GenericImplementationUpdated(address genericImpl); event BNFTCreated(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals); event BNFTUpgraded(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals); event CustomeSymbolsAdded(address[] nftAssets, string[] symbols); event ClaimAdminUpdated(address oldAdmin, address newAdmin); function getBNFTAddresses(address nftAsset) external view returns (address bNftProxy, address bNftImpl); function getBNFTAddressesByIndex(uint16 index) external view returns (address bNftProxy, address bNftImpl); function getBNFTAssetList() external view returns (address[] memory); function allBNFTAssetLength() external view returns (uint256); function initialize( address genericImpl, string memory namePrefix_, string memory symbolPrefix_ ) external; function setBNFTGenericImpl(address genericImpl) external; /** * @dev Create bNFT proxy and implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT **/ function createBNFT(address nftAsset) external returns (address bNftProxy); /** * @dev Create bNFT proxy with already deployed implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT * @param bNftImpl The address of the deployed implement of the BNFT **/ function createBNFTWithImpl(address nftAsset, address bNftImpl) external returns (address bNftProxy); /** * @dev Update bNFT proxy to an new deployed implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT * @param bNftImpl The address of the deployed implement of the BNFT * @param encodedCallData The encoded function call. **/ function upgradeBNFTWithImpl( address nftAsset, address bNftImpl, bytes memory encodedCallData ) external; function batchUpgradeBNFT(address[] calldata nftAssets) external; function batchUpgradeAllBNFT() external; /** * @dev Adding custom symbol for some special NFTs like CryptoPunks * @param nftAssets_ The addresses of the NFTs * @param symbols_ The custom symbols of the NFTs **/ function addCustomeSymbols(address[] memory nftAssets_, string[] memory symbols_) external; }
// 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 v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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":"owner_","type":"address"},{"internalType":"address","name":"bnftRegistry_","type":"address"},{"internalType":"uint256","name":"deployType_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"airdropClaimRecords","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bnftRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"initiator","type":"address"},{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"getAirdropClaimRecord","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"initiator","type":"address"},{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"getClaimKeyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063b67dbc5711610071578063b67dbc5714610275578063b8e851a314610288578063bc197c81146102af578063f23a6e61146102ce578063f2fde38b146102ed57600080fd5b80638da5cb5b1461020757806392605dec1461022c5780639db5dbe41461024f578063b209af0e1461026257600080fd5b80631749bea9116100e95780631749bea9146101a25780631aca6376146101b957806346178da2146101cc57806347048c99146101ec578063715018a6146101ff57600080fd5b806301ffc9a71461011b57806305b1137b146101435780630a7e880c14610158578063150b7a021461016b575b600080fd5b61012e610129366004611db4565b610300565b60405190151581526020015b60405180910390f35b610156610151366004611b92565b610337565b005b610156610166366004611a3f565b61044f565b6101896101793660046119d6565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161013a565b6101ab60035481565b60405190815260200161013a565b6101566101c7366004611996565b61051f565b6101df6101da366004611bbd565b6105e3565b60405161013a9190611fbf565b61012e6101fa366004611aea565b610624565b6101566112a3565b6001546001600160a01b03165b6040516001600160a01b03909116815260200161013a565b61012e61023a366004611d9c565b60026020526000908152604090205460ff1681565b61015661025d366004611996565b6112d9565b6101ab61027036600461185c565b6113b8565b61012e61028336600461185c565b6113f7565b6102147f00000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d81565b6101896102bd3660046118ed565b63bc197c8160e01b95945050505050565b6101896102dc366004611a84565b63f23a6e6160e01b95945050505050565b6101566102fb366004611807565b611426565b60006001600160e01b03198216630271189760e51b148061033157506301ffc9a760e01b6001600160e01b03198316145b92915050565b600260005414156103635760405162461bcd60e51b815260040161035a90612007565b60405180910390fd5b60026000556001546001600160a01b031633146103925760405162461bcd60e51b815260040161035a90611fd2565b604080516000808252602082019092526001600160a01b0384169083906040516103bc9190611eb5565b60006040518083038185875af1925050503d80600081146103f9576040519150601f19603f3d011682016040523d82523d6000602084013e6103fe565b606091505b50509050806104455760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015260640161035a565b5050600160005550565b600260005414156104725760405162461bcd60e51b815260040161035a90612007565b60026000556001546001600160a01b031633146104a15760405162461bcd60e51b815260040161035a90611fd2565b60408051600081526020810191829052637921219560e11b9091526001600160a01b0385169063f242432a906104e290309087908790879060248101611ed1565b600060405180830381600087803b1580156104fc57600080fd5b505af1158015610510573d6000803e3d6000fd5b50506001600055505050505050565b600260005414156105425760405162461bcd60e51b815260040161035a90612007565b60026000556001546001600160a01b031633146105715760405162461bcd60e51b815260040161035a90611fd2565b604051632142170760e11b81523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b1580156105c157600080fd5b505af11580156105d5573d6000803e3d6000fd5b505060016000555050505050565b606089898989898989898960405160200161060699989796959493929190611f0b565b60405160208183030381529060405290509998505050505050505050565b600061067a60405180610100016040528060608152602001606081526020016060815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600080191681525090565b604051632cf98ebd60e11b81526001600160a01b038a811660048301526000917f00000000000000000000000079d922dd382e42a156bc0a354861cdbc4f09110d909116906359f31d7a90602401604080518083038186803b1580156106df57600080fd5b505afa1580156106f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107179190611823565b5090506001600160a01b03811633146107645760405162461bcd60e51b815260206004820152600f60248201526e18d85b1b195c881b9bdd08189b999d608a1b604482015260640161035a565b600354156107bf576001546001600160a01b038881169116146107bf5760405162461bcd60e51b815260206004820152601360248201527234b734ba34b0ba37b9103737ba1037bbb732b960691b604482015260640161035a565b876107ff5760405162461bcd60e51b815260206004820152601060248201526f195b5c1d1e481d1bdad95b881b1a5cdd60821b604482015260640161035a565b61080b84860186611c92565b60808701526001600160a01b0316606086015260408501526020840152808352516108785760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020746f6b656e2074797065000000000000604482015260640161035a565b815151602083015151146108da5760405162461bcd60e51b8152602060048201526024808201527f696e76616c69642061697264726f7020746f6b656e2061646472657373206c656044820152630dccee8d60e31b606482015260840161035a565b815151604083015151146109305760405162461bcd60e51b815260206004820152601f60248201527f696e76616c69642061697264726f7020746f6b656e206964206c656e67746800604482015260640161035a565b60608201516001600160a01b031661098a5760405162461bcd60e51b815260206004820181905260248201527f696e76616c69642061697264726f7020636f6e74726163742061646472657373604482015260640161035a565b600482608001515110156109e05760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020706172616d6574657273000000000000604482015260640161035a565b60405163a22cb46560e01b81526001600160a01b038781166004830152600160248301528b169063a22cb46590604401600060405180830381600087803b158015610a2a57600080fd5b505af1158015610a3e573d6000803e3d6000fd5b50505050610a8a826060015183608001516040518060400160405280601a81526020017f63616c6c2061697264726f70206d6574686f64206661696c65640000000000008152506114c1565b50610a99878b8b8b89896113b8565b60e083018190526000908152600260205260408120805460ff191660011790555b8251518110156112925760006001600160a01b031683602001518281518110610af357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610b525760405162461bcd60e51b815260206004820152601d60248201527f696e76616c69642061697264726f7020746f6b656e2061646472657373000000604482015260640161035a565b8251805182908110610b7457634e487b7160e01b600052603260045260246000fd5b602002602001015160011415610cf55782602001518181518110610ba857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610bf357600080fd5b505afa158015610c07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2b9190611ddc565b60a0840181905215610cf05782602001518181518110610c5b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a084015160405163a9059cbb60e01b81526001600160a01b038b81166004830152602482019290925291169063a9059cbb90604401602060405180830381600087803b158015610cb657600080fd5b505af1158015610cca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cee9190611d7c565b505b611280565b8251805182908110610d1757634e487b7160e01b600052603260045260246000fd5b602002602001015160021415610f465782602001518181518110610d4b57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610d9657600080fd5b505afa158015610daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dce9190611ddc565b60a084015260005b8360a00151811015610cee5783602001518281518110610e0657634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604051632f745c5960e01b8152306004820152600060248201526001600160a01b0390911690632f745c599060440160206040518083038186803b158015610e5857600080fd5b505afa158015610e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e909190611ddc565b60c08501526020840151805183908110610eba57634e487b7160e01b600052603260045260246000fd5b602090810291909101015160c0850151604051632142170760e11b81523060048201526001600160a01b038c8116602483015260448201929092529116906342842e0e90606401600060405180830381600087803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b505050508080610f3e906120c1565b915050610dd6565b8251805182908110610f6857634e487b7160e01b600052603260045260246000fd5b60200260200101516003141561117b5782602001518181518110610f9c57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031662fdd58e3085604001518481518110610fd657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161100f9291906001600160a01b03929092168252602082015260400190565b60206040518083038186803b15801561102757600080fd5b505afa15801561103b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105f9190611ddc565b60a0840152602083015180518290811061108957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663f242432a308a866040015185815181106110c557634e487b7160e01b600052603260045260246000fd5b60200260200101518760a0015160006001600160401b038111156110f957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611123576020820181803683370190505b506040518663ffffffff1660e01b8152600401611144959493929190611ed1565b600060405180830381600087803b15801561115e57600080fd5b505af1158015611172573d6000803e3d6000fd5b50505050611280565b825180518290811061119d57634e487b7160e01b600052603260045260246000fd5b60200260200101516004141561128057826020015181815181106111d157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166342842e0e308a8660400151858151811061120d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561126757600080fd5b505af115801561127b573d6000803e3d6000fd5b505050505b8061128a816120c1565b915050610aba565b5060019a9950505050505050505050565b6001546001600160a01b031633146112cd5760405162461bcd60e51b815260040161035a90611fd2565b6112d760006114da565b565b600260005414156112fc5760405162461bcd60e51b815260040161035a90612007565b60026000556001546001600160a01b0316331461132b5760405162461bcd60e51b815260040161035a90611fd2565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561137557600080fd5b505af1158015611389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ad9190611d7c565b505060016000555050565b60008686868686866040516020016113d596959493929190611e54565b6040516020818303038152906040528051906020012090509695505050505050565b6000806114088888888888886113b8565b60009081526002602052604090205460ff1698975050505050505050565b6001546001600160a01b031633146114505760405162461bcd60e51b815260040161035a90611fd2565b6001600160a01b0381166114b55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161035a565b6114be816114da565b50565b60606114d0848460008561152c565b90505b9392505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60608247101561158d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161035a565b6001600160a01b0385163b6115e45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161035a565b600080866001600160a01b031685876040516116009190611eb5565b60006040518083038185875af1925050503d806000811461163d576040519150601f19603f3d011682016040523d82523d6000602084013e611642565b606091505b509150915061165282828661165d565b979650505050505050565b6060831561166c5750816114d3565b82511561167c5782518084602001fd5b8160405162461bcd60e51b815260040161035a9190611fbf565b80356116a1816120fe565b919050565b60008083601f8401126116b7578182fd5b5081356001600160401b038111156116cd578182fd5b6020830191508360208260051b85010111156116e857600080fd5b9250929050565b600082601f8301126116ff578081fd5b8135602061171461170f8361206e565b61203e565b80838252828201915082860187848660051b8901011115611733578586fd5b855b8581101561175157813584529284019290840190600101611735565b5090979650505050505050565b60008083601f84011261176f578182fd5b5081356001600160401b03811115611785578182fd5b6020830191508360208285010111156116e857600080fd5b600082601f8301126117ad578081fd5b81356001600160401b038111156117c6576117c66120e8565b6117d9601f8201601f191660200161203e565b8181528460208386010111156117ed578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611818578081fd5b81356114d3816120fe565b60008060408385031215611835578081fd5b8251611840816120fe565b6020840151909250611851816120fe565b809150509250929050565b60008060008060008060808789031215611874578182fd5b863561187f816120fe565b9550602087013561188f816120fe565b945060408701356001600160401b03808211156118aa578384fd5b6118b68a838b016116a6565b909650945060608901359150808211156118ce578384fd5b506118db89828a0161175e565b979a9699509497509295939492505050565b600080600080600060a08688031215611904578081fd5b853561190f816120fe565b9450602086013561191f816120fe565b935060408601356001600160401b038082111561193a578283fd5b61194689838a016116ef565b9450606088013591508082111561195b578283fd5b61196789838a016116ef565b9350608088013591508082111561197c578283fd5b506119898882890161179d565b9150509295509295909350565b6000806000606084860312156119aa578283fd5b83356119b5816120fe565b925060208401356119c5816120fe565b929592945050506040919091013590565b600080600080608085870312156119eb578384fd5b84356119f6816120fe565b93506020850135611a06816120fe565b92506040850135915060608501356001600160401b03811115611a27578182fd5b611a338782880161179d565b91505092959194509250565b60008060008060808587031215611a54578182fd5b8435611a5f816120fe565b93506020850135611a6f816120fe565b93969395505050506040820135916060013590565b600080600080600060a08688031215611a9b578283fd5b8535611aa6816120fe565b94506020860135611ab6816120fe565b9350604086013592506060860135915060808601356001600160401b03811115611ade578182fd5b6119898882890161179d565b600080600080600080600060a0888a031215611b04578485fd5b8735611b0f816120fe565b965060208801356001600160401b0380821115611b2a578687fd5b611b368b838c016116a6565b909850965060408a01359150611b4b826120fe565b909450606089013590611b5d826120fe565b90935060808901359080821115611b72578283fd5b50611b7f8a828b0161175e565b989b979a50959850939692959293505050565b60008060408385031215611ba4578182fd5b8235611baf816120fe565b946020939093013593505050565b600080600080600080600080600060a08a8c031215611bda578283fd5b89356001600160401b0380821115611bf0578485fd5b611bfc8d838e016116a6565b909b50995060208c0135915080821115611c14578485fd5b611c208d838e016116a6565b909950975060408c0135915080821115611c38578485fd5b611c448d838e016116a6565b909750955060608c01359150611c59826120fe565b90935060808b01359080821115611c6e578384fd5b50611c7b8c828d0161175e565b915080935050809150509295985092959850929598565b600080600080600060a08688031215611ca9578283fd5b85356001600160401b0380821115611cbf578485fd5b611ccb89838a016116ef565b9650602091508188013581811115611ce1578586fd5b8801601f81018a13611cf1578586fd5b8035611cff61170f8261206e565b8082825285820191508584018d878560051b8701011115611d1e57898afd5b8994505b83851015611d49578035611d35816120fe565b835260019490940193918601918601611d22565b5098505050506040880135915080821115611d62578485fd5b611d6e89838a016116ef565b945061196760608901611696565b600060208284031215611d8d578081fd5b815180151581146114d3578182fd5b600060208284031215611dad578081fd5b5035919050565b600060208284031215611dc5578081fd5b81356001600160e01b0319811681146114d3578182fd5b600060208284031215611ded578081fd5b5051919050565b81835260006001600160fb1b03831115611e0c578081fd5b8260051b80836020870137939093016020019283525090919050565b60008151808452611e40816020860160208601612091565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff19606088811b8216835287901b16601482015260006001600160fb1b03851115611e89578081fd5b8460051b8087602885013782016028810182815284868237509092016028019182525095945050505050565b60008251611ec7818460208701612091565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061165290830184611e28565b60a081526000611f1f60a083018b8d611df4565b8281036020848101919091528982528a918101835b8b811015611f62578335611f47816120fe565b6001600160a01b031682529282019290820190600101611f34565b508481036040860152611f76818a8c611df4565b6001600160a01b0389166060870152858103608087015286815292508590508682840137818501810192909252601f909301601f19169092019091019998505050505050505050565b6020815260006114d36020830184611e28565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715612066576120666120e8565b604052919050565b60006001600160401b03821115612087576120876120e8565b5060051b60200190565b60005b838110156120ac578181015183820152602001612094565b838111156120bb576000848401525b50505050565b60006000198214156120e157634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146114be57600080fdfea2646970667358221220fb3bfcb82aea17424bb00abf6cf0e5bc99ad48efe76e9dd7f762ca2832eb330a64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.