Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
Blacksail_Parlay_Multicall
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "../interfacing/parlays/IParlayFactory.sol"; import "../interfacing/parlays/IParlay.sol"; contract Blacksail_Parlay_Multicall { address public factory; string baseURL = "https://ipfs.io/ipfs/"; struct ParlayData { address parlay; address collection; uint256 id; uint256 blockPrice; uint256 contestEnds; bool closable; string[] ownedBlocks; string[] blocksOwnedByUser; string metadata; bool is721; IParlayFactory.WhitelistData wld; } constructor(address _factory) { factory = _factory; } function getLiveParlays() public view returns (address[] memory parlays) { return IParlayFactory(factory).fetchActiveParlays(); } function fetch(address user) public view returns (ParlayData[] memory) { address[] memory parlays = getLiveParlays(); ParlayData[] memory pd = new ParlayData[](parlays.length); for (uint256 i; i < pd.length; i++) { pd[i].parlay = parlays[i]; pd[i].collection = IParlay(parlays[i]).collection(); pd[i].id = IParlay(parlays[i]).ID(); pd[i].closable = IParlay(parlays[i]).closable(); pd[i].blockPrice = IParlay(parlays[i]).calculateBlockPrice(); pd[i].contestEnds = IParlay(parlays[i]).contestEnd(); pd[i].ownedBlocks = IParlay(parlays[i]).getOwnedBlocks(); pd[i].blocksOwnedByUser = IParlay(parlays[i]).blocksOwnedBy(user); IParlayFactory.WhitelistData[] memory _wld = IParlayFactory(factory).whitelistedCollections(); for (uint256 j; j < _wld.length; j++) { if (_wld[j].collection == pd[i].collection) { pd[i].metadata = IParlayFactory(factory).getFriendlyURI(pd[i].collection, pd[i].id); pd[i].is721 = IParlayFactory(factory).isERC721(pd[i].collection); pd[i].wld = IParlayFactory(factory).getWhitelistDataForCollection(pd[i].collection); } } } return pd; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // 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 ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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 (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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 EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * 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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface IParlay { struct Block { string row; uint256 col; } function active() external view returns (bool); function calculateBlockPrice() external view returns (uint256); function closable() external view returns (bool); function collection() external view returns (address); function ID() external view returns (uint256); function contestEnd() external view returns (uint256); function getOwnedBlocks() external view returns (string[] memory); function blocksOwnedBy(address user) external view returns (string[] memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface IParlayFactory { struct WhitelistData { address collection; string collectionName; string uriFunc; bool requiresTransform; string imgFileType; bool requiresCustomURI; } function getWETH() external view returns (address); function treasury() external view returns (address); function pFEE() external view returns (uint256); function DIVISOR() external view returns (uint256); function isMiner(address account) external view returns (bool); function fetchActiveParlays() external view returns (address[] memory); function getParlay(uint256 index) external view returns (address); function whitelistedCollections() external view returns (WhitelistData[] memory); function getFriendlyURI(address collection, uint256 id) external view returns (string memory); function getWhitelistDataForCollection(address collection) external view returns (WhitelistData memory); function transformIpfsUri(address nft, uint256 id) external view returns (string memory); function isERC721(address collection) external view returns (bool); function isERC1155(address collection) external view returns (bool); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"fetch","outputs":[{"components":[{"internalType":"address","name":"parlay","type":"address"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"blockPrice","type":"uint256"},{"internalType":"uint256","name":"contestEnds","type":"uint256"},{"internalType":"bool","name":"closable","type":"bool"},{"internalType":"string[]","name":"ownedBlocks","type":"string[]"},{"internalType":"string[]","name":"blocksOwnedByUser","type":"string[]"},{"internalType":"string","name":"metadata","type":"string"},{"internalType":"bool","name":"is721","type":"bool"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"string","name":"collectionName","type":"string"},{"internalType":"string","name":"uriFunc","type":"string"},{"internalType":"bool","name":"requiresTransform","type":"bool"},{"internalType":"string","name":"imgFileType","type":"string"},{"internalType":"bool","name":"requiresCustomURI","type":"bool"}],"internalType":"struct IParlayFactory.WhitelistData","name":"wld","type":"tuple"}],"internalType":"struct Blacksail_Parlay_Multicall.ParlayData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLiveParlays","outputs":[{"internalType":"address[]","name":"parlays","type":"address[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60803461010a57601f610f5a38819003918201601f19168301916001600160401b0383118484101761010f5780849260209460405283398101031261010a57516001600160a01b0381169081900361010a57600180548181811c91168015610100575b60208210146100ea57601f81116100bb575b507f68747470733a2f2f697066732e696f2f697066732f000000000000000000002a9055600080546001600160a01b031916919091179055604051610e3490816101268239f35b8160005281601f6020600020920160051c8201915b8281106100de575050610074565b600081550182906100d0565b634e487b7160e01b600052602260045260246000fd5b90607f1690610062565b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60e0600035811c80631b543ed6146109af578063c45a0155146109865763f109a0be1461003e57600080fd5b346104d15760203660031901126104d1576004356001600160a01b03811681036104d15761006a610b22565b805161007581610af6565b906100836040519283610ad4565b808252610092601f1991610af6565b0160005b8181106108cb57505060009360018060a01b0360005416925b825186101561076a576001600160a01b036100ca8783610c2f565b51166100d68785610c2f565b5152600460206001600160a01b036100ee8985610c2f565b511660405192838092633ef0f29b60e11b82525afa9081156104d657600091610730575b50602061011f8886610c2f565b516001600160a01b0392831691015260049060209061013e8985610c2f565b51166040519283809263b3cea21760e01b82525afa9081156104d6576000916106fe575b50604061016f8886610c2f565b510152600460206001600160a01b036101888985610c2f565b51166040519283809263085549b560e41b82525afa9081156104d6576000916106c4575b5060a06101b98886610c2f565b51911515910152600460206001600160a01b036101d68985610c2f565b511660405192838092636d8aa19b60e01b82525afa9081156104d657600091610692575b5060606102078886610c2f565b510152600460206001600160a01b036102208985610c2f565b5116604051928380926341ac811560e01b82525afa9081156104d657600091610660575b5060806102518886610c2f565b510152600460006001600160a01b0361026a8985610c2f565b51166040519283809263d8b2ec2760e01b82525afa9081156104d657600091610645575b5060c061029b8886610c2f565b510152602460006001600160a01b036102b48985610c2f565b51604051631b45a72960e11b81526001600160a01b038a16600482015293849290918391165afa9081156104d657600091610622575b50826102f68886610c2f565b510152604051631ba4ef7b60e01b815294600086600481885afa9586156104d657600096610572575b5060005b865181101561055b576001600160a01b0361033e8289610c2f565b5151166001600160a01b0360206103558b89610c2f565b510151161461036d575b61036890610c0a565b610323565b6001600160a01b0360206103818a88610c2f565b5101511660406103918a88610c2f565b51015160405191632a4e90cf60e01b8352600483015260248201526000816044818a5afa9081156104d65760009161051c575b506101006103d28a88610c2f565b5101526001600160a01b0360206103e98a88610c2f565b5101516040516336a8279560e21b8152911660048201526020816024818a5afa9081156104d6576000916104e2575b506101206104268a88610c2f565b519115159101526001600160a01b0360206104418a88610c2f565b510151604051630781e2c560e01b815291166004820152906000826024818a5afa80156104d65760009061048c575b61036892506101406104828b89610c2f565b510152905061035f565b503d806000843e61049d8184610ad4565b60208382810103126104d15782519267ffffffffffffffff84116104d157610368936104cc9282019101610d51565b610470565b600080fd5b6040513d6000823e3d90fd5b90506020813d602011610514575b816104fd60209383610ad4565b810103126104d15761050e90610c59565b38610418565b3d91506104f0565b90503d806000833e61052e8183610ad4565b81016020828203126104d157815167ffffffffffffffff81116104d1576105559201610c66565b386103c4565b509294509461056990610c0a565b949391936100af565b9095503d806000833e6105858183610ad4565b81016020828203126104d157815167ffffffffffffffff928382116104d157019181601f840112156104d1578251926105bd84610af6565b936105cb6040519586610ad4565b80855260208086019160051b830101928484116104d15760208301915b8483106105fc57505050505050943861031f565b82518281116104d15760209161061788848094890101610d51565b8152019201916105e8565b61063f91503d806000833e6106378183610ad4565b810190610cbb565b386102ea565b61065a91503d806000833e6106378183610ad4565b3861028e565b90506020813d60201161068a575b8161067b60209383610ad4565b810103126104d1575138610244565b3d915061066e565b90506020813d6020116106bc575b816106ad60209383610ad4565b810103126104d15751386101fa565b3d91506106a0565b90506020813d6020116106f6575b816106df60209383610ad4565b810103126104d1576106f090610c59565b386101ac565b3d91506106d2565b90506020813d602011610728575b8161071960209383610ad4565b810103126104d1575138610162565b3d915061070c565b90506020813d602011610762575b8161074b60209383610ad4565b810103126104d15761075c90610b0e565b38610112565b3d915061073e565b509060405190602082016020835281518091526040830190602060408260051b8601019301916000905b8282106107a15785850386f35b90919293602080600192603f19898203018552875190848060a01b038251168152848060a01b03838301511683820152604082015160408201526108878b6108b5606080860151818601526080808701518187015261089960a0958695868a01511515878a015261084e61083a8b60c0938c8161082b87850151610160808a860152840190610a5c565b93015191818403910152610a5c565b610100808d0151908c8303908d0152610a37565b98610120808c0151151590820152610140809b01519a818b039101528c8060a01b038a511689528a8a015190808c8b0152890190610a37565b604089015188820360408a0152610a37565b9180880151151590870152808701519086830390870152610a37565b9301511515910152960192019201909291610794565b6040949294519061016082019180831067ffffffffffffffff84111761097057602092604052600081526000838201526000604082015260606000818301526000608091818385015260a09082828601528060c0860152808c86015280610100860152826101208601526040519361094285610ab8565b8385528188860152816040860152838286015284015282015261014082015282828801015201939193610096565b634e487b7160e01b600052604160045260246000fd5b346104d15760003660031901126104d1576000546040516001600160a01b039091168152602090f35b346104d15760003660031901126104d1576109c8610b22565b604051809160208083018184528251809152816040850193019160005b8281106109f457505050500390f35b83516001600160a01b0316855286955093810193928101926001016109e5565b60005b838110610a275750506000910152565b8181015183820152602001610a17565b90602091610a5081518092818552858086019101610a14565b601f01601f1916010190565b908082519081815260208091019281808460051b8301019501936000915b848310610a8a5750505050505090565b9091929394958480610aa8600193601f198682030187528a51610a37565b9801930193019194939290610a7a565b60c0810190811067ffffffffffffffff82111761097057604052565b90601f8019910116810190811067ffffffffffffffff82111761097057604052565b67ffffffffffffffff81116109705760051b60200190565b51906001600160a01b03821682036104d157565b600080546040516324ac260360e11b815291908190839060049082906001600160a01b03165afa918215610bfd578192610b5b57505090565b9091503d8083833e610b6d8183610ad4565b81016020918281830312610bf55780519067ffffffffffffffff8211610bf9570181601f82011215610bf557805190610ba582610af6565b94610bb36040519687610ad4565b828652848087019360051b830101938411610bf257508301905b828210610bdb575050505090565b838091610be784610b0e565b815201910190610bcd565b80fd5b8380fd5b8480fd5b50604051903d90823e3d90fd5b6000198114610c195760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015610c435760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b519081151582036104d157565b81601f820112156104d157805167ffffffffffffffff81116109705760405192610c9a601f8301601f191660200185610ad4565b818452602082840101116104d157610cb89160208085019101610a14565b90565b9060209081838203126104d157825167ffffffffffffffff938482116104d1570181601f820112156104d1578051610cf281610af6565b94610d006040519687610ad4565b818652848087019260051b840101938085116104d157858401925b858410610d2c575050505050505090565b83518381116104d1578791610d46848480948a0101610c66565b815201930192610d1b565b91909160c0818403126104d15760405190610d6b82610ab8565b8193610d7682610b0e565b835260208201519067ffffffffffffffff918281116104d15781610d9b918501610c66565b602085015260408301518281116104d15781610db8918501610c66565b6040850152610dc960608401610c59565b606085015260808301519182116104d15782610dee60a09492610df994869401610c66565b608086015201610c59565b91015256fea2646970667358221220b26a096d97eb92527d5942a4ec8a63644481e81052ecff4b6da6069b4306d4a364736f6c634300081400330000000000000000000000000d772d0f3b127d49635b82c5edfeb6087f64d8b8
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60e0600035811c80631b543ed6146109af578063c45a0155146109865763f109a0be1461003e57600080fd5b346104d15760203660031901126104d1576004356001600160a01b03811681036104d15761006a610b22565b805161007581610af6565b906100836040519283610ad4565b808252610092601f1991610af6565b0160005b8181106108cb57505060009360018060a01b0360005416925b825186101561076a576001600160a01b036100ca8783610c2f565b51166100d68785610c2f565b5152600460206001600160a01b036100ee8985610c2f565b511660405192838092633ef0f29b60e11b82525afa9081156104d657600091610730575b50602061011f8886610c2f565b516001600160a01b0392831691015260049060209061013e8985610c2f565b51166040519283809263b3cea21760e01b82525afa9081156104d6576000916106fe575b50604061016f8886610c2f565b510152600460206001600160a01b036101888985610c2f565b51166040519283809263085549b560e41b82525afa9081156104d6576000916106c4575b5060a06101b98886610c2f565b51911515910152600460206001600160a01b036101d68985610c2f565b511660405192838092636d8aa19b60e01b82525afa9081156104d657600091610692575b5060606102078886610c2f565b510152600460206001600160a01b036102208985610c2f565b5116604051928380926341ac811560e01b82525afa9081156104d657600091610660575b5060806102518886610c2f565b510152600460006001600160a01b0361026a8985610c2f565b51166040519283809263d8b2ec2760e01b82525afa9081156104d657600091610645575b5060c061029b8886610c2f565b510152602460006001600160a01b036102b48985610c2f565b51604051631b45a72960e11b81526001600160a01b038a16600482015293849290918391165afa9081156104d657600091610622575b50826102f68886610c2f565b510152604051631ba4ef7b60e01b815294600086600481885afa9586156104d657600096610572575b5060005b865181101561055b576001600160a01b0361033e8289610c2f565b5151166001600160a01b0360206103558b89610c2f565b510151161461036d575b61036890610c0a565b610323565b6001600160a01b0360206103818a88610c2f565b5101511660406103918a88610c2f565b51015160405191632a4e90cf60e01b8352600483015260248201526000816044818a5afa9081156104d65760009161051c575b506101006103d28a88610c2f565b5101526001600160a01b0360206103e98a88610c2f565b5101516040516336a8279560e21b8152911660048201526020816024818a5afa9081156104d6576000916104e2575b506101206104268a88610c2f565b519115159101526001600160a01b0360206104418a88610c2f565b510151604051630781e2c560e01b815291166004820152906000826024818a5afa80156104d65760009061048c575b61036892506101406104828b89610c2f565b510152905061035f565b503d806000843e61049d8184610ad4565b60208382810103126104d15782519267ffffffffffffffff84116104d157610368936104cc9282019101610d51565b610470565b600080fd5b6040513d6000823e3d90fd5b90506020813d602011610514575b816104fd60209383610ad4565b810103126104d15761050e90610c59565b38610418565b3d91506104f0565b90503d806000833e61052e8183610ad4565b81016020828203126104d157815167ffffffffffffffff81116104d1576105559201610c66565b386103c4565b509294509461056990610c0a565b949391936100af565b9095503d806000833e6105858183610ad4565b81016020828203126104d157815167ffffffffffffffff928382116104d157019181601f840112156104d1578251926105bd84610af6565b936105cb6040519586610ad4565b80855260208086019160051b830101928484116104d15760208301915b8483106105fc57505050505050943861031f565b82518281116104d15760209161061788848094890101610d51565b8152019201916105e8565b61063f91503d806000833e6106378183610ad4565b810190610cbb565b386102ea565b61065a91503d806000833e6106378183610ad4565b3861028e565b90506020813d60201161068a575b8161067b60209383610ad4565b810103126104d1575138610244565b3d915061066e565b90506020813d6020116106bc575b816106ad60209383610ad4565b810103126104d15751386101fa565b3d91506106a0565b90506020813d6020116106f6575b816106df60209383610ad4565b810103126104d1576106f090610c59565b386101ac565b3d91506106d2565b90506020813d602011610728575b8161071960209383610ad4565b810103126104d1575138610162565b3d915061070c565b90506020813d602011610762575b8161074b60209383610ad4565b810103126104d15761075c90610b0e565b38610112565b3d915061073e565b509060405190602082016020835281518091526040830190602060408260051b8601019301916000905b8282106107a15785850386f35b90919293602080600192603f19898203018552875190848060a01b038251168152848060a01b03838301511683820152604082015160408201526108878b6108b5606080860151818601526080808701518187015261089960a0958695868a01511515878a015261084e61083a8b60c0938c8161082b87850151610160808a860152840190610a5c565b93015191818403910152610a5c565b610100808d0151908c8303908d0152610a37565b98610120808c0151151590820152610140809b01519a818b039101528c8060a01b038a511689528a8a015190808c8b0152890190610a37565b604089015188820360408a0152610a37565b9180880151151590870152808701519086830390870152610a37565b9301511515910152960192019201909291610794565b6040949294519061016082019180831067ffffffffffffffff84111761097057602092604052600081526000838201526000604082015260606000818301526000608091818385015260a09082828601528060c0860152808c86015280610100860152826101208601526040519361094285610ab8565b8385528188860152816040860152838286015284015282015261014082015282828801015201939193610096565b634e487b7160e01b600052604160045260246000fd5b346104d15760003660031901126104d1576000546040516001600160a01b039091168152602090f35b346104d15760003660031901126104d1576109c8610b22565b604051809160208083018184528251809152816040850193019160005b8281106109f457505050500390f35b83516001600160a01b0316855286955093810193928101926001016109e5565b60005b838110610a275750506000910152565b8181015183820152602001610a17565b90602091610a5081518092818552858086019101610a14565b601f01601f1916010190565b908082519081815260208091019281808460051b8301019501936000915b848310610a8a5750505050505090565b9091929394958480610aa8600193601f198682030187528a51610a37565b9801930193019194939290610a7a565b60c0810190811067ffffffffffffffff82111761097057604052565b90601f8019910116810190811067ffffffffffffffff82111761097057604052565b67ffffffffffffffff81116109705760051b60200190565b51906001600160a01b03821682036104d157565b600080546040516324ac260360e11b815291908190839060049082906001600160a01b03165afa918215610bfd578192610b5b57505090565b9091503d8083833e610b6d8183610ad4565b81016020918281830312610bf55780519067ffffffffffffffff8211610bf9570181601f82011215610bf557805190610ba582610af6565b94610bb36040519687610ad4565b828652848087019360051b830101938411610bf257508301905b828210610bdb575050505090565b838091610be784610b0e565b815201910190610bcd565b80fd5b8380fd5b8480fd5b50604051903d90823e3d90fd5b6000198114610c195760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015610c435760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b519081151582036104d157565b81601f820112156104d157805167ffffffffffffffff81116109705760405192610c9a601f8301601f191660200185610ad4565b818452602082840101116104d157610cb89160208085019101610a14565b90565b9060209081838203126104d157825167ffffffffffffffff938482116104d1570181601f820112156104d1578051610cf281610af6565b94610d006040519687610ad4565b818652848087019260051b840101938085116104d157858401925b858410610d2c575050505050505090565b83518381116104d1578791610d46848480948a0101610c66565b815201930192610d1b565b91909160c0818403126104d15760405190610d6b82610ab8565b8193610d7682610b0e565b835260208201519067ffffffffffffffff918281116104d15781610d9b918501610c66565b602085015260408301518281116104d15781610db8918501610c66565b6040850152610dc960608401610c59565b606085015260808301519182116104d15782610dee60a09492610df994869401610c66565b608086015201610c59565b91015256fea2646970667358221220b26a096d97eb92527d5942a4ec8a63644481e81052ecff4b6da6069b4306d4a364736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000d772d0f3b127d49635b82c5edfeb6087f64d8b8
-----Decoded View---------------
Arg [0] : _factory (address): 0x0D772D0f3b127D49635b82C5edfEb6087F64d8B8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d772d0f3b127d49635b82c5edfeb6087f64d8b8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.