Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deploy Parlay | 4864289 | 22 days ago | IN | 0 S | 0.11669394 | ||||
Deploy Parlay | 4863142 | 22 days ago | IN | 0 S | 0.12942006 | ||||
Deploy Parlay | 4833536 | 22 days ago | IN | 0 S | 0.11669394 | ||||
Deploy Parlay | 4830855 | 22 days ago | IN | 0 S | 0.12942006 | ||||
Deploy Parlay | 4822682 | 22 days ago | IN | 0 S | 0.12942006 | ||||
Deploy Parlay | 4820736 | 22 days ago | IN | 0 S | 0.11669394 | ||||
Modify Miner Rol... | 4820559 | 22 days ago | IN | 0 S | 0.00256514 | ||||
Deploy Parlay | 4817834 | 22 days ago | IN | 0 S | 0.13669672 | ||||
Modify Whitelist | 4814429 | 22 days ago | IN | 0 S | 0.0176479 |
Latest 7 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
4864289 | 22 days ago | Contract Creation | 0 S | |||
4863142 | 22 days ago | Contract Creation | 0 S | |||
4833536 | 22 days ago | Contract Creation | 0 S | |||
4830855 | 22 days ago | Contract Creation | 0 S | |||
4822682 | 22 days ago | Contract Creation | 0 S | |||
4820736 | 22 days ago | Contract Creation | 0 S | |||
4817834 | 22 days ago | Contract Creation | 0 S |
Loading...
Loading
Contract Name:
Blacksail_Parlay_Factory
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/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./Blacksail_Parlay.sol"; import "../libraries/StringUtils.sol"; import "../interfacing/parlays/IParlay.sol"; contract Blacksail_Parlay_Factory is Ownable, IERC721Receiver, IERC1155Receiver, ERC165 { IERC20 public WETH; address public treasury; uint256 public constant pFEE = 2; uint256 public constant DIVISOR = 100; mapping(address => bool) whitelisted; mapping(address => bool) ADMIN_ROLE; mapping(address => bool) MINER_ROLE; struct WhitelistData { address collection; string collectionName; string uriFunc; bool requiresTransform; string imgFileType; bool requiresCustomURI; } WhitelistData[] public whitelist; address[] public deployed; event ModifyWhitelist( address indexed caller, WhitelistData[] collections, bool allowed ); constructor(IERC20 _WETH, address _treasury) Ownable(msg.sender) { WETH = _WETH; treasury = _treasury; _initOwnerAsAdmin(msg.sender); } function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external pure override returns (bytes4) { return this.onERC721Received.selector; } function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external pure override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external pure override returns (bytes4) { return this.onERC1155BatchReceived.selector; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721Receiver).interfaceId || interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } function fetchActiveParlays() public view returns (address[] memory) { uint256 activeCount = 0; for (uint256 i = 0; i < deployed.length; i++) { if (IParlay(deployed[i]).active()) { activeCount++; } } address[] memory active = new address[](activeCount); uint256 index = 0; for (uint256 i = 0; i < deployed.length; i++) { if (IParlay(deployed[i]).active()) { active[index] = deployed[i]; index++; } } return active; } function getParlay(uint256 index) public view returns (address) { return deployed[index]; } function getWETH() public view returns (address) { return address(WETH); } function isMiner(address account) public view returns (bool) { return MINER_ROLE[account]; } function getFriendlyURI( address collection, uint256 id ) public view returns (string memory) { require(_isInWhitelist(collection), "Not supported"); WhitelistData memory wld = getWhitelistDataForCollection(collection); /* For collections requiring a more customized URI, * we delegate the logic to the multicall contract for adjustment * and redeployment. This enables support for specific collections * in Parlays while maintaining the factory contract's immutability. */ if (!wld.requiresCustomURI) { if (wld.requiresTransform) { string memory uri = transformIpfsUri(collection, id); return uri; } else { string memory signature = StringUtils.concat( wld.uriFunc, "(uint256)" ); bytes memory result = Address.functionStaticCall( collection, abi.encodeWithSignature(signature, id) ); return abi.decode(result, (string)); } return "needsCustomURI"; } } function getWhitelistDataForCollection( address collection ) public view returns (WhitelistData memory) { for (uint256 i; i < whitelist.length; i++) { if (whitelist[i].collection == collection) { return whitelist[i]; } } } function transformIpfsUri( address nft, uint256 id ) public view returns (string memory) { // Fetch the base URI from the NFT contract string memory baseURL = "https://ipfs.io/ipfs/"; string memory baseUri = IERC721Metadata(nft).tokenURI(id); string memory filePath = ".json"; // Ensure the URI starts with "ipfs://" bytes memory baseUriBytes = bytes(baseUri); require(baseUriBytes.length > 7, "Invalid IPFS URI"); require( keccak256(abi.encodePacked(substring(baseUri, 0, 7))) == keccak256(abi.encodePacked("ipfs://")), "URI must start with ipfs://" ); // Extract the IPFS CID from the URI string memory cid = substring(baseUri, 7, baseUriBytes.length); // Create the full URL by appending CID to the IPFS gateway return string(abi.encodePacked(baseURL, cid, filePath)); } // Helper function to extract a substring from a string function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function deployParlay( uint256 gamePrice, address collection, uint256 id, uint256 duration ) external { require(whitelisted[collection], "Collection not whitelisted"); // Check whether the collection is ERC721 or ERC1155 bool is721 = isERC721(collection); bool is1155 = isERC1155(collection); require(is721 || is1155, "Unsupported token standard"); if (is721) { require( IERC721(collection).ownerOf(id) == msg.sender, "You don't own this ERC-721 token" ); IERC721(collection).safeTransferFrom(msg.sender, address(this), id); } else if (is1155) { uint256 balance = IERC1155(collection).balanceOf(msg.sender, id); require(balance >= 1, "Insufficient ERC-1155 balance"); IERC1155(collection).safeTransferFrom( msg.sender, address(this), id, 1, "" ); } uint256 gamePriceWithPFee = gamePrice + ((gamePrice * pFEE) / DIVISOR); uint256 totalGamePrice = gamePriceWithPFee + (gamePriceWithPFee / 100); bool elevenfiftyfive = is1155; Blacksail_Parlay parlay = new Blacksail_Parlay( msg.sender, collection, id, totalGamePrice, duration, elevenfiftyfive ); deployed.push(address(parlay)); if (is721) { IERC721(collection).approve(address(parlay), id); IERC721(collection).safeTransferFrom( address(this), address(parlay), id ); } else if (is1155) { IERC1155(collection).setApprovalForAll(address(parlay), true); IERC1155(collection).safeTransferFrom( address(this), address(parlay), id, 1, "" ); } } function modifyWhitelist( WhitelistData[] calldata _data, bool _allowed ) external onlyAdmin { for (uint256 i; i < _data.length; i++) { address addr = _data[i].collection; if (_allowed) { if (!whitelisted[addr]) { whitelisted[addr] = true; if (!_isInWhitelist(addr)) { // Copy the entire structure WhitelistData memory wld = _data[i]; whitelist.push(wld); } } } else { if (whitelisted[addr]) { whitelisted[addr] = false; _removeFromWhitelist(addr); } } } emit ModifyWhitelist(msg.sender, _data, _allowed); } function whitelistedCollections() public view returns (WhitelistData[] memory) { return whitelist; } function _isInWhitelist(address addr) internal view returns (bool) { for (uint256 i; i < whitelist.length; i++) { if (whitelist[i].collection == addr) { return true; } } return false; } function _removeFromWhitelist(address addr) internal { for (uint256 i; i < whitelist.length; i++) { if (whitelist[i].collection == addr) { whitelist[i] = whitelist[whitelist.length - 1]; whitelist.pop(); break; } } } function isERC721(address collection) public view returns (bool) { try IERC721(collection).supportsInterface(type(IERC721).interfaceId) returns (bool result) { return result && !isERC1155(collection); } catch { return false; } } function isERC1155(address collection) public view returns (bool) { try IERC1155(collection).supportsInterface(type(IERC1155).interfaceId) returns (bool result) { return result; } catch { return false; } } function modifyAdminRole(address user, bool allow) external onlyOwner { ADMIN_ROLE[user] = allow; } function modifyMinerRole(address user, bool allow) external onlyOwner { MINER_ROLE[user] = allow; } function _initOwnerAsAdmin(address owner) internal { ADMIN_ROLE[owner] = true; } function setTreasury(address _newTreasury) external onlyOwner { treasury = _newTreasury; } modifier onlyMiner() { require(MINER_ROLE[msg.sender], "!Miner"); _; } modifier onlyAdmin() { require(ADMIN_ROLE[msg.sender], "!Administrator"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 (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/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[ERC]. */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` amount of tokens of 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 value of tokens of token type `id` owned by `account`. */ 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 zero address. */ 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 a `value` amount of tokens of type `id` from `from` to `to`. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155Received} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `value` 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 value, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments. * * Requirements: * * - `ids` and `values` 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 values, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC-1155 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 ERC-1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated 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.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// 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/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// 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; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "../interfacing/parlays/IParlayFactory.sol"; contract Blacksail_Parlay is ReentrancyGuard, IERC721Receiver, IERC1155Receiver, ERC165 { using SafeERC20 for IERC20; address public GAME_MASTER; address public collection; address public factory; uint256 public ID; uint256 public totalGamePrice; uint256 public callFee; uint256 public contestEnd; bool public isERC1155; bool public active = true; mapping(string => mapping(uint256 => address)) blockOwner; struct Block { string row; uint256 col; } event PurchaseBlocks( address indexed buyer, Block[] _blocks, uint256 amount ); event GiftBlock( address indexed gifter, address indexed gifted, Block block ); event EndContest( address indexed winner, address indexed Game_Master, uint256 GM_Weth_received ); Block[] owned; constructor( address _game_master, address _collection, uint256 _id, uint256 _gamePrice, uint256 _contestDuration, bool _isERC1155 ) { factory = msg.sender; GAME_MASTER = _game_master; collection = _collection; ID = _id; totalGamePrice = _gamePrice; isERC1155 = _isERC1155; contestEnd = block.timestamp + _contestDuration; callFee = calculateBlockPrice(); } function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external override returns (bytes4) { return this.onERC721Received.selector; } function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external override returns (bytes4) { return this.onERC1155BatchReceived.selector; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721Receiver).interfaceId || interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } function calculateBlockPrice() public view returns (uint256 tokens) { return totalGamePrice / 100; } function closable() public view returns (bool) { if (block.timestamp >= contestEnd) { return (true); } else { return (false); } } function getOwnedBlocks() public view returns (string[] memory) { string[] memory ownedBlocks = new string[](owned.length); for (uint256 i = 0; i < owned.length; i++) { ownedBlocks[i] = string( abi.encodePacked(owned[i].row, uintToString(owned[i].col)) ); } return ownedBlocks; } function blocksOwnedBy(address user) public view returns (string[] memory) { uint256 count = 0; for (uint256 i = 0; i < owned.length; i++) { if (blockOwner[owned[i].row][owned[i].col] == user) { count++; } } string[] memory userBlocks = new string[](count); uint256 index = 0; for (uint256 i = 0; i < owned.length; i++) { if (blockOwner[owned[i].row][owned[i].col] == user) { userBlocks[index] = string( abi.encodePacked(owned[i].row, uintToString(owned[i].col)) ); index++; } } return userBlocks; } function uintToString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function purchaseBlocks(Block[] calldata _block) external nonReentrant { require(active, "This parlay has concluded"); for (uint i; i < _block.length; i++) { require( _block[i].col >= 0 && _block[i].col <= 9 && charToNumber(_block[i].row) >= 0 && charToNumber(_block[i].row) <= 9, "Column out of range" ); require( blockOwner[_block[i].row][_block[i].col] == address(0), "Block already purchased" ); } uint256 cost = calculateBlockPrice() * _block.length; address weth = IParlayFactory(factory).getWETH(); uint256 balance = IERC20(weth).balanceOf(msg.sender); require(balance >= cost, "Not enough WETH balance"); IERC20(weth).safeTransferFrom(msg.sender, address(this), cost); for (uint i; i < _block.length; i++) { Block memory tempBlock; blockOwner[_block[i].row][_block[i].col] = msg.sender; tempBlock.row = _block[i].row; tempBlock.col = _block[i].col; owned.push(tempBlock); } emit PurchaseBlocks(msg.sender, _block, cost); } function closeContest() external { require(closable(), "Not enough time has passed"); require(active, "This event has been concluded"); require(IParlayFactory(factory).isMiner(msg.sender), "!Auth"); // Generate the random in range for row and col uint256[] memory winningBlock = generateWinningBlock(); address winner = blockOwner[numberToChar(winningBlock[0])][ winningBlock[1] ]; address weth = IParlayFactory(factory).getWETH(); uint256 wethBal = IERC20(weth).balanceOf(address(this)); uint256 wethToGM; if (wethBal > 0) { // Take protocol fee IERC20(weth).safeTransfer( IParlayFactory(factory).treasury(), (wethBal * IParlayFactory(factory).pFEE()) / IParlayFactory(factory).DIVISOR() ); // Award this function caller the call reward if ( IERC20(weth).balanceOf(address(this)) >= calculateBlockPrice() ) { IERC20(weth).safeTransfer(msg.sender, calculateBlockPrice()); } else { IERC20(weth).safeTransfer( msg.sender, IERC20(weth).balanceOf(address(this)) ); } if (IERC20(weth).balanceOf(address(this)) > 0) { wethToGM = IERC20(weth).balanceOf(address(this)); IERC20(weth).safeTransfer(GAME_MASTER, wethToGM); } } // Check the blockOwner mapping to see if the chosen block has an owner // If it doesn't send all funds to the game_master and the NFT if (winner == address(0)) { if (isERC1155) { uint256 erc1155Bal = IERC1155(collection).balanceOf( address(this), ID ); IERC1155(collection).safeTransferFrom( address(this), GAME_MASTER, ID, erc1155Bal, // Amount for ERC-1155 "" // Data (optional) ); } else { IERC721(collection).safeTransferFrom( address(this), GAME_MASTER, ID ); } } // If it does send funds, minus cost of 1 block, to the Game_master and the NFT to the winner else { if (isERC1155) { uint256 erc1155Bal = IERC1155(collection).balanceOf( address(this), ID ); IERC1155(collection).safeTransferFrom( address(this), winner, ID, erc1155Bal, // Amount for ERC-1155 "" // Data (optional) ); } else { IERC721(collection).safeTransferFrom(address(this), winner, ID); } } // Set active to false active = false; emit EndContest(winner, GAME_MASTER, wethToGM); } function giftBlock(address to, Block calldata _block) external { require( blockOwner[_block.row][_block.col] == msg.sender, "You don't own this block" ); blockOwner[_block.row][_block.col] == to; emit GiftBlock(msg.sender, to, _block); } function charToNumber(string memory char) public pure returns (uint256) { bytes memory charBytes = bytes(char); require(charBytes.length == 1, "Input must be a single character."); uint8 ascii = uint8(charBytes[0]); require( ascii >= 65 && ascii <= 74, "Input must be a character between A and J." ); return ascii - 65; } function numberToChar(uint256 number) public pure returns (string memory) { require(number >= 0 && number <= 9, "Input must be between 0 and 9."); bytes memory char = new bytes(1); char[0] = bytes1(uint8(number + 65)); return string(char); } function generateWinningBlock() internal view returns (uint256[] memory) { uint256 l; uint256[] memory random = new uint256[](2); for (uint256 i = 0; i < 2; i++) { random[i] = uint256( keccak256( abi.encodePacked( block.timestamp, block.prevrandao, msg.sender, l ) ) ) % 10; l = random[i]; } return random; } /** @notice TESTING PURPOSES ONLY - Used to test with live data. * If you see this kind of logic in a live and utilized contract DO NOT USE IT! */ function rescueToken() external { require(IParlayFactory(factory).isMiner(msg.sender), "!Auth"); if (isERC1155) { uint256 erc1155Bal = IERC1155(collection).balanceOf( address(this), ID ); IERC1155(collection).safeTransferFrom( address(this), msg.sender, ID, erc1155Bal, "" ); } else { IERC721(collection).safeTransferFrom(address(this), msg.sender, ID); } } /** @notice TESTING PURPOSES ONLY - Used to test with live data. * If you see this kind of logic in a live and utilized contract DO NOT USE IT! */ function rescuefunds(address token) external { require(IParlayFactory(factory).isMiner(msg.sender), "!Auth"); IERC20(token).transfer(msg.sender, IERC20(token).balanceOf(address(this))); } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; library StringUtils { function concat(string memory a, string memory b) internal pure returns (string memory) { return string(abi.encodePacked(a, b)); } }
{ "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
[{"inputs":[{"internalType":"contract IERC20","name":"_WETH","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"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"}],"indexed":false,"internalType":"struct Blacksail_Parlay_Factory.WhitelistData[]","name":"collections","type":"tuple[]"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"ModifyWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gamePrice","type":"uint256"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"deployParlay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deployed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchActiveParlays","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFriendlyURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getParlay","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getWhitelistDataForCollection","outputs":[{"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 Blacksail_Parlay_Factory.WhitelistData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"isERC1155","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"isERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMiner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"modifyAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"modifyMinerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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 Blacksail_Parlay_Factory.WhitelistData[]","name":"_data","type":"tuple[]"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"modifyWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pFEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasury","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transformIpfsUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelist","outputs":[{"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"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistedCollections","outputs":[{"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 Blacksail_Parlay_Factory.WhitelistData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080346200010057601f62004df238819003918201601f19168301916001600160401b0383118484101762000105578084926040948552833981010312620001005780516001600160a01b0391828216918290036200010057602001519082821680920362000100573315620000e757600080546001600160a01b03198082163390811784556040805197909694959293167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08680a38160015416176001556002541617600255338152600460205220600160ff19825416179055614cd690816200011c8239f35b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe60808060405260043610156200001457600080fd5b600090813560e01c90816301ffc9a71462001a74575080630781e2c51462001a33578063116e72db14620019d8578063150b7a02146200197857806315b40ec014620019485780631ba4ef7b1462001851578063282e460a14620018275780632a4e90cf14620017f75780633410fe6e14620017d9578063381738f5146200179d5780633f0cf6921462000eb357806349584c061462000c6857806361d027b31462000c3d578063701b70ac1462000bfa578063715018a61462000b9c5780637ebd1b301462000ace5780638da5cb5b1462000aa55780639bb0b9b114620004735780639ea31e7614620004155780639fba3e2014620003cc578063ad5c46481462000302578063bc197c81146200032d578063cae5f11e1462000302578063daa09e5414620002ce578063f0f442601462000288578063f23a6e611462000224578063f2d145b014620002065763f2fde38b146200017257600080fd5b346200020357602036600319011262000203576200018f62001ae8565b6200019962001e69565b6001600160a01b03908116908115620001ea57600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b80fd5b50346200020357806003193601126200020357602060405160028152f35b5034620002035760a036600319011262000203576200024262001ae8565b506200024d62001b04565b506084356001600160401b03811162000284576200027090369060040162001c0a565b505060405163f23a6e6160e01b8152602090f35b5080fd5b5034620002035760203660031901126200020357620002a662001ae8565b620002b062001e69565b60018060a01b03166001600160601b0360a01b600254161760025580f35b50346200020357602036600319011262000203576020620002f8620002f262001ae8565b6200285b565b6040519015158152f35b503462000203578060031936011262000203576001546040516001600160a01b039091168152602090f35b5034620002035760a036600319011262000203576200034b62001ae8565b506200035662001b04565b506001600160401b03604435818111620003c8576200037a90369060040162001c88565b5050606435818111620003c8576200039790369060040162001c88565b50506084359081116200028457620003b490369060040162001c0a565b505060405163bc197c8160e01b8152602090f35b8280fd5b503462000203576040366003190112620002035762000411620003fc620003f262001ae8565b6024359062002280565b60405191829160208352602083019062001b55565b0390f35b5034620002035760403660031901126200020357620004706200043762001ae8565b6200044162001bec565b906200044c62001e69565b60018060a01b031683526005602052604083209060ff801983541691151516179055565b80f35b5034620002035760803660031901126200020357600435906200049562001b04565b91604492833560018060a01b03948583169384865260206003815260ff6040882054161562000a6257620004d4620004cd866200285b565b95620028de565b9185861562000a5a575b1562000a1657828615620008ee57506040516331a9108f60e11b81526004810186905282816024818b5afa90811562000860578991620008ad575b5089339116036200086b57863b156200085c57604051632142170760e11b8152336004820152306024820152604481018690528881606481838c5af18015620008605790899162000844575b50505b8060011b8181046002148215171562000830576200059a9160646200058f92049062002598565b606481049062002598565b906040519161235791828401928484106001600160401b038511176200081c57918960c0949286946200294a86393384528301528760408301526060820152606435608082015284151560a082015203019087f08015620008115787169360075497600160401b891015620007fd576200061c8960018a9b0160075562001c3a565b819291549060031b9188831b921b191617905560001462000715575050823b15620006ed5760405163095ea7b360e01b81526001600160a01b038316600482015260248101829052848160448183885af19081156200070a578591620006f2575b5050823b15620006ed57604051632142170760e11b81523060048201526001600160a01b0392909216602483015260448201529082908290606490829084905af18015620006e257620006cf57505080f35b620006da9062001d65565b620002035780f35b6040513d84823e3d90fd5b505050fd5b620006fd9062001d65565b620006ed5783386200067d565b6040513d87823e3d90fd5b62000723575b505050505080f35b833b15620007f95784604051809263a22cb46560e01b8252856004830152600160248301528183885af19081156200070a578591620007e1575b5050823b15620006ed57604051637921219560e11b81523060048201526001600160a01b0392909216602483015260448201526001606482015260a06084820152600060a4820152908290829060c490829084905af18015620006e257620007c9575b8080806200071b565b620007d49062001d65565b62000203578038620007c0565b620007ec9062001d65565b620006ed5783386200075d565b8480fd5b634e487b7160e01b88526041600452602488fd5b6040513d88823e3d90fd5b634e487b7160e01b8b52604160045260248bfd5b634e487b7160e01b89526011600452602489fd5b6200084f9062001d65565b6200085c57873862000565565b8780fd5b6040513d8b823e3d90fd5b6064827f596f7520646f6e2774206f776e2074686973204552432d37323120746f6b656e866040519262461bcd60e51b84528060048501526024840152820152fd5b90508281813d8311620008e6575b620008c7818362001d95565b81010312620008e257518981168103620008e2573862000519565b8880fd5b503d620008bb565b156200056857604051627eeac760e11b81523360048201526024810186905282816044818b5afa801562000860578990620009e2575b60019150106200099e57863b156200085c57604051637921219560e11b8152336004820152306024820152604481018690526001606482015260a06084820152600060a4820152888160c481838c5af18015620008605762000988575b5062000568565b620009969098919862001d65565b963862000981565b60405162461bcd60e51b815260048101839052601d60248201527f496e73756666696369656e74204552432d313135352062616c616e636500000081860152606490fd5b508281813d831162000a0e575b620009fb818362001d95565b81010312620008e2576001905162000924565b503d620009ef565b60405162461bcd60e51b815260048101839052601a60248201527f556e737570706f7274656420746f6b656e207374616e6461726400000000000081860152606490fd5b5082620004de565b6064907f436f6c6c656374696f6e206e6f742077686974656c6973746564000000000000846040519262461bcd60e51b84526004840152601a6024840152820152fd5b50346200020357806003193601126200020357546040516001600160a01b039091168152602090f35b5034620002035760203660031901126200020357600435600654811015620002845762000afb9062001cbb565b5080546001600160a01b031662000b156001830162001db7565b9162000b9062000b286002830162001db7565b9160ff6003820154169062000b7a60ff600562000b486004850162001db7565b930154169462000b6b604051988998895260c060208a015260c089019062001b55565b90878203604089015262001b55565b9115156060860152848203608086015262001b55565b90151560a08301520390f35b5034620002035780600319360112620002035762000bb962001e69565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503462000203576020366003190112620002035760209060ff906040906001600160a01b0362000c2962001ae8565b168152600584522054166040519015158152f35b503462000203578060031936011262000203576002546040516001600160a01b039091168152602090f35b5034620002035780600319360112620002035760075481805b82811062000e16575062000cb262000c998462001ed6565b9362000ca9604051958662001d95565b80855262001ed6565b6020928484019291601f19013684378190825b81811062000d195750505060405193838594850191818652518092526040850193925b82811062000cf857505050500390f35b83516001600160a01b03168552869550938101939281019260010162000ce8565b62000d2981979596949762001c3a565b905460405163017d862f60e11b81526001600160a01b039260039288918391600491839190871b1c87165afa90811562000e0b578a9162000dd7575b5062000d84575b505062000d799062001e96565b959294939562000cc5565b62000d9183959362001c3a565b9054911b1c16855182101562000dc3578162000dba918662000d799460051b8901015262001e96565b92903862000d6c565b634e487b7160e01b88526032600452602488fd5b62000dfc9150873d891162000e03575b62000df3818362001d95565b81019062001ebc565b3862000d65565b503d62000de7565b6040513d8c823e3d90fd5b62000e248194929462001c3a565b90546040519063017d862f60e11b825281600481602095869460018060a01b039160031b1c165afa9182156200081157869262000e91575b505062000e78575b62000e6f9062001e96565b92909262000c81565b9062000e8862000e6f9162001e96565b91905062000e64565b62000eab9250803d1062000e035762000df3818362001d95565b388062000e5c565b50346200020357604036600319011262000203576004356001600160401b038111620002845762000ee990369060040162001c88565b62000ef362001bec565b338452600460205260ff604085205416156200176757835b828110620010575750604051918060408401604085525260609081840194828260051b86010195819388925b84841062000f7257861515602089015289337fd14468ffbbf298eec4bd3bdbb46edb596ded040418b22f131efcc6b2aa17ff478a8c038ba280f35b909192939497605f1988820301845288359060be1983360301821215620010535760019160209182918501906001600160a01b0362000fb18362001b1b565b1681526200102d62000ffc62000fde62000fce868601866200267a565b60c08089880152860191620026ae565b62000fed60408601866200267a565b908583036040870152620026ae565b6200100989850162001bfc565b15158984015260806200101f818601866200267a565b9185840390860152620026ae565b916200103d60a080920162001bfc565b15159101529a0194019401929493919062000f37565b8a80fd5b62001064818486620025a6565b6001600160a01b0390358181168082036200085c5784156200154c578752600360205260408720805460ff811615620010ad575b50505050620010a79062001e96565b62000f0b565b60ff19166001179055620010c190620026cf565b15620010d1575b80808062001098565b620010de828587620025a6565b60c0813603126200154857604051620010f78162001d33565b620011028262001b1b565b815260208201356001600160401b038111620008e257620011279036908401620025ca565b6020820190815260408301356001600160401b0381116200154457620011519036908501620025ca565b604083015260606200116581850162001bfc565b81840152608091828501356001600160401b03811162001540576200118e9036908701620025ca565b83850152620011a160a080960162001bfc565b858501526006805490600160401b8210156200152c57600182019055620011c89062001cbb565b9690966200151857845187546001600160a01b0319169116178655518051906001600160401b0382116200148457819062001216826200120c60018b015462001cf6565b60018b0162002630565b602090601f8311600114620014a4578d9262001498575b50508160011b916000199060031b1c19161760018601555b60408301519081516001600160401b03811162001484576200127a816200127060028a015462001cf6565b60028a0162002630565b6020928c601f83116001146200140a57620012ca94909183620013fe575b50508160011b916000199060031b1c19161760028701555b8301511515600386019060ff801983541691151516179055565b8101518051906001600160401b038211620013ea57620012fd82620012f3600488015462001cf6565b6004880162002630565b6020908a601f841160011462001369579280620013569693620010a799989693600596926200135d575b50508160011b916000199060031b1c19161760048501555b0151151591019060ff801983541691151516179055565b90620010c8565b01519050388062001327565b5090600486018b5260208b20918b5b601f1985168110620013d1575083620013569693620010a799989693600193600597601f19811610620013b7575b505050811b0160048501556200133f565b015160001960f88460031b161c19169055388080620013a6565b9192602060018192868501518155019401920162001378565b634e487b7160e01b8a52604160045260248afd5b01519050388062001298565b50909192600288018d5260208d20918d5b601f19851681106200146b5750918391600193620012ca9695601f1981161062001451575b505050811b016002870155620012b0565b015160001960f88460031b161c1916905538808062001440565b919260206001819286850151815501940192016200141b565b634e487b7160e01b8c52604160045260248cfd5b0151905038806200122d565b9250600188018d5260208d20908d935b601f1984168510620014fc576001945083601f19811610620014e2575b505050811b01600186015562001245565b015160001960f88460031b161c19169055388080620014d1565b81810151835560209485019460019093019290910190620014b4565b634e487b7160e01b8c5260048c905260248cfd5b634e487b7160e01b8d52604160045260248dfd5b8b80fd5b8980fd5b8680fd5b8092915087526003908160205260408820805460ff811662001579575b5050505050620010a79062001e96565b60ff19169055919592949093919290875b600680548083101562001752578987620015a48562001cbb565b50541614620015c0575050620015ba9062001e96565b6200158a565b9297959190939850600096949619928381019081116200173e57620015e9620015f19162001cbb565b509162001cbb565b9190916200172a5780820362001697575b50505081548015620016835701916200161b8362001cbb565b9190916200166f576005828a809381620010a7999897965562001641600184016200280c565b6200164f600284016200280c565b82015562001660600482016200280c565b0155555b903880808062001569565b634e487b7160e01b89526004899052602489fd5b634e487b7160e01b89526031600452602489fd5b62001721928154166001600160601b0360a01b835416178255620016c260018083019084016200271f565b620016d460028083019084016200271f565b620016f360ff87830154168784019060ff801983541691151516179055565b6200170560048201600484016200271f565b60ff6005809201541691019060ff801983541691151516179055565b38808062001602565b634e487b7160e01b8b5260048b905260248bfd5b634e487b7160e01b8b52601160045260248bfd5b505050949193509450620010a7915062001664565b60405162461bcd60e51b815260206004820152600e60248201526d10a0b236b4b734b9ba3930ba37b960911b6044820152606490fd5b50346200020357602036600319011262000203576020620017c060043562001c3a565b905460405160039290921b1c6001600160a01b03168152f35b50346200020357806003193601126200020357602060405160648152f35b503462000203576040366003190112620002035762000411620003fc6200181d62001ae8565b6024359062001f75565b50346200020357602036600319011262000203576020620002f86200184b62001ae8565b620028de565b50346200020357806003193601126200020357600690815491620018758362001ed6565b9162001885604051938462001d95565b83835281815260209384840192827ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f855b84831062001921575050505050604051928484019085855251809152604084019460408260051b8601019392955b828710620018f25785850386f35b90919293828062001910600193603f198a8203018652885162001b7c565b9601920196019592919092620018e4565b838960019262001935859c9b999c62002174565b81520192019201919097949697620018b6565b50346200020357602036600319011262000203576004359060075482101562000203576020620017c08362001c3a565b50346200020357608036600319011262000203576200199662001ae8565b50620019a162001b04565b506064356001600160401b0381116200028457620019c490369060040162001c0a565b5050604051630a85bd0160e11b8152602090f35b503462000203576040366003190112620002035762000470620019fa62001ae8565b62001a0462001bec565b9062001a0f62001e69565b60018060a01b031683526004602052604083209060ff801983541691151516179055565b50346200020357602036600319011262000203576200041162001a5f62001a5962001ae8565b620021e7565b60405191829160208352602083019062001b7c565b90503462000284576020366003190112620002845760043563ffffffff60e01b8116809103620003c85760209250630a85bd0160e11b811490811562001ad6575b811562001ac4575b5015158152f35b6301ffc9a760e01b1490503862001abd565b630271189760e51b8114915062001ab5565b600435906001600160a01b038216820362001aff57565b600080fd5b602435906001600160a01b038216820362001aff57565b35906001600160a01b038216820362001aff57565b60005b83811062001b445750506000910152565b818101518382015260200162001b33565b9060209162001b708151809281855285808601910162001b30565b601f01601f1916010190565b9060018060a01b03825116815260a08062001be162001bc262001baf602087015160c0602088015260c087019062001b55565b6040870151868203604088015262001b55565b6060860151151560608601526080860151858203608087015262001b55565b930151151591015290565b60243590811515820362001aff57565b3590811515820362001aff57565b9181601f8401121562001aff578235916001600160401b03831162001aff576020838186019501011162001aff57565b60075481101562001c725760076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880190600090565b634e487b7160e01b600052603260045260246000fd5b9181601f8401121562001aff578235916001600160401b03831162001aff576020808501948460051b01011162001aff57565b60065481101562001c725760069081600052027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600090565b90600182811c9216801562001d28575b602083101462001d1257565b634e487b7160e01b600052602260045260246000fd5b91607f169162001d06565b60c081019081106001600160401b0382111762001d4f57604052565b634e487b7160e01b600052604160045260246000fd5b6001600160401b03811162001d4f57604052565b604081019081106001600160401b0382111762001d4f57604052565b90601f801991011681019081106001600160401b0382111762001d4f57604052565b906040519182600082549262001dcd8462001cf6565b90818452600194858116908160001462001e44575060011462001dfd575b505062001dfb9250038362001d95565b565b9093915060005260209081600020936000915b81831062001e2b57505062001dfb9350820101388062001deb565b8554888401850152948501948794509183019162001e10565b91505062001dfb94506020925060ff191682840152151560051b820101388062001deb565b6000546001600160a01b0316330362001e7e57565b60405163118cdaa760e01b8152336004820152602490fd5b600019811462001ea65760010190565b634e487b7160e01b600052601160045260246000fd5b9081602091031262001aff5751801515810362001aff5790565b6001600160401b03811162001d4f5760051b60200190565b6001600160401b03811162001d4f57601f01601f191660200190565b60208183031262001aff578051906001600160401b03821162001aff570181601f8201121562001aff57805162001f418162001eee565b9262001f51604051948562001d95565b8184526020828401011162001aff5762001f72916020808501910162001b30565b90565b919060609262001f8581620026cf565b15620020d75762001f9681620021e7565b60a08101511562001fa657505050565b80850151939492939192911562001fc55750509062001f729162002280565b6040809101519181519362001fda8562001d79565b6009855262002051602095620020398780830192682875696e743235362960b81b845287519384916200202c846200201c8186019d8e81519384920162001b30565b8401915180938684019062001b30565b0103808452018262001d95565b845190519095206001600160e01b0319169462001d65565b825195858701948552602487015260248652818601958087106001600160401b0388111762001d4f576000620020c195819262001f729987525190845afa913d15620020cf57503d620020b2620020a88262001eee565b9451948562001d95565b83523d60008685013e6200210c565b805181018201910162001f0a565b92506200210c565b60405162461bcd60e51b815260206004820152600d60248201526c139bdd081cdd5c1c1bdc9d1959609a1b6044820152606490fd5b906200213557508051156200212357805190602001fd5b60405163d6bda27560e01b8152600490fd5b815115806200216a575b62002148575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156200213f565b90604051620021838162001d33565b60a060ff60058395600180851b038154168552620021a46001820162001db7565b6020860152620021b76002820162001db7565b60408601528260038201541615156060860152620021d86004820162001db7565b60808601520154161515910152565b90604051620021f68162001d33565b6000815260606020820152606060408201526000606082015260606080820152600060a082015291600090600654915b8281106200223357505050565b6200223e8162001cbb565b50546001600160a01b0383811691161462002264576200225e9062001e96565b62002226565b905062001f7292935062002279915062001cbb565b5062002174565b91906040805190620022928262001d79565b60158252602092838301957468747470733a2f2f697066732e696f2f697066732f60581b87528251968793849263c87b56dd60e01b845260049485850152600095869160249b8c9160018060a01b03165afa9283156200257c57859362002553575b50805193620023038562001d79565b600585528785019564173539b7b760d91b875260079a8b865111156200251f578351620023308162001d79565b8c81528a8101908b3683378d845b818110620024ef575050620023738c87518093620023658383019687925192839162001b30565b810103808452018262001d95565b5190208c85518c81019166697066733a2f2f60c81b83528152620023978162001d79565b51902003620024ae5785519160061991828401978489116200249c578c9d9e620023e2620023ca9d9e9b9c9d8b62001eee565b9a620023d98a519c8d62001d95565b808c5262001eee565b9a8a019a601f1901368c375b8581106200244557505050505050509262001f72969492620024366200202c93620024269a9896519a8b985180928b8b019062001b30565b8701915180938984019062001b30565b01915180938684019062001b30565b6001600160f81b03196200245a828462002586565b5116858201908282116200248a57906200247d620024849392871a918d62002586565b5362001e96565b620023ee565b634e487b7160e01b8652601189528486fd5b50634e487b7160e01b82526011855290fd5b601b915089606494519362461bcd60e51b85528401528201527f555249206d757374207374617274207769746820697066733a2f2f00000000006044820152fd5b62002519906001600160f81b031962002509828d62002586565b5116871a6200247d828662002586565b6200233e565b6010915089606494519362461bcd60e51b85528401528201526f496e76616c696420495046532055524960801b6044820152fd5b620025749193503d8087833e6200256b818362001d95565b81019062001f0a565b9138620022f4565b81513d87823e3d90fd5b90815181101562001c72570160200190565b9190820180921162001ea657565b919081101562001c725760051b8101359060be198136030182121562001aff570190565b81601f8201121562001aff57803590620025e48262001eee565b92620025f4604051948562001d95565b8284526020838301011162001aff57816000926020809301838601378301015290565b81811062002623575050565b6000815560010162002617565b9190601f81116200264057505050565b62001dfb926000526020600020906020601f840160051c830193106200266f575b601f0160051c019062002617565b909150819062002661565b9035601e198236030181121562001aff5701602081359101916001600160401b03821162001aff57813603831362001aff57565b908060209392818452848401376000828201840152601f01601f1916010190565b6006549060005b828110620026e657505050600090565b620026f18162001cbb565b50546001600160a01b038381169116146200271757620027119062001e96565b620026d6565b505050600190565b90808214620028085762002734815462001cf6565b906001600160401b03821162001d4f5781906200275e8262002757865462001cf6565b8662002630565b600090601f831160011462002798576000926200278c575b50508160011b916000199060031b1c1916179055565b01549050388062002776565b81526020808220858352818320935090601f1985169083905b828210620027ee575050908460019594939210620027d4575b505050811b019055565b015460001960f88460031b161c19169055388080620027ca565b8495819295850154815560018091019601940190620027b1565b5050565b62002818815462001cf6565b908162002823575050565b81601f6000931160011462002836575055565b90808391825262002857601f60208420940160051c84016001850162002617565b5555565b6040516301ffc9a760e01b81526380ac58cd60e01b6004820152906020826024816001600160a01b0385165afa60009281620028b9575b506200289f575050600090565b81620028a9575090565b620028b59150620028de565b1590565b620028d691935060203d811162000e035762000df3818362001d95565b913862002892565b6040516301ffc9a760e01b8152636cdb3d1360e11b600482015290602090829060249082906001600160a01b03165afa6000918162002924575b5062001f725750600090565b6200294191925060203d811162000e035762000df3818362001d95565b90386200291856fe6080346200010c57601f6200235738819003918201601f19168301916001600160401b03831184841017620001115780849260c0946040528339810103126200010c576200004d8162000127565b906200005c6020820162000127565b9160408201519060608301519360a060808501519401518015158091036200010c576101009360ff9260016000556008549460018060a01b0319913383600354161760035560018060a01b038092168360015416176001551690600254161760025560045585600555169061ffff19161717600855420190814211620000f6576064916007550460065560405161221a90816200013d8239f35b634e487b7160e01b600052601160045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200010c5756fe608080604052600436101561001357600080fd5b600090813560e01c9081620b254314611a065750806301ffc9a71461199757806302fb0c5e14611971578063150b7a021461191a5780631bd0b616146118f757806323efa311146117515780632d4eb78914611623578063368b4e52146114c857806341ac8115146114aa5780635e0750aa1461145c57806368c7beee146114285780636d8aa19b146114075780637de1e536146113de57806385549b50146113b957806390321e1a1461139b57806399597b7014611372578063a094c63214610a9e578063b3cea21714610a80578063bc197c81146109f0578063c31dd5ae14610392578063c45a015514610369578063d8b2ec27146102b6578063ec5858b0146101855763f23a6e611461012857600080fd5b346101825760a036600319011261018257610141611a22565b5061014a611a38565b506084356001600160401b03811161017e5761016a903690600401611a4e565b505060405163f23a6e6160e01b8152602090f35b5080fd5b80fd5b50346101825760031960403682011261017e576101a0611a22565b6024356001600160401b0381116102b2576040816004019382360301126102b2576024916101ce8480611e83565b939084604051958692833781016009815260209586910301902092013591828652835260018060a01b039182604087205416330361026d57907f0890a8e4433aa07469fe1c3d7ad0d3a4aa9a61c6124ac406fa8a20a3b5956a449291846102358780611e83565b919082604051938492833781016009815203019020908752845261026760405192839286845216953395830190611ee7565b0390a380f35b60405162461bcd60e51b815260048101859052601860248201527f596f7520646f6e2774206f776e207468697320626c6f636b00000000000000006044820152606490fd5b8380fd5b5034610182578060031936011261018257600a546102d381611c20565b915b8181106102ee57604051806102ea8582611ac3565b0390f35b806102fb61036492611c8f565b50610349610315600161030d85611c8f565b500154611d9a565b60405192839161033a61032d60209384860190611d03565b9182815194859201611a7b565b0103601f198101835282611b53565b6103538286611d86565b5261035e8185611d86565b50611c6a565b6102d5565b50346101825780600319360112610182576003546040516001600160a01b039091168152602090f35b5034610182576020366003190112610182576004356001600160401b03811161017e576103c3903690600401611bc6565b9060028354146109de576002835560ff60085460081c161561099957825b82811061085257506103f882606460055404611eb5565b600354604051636572f88f60e11b81526001600160a01b03916020908290600490829086165afa908115610818578691610823575b50166040516370a0823160e01b8152336004820152602081602481855afa801561081857839187916107de575b5010610799576040516323b872dd60e01b6020820152336024820152306044820152606481018390526104a39161049e82608481015b03601f198101845283611b53565b611f47565b835b83811061054a575060405191836040840160408552526060830160608560051b850101948287905b82821061050a576020870186905288337faf4cdb81297e81b4ae6bb64d58205e56e6df95cdfd7d8212b2478c264c4def29898b038aa26001815580f35b9091929396605f198782030185528735603e198336030181121561054657602061053960019385839401611ee7565b99019501939201906104cd565b8980fd5b604051604081018181106001600160401b0382111761078357604052606081528560208201526020610586610580848888611e61565b80611e83565b91908260405193849283378101600981520301902060206105a8848888611e61565b013587526020526040862080546001600160a01b031916331790556105db6105d4610580848888611e61565b3691611b8f565b815260206105ea838787611e61565b01356020820152600a8054906801000000000000000082101561076f5760018201905561061690611c8f565b91909161075b5780518051906001600160401b0382116107475761063a8454611cc9565b601f8111610706575b50602090601f83116001146106955792826001936020936106859897968d9261068a575b5050600019600383901b1c191690841b1784555b0151910155611c6a565b6104a5565b015190503880610667565b90848a5260208a20918a5b601f19851681106106ee57508360209361068598979693600196938794601f198116106106d5575b505050811b01845561067b565b015160001960f88460031b161c191690553880806106c8565b919260206001819286850151815501940192016106a0565b848a5260208a20601f840160051c810160208510610740575b601f830160051c82018110610735575050610643565b8b815560010161071f565b508061071f565b634e487b7160e01b89526041600452602489fd5b634e487b7160e01b87526004879052602487fd5b634e487b7160e01b88526041600452602488fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820574554482062616c616e63650000000000000000006044820152606490fd5b9150506020813d602011610810575b816107fa60209383611b53565b8101031261080b578290513861045a565b600080fd5b3d91506107ed565b6040513d88823e3d90fd5b610845915060203d60201161084b575b61083d8183611b53565b810190611ec8565b3861042d565b503d610833565b61085d818484611e61565b50600980602061086e848787611e61565b013511158061097c575b8061095a575b1561091f576020610893610580848787611e61565b9283604051948593843782019081520301902060206108b3838686611e61565b0135855260205260408420546001600160a01b03166108da576108d590611c6a565b6103e1565b60405162461bcd60e51b815260206004820152601760248201527f426c6f636b20616c7265616479207075726368617365640000000000000000006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272436f6c756d6e206f7574206f662072616e676560681b6044820152606490fd5b50806109756109706105d4610580868989611e61565b61206a565b111561087e565b506109916109706105d4610580858888611e61565b506001610878565b60405162461bcd60e51b815260206004820152601960248201527f54686973207061726c61792068617320636f6e636c75646564000000000000006044820152606490fd5b604051633ee5aeb560e01b8152600490fd5b50346101825760a036600319011261018257610a0a611a22565b50610a13611a38565b506001600160401b03604435818111610a7c57610a34903690600401611bc6565b5050606435818111610a7c57610a4e903690600401611bc6565b505060843590811161017e57610a68903690600401611a4e565b505060405163bc197c8160e01b8152602090f35b8280fd5b50346101825780600319360112610182576020600454604051908152f35b5034610182578060031936011261018257610ab7611bf6565b1561132d5760ff60085460081c16156112e857600354604051631c06dc2b60e21b81523360048201526001600160a01b0390911690602081602481855afa80156112dd57610b0c9184916112ae575b50611fc7565b6040516060838183016001600160401b038111848210176107835760405260028352604036602085013784905b6002821061123f5750505080511561122957610b6f6020610b5c81840151612155565b8160405193828580945193849201611a7b565b81016009815203019020908051600110156112295760400151835260205260018060a01b03604083205416604051636572f88f60e11b8152602081600481865afa908115610d4e57849161120a575b506040516370a0823160e01b80825230600483015290936001600160a01b039290921691602085602481865afa9485156108185786956111d6575b50859480610edc575b505050508015600014610dd85760085460ff1615610d595760025460048054604051627eeac760e11b8152309281019290925260248201819052859290916001600160a01b0390911690602081604481855afa908115610d4e578491610d19575b506001546001600160a01b031691803b15610d1557610c9d9385809460405196879586948593637921219560e11b85523060048601611ffb565b03925af18015610d0a57610cf6575b50505b6008805461ff00191690556001546040519283526001600160a01b0316917fa21568cd42b16a916abbbd0cea693c15f429f7522a999d60230e0f15540b625090602090a380f35b610cff90611b25565b610a7c578238610cac565b6040513d84823e3d90fd5b8480fd5b9350506020833d602011610d46575b81610d3560209383611b53565b8101031261080b5785925138610c63565b3d9150610d28565b6040513d86823e3d90fd5b60025460015460045485926001600160a01b03908116921690823b156102b257604051632142170760e11b81523060048201526001600160a01b03909216602483015260448201529082908290818381606481015b03925af18015610d0a57610dc4575b5050610caf565b610dcd90611b25565b610a7c578238610dbd565b60085460ff1615610e8a5760025460048054604051627eeac760e11b815230928101929092526024820181905285926001600160a01b031691602081604481865afa908115610d4e578491610e55575b50823b156102b257610dae92849283604051809681958294637921219560e11b84528b3060048601611ffb565b9350506020833d602011610e82575b81610e7160209383611b53565b8101031261080b5785925138610e28565b3d9150610e64565b60025460045484916001600160a01b0316803b15610a7c57604051632142170760e11b81523060048201526001600160a01b038516602482015260448101929092528290829081838160648101610dae565b6040516361d027b360e01b815290602082600481865afa9182156111695788926111b5575b50604051630f2d145b60e41b815290602082600481875afa9182156111aa578992611174575b50610f36600492602092611eb5565b9360405192838092631a087f3760e11b82525afa908115611169578891611137575b50801561112157610f6b9204908461202f565b604051818152306004820152602081602481865afa9081156108185786916110ef575b50600554606490041161108857610fab606460055404338461202f565b604051818152306004820152602081602481865afa908115610818578691611056575b50610fdb575b8080610c02565b909250604051908152306004820152602081602481865afa8015610d4e578490611022575b600154909361101b925084916001600160a01b03169061202f565b3880610fd4565b506020813d60201161104e575b8161103c60209383611b53565b8101031261080b5761101b9051611000565b3d915061102f565b90506020813d602011611080575b8161107160209383611b53565b8101031261080b575138610fce565b3d9150611064565b604051818152306004820152602081602481865afa80156108185786906110bb575b6110b69150338461202f565b610fab565b506020813d6020116110e7575b816110d560209383611b53565b8101031261080b576110b690516110aa565b3d91506110c8565b90506020813d602011611119575b8161110a60209383611b53565b8101031261080b575138610f8e565b3d91506110fd565b634e487b7160e01b600052601260045260246000fd5b90506020813d602011611161575b8161115260209383611b53565b8101031261080b575138610f58565b3d9150611145565b6040513d8a823e3d90fd5b91506020823d6020116111a2575b8161118f60209383611b53565b8101031261080b57905190610f36610f27565b3d9150611182565b6040513d8b823e3d90fd5b6111cf91925060203d60201161084b5761083d8183611b53565b9038610f01565b9094506020813d602011611202575b816111f260209383611b53565b8101031261080b57519338610bf9565b3d91506111e5565b611223915060203d60201161084b5761083d8183611b53565b38610bbe565b634e487b7160e01b600052603260045260246000fd5b6040519042602083015244604083015233841b848301526074908183015281528060a08101106001600160401b0360a083011117610783578060a0600a920160405260208151910120066112938285611d86565b526112a86112a18285611d86565b5191611c6a565b90610b39565b6112d0915060203d6020116112d6575b6112c88183611b53565b810190611faf565b38610b06565b503d6112be565b6040513d85823e3d90fd5b60405162461bcd60e51b815260206004820152601d60248201527f54686973206576656e7420686173206265656e20636f6e636c756465640000006044820152606490fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682074696d6520686173207061737365640000000000006044820152606490fd5b50346101825780600319360112610182576001546040516001600160a01b039091168152602090f35b50346101825780600319360112610182576020600654604051908152f35b503461018257806003193601126101825760206113d4611bf6565b6040519015158152f35b50346101825780600319360112610182576002546040516001600160a01b039091168152602090f35b50346101825780600319360112610182576020606460055404604051908152f35b5034610182576020366003190112610182576102ea611448600435612155565b604051918291602083526020830190611a9e565b503461018257602036600319011261018257600435906001600160401b03821161018257366023830112156101825760206114a261097036600486013560248701611b8f565b604051908152f35b50346101825780600319360112610182576020600754604051908152f35b50346101825760208060031936011261017e576114e3611a22565b600a546001600160a01b0393909184169080805b8481106115cb575061150890611c20565b938192825b85811061152257604051806102ea8982611ac3565b61153c8361152f83611c8f565b5060405192838092611d03565b600981520301902061154d82611c8f565b509060018092015486528452828960408720541614611576575b5061157190611c6a565b61150d565b819561032d6115af6115c4938761159d61159261157198611c8f565b509261030d8d611c8f565b61033a60405195869484860190611d03565b6115b9828b611d86565b5261035e818a611d86565b9490611567565b6115d88661152f83611c8f565b600981520301902060016115eb83611c8f565b5001548452865283876040852054161461160e575b61160990611c6a565b6114f7565b9061161b61160991611c6a565b919050611600565b50346101825760208060031936011261017e578161163f611a22565b600354604051631c06dc2b60e21b81523360048201526001600160a01b03929185908290602490829087165afa8015610d4e5761168291859161173a5750611fc7565b6040516370a0823160e01b815230600482015291168382602481845afa80156112dd5784928491611705575b5060405163a9059cbb60e01b8152336004820152602481019190915292839190829081604481015b03925af180156112dd576116e8578280f35b816116fe92903d106112d6576112c88183611b53565b5038808280f35b9350509082813d8311611733575b61171d8183611b53565b8101031261080b579051839183916116d66116ae565b503d611713565b6112d09150863d88116112d6576112c88183611b53565b5034610182578060031936011261018257600354604051631c06dc2b60e21b815233600482015282916020916001600160a01b039183908290602490829086165afa8015610d4e576117a99185916118e05750611fc7565b60085460ff16156118845760025460048054604051627eeac760e11b81523092810192909252602482018190529290911692908181604481875afa918215611879578592611848575b5050823b156118435761182092849283604051809681958294637921219560e11b8452333060048601611ffb565b03925af18015610d0a5761183357505080f35b61183c90611b25565b6101825780f35b505050fd5b8195508092503d8311611872575b6118608183611b53565b8101031261080b5783925138806117f2565b503d611856565b6040513d87823e3d90fd5b905060025416600454813b156118dc57604051632142170760e11b8152306004820152336024820152604481019190915291908290606490829084905af18015610d0a576118d0575080f35b6118d990611b25565b80f35b5050fd5b6112d09150843d86116112d6576112c88183611b53565b5034610182578060031936011261018257602060ff600854166040519015158152f35b503461018257608036600319011261018257611934611a22565b5061193d611a38565b506064356001600160401b03811161017e5761195d903690600401611a4e565b5050604051630a85bd0160e11b8152602090f35b5034610182578060031936011261018257602060ff60085460081c166040519015158152f35b50346101825760203660031901126101825760043563ffffffff60e01b811680910361017e57602090630a85bd0160e11b81149081156119f5575b81156119e4575b506040519015158152f35b6301ffc9a760e01b149050826119d9565b630271189760e51b811491506119d2565b90503461017e578160031936011261017e576020906005548152f35b600435906001600160a01b038216820361080b57565b602435906001600160a01b038216820361080b57565b9181601f8401121561080b578235916001600160401b03831161080b576020838186019501011161080b57565b60005b838110611a8e5750506000910152565b8181015183820152602001611a7e565b90602091611ab781518092818552858086019101611a7b565b601f01601f1916010190565b602080820190808352835180925260408301928160408460051b8301019501936000915b848310611af75750505050505090565b9091929394958480611b15600193603f198682030187528a51611a9e565b9801930193019194939290611ae7565b6001600160401b03811161078357604052565b604081019081106001600160401b0382111761078357604052565b90601f801991011681019081106001600160401b0382111761078357604052565b6001600160401b03811161078357601f01601f191660200190565b929192611b9b82611b74565b91611ba96040519384611b53565b82948184528183011161080b578281602093846000960137010152565b9181601f8401121561080b578235916001600160401b03831161080b576020808501948460051b01011161080b57565b6007544210611c0457600190565b600090565b6001600160401b0381116107835760051b60200190565b90611c2a82611c09565b611c376040519182611b53565b8281528092611c48601f1991611c09565b019060005b828110611c5957505050565b806060602080938501015201611c4d565b6000198114611c795760010190565b634e487b7160e01b600052601160045260246000fd5b600a5481101561122957600a60005260011b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b90600182811c92168015611cf9575b6020831014611ce357565b634e487b7160e01b600052602260045260246000fd5b91607f1691611cd8565b600092918154611d1281611cc9565b92600191808316908115611d6b5750600114611d2f575b50505050565b90919293945060005260209081600020906000915b858310611d5a5750505050019038808080611d29565b805485840152918301918101611d44565b60ff1916845250505081151590910201915038808080611d29565b80518210156112295760209160051b010190565b8015611e435780816000925b611e2d5750611db482611b74565b91611dc26040519384611b53565b808352601f19611dd182611b74565b01908260209236848701375b611de75750505090565b6000198101908111611c79578092600a9160308383068101809111611c795786518210156112295760f81b6001600160f81b03191660001a908601840153049182611ddd565b9091611e3a600a91611c6a565b92910480611da6565b50604051611e5081611b38565b60018152600360fc1b602082015290565b91908110156112295760051b81013590603e198136030182121561080b570190565b903590601e198136030182121561080b57018035906001600160401b03821161080b5760200191813603831361080b57565b81810292918115918404141715611c7957565b9081602091031261080b57516001600160a01b038116810361080b5790565b908135601e198336030181121561080b5782016020813591016001600160401b03821161080b57813603811361080b57606093826020926040865281604087015286860137600084840186015201356020830152601f01601f1916010190565b906000602091828151910182855af115611fa3576000513d611f9a57506001600160a01b0381163b155b611f785750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611f71565b6040513d6000823e3d90fd5b9081602091031261080b5751801515810361080b5790565b15611fce57565b60405162461bcd60e51b815260206004820152600560248201526404282eae8d60db1b6044820152606490fd5b929060c0949260018060a01b0380921685521660208401526040830152606082015260a06080820152600060a08201520190565b60405163a9059cbb60e01b60208201526001600160a01b03909216602483015260448201929092526120689161049e8260648101610490565b565b600181510361210657805115611229576020015160f81c6041811015806120fb575b156120a3576040190160ff8111611c795760ff1690565b60405162461bcd60e51b815260206004820152602a60248201527f496e707574206d757374206265206120636861726163746572206265747765656044820152693710209030b73210251760b11b6064820152608490fd5b50604a81111561208c565b60405162461bcd60e51b815260206004820152602160248201527f496e707574206d75737420626520612073696e676c65206368617261637465726044820152601760f91b6064820152608490fd5b6009811161219f576040519061216a82611b38565b600182526020820190602036833760418101809111611c79578251156112295760f81b6001600160f81b03191660001a905390565b60405162461bcd60e51b815260206004820152601e60248201527f496e707574206d757374206265206265747765656e203020616e6420392e00006044820152606490fdfea26469706673582212201fce0bceb6861bd4085e7787dff18aa3267a9d0d9bc93e502f61c99c53812d1c64736f6c63430008140033a2646970667358221220674491c797a29e428838bd986e427c3d24a65ac7763d260eb852fe0f584d070064736f6c63430008140033000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Deployed Bytecode
0x60808060405260043610156200001457600080fd5b600090813560e01c90816301ffc9a71462001a74575080630781e2c51462001a33578063116e72db14620019d8578063150b7a02146200197857806315b40ec014620019485780631ba4ef7b1462001851578063282e460a14620018275780632a4e90cf14620017f75780633410fe6e14620017d9578063381738f5146200179d5780633f0cf6921462000eb357806349584c061462000c6857806361d027b31462000c3d578063701b70ac1462000bfa578063715018a61462000b9c5780637ebd1b301462000ace5780638da5cb5b1462000aa55780639bb0b9b114620004735780639ea31e7614620004155780639fba3e2014620003cc578063ad5c46481462000302578063bc197c81146200032d578063cae5f11e1462000302578063daa09e5414620002ce578063f0f442601462000288578063f23a6e611462000224578063f2d145b014620002065763f2fde38b146200017257600080fd5b346200020357602036600319011262000203576200018f62001ae8565b6200019962001e69565b6001600160a01b03908116908115620001ea57600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b80fd5b50346200020357806003193601126200020357602060405160028152f35b5034620002035760a036600319011262000203576200024262001ae8565b506200024d62001b04565b506084356001600160401b03811162000284576200027090369060040162001c0a565b505060405163f23a6e6160e01b8152602090f35b5080fd5b5034620002035760203660031901126200020357620002a662001ae8565b620002b062001e69565b60018060a01b03166001600160601b0360a01b600254161760025580f35b50346200020357602036600319011262000203576020620002f8620002f262001ae8565b6200285b565b6040519015158152f35b503462000203578060031936011262000203576001546040516001600160a01b039091168152602090f35b5034620002035760a036600319011262000203576200034b62001ae8565b506200035662001b04565b506001600160401b03604435818111620003c8576200037a90369060040162001c88565b5050606435818111620003c8576200039790369060040162001c88565b50506084359081116200028457620003b490369060040162001c0a565b505060405163bc197c8160e01b8152602090f35b8280fd5b503462000203576040366003190112620002035762000411620003fc620003f262001ae8565b6024359062002280565b60405191829160208352602083019062001b55565b0390f35b5034620002035760403660031901126200020357620004706200043762001ae8565b6200044162001bec565b906200044c62001e69565b60018060a01b031683526005602052604083209060ff801983541691151516179055565b80f35b5034620002035760803660031901126200020357600435906200049562001b04565b91604492833560018060a01b03948583169384865260206003815260ff6040882054161562000a6257620004d4620004cd866200285b565b95620028de565b9185861562000a5a575b1562000a1657828615620008ee57506040516331a9108f60e11b81526004810186905282816024818b5afa90811562000860578991620008ad575b5089339116036200086b57863b156200085c57604051632142170760e11b8152336004820152306024820152604481018690528881606481838c5af18015620008605790899162000844575b50505b8060011b8181046002148215171562000830576200059a9160646200058f92049062002598565b606481049062002598565b906040519161235791828401928484106001600160401b038511176200081c57918960c0949286946200294a86393384528301528760408301526060820152606435608082015284151560a082015203019087f08015620008115787169360075497600160401b891015620007fd576200061c8960018a9b0160075562001c3a565b819291549060031b9188831b921b191617905560001462000715575050823b15620006ed5760405163095ea7b360e01b81526001600160a01b038316600482015260248101829052848160448183885af19081156200070a578591620006f2575b5050823b15620006ed57604051632142170760e11b81523060048201526001600160a01b0392909216602483015260448201529082908290606490829084905af18015620006e257620006cf57505080f35b620006da9062001d65565b620002035780f35b6040513d84823e3d90fd5b505050fd5b620006fd9062001d65565b620006ed5783386200067d565b6040513d87823e3d90fd5b62000723575b505050505080f35b833b15620007f95784604051809263a22cb46560e01b8252856004830152600160248301528183885af19081156200070a578591620007e1575b5050823b15620006ed57604051637921219560e11b81523060048201526001600160a01b0392909216602483015260448201526001606482015260a06084820152600060a4820152908290829060c490829084905af18015620006e257620007c9575b8080806200071b565b620007d49062001d65565b62000203578038620007c0565b620007ec9062001d65565b620006ed5783386200075d565b8480fd5b634e487b7160e01b88526041600452602488fd5b6040513d88823e3d90fd5b634e487b7160e01b8b52604160045260248bfd5b634e487b7160e01b89526011600452602489fd5b6200084f9062001d65565b6200085c57873862000565565b8780fd5b6040513d8b823e3d90fd5b6064827f596f7520646f6e2774206f776e2074686973204552432d37323120746f6b656e866040519262461bcd60e51b84528060048501526024840152820152fd5b90508281813d8311620008e6575b620008c7818362001d95565b81010312620008e257518981168103620008e2573862000519565b8880fd5b503d620008bb565b156200056857604051627eeac760e11b81523360048201526024810186905282816044818b5afa801562000860578990620009e2575b60019150106200099e57863b156200085c57604051637921219560e11b8152336004820152306024820152604481018690526001606482015260a06084820152600060a4820152888160c481838c5af18015620008605762000988575b5062000568565b620009969098919862001d65565b963862000981565b60405162461bcd60e51b815260048101839052601d60248201527f496e73756666696369656e74204552432d313135352062616c616e636500000081860152606490fd5b508281813d831162000a0e575b620009fb818362001d95565b81010312620008e2576001905162000924565b503d620009ef565b60405162461bcd60e51b815260048101839052601a60248201527f556e737570706f7274656420746f6b656e207374616e6461726400000000000081860152606490fd5b5082620004de565b6064907f436f6c6c656374696f6e206e6f742077686974656c6973746564000000000000846040519262461bcd60e51b84526004840152601a6024840152820152fd5b50346200020357806003193601126200020357546040516001600160a01b039091168152602090f35b5034620002035760203660031901126200020357600435600654811015620002845762000afb9062001cbb565b5080546001600160a01b031662000b156001830162001db7565b9162000b9062000b286002830162001db7565b9160ff6003820154169062000b7a60ff600562000b486004850162001db7565b930154169462000b6b604051988998895260c060208a015260c089019062001b55565b90878203604089015262001b55565b9115156060860152848203608086015262001b55565b90151560a08301520390f35b5034620002035780600319360112620002035762000bb962001e69565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503462000203576020366003190112620002035760209060ff906040906001600160a01b0362000c2962001ae8565b168152600584522054166040519015158152f35b503462000203578060031936011262000203576002546040516001600160a01b039091168152602090f35b5034620002035780600319360112620002035760075481805b82811062000e16575062000cb262000c998462001ed6565b9362000ca9604051958662001d95565b80855262001ed6565b6020928484019291601f19013684378190825b81811062000d195750505060405193838594850191818652518092526040850193925b82811062000cf857505050500390f35b83516001600160a01b03168552869550938101939281019260010162000ce8565b62000d2981979596949762001c3a565b905460405163017d862f60e11b81526001600160a01b039260039288918391600491839190871b1c87165afa90811562000e0b578a9162000dd7575b5062000d84575b505062000d799062001e96565b959294939562000cc5565b62000d9183959362001c3a565b9054911b1c16855182101562000dc3578162000dba918662000d799460051b8901015262001e96565b92903862000d6c565b634e487b7160e01b88526032600452602488fd5b62000dfc9150873d891162000e03575b62000df3818362001d95565b81019062001ebc565b3862000d65565b503d62000de7565b6040513d8c823e3d90fd5b62000e248194929462001c3a565b90546040519063017d862f60e11b825281600481602095869460018060a01b039160031b1c165afa9182156200081157869262000e91575b505062000e78575b62000e6f9062001e96565b92909262000c81565b9062000e8862000e6f9162001e96565b91905062000e64565b62000eab9250803d1062000e035762000df3818362001d95565b388062000e5c565b50346200020357604036600319011262000203576004356001600160401b038111620002845762000ee990369060040162001c88565b62000ef362001bec565b338452600460205260ff604085205416156200176757835b828110620010575750604051918060408401604085525260609081840194828260051b86010195819388925b84841062000f7257861515602089015289337fd14468ffbbf298eec4bd3bdbb46edb596ded040418b22f131efcc6b2aa17ff478a8c038ba280f35b909192939497605f1988820301845288359060be1983360301821215620010535760019160209182918501906001600160a01b0362000fb18362001b1b565b1681526200102d62000ffc62000fde62000fce868601866200267a565b60c08089880152860191620026ae565b62000fed60408601866200267a565b908583036040870152620026ae565b6200100989850162001bfc565b15158984015260806200101f818601866200267a565b9185840390860152620026ae565b916200103d60a080920162001bfc565b15159101529a0194019401929493919062000f37565b8a80fd5b62001064818486620025a6565b6001600160a01b0390358181168082036200085c5784156200154c578752600360205260408720805460ff811615620010ad575b50505050620010a79062001e96565b62000f0b565b60ff19166001179055620010c190620026cf565b15620010d1575b80808062001098565b620010de828587620025a6565b60c0813603126200154857604051620010f78162001d33565b620011028262001b1b565b815260208201356001600160401b038111620008e257620011279036908401620025ca565b6020820190815260408301356001600160401b0381116200154457620011519036908501620025ca565b604083015260606200116581850162001bfc565b81840152608091828501356001600160401b03811162001540576200118e9036908701620025ca565b83850152620011a160a080960162001bfc565b858501526006805490600160401b8210156200152c57600182019055620011c89062001cbb565b9690966200151857845187546001600160a01b0319169116178655518051906001600160401b0382116200148457819062001216826200120c60018b015462001cf6565b60018b0162002630565b602090601f8311600114620014a4578d9262001498575b50508160011b916000199060031b1c19161760018601555b60408301519081516001600160401b03811162001484576200127a816200127060028a015462001cf6565b60028a0162002630565b6020928c601f83116001146200140a57620012ca94909183620013fe575b50508160011b916000199060031b1c19161760028701555b8301511515600386019060ff801983541691151516179055565b8101518051906001600160401b038211620013ea57620012fd82620012f3600488015462001cf6565b6004880162002630565b6020908a601f841160011462001369579280620013569693620010a799989693600596926200135d575b50508160011b916000199060031b1c19161760048501555b0151151591019060ff801983541691151516179055565b90620010c8565b01519050388062001327565b5090600486018b5260208b20918b5b601f1985168110620013d1575083620013569693620010a799989693600193600597601f19811610620013b7575b505050811b0160048501556200133f565b015160001960f88460031b161c19169055388080620013a6565b9192602060018192868501518155019401920162001378565b634e487b7160e01b8a52604160045260248afd5b01519050388062001298565b50909192600288018d5260208d20918d5b601f19851681106200146b5750918391600193620012ca9695601f1981161062001451575b505050811b016002870155620012b0565b015160001960f88460031b161c1916905538808062001440565b919260206001819286850151815501940192016200141b565b634e487b7160e01b8c52604160045260248cfd5b0151905038806200122d565b9250600188018d5260208d20908d935b601f1984168510620014fc576001945083601f19811610620014e2575b505050811b01600186015562001245565b015160001960f88460031b161c19169055388080620014d1565b81810151835560209485019460019093019290910190620014b4565b634e487b7160e01b8c5260048c905260248cfd5b634e487b7160e01b8d52604160045260248dfd5b8b80fd5b8980fd5b8680fd5b8092915087526003908160205260408820805460ff811662001579575b5050505050620010a79062001e96565b60ff19169055919592949093919290875b600680548083101562001752578987620015a48562001cbb565b50541614620015c0575050620015ba9062001e96565b6200158a565b9297959190939850600096949619928381019081116200173e57620015e9620015f19162001cbb565b509162001cbb565b9190916200172a5780820362001697575b50505081548015620016835701916200161b8362001cbb565b9190916200166f576005828a809381620010a7999897965562001641600184016200280c565b6200164f600284016200280c565b82015562001660600482016200280c565b0155555b903880808062001569565b634e487b7160e01b89526004899052602489fd5b634e487b7160e01b89526031600452602489fd5b62001721928154166001600160601b0360a01b835416178255620016c260018083019084016200271f565b620016d460028083019084016200271f565b620016f360ff87830154168784019060ff801983541691151516179055565b6200170560048201600484016200271f565b60ff6005809201541691019060ff801983541691151516179055565b38808062001602565b634e487b7160e01b8b5260048b905260248bfd5b634e487b7160e01b8b52601160045260248bfd5b505050949193509450620010a7915062001664565b60405162461bcd60e51b815260206004820152600e60248201526d10a0b236b4b734b9ba3930ba37b960911b6044820152606490fd5b50346200020357602036600319011262000203576020620017c060043562001c3a565b905460405160039290921b1c6001600160a01b03168152f35b50346200020357806003193601126200020357602060405160648152f35b503462000203576040366003190112620002035762000411620003fc6200181d62001ae8565b6024359062001f75565b50346200020357602036600319011262000203576020620002f86200184b62001ae8565b620028de565b50346200020357806003193601126200020357600690815491620018758362001ed6565b9162001885604051938462001d95565b83835281815260209384840192827ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f855b84831062001921575050505050604051928484019085855251809152604084019460408260051b8601019392955b828710620018f25785850386f35b90919293828062001910600193603f198a8203018652885162001b7c565b9601920196019592919092620018e4565b838960019262001935859c9b999c62002174565b81520192019201919097949697620018b6565b50346200020357602036600319011262000203576004359060075482101562000203576020620017c08362001c3a565b50346200020357608036600319011262000203576200199662001ae8565b50620019a162001b04565b506064356001600160401b0381116200028457620019c490369060040162001c0a565b5050604051630a85bd0160e11b8152602090f35b503462000203576040366003190112620002035762000470620019fa62001ae8565b62001a0462001bec565b9062001a0f62001e69565b60018060a01b031683526004602052604083209060ff801983541691151516179055565b50346200020357602036600319011262000203576200041162001a5f62001a5962001ae8565b620021e7565b60405191829160208352602083019062001b7c565b90503462000284576020366003190112620002845760043563ffffffff60e01b8116809103620003c85760209250630a85bd0160e11b811490811562001ad6575b811562001ac4575b5015158152f35b6301ffc9a760e01b1490503862001abd565b630271189760e51b8114915062001ab5565b600435906001600160a01b038216820362001aff57565b600080fd5b602435906001600160a01b038216820362001aff57565b35906001600160a01b038216820362001aff57565b60005b83811062001b445750506000910152565b818101518382015260200162001b33565b9060209162001b708151809281855285808601910162001b30565b601f01601f1916010190565b9060018060a01b03825116815260a08062001be162001bc262001baf602087015160c0602088015260c087019062001b55565b6040870151868203604088015262001b55565b6060860151151560608601526080860151858203608087015262001b55565b930151151591015290565b60243590811515820362001aff57565b3590811515820362001aff57565b9181601f8401121562001aff578235916001600160401b03831162001aff576020838186019501011162001aff57565b60075481101562001c725760076000527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880190600090565b634e487b7160e01b600052603260045260246000fd5b9181601f8401121562001aff578235916001600160401b03831162001aff576020808501948460051b01011162001aff57565b60065481101562001c725760069081600052027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600090565b90600182811c9216801562001d28575b602083101462001d1257565b634e487b7160e01b600052602260045260246000fd5b91607f169162001d06565b60c081019081106001600160401b0382111762001d4f57604052565b634e487b7160e01b600052604160045260246000fd5b6001600160401b03811162001d4f57604052565b604081019081106001600160401b0382111762001d4f57604052565b90601f801991011681019081106001600160401b0382111762001d4f57604052565b906040519182600082549262001dcd8462001cf6565b90818452600194858116908160001462001e44575060011462001dfd575b505062001dfb9250038362001d95565b565b9093915060005260209081600020936000915b81831062001e2b57505062001dfb9350820101388062001deb565b8554888401850152948501948794509183019162001e10565b91505062001dfb94506020925060ff191682840152151560051b820101388062001deb565b6000546001600160a01b0316330362001e7e57565b60405163118cdaa760e01b8152336004820152602490fd5b600019811462001ea65760010190565b634e487b7160e01b600052601160045260246000fd5b9081602091031262001aff5751801515810362001aff5790565b6001600160401b03811162001d4f5760051b60200190565b6001600160401b03811162001d4f57601f01601f191660200190565b60208183031262001aff578051906001600160401b03821162001aff570181601f8201121562001aff57805162001f418162001eee565b9262001f51604051948562001d95565b8184526020828401011162001aff5762001f72916020808501910162001b30565b90565b919060609262001f8581620026cf565b15620020d75762001f9681620021e7565b60a08101511562001fa657505050565b80850151939492939192911562001fc55750509062001f729162002280565b6040809101519181519362001fda8562001d79565b6009855262002051602095620020398780830192682875696e743235362960b81b845287519384916200202c846200201c8186019d8e81519384920162001b30565b8401915180938684019062001b30565b0103808452018262001d95565b845190519095206001600160e01b0319169462001d65565b825195858701948552602487015260248652818601958087106001600160401b0388111762001d4f576000620020c195819262001f729987525190845afa913d15620020cf57503d620020b2620020a88262001eee565b9451948562001d95565b83523d60008685013e6200210c565b805181018201910162001f0a565b92506200210c565b60405162461bcd60e51b815260206004820152600d60248201526c139bdd081cdd5c1c1bdc9d1959609a1b6044820152606490fd5b906200213557508051156200212357805190602001fd5b60405163d6bda27560e01b8152600490fd5b815115806200216a575b62002148575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156200213f565b90604051620021838162001d33565b60a060ff60058395600180851b038154168552620021a46001820162001db7565b6020860152620021b76002820162001db7565b60408601528260038201541615156060860152620021d86004820162001db7565b60808601520154161515910152565b90604051620021f68162001d33565b6000815260606020820152606060408201526000606082015260606080820152600060a082015291600090600654915b8281106200223357505050565b6200223e8162001cbb565b50546001600160a01b0383811691161462002264576200225e9062001e96565b62002226565b905062001f7292935062002279915062001cbb565b5062002174565b91906040805190620022928262001d79565b60158252602092838301957468747470733a2f2f697066732e696f2f697066732f60581b87528251968793849263c87b56dd60e01b845260049485850152600095869160249b8c9160018060a01b03165afa9283156200257c57859362002553575b50805193620023038562001d79565b600585528785019564173539b7b760d91b875260079a8b865111156200251f578351620023308162001d79565b8c81528a8101908b3683378d845b818110620024ef575050620023738c87518093620023658383019687925192839162001b30565b810103808452018262001d95565b5190208c85518c81019166697066733a2f2f60c81b83528152620023978162001d79565b51902003620024ae5785519160061991828401978489116200249c578c9d9e620023e2620023ca9d9e9b9c9d8b62001eee565b9a620023d98a519c8d62001d95565b808c5262001eee565b9a8a019a601f1901368c375b8581106200244557505050505050509262001f72969492620024366200202c93620024269a9896519a8b985180928b8b019062001b30565b8701915180938984019062001b30565b01915180938684019062001b30565b6001600160f81b03196200245a828462002586565b5116858201908282116200248a57906200247d620024849392871a918d62002586565b5362001e96565b620023ee565b634e487b7160e01b8652601189528486fd5b50634e487b7160e01b82526011855290fd5b601b915089606494519362461bcd60e51b85528401528201527f555249206d757374207374617274207769746820697066733a2f2f00000000006044820152fd5b62002519906001600160f81b031962002509828d62002586565b5116871a6200247d828662002586565b6200233e565b6010915089606494519362461bcd60e51b85528401528201526f496e76616c696420495046532055524960801b6044820152fd5b620025749193503d8087833e6200256b818362001d95565b81019062001f0a565b9138620022f4565b81513d87823e3d90fd5b90815181101562001c72570160200190565b9190820180921162001ea657565b919081101562001c725760051b8101359060be198136030182121562001aff570190565b81601f8201121562001aff57803590620025e48262001eee565b92620025f4604051948562001d95565b8284526020838301011162001aff57816000926020809301838601378301015290565b81811062002623575050565b6000815560010162002617565b9190601f81116200264057505050565b62001dfb926000526020600020906020601f840160051c830193106200266f575b601f0160051c019062002617565b909150819062002661565b9035601e198236030181121562001aff5701602081359101916001600160401b03821162001aff57813603831362001aff57565b908060209392818452848401376000828201840152601f01601f1916010190565b6006549060005b828110620026e657505050600090565b620026f18162001cbb565b50546001600160a01b038381169116146200271757620027119062001e96565b620026d6565b505050600190565b90808214620028085762002734815462001cf6565b906001600160401b03821162001d4f5781906200275e8262002757865462001cf6565b8662002630565b600090601f831160011462002798576000926200278c575b50508160011b916000199060031b1c1916179055565b01549050388062002776565b81526020808220858352818320935090601f1985169083905b828210620027ee575050908460019594939210620027d4575b505050811b019055565b015460001960f88460031b161c19169055388080620027ca565b8495819295850154815560018091019601940190620027b1565b5050565b62002818815462001cf6565b908162002823575050565b81601f6000931160011462002836575055565b90808391825262002857601f60208420940160051c84016001850162002617565b5555565b6040516301ffc9a760e01b81526380ac58cd60e01b6004820152906020826024816001600160a01b0385165afa60009281620028b9575b506200289f575050600090565b81620028a9575090565b620028b59150620028de565b1590565b620028d691935060203d811162000e035762000df3818362001d95565b913862002892565b6040516301ffc9a760e01b8152636cdb3d1360e11b600482015290602090829060249082906001600160a01b03165afa6000918162002924575b5062001f725750600090565b6200294191925060203d811162000e035762000df3818362001d95565b90386200291856fe6080346200010c57601f6200235738819003918201601f19168301916001600160401b03831184841017620001115780849260c0946040528339810103126200010c576200004d8162000127565b906200005c6020820162000127565b9160408201519060608301519360a060808501519401518015158091036200010c576101009360ff9260016000556008549460018060a01b0319913383600354161760035560018060a01b038092168360015416176001551690600254161760025560045585600555169061ffff19161717600855420190814211620000f6576064916007550460065560405161221a90816200013d8239f35b634e487b7160e01b600052601160045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200010c5756fe608080604052600436101561001357600080fd5b600090813560e01c9081620b254314611a065750806301ffc9a71461199757806302fb0c5e14611971578063150b7a021461191a5780631bd0b616146118f757806323efa311146117515780632d4eb78914611623578063368b4e52146114c857806341ac8115146114aa5780635e0750aa1461145c57806368c7beee146114285780636d8aa19b146114075780637de1e536146113de57806385549b50146113b957806390321e1a1461139b57806399597b7014611372578063a094c63214610a9e578063b3cea21714610a80578063bc197c81146109f0578063c31dd5ae14610392578063c45a015514610369578063d8b2ec27146102b6578063ec5858b0146101855763f23a6e611461012857600080fd5b346101825760a036600319011261018257610141611a22565b5061014a611a38565b506084356001600160401b03811161017e5761016a903690600401611a4e565b505060405163f23a6e6160e01b8152602090f35b5080fd5b80fd5b50346101825760031960403682011261017e576101a0611a22565b6024356001600160401b0381116102b2576040816004019382360301126102b2576024916101ce8480611e83565b939084604051958692833781016009815260209586910301902092013591828652835260018060a01b039182604087205416330361026d57907f0890a8e4433aa07469fe1c3d7ad0d3a4aa9a61c6124ac406fa8a20a3b5956a449291846102358780611e83565b919082604051938492833781016009815203019020908752845261026760405192839286845216953395830190611ee7565b0390a380f35b60405162461bcd60e51b815260048101859052601860248201527f596f7520646f6e2774206f776e207468697320626c6f636b00000000000000006044820152606490fd5b8380fd5b5034610182578060031936011261018257600a546102d381611c20565b915b8181106102ee57604051806102ea8582611ac3565b0390f35b806102fb61036492611c8f565b50610349610315600161030d85611c8f565b500154611d9a565b60405192839161033a61032d60209384860190611d03565b9182815194859201611a7b565b0103601f198101835282611b53565b6103538286611d86565b5261035e8185611d86565b50611c6a565b6102d5565b50346101825780600319360112610182576003546040516001600160a01b039091168152602090f35b5034610182576020366003190112610182576004356001600160401b03811161017e576103c3903690600401611bc6565b9060028354146109de576002835560ff60085460081c161561099957825b82811061085257506103f882606460055404611eb5565b600354604051636572f88f60e11b81526001600160a01b03916020908290600490829086165afa908115610818578691610823575b50166040516370a0823160e01b8152336004820152602081602481855afa801561081857839187916107de575b5010610799576040516323b872dd60e01b6020820152336024820152306044820152606481018390526104a39161049e82608481015b03601f198101845283611b53565b611f47565b835b83811061054a575060405191836040840160408552526060830160608560051b850101948287905b82821061050a576020870186905288337faf4cdb81297e81b4ae6bb64d58205e56e6df95cdfd7d8212b2478c264c4def29898b038aa26001815580f35b9091929396605f198782030185528735603e198336030181121561054657602061053960019385839401611ee7565b99019501939201906104cd565b8980fd5b604051604081018181106001600160401b0382111761078357604052606081528560208201526020610586610580848888611e61565b80611e83565b91908260405193849283378101600981520301902060206105a8848888611e61565b013587526020526040862080546001600160a01b031916331790556105db6105d4610580848888611e61565b3691611b8f565b815260206105ea838787611e61565b01356020820152600a8054906801000000000000000082101561076f5760018201905561061690611c8f565b91909161075b5780518051906001600160401b0382116107475761063a8454611cc9565b601f8111610706575b50602090601f83116001146106955792826001936020936106859897968d9261068a575b5050600019600383901b1c191690841b1784555b0151910155611c6a565b6104a5565b015190503880610667565b90848a5260208a20918a5b601f19851681106106ee57508360209361068598979693600196938794601f198116106106d5575b505050811b01845561067b565b015160001960f88460031b161c191690553880806106c8565b919260206001819286850151815501940192016106a0565b848a5260208a20601f840160051c810160208510610740575b601f830160051c82018110610735575050610643565b8b815560010161071f565b508061071f565b634e487b7160e01b89526041600452602489fd5b634e487b7160e01b87526004879052602487fd5b634e487b7160e01b88526041600452602488fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820574554482062616c616e63650000000000000000006044820152606490fd5b9150506020813d602011610810575b816107fa60209383611b53565b8101031261080b578290513861045a565b600080fd5b3d91506107ed565b6040513d88823e3d90fd5b610845915060203d60201161084b575b61083d8183611b53565b810190611ec8565b3861042d565b503d610833565b61085d818484611e61565b50600980602061086e848787611e61565b013511158061097c575b8061095a575b1561091f576020610893610580848787611e61565b9283604051948593843782019081520301902060206108b3838686611e61565b0135855260205260408420546001600160a01b03166108da576108d590611c6a565b6103e1565b60405162461bcd60e51b815260206004820152601760248201527f426c6f636b20616c7265616479207075726368617365640000000000000000006044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272436f6c756d6e206f7574206f662072616e676560681b6044820152606490fd5b50806109756109706105d4610580868989611e61565b61206a565b111561087e565b506109916109706105d4610580858888611e61565b506001610878565b60405162461bcd60e51b815260206004820152601960248201527f54686973207061726c61792068617320636f6e636c75646564000000000000006044820152606490fd5b604051633ee5aeb560e01b8152600490fd5b50346101825760a036600319011261018257610a0a611a22565b50610a13611a38565b506001600160401b03604435818111610a7c57610a34903690600401611bc6565b5050606435818111610a7c57610a4e903690600401611bc6565b505060843590811161017e57610a68903690600401611a4e565b505060405163bc197c8160e01b8152602090f35b8280fd5b50346101825780600319360112610182576020600454604051908152f35b5034610182578060031936011261018257610ab7611bf6565b1561132d5760ff60085460081c16156112e857600354604051631c06dc2b60e21b81523360048201526001600160a01b0390911690602081602481855afa80156112dd57610b0c9184916112ae575b50611fc7565b6040516060838183016001600160401b038111848210176107835760405260028352604036602085013784905b6002821061123f5750505080511561122957610b6f6020610b5c81840151612155565b8160405193828580945193849201611a7b565b81016009815203019020908051600110156112295760400151835260205260018060a01b03604083205416604051636572f88f60e11b8152602081600481865afa908115610d4e57849161120a575b506040516370a0823160e01b80825230600483015290936001600160a01b039290921691602085602481865afa9485156108185786956111d6575b50859480610edc575b505050508015600014610dd85760085460ff1615610d595760025460048054604051627eeac760e11b8152309281019290925260248201819052859290916001600160a01b0390911690602081604481855afa908115610d4e578491610d19575b506001546001600160a01b031691803b15610d1557610c9d9385809460405196879586948593637921219560e11b85523060048601611ffb565b03925af18015610d0a57610cf6575b50505b6008805461ff00191690556001546040519283526001600160a01b0316917fa21568cd42b16a916abbbd0cea693c15f429f7522a999d60230e0f15540b625090602090a380f35b610cff90611b25565b610a7c578238610cac565b6040513d84823e3d90fd5b8480fd5b9350506020833d602011610d46575b81610d3560209383611b53565b8101031261080b5785925138610c63565b3d9150610d28565b6040513d86823e3d90fd5b60025460015460045485926001600160a01b03908116921690823b156102b257604051632142170760e11b81523060048201526001600160a01b03909216602483015260448201529082908290818381606481015b03925af18015610d0a57610dc4575b5050610caf565b610dcd90611b25565b610a7c578238610dbd565b60085460ff1615610e8a5760025460048054604051627eeac760e11b815230928101929092526024820181905285926001600160a01b031691602081604481865afa908115610d4e578491610e55575b50823b156102b257610dae92849283604051809681958294637921219560e11b84528b3060048601611ffb565b9350506020833d602011610e82575b81610e7160209383611b53565b8101031261080b5785925138610e28565b3d9150610e64565b60025460045484916001600160a01b0316803b15610a7c57604051632142170760e11b81523060048201526001600160a01b038516602482015260448101929092528290829081838160648101610dae565b6040516361d027b360e01b815290602082600481865afa9182156111695788926111b5575b50604051630f2d145b60e41b815290602082600481875afa9182156111aa578992611174575b50610f36600492602092611eb5565b9360405192838092631a087f3760e11b82525afa908115611169578891611137575b50801561112157610f6b9204908461202f565b604051818152306004820152602081602481865afa9081156108185786916110ef575b50600554606490041161108857610fab606460055404338461202f565b604051818152306004820152602081602481865afa908115610818578691611056575b50610fdb575b8080610c02565b909250604051908152306004820152602081602481865afa8015610d4e578490611022575b600154909361101b925084916001600160a01b03169061202f565b3880610fd4565b506020813d60201161104e575b8161103c60209383611b53565b8101031261080b5761101b9051611000565b3d915061102f565b90506020813d602011611080575b8161107160209383611b53565b8101031261080b575138610fce565b3d9150611064565b604051818152306004820152602081602481865afa80156108185786906110bb575b6110b69150338461202f565b610fab565b506020813d6020116110e7575b816110d560209383611b53565b8101031261080b576110b690516110aa565b3d91506110c8565b90506020813d602011611119575b8161110a60209383611b53565b8101031261080b575138610f8e565b3d91506110fd565b634e487b7160e01b600052601260045260246000fd5b90506020813d602011611161575b8161115260209383611b53565b8101031261080b575138610f58565b3d9150611145565b6040513d8a823e3d90fd5b91506020823d6020116111a2575b8161118f60209383611b53565b8101031261080b57905190610f36610f27565b3d9150611182565b6040513d8b823e3d90fd5b6111cf91925060203d60201161084b5761083d8183611b53565b9038610f01565b9094506020813d602011611202575b816111f260209383611b53565b8101031261080b57519338610bf9565b3d91506111e5565b611223915060203d60201161084b5761083d8183611b53565b38610bbe565b634e487b7160e01b600052603260045260246000fd5b6040519042602083015244604083015233841b848301526074908183015281528060a08101106001600160401b0360a083011117610783578060a0600a920160405260208151910120066112938285611d86565b526112a86112a18285611d86565b5191611c6a565b90610b39565b6112d0915060203d6020116112d6575b6112c88183611b53565b810190611faf565b38610b06565b503d6112be565b6040513d85823e3d90fd5b60405162461bcd60e51b815260206004820152601d60248201527f54686973206576656e7420686173206265656e20636f6e636c756465640000006044820152606490fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682074696d6520686173207061737365640000000000006044820152606490fd5b50346101825780600319360112610182576001546040516001600160a01b039091168152602090f35b50346101825780600319360112610182576020600654604051908152f35b503461018257806003193601126101825760206113d4611bf6565b6040519015158152f35b50346101825780600319360112610182576002546040516001600160a01b039091168152602090f35b50346101825780600319360112610182576020606460055404604051908152f35b5034610182576020366003190112610182576102ea611448600435612155565b604051918291602083526020830190611a9e565b503461018257602036600319011261018257600435906001600160401b03821161018257366023830112156101825760206114a261097036600486013560248701611b8f565b604051908152f35b50346101825780600319360112610182576020600754604051908152f35b50346101825760208060031936011261017e576114e3611a22565b600a546001600160a01b0393909184169080805b8481106115cb575061150890611c20565b938192825b85811061152257604051806102ea8982611ac3565b61153c8361152f83611c8f565b5060405192838092611d03565b600981520301902061154d82611c8f565b509060018092015486528452828960408720541614611576575b5061157190611c6a565b61150d565b819561032d6115af6115c4938761159d61159261157198611c8f565b509261030d8d611c8f565b61033a60405195869484860190611d03565b6115b9828b611d86565b5261035e818a611d86565b9490611567565b6115d88661152f83611c8f565b600981520301902060016115eb83611c8f565b5001548452865283876040852054161461160e575b61160990611c6a565b6114f7565b9061161b61160991611c6a565b919050611600565b50346101825760208060031936011261017e578161163f611a22565b600354604051631c06dc2b60e21b81523360048201526001600160a01b03929185908290602490829087165afa8015610d4e5761168291859161173a5750611fc7565b6040516370a0823160e01b815230600482015291168382602481845afa80156112dd5784928491611705575b5060405163a9059cbb60e01b8152336004820152602481019190915292839190829081604481015b03925af180156112dd576116e8578280f35b816116fe92903d106112d6576112c88183611b53565b5038808280f35b9350509082813d8311611733575b61171d8183611b53565b8101031261080b579051839183916116d66116ae565b503d611713565b6112d09150863d88116112d6576112c88183611b53565b5034610182578060031936011261018257600354604051631c06dc2b60e21b815233600482015282916020916001600160a01b039183908290602490829086165afa8015610d4e576117a99185916118e05750611fc7565b60085460ff16156118845760025460048054604051627eeac760e11b81523092810192909252602482018190529290911692908181604481875afa918215611879578592611848575b5050823b156118435761182092849283604051809681958294637921219560e11b8452333060048601611ffb565b03925af18015610d0a5761183357505080f35b61183c90611b25565b6101825780f35b505050fd5b8195508092503d8311611872575b6118608183611b53565b8101031261080b5783925138806117f2565b503d611856565b6040513d87823e3d90fd5b905060025416600454813b156118dc57604051632142170760e11b8152306004820152336024820152604481019190915291908290606490829084905af18015610d0a576118d0575080f35b6118d990611b25565b80f35b5050fd5b6112d09150843d86116112d6576112c88183611b53565b5034610182578060031936011261018257602060ff600854166040519015158152f35b503461018257608036600319011261018257611934611a22565b5061193d611a38565b506064356001600160401b03811161017e5761195d903690600401611a4e565b5050604051630a85bd0160e11b8152602090f35b5034610182578060031936011261018257602060ff60085460081c166040519015158152f35b50346101825760203660031901126101825760043563ffffffff60e01b811680910361017e57602090630a85bd0160e11b81149081156119f5575b81156119e4575b506040519015158152f35b6301ffc9a760e01b149050826119d9565b630271189760e51b811491506119d2565b90503461017e578160031936011261017e576020906005548152f35b600435906001600160a01b038216820361080b57565b602435906001600160a01b038216820361080b57565b9181601f8401121561080b578235916001600160401b03831161080b576020838186019501011161080b57565b60005b838110611a8e5750506000910152565b8181015183820152602001611a7e565b90602091611ab781518092818552858086019101611a7b565b601f01601f1916010190565b602080820190808352835180925260408301928160408460051b8301019501936000915b848310611af75750505050505090565b9091929394958480611b15600193603f198682030187528a51611a9e565b9801930193019194939290611ae7565b6001600160401b03811161078357604052565b604081019081106001600160401b0382111761078357604052565b90601f801991011681019081106001600160401b0382111761078357604052565b6001600160401b03811161078357601f01601f191660200190565b929192611b9b82611b74565b91611ba96040519384611b53565b82948184528183011161080b578281602093846000960137010152565b9181601f8401121561080b578235916001600160401b03831161080b576020808501948460051b01011161080b57565b6007544210611c0457600190565b600090565b6001600160401b0381116107835760051b60200190565b90611c2a82611c09565b611c376040519182611b53565b8281528092611c48601f1991611c09565b019060005b828110611c5957505050565b806060602080938501015201611c4d565b6000198114611c795760010190565b634e487b7160e01b600052601160045260246000fd5b600a5481101561122957600a60005260011b7fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190600090565b90600182811c92168015611cf9575b6020831014611ce357565b634e487b7160e01b600052602260045260246000fd5b91607f1691611cd8565b600092918154611d1281611cc9565b92600191808316908115611d6b5750600114611d2f575b50505050565b90919293945060005260209081600020906000915b858310611d5a5750505050019038808080611d29565b805485840152918301918101611d44565b60ff1916845250505081151590910201915038808080611d29565b80518210156112295760209160051b010190565b8015611e435780816000925b611e2d5750611db482611b74565b91611dc26040519384611b53565b808352601f19611dd182611b74565b01908260209236848701375b611de75750505090565b6000198101908111611c79578092600a9160308383068101809111611c795786518210156112295760f81b6001600160f81b03191660001a908601840153049182611ddd565b9091611e3a600a91611c6a565b92910480611da6565b50604051611e5081611b38565b60018152600360fc1b602082015290565b91908110156112295760051b81013590603e198136030182121561080b570190565b903590601e198136030182121561080b57018035906001600160401b03821161080b5760200191813603831361080b57565b81810292918115918404141715611c7957565b9081602091031261080b57516001600160a01b038116810361080b5790565b908135601e198336030181121561080b5782016020813591016001600160401b03821161080b57813603811361080b57606093826020926040865281604087015286860137600084840186015201356020830152601f01601f1916010190565b906000602091828151910182855af115611fa3576000513d611f9a57506001600160a01b0381163b155b611f785750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611f71565b6040513d6000823e3d90fd5b9081602091031261080b5751801515810361080b5790565b15611fce57565b60405162461bcd60e51b815260206004820152600560248201526404282eae8d60db1b6044820152606490fd5b929060c0949260018060a01b0380921685521660208401526040830152606082015260a06080820152600060a08201520190565b60405163a9059cbb60e01b60208201526001600160a01b03909216602483015260448201929092526120689161049e8260648101610490565b565b600181510361210657805115611229576020015160f81c6041811015806120fb575b156120a3576040190160ff8111611c795760ff1690565b60405162461bcd60e51b815260206004820152602a60248201527f496e707574206d757374206265206120636861726163746572206265747765656044820152693710209030b73210251760b11b6064820152608490fd5b50604a81111561208c565b60405162461bcd60e51b815260206004820152602160248201527f496e707574206d75737420626520612073696e676c65206368617261637465726044820152601760f91b6064820152608490fd5b6009811161219f576040519061216a82611b38565b600182526020820190602036833760418101809111611c79578251156112295760f81b6001600160f81b03191660001a905390565b60405162461bcd60e51b815260206004820152601e60248201527f496e707574206d757374206265206265747765656e203020616e6420392e00006044820152606490fdfea26469706673582212201fce0bceb6861bd4085e7787dff18aa3267a9d0d9bc93e502f61c99c53812d1c64736f6c63430008140033a2646970667358221220674491c797a29e428838bd986e427c3d24a65ac7763d260eb852fe0f584d070064736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
-----Decoded View---------------
Arg [0] : _WETH (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [1] : _treasury (address): 0x0c16Da76872131bC6095f73b894B4757873dAce1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [1] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.