More Info
Private Name Tags
ContractCreator
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||||
---|---|---|---|---|---|---|---|---|---|
There are no matching entriesUpdate your filters to view other transactions |
Loading...
Loading
Contract Name:
UglyPool
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.2; // SPDX-License-Identifier: MIT // __ __ _______ ___ __ __ _______ _______ _______ ___ // | | | || || | | | | || || || || | // | | | || ___|| | | |_| || _ || _ || _ || | // | |_| || | __ | | | || |_| || | | || | | || | // | || || || |___ |_ _|| ___|| |_| || |_| || |___ // | || |_| || | | | | | | || || | // |_______||_______||_______| |___| |___| |_______||_______||_______| // This version has been simplified + is not upgradable. import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; interface NFTContract { function balanceOf(address _owner) external view returns (uint256); function ownerOf(uint256 _tokenId) external view returns (address); function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256); function name() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } contract UglyPool is IERC721Receiver, Ownable, Pausable { using EnumerableSet for EnumerableSet.UintSet; struct pool { IERC721 registry; // NFT contract address address owner; // Pool owner uint256 fee; // Fee to swap uint256 balance; // Balance from fees of this pool } pool[] public pools; // all pools mapping(uint => EnumerableSet.UintSet) tokenIds; // map pool id to set of tokenIds uint public contractFee; // percent of pool fees address private contractFeePayee; // this contract owner event CreatedPool( uint indexed poolId, address indexed sender); event PoolFee( uint indexed poolId, uint256 newFee, address indexed sender); event DepositNFT( uint indexed poolId, uint256 tokenId, address indexed sender); event WithdrawNFT( uint indexed poolId, uint256 tokenId, address indexed sender); event DepositEth( uint indexed poolId, uint amount, address indexed sender); event WithdrawEth( uint indexed poolId, uint amount, address indexed sender); event TradeExecuted( uint indexed poolId, address indexed user, uint256 inTokenId, uint256 outTokenId); constructor(){ uint[] memory emptyArray; createPool(IERC721(0x0000000000000000000000000000000000000000),emptyArray, 0); // set pools[0] to nothing contractFeePayee = msg.sender; contractFee = 10; } // Create Pool function createPool(IERC721 _registry, uint[] memory _tokenIds, uint _fee) public whenNotPaused { pool memory _pool = pool({ registry : _registry, owner : msg.sender, fee : _fee, balance : 0 }); uint _poolId = pools.length; pools.push(_pool); emit CreatedPool(_poolId, msg.sender); for (uint i; i < _tokenIds.length; i++){ tokenIds[_poolId].add(_tokenIds[i]); _registry.safeTransferFrom(msg.sender, address(this), _tokenIds[i]); emit DepositNFT(_poolId, _tokenIds[i], msg.sender); } } // Deposits function depositNFTs(uint _poolId, uint[] memory _tokenIds) public payable whenNotPaused { require(pools[_poolId].owner == msg.sender, "Not the owner of pool"); for (uint i; i < _tokenIds.length; i++){ pools[_poolId].registry.safeTransferFrom(msg.sender, address(this), _tokenIds[i]); tokenIds[_poolId].add(_tokenIds[i]); emit DepositNFT(_poolId, _tokenIds[i], msg.sender); } } // Swap function swapSelectedUgly(uint _poolId, uint _idFromPool, uint _idToPool) public payable whenNotPaused { require(tokenIds[_poolId].length() > 0, "Nothing in pool."); require(msg.value >= pools[_poolId].fee, "Not enough ETH to pay fee"); pools[_poolId].registry.safeTransferFrom(msg.sender, address(this), _idFromPool); pools[_poolId].registry.safeTransferFrom( address(this), msg.sender, _idToPool); uint _contractFee = msg.value * contractFee / 100; // Take % for contractRoyaltyPayee pools[_poolId].balance += msg.value - _contractFee; tokenIds[_poolId].remove(_idToPool); tokenIds[_poolId].add(_idFromPool); Address.sendValue(payable(contractFeePayee), _contractFee); emit TradeExecuted(_poolId, msg.sender, _idFromPool, _idToPool); } // Withdrawals function withdrawPoolNFTs(uint _poolId, uint[] memory _ids) public whenNotPaused { require(pools[_poolId].owner == msg.sender, "Not the owner of pool"); for (uint i;i < _ids.length;i++){ require (tokenIds[_poolId].contains(_ids[i]), "NFT is not in your pool."); pools[_poolId].registry.safeTransferFrom( address(this), msg.sender, _ids[i]); tokenIds[_poolId].remove(_ids[i]); emit WithdrawNFT(_poolId, _ids[i], msg.sender); } } function withdrawPoolBalance(uint _poolId) public whenNotPaused { require(pools[_poolId].owner == msg.sender, "Not the owner of pool"); require(pools[_poolId].balance > 0, "There are no fees to withdraw."); uint256 balance = pools[_poolId].balance; pools[_poolId].balance = 0; Address.sendValue(payable(msg.sender), balance); } // Setters function setPoolFee(uint _poolId, uint _newFee) public { require(pools[_poolId].owner == msg.sender, "Not the owner of pool"); pools[_poolId].fee = _newFee; } // Contract Owner Functions function setContractFee(uint _percentage) public onlyOwner { contractFee = _percentage; } function setContractFeePayee(address _address) public onlyOwner { contractFeePayee = _address; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } // View Functions function getPoolNFTIds(uint _poolId) public view returns (uint[] memory){ return tokenIds[_poolId].values(); } function poolIdsByOwner(address _owner) public view returns (uint256[] memory) { uint poolCount = 0; uint[] memory _ids = new uint[](numPoolsByOwner(_owner)); for (uint i = 0; i < pools.length; i++){ if (pools[i].owner == _owner){ _ids[poolCount] = i; poolCount++; } } return _ids; } function numPoolsByOwner(address _owner) private view returns (uint) { uint count = 0; for (uint i = 0; i < pools.length; i++){ if (pools[i].owner == _owner) count++; } return count; } function numPools() public view returns (uint) { return pools.length; } // View Functions (Balances) function poolBalance(uint _poolId) public view returns (uint) { return pools[_poolId].balance; } function poolFee(uint _poolId) public view returns (uint) { return pools[_poolId].fee; } function poolNFTBalance(uint _poolId) public view returns (uint) { return tokenIds[_poolId].length(); } // Misc function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) public override returns (bytes4) { return this.onERC721Received.selector; } // Proxy Methods function allNFTsByAddress(address _wallet, address _registry) public view returns(uint[] memory){ uint[] memory nfts = new uint[](balanceOfNFTs(_wallet, _registry)); for (uint i = 0; i < nfts.length;i++){ nfts[i] = tokenOfOwnerByIndex(_wallet, i, _registry); } return nfts; } // All NFTs in collection owned by wallet address function balanceOfNFTs(address _address, address _registry) private view returns (uint) { return NFTContract(_registry).balanceOf(_address); } function tokenOfOwnerByIndex(address _owner, uint256 _index, address _registry) private view returns (uint256) { return NFTContract(_registry).tokenOfOwnerByIndex(_owner,_index); } function registryName(address _registry) public view returns (string memory){ return NFTContract(_registry).name(); } function tokenURI(address _registry, uint256 tokenId) public view returns (string memory){ return NFTContract(_registry).tokenURI(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol 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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../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 v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"CreatedPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"DepositEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"DepositNFT","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"PoolFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"inTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"outTokenId","type":"uint256"}],"name":"TradeExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"WithdrawEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"WithdrawNFT","type":"event"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"address","name":"_registry","type":"address"}],"name":"allNFTsByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_registry","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"depositNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"getPoolNFTIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"poolBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"poolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"poolIdsByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"poolNFTBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"contract IERC721","name":"registry","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_registry","type":"address"}],"name":"registryName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setContractFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setContractFeePayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"setPoolFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_idFromPool","type":"uint256"},{"internalType":"uint256","name":"_idToPool","type":"uint256"}],"name":"swapSelectedUgly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_registry","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"withdrawPoolBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"withdrawPoolNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200003262000026620000b360201b60201c565b620000bb60201b60201c565b60008060146101000a81548160ff02191690831515021790555060606200006360008260006200017f60201b60201c565b33600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a6003819055505062000773565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200018f620004b560201b60201c565b15620001d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c99062000610565b60405180910390fd5b600060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018381526020016000815250905060006001805490509050600182908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015550503373ffffffffffffffffffffffffffffffffffffffff16817f7524dce055c8ea88a4f9e9f8a72187c08f9d0d94834cd442b57c9bfc19b1022b60405160405180910390a360005b8451811015620004ad57620003988582815181106200036957620003686200071b565b5b602002602001015160026000858152602001908152602001600020620004cb60201b62001d9b1790919060201c565b508573ffffffffffffffffffffffffffffffffffffffff166342842e0e3330888581518110620003cd57620003cc6200071b565b5b60200260200101516040518463ffffffff1660e01b8152600401620003f593929190620005d3565b600060405180830381600087803b1580156200041057600080fd5b505af115801562000425573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff16827f4d1447c72d725c05e614d0892302c423c8f2e085e6a4018f4ded32c0aebe91618784815181106200047857620004776200071b565b5b60200260200101516040516200048f919062000632565b60405180910390a38080620004a4906200069e565b91505062000345565b505050505050565b60008060149054906101000a900460ff16905090565b6000620004e5836000018360001b620004ed60201b60201c565b905092915050565b60006200050183836200056760201b60201c565b6200055c57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000561565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b620005958162000660565b82525050565b6000620005aa6010836200064f565b9150620005b7826200074a565b602082019050919050565b620005cd8162000694565b82525050565b6000606082019050620005ea60008301866200058a565b620005f960208301856200058a565b620006086040830184620005c2565b949350505050565b600060208201905081810360008301526200062b816200059b565b9050919050565b6000602082019050620006496000830184620005c2565b92915050565b600082825260208201905092915050565b60006200066d8262000674565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000620006ab8262000694565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620006e157620006e0620006ec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6136b180620007836000396000f3fe6080604052600436106101815760003560e01c806376a6b114116100d1578063b5383c861161008a578063d52b859211610064578063d52b859214610567578063e9dc637514610590578063f07b6df8146105cd578063f2fde38b1461060a57610181565b8063b5383c86146104d6578063bd45432114610513578063d41977cd1461053c57610181565b806376a6b114146103df5780638456cb59146103fb5780638da5cb5b14610412578063a7858adb1461043d578063ab894d8c14610459578063ac4afa381461049657610181565b80635c975abb1161013e578063656f0b7b11610118578063656f0b7b146103395780636a6d964e14610362578063715018a61461039f578063756c2eb3146103b657610181565b80635c975abb146102a85780635d03a63e146102d357806364fd28b41461031057610181565b8063150b7a02146101865780631fd2a82f146101c357806322822c621461020057806335c62bc21461023d5780633f4ba83a146102685780634aa67d311461027f575b600080fd5b34801561019257600080fd5b506101ad60048036038101906101a89190612741565b610633565b6040516101ba9190612d84565b60405180910390f35b3480156101cf57600080fd5b506101ea60048036038101906101e591906128c1565b610648565b6040516101f79190612d47565b60405180910390f35b34801561020c57600080fd5b50610227600480360381019061022291906126d4565b61066c565b6040516102349190612de4565b60405180910390f35b34801561024957600080fd5b506102526106f8565b60405161025f9190612f66565b60405180910390f35b34801561027457600080fd5b5061027d610705565b005b34801561028b57600080fd5b506102a660048036038101906102a191906128c1565b61078b565b005b3480156102b457600080fd5b506102bd610811565b6040516102ca9190612d69565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f591906128c1565b610827565b6040516103079190612f66565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190612977565b610856565b005b34801561034557600080fd5b50610360600480360381019061035b9190612809565b610937565b005b34801561036e57600080fd5b50610389600480360381019061038491906128c1565b610c48565b6040516103969190612f66565b60405180910390f35b3480156103ab57600080fd5b506103b4610c77565b005b3480156103c257600080fd5b506103dd60048036038101906103d8919061291b565b610cff565b005b6103f960048036038101906103f4919061291b565b611013565b005b34801561040757600080fd5b506104106112a9565b005b34801561041e57600080fd5b5061042761132f565b6040516104349190612ccc565b60405180910390f35b610457600480360381019061045291906129b7565b611358565b005b34801561046557600080fd5b50610480600480360381019061047b9190612701565b611701565b60405161048d9190612d47565b60405180910390f35b3480156104a257600080fd5b506104bd60048036038101906104b891906128c1565b6117ad565b6040516104cd9493929190612d9f565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f891906128c1565b61182d565b60405161050a9190612f66565b60405180910390f35b34801561051f57600080fd5b5061053a600480360381019061053591906126d4565b611851565b005b34801561054857600080fd5b50610551611911565b60405161055e9190612f66565b60405180910390f35b34801561057357600080fd5b5061058e600480360381019061058991906128c1565b611917565b005b34801561059c57600080fd5b506105b760048036038101906105b291906127c9565b611add565b6040516105c49190612de4565b60405180910390f35b3480156105d957600080fd5b506105f460048036038101906105ef91906126d4565b611b75565b6040516106019190612d47565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c91906126d4565b611ca3565b005b600063150b7a0260e01b905095945050505050565b606061066560026000848152602001908152602001600020611db5565b9050919050565b60608173ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156106b457600080fd5b505afa1580156106c8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906106f19190612878565b9050919050565b6000600180549050905090565b61070d611dd6565b73ffffffffffffffffffffffffffffffffffffffff1661072b61132f565b73ffffffffffffffffffffffffffffffffffffffff1614610781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077890612f06565b60405180910390fd5b610789611dde565b565b610793611dd6565b73ffffffffffffffffffffffffffffffffffffffff166107b161132f565b73ffffffffffffffffffffffffffffffffffffffff1614610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90612f06565b60405180910390fd5b8060038190555050565b60008060149054906101000a900460ff16905090565b60006001828154811061083d5761083c613397565b5b9060005260206000209060040201600201549050919050565b3373ffffffffffffffffffffffffffffffffffffffff166001838154811061088157610880613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090090612ea6565b60405180910390fd5b806001838154811061091e5761091d613397565b5b9060005260206000209060040201600201819055505050565b61093f610811565b1561097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097690612ec6565b60405180910390fd5b600060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018381526020016000815250905060006001805490509050600182908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015550503373ffffffffffffffffffffffffffffffffffffffff16817f7524dce055c8ea88a4f9e9f8a72187c08f9d0d94834cd442b57c9bfc19b1022b60405160405180910390a360005b8451811015610c4057610b3a858281518110610b1157610b10613397565b5b602002602001015160026000858152602001908152602001600020611d9b90919063ffffffff16565b508573ffffffffffffffffffffffffffffffffffffffff166342842e0e3330888581518110610b6c57610b6b613397565b5b60200260200101516040518463ffffffff1660e01b8152600401610b9293929190612ce7565b600060405180830381600087803b158015610bac57600080fd5b505af1158015610bc0573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff16827f4d1447c72d725c05e614d0892302c423c8f2e085e6a4018f4ded32c0aebe9161878481518110610c1057610c0f613397565b5b6020026020010151604051610c259190612f66565b60405180910390a38080610c38906132c1565b915050610af2565b505050505050565b600060018281548110610c5e57610c5d613397565b5b9060005260206000209060040201600301549050919050565b610c7f611dd6565b73ffffffffffffffffffffffffffffffffffffffff16610c9d61132f565b73ffffffffffffffffffffffffffffffffffffffff1614610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea90612f06565b60405180910390fd5b610cfd6000611e7f565b565b610d07610811565b15610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e90612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1660018381548110610d7257610d71613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190612ea6565b60405180910390fd5b60005b815181101561100e57610e45828281518110610e1c57610e1b613397565b5b602002602001015160026000868152602001908152602001600020611f4390919063ffffffff16565b610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b90612ee6565b60405180910390fd5b60018381548110610e9857610e97613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033858581518110610efa57610ef9613397565b5b60200260200101516040518463ffffffff1660e01b8152600401610f2093929190612ce7565b600060405180830381600087803b158015610f3a57600080fd5b505af1158015610f4e573d6000803e3d6000fd5b50505050610f91828281518110610f6857610f67613397565b5b602002602001015160026000868152602001908152602001600020611f5d90919063ffffffff16565b503373ffffffffffffffffffffffffffffffffffffffff16837f3d5f3c57bb30626d35c4589c00c52455836241a6c332b242ba6f929837f7eb62848481518110610fde57610fdd613397565b5b6020026020010151604051610ff39190612f66565b60405180910390a38080611006906132c1565b915050610dfd565b505050565b61101b610811565b1561105b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105290612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166001838154811061108657611085613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590612ea6565b60405180910390fd5b60005b81518110156112a4576001838154811061112e5761112d613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e33308585815181106111905761118f613397565b5b60200260200101516040518463ffffffff1660e01b81526004016111b693929190612ce7565b600060405180830381600087803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b505050506112278282815181106111fe576111fd613397565b5b602002602001015160026000868152602001908152602001600020611d9b90919063ffffffff16565b503373ffffffffffffffffffffffffffffffffffffffff16837f4d1447c72d725c05e614d0892302c423c8f2e085e6a4018f4ded32c0aebe916184848151811061127457611273613397565b5b60200260200101516040516112899190612f66565b60405180910390a3808061129c906132c1565b915050611111565b505050565b6112b1611dd6565b73ffffffffffffffffffffffffffffffffffffffff166112cf61132f565b73ffffffffffffffffffffffffffffffffffffffff1614611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c90612f06565b60405180910390fd5b61132d611f77565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611360610811565b156113a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139790612ec6565b60405180910390fd5b60006113bd6002600086815260200190815260200160002061201a565b116113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f490612e46565b60405180910390fd5b6001838154811061141157611410613397565b5b906000526020600020906004020160020154341015611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90612f46565b60405180910390fd5b6001838154811061147957611478613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b81526004016114e793929190612ce7565b600060405180830381600087803b15801561150157600080fd5b505af1158015611515573d6000803e3d6000fd5b505050506001838154811061152d5761152c613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161159b93929190612ce7565b600060405180830381600087803b1580156115b557600080fd5b505af11580156115c9573d6000803e3d6000fd5b5050505060006064600354346115df9190613113565b6115e991906130e2565b905080346115f7919061316d565b6001858154811061160b5761160a613397565b5b9060005260206000209060040201600301600082825461162b919061308c565b925050819055506116578260026000878152602001908152602001600020611f5d90919063ffffffff16565b5061167d8360026000878152602001908152602001600020611d9b90919063ffffffff16565b506116aa600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261202f565b3373ffffffffffffffffffffffffffffffffffffffff16847fb6bb24d48b7a7f099035f05122f42b3c661a517945b8ffeff8032243d76aa77185856040516116f3929190612f81565b60405180910390a350505050565b6060600061170f8484612123565b67ffffffffffffffff811115611728576117276133c6565b5b6040519080825280602002602001820160405280156117565781602001602082028036833780820191505090505b50905060005b81518110156117a2576117708582866121b6565b82828151811061178357611782613397565b5b602002602001018181525050808061179a906132c1565b91505061175c565b508091505092915050565b600181815481106117bd57600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905084565b600061184a6002600084815260200190815260200160002061201a565b9050919050565b611859611dd6565b73ffffffffffffffffffffffffffffffffffffffff1661187761132f565b73ffffffffffffffffffffffffffffffffffffffff16146118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490612f06565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60035481565b61191f610811565b1561195f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195690612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166001828154811061198a57611989613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0990612ea6565b60405180910390fd5b600060018281548110611a2857611a27613397565b5b90600052602060002090600402016003015411611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7190612f26565b60405180910390fd5b600060018281548110611a9057611a8f613397565b5b9060005260206000209060040201600301549050600060018381548110611aba57611ab9613397565b5b906000526020600020906004020160030181905550611ad9338261202f565b5050565b60608273ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611b189190612f66565b60006040518083038186803b158015611b3057600080fd5b505afa158015611b44573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611b6d9190612878565b905092915050565b6060600080611b838461224c565b67ffffffffffffffff811115611b9c57611b9b6133c6565b5b604051908082528060200260200182016040528015611bca5781602001602082028036833780820191505090505b50905060005b600180549050811015611c98578473ffffffffffffffffffffffffffffffffffffffff1660018281548110611c0857611c07613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611c855780828481518110611c6a57611c69613397565b5b6020026020010181815250508280611c81906132c1565b9350505b8080611c90906132c1565b915050611bd0565b508092505050919050565b611cab611dd6565b73ffffffffffffffffffffffffffffffffffffffff16611cc961132f565b73ffffffffffffffffffffffffffffffffffffffff1614611d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1690612f06565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690612e26565b60405180910390fd5b611d9881611e7f565b50565b6000611dad836000018360001b612308565b905092915050565b60606000611dc583600001612378565b905060608190508092505050919050565b600033905090565b611de6610811565b611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90612e06565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611e68611dd6565b604051611e759190612ccc565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f55836000018360001b6123d4565b905092915050565b6000611f6f836000018360001b6123f7565b905092915050565b611f7f610811565b15611fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb690612ec6565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612003611dd6565b6040516120109190612ccc565b60405180910390a1565b60006120288260000161250b565b9050919050565b80471015612072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206990612e86565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161209890612cb7565b60006040518083038185875af1925050503d80600081146120d5576040519150601f19603f3d011682016040523d82523d6000602084013e6120da565b606091505b505090508061211e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211590612e66565b60405180910390fd5b505050565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040161215e9190612ccc565b60206040518083038186803b15801561217657600080fd5b505afa15801561218a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ae91906128ee565b905092915050565b60008173ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b81526004016121f3929190612d1e565b60206040518083038186803b15801561220b57600080fd5b505afa15801561221f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224391906128ee565b90509392505050565b6000806000905060005b6001805490508110156122fe578373ffffffffffffffffffffffffffffffffffffffff166001828154811061228e5761228d613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156122eb5781806122e7906132c1565b9250505b80806122f6906132c1565b915050612256565b5080915050919050565b600061231483836123d4565b61236d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612372565b600090505b92915050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156123c857602002820191906000526020600020905b8154815260200190600101908083116123b4575b50505050509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146124ff576000600182612429919061316d565b9050600060018660000180549050612441919061316d565b90508181146124b057600086600001828154811061246257612461613397565b5b906000526020600020015490508087600001848154811061248657612485613397565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806124c4576124c3613368565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612505565b60009150505b92915050565b600081600001805490509050919050565b600061252f61252a84612fcf565b612faa565b90508083825260208201905082856020860282011115612552576125516133ff565b5b60005b85811015612582578161256888826126aa565b845260208401935060208301925050600181019050612555565b5050509392505050565b600061259f61259a84612ffb565b612faa565b9050828152602081018484840111156125bb576125ba613404565b5b6125c684828561325d565b509392505050565b6000813590506125dd81613636565b92915050565b600082601f8301126125f8576125f76133fa565b5b813561260884826020860161251c565b91505092915050565b60008083601f840112612627576126266133fa565b5b8235905067ffffffffffffffff811115612644576126436133f5565b5b6020830191508360018202830111156126605761265f6133ff565b5b9250929050565b6000813590506126768161364d565b92915050565b600082601f830112612691576126906133fa565b5b81516126a184826020860161258c565b91505092915050565b6000813590506126b981613664565b92915050565b6000815190506126ce81613664565b92915050565b6000602082840312156126ea576126e961340e565b5b60006126f8848285016125ce565b91505092915050565b600080604083850312156127185761271761340e565b5b6000612726858286016125ce565b9250506020612737858286016125ce565b9150509250929050565b60008060008060006080868803121561275d5761275c61340e565b5b600061276b888289016125ce565b955050602061277c888289016125ce565b945050604061278d888289016126aa565b935050606086013567ffffffffffffffff8111156127ae576127ad613409565b5b6127ba88828901612611565b92509250509295509295909350565b600080604083850312156127e0576127df61340e565b5b60006127ee858286016125ce565b92505060206127ff858286016126aa565b9150509250929050565b6000806000606084860312156128225761282161340e565b5b600061283086828701612667565b935050602084013567ffffffffffffffff81111561285157612850613409565b5b61285d868287016125e3565b925050604061286e868287016126aa565b9150509250925092565b60006020828403121561288e5761288d61340e565b5b600082015167ffffffffffffffff8111156128ac576128ab613409565b5b6128b88482850161267c565b91505092915050565b6000602082840312156128d7576128d661340e565b5b60006128e5848285016126aa565b91505092915050565b6000602082840312156129045761290361340e565b5b6000612912848285016126bf565b91505092915050565b600080604083850312156129325761293161340e565b5b6000612940858286016126aa565b925050602083013567ffffffffffffffff81111561296157612960613409565b5b61296d858286016125e3565b9150509250929050565b6000806040838503121561298e5761298d61340e565b5b600061299c858286016126aa565b92505060206129ad858286016126aa565b9150509250929050565b6000806000606084860312156129d0576129cf61340e565b5b60006129de868287016126aa565b93505060206129ef868287016126aa565b9250506040612a00868287016126aa565b9150509250925092565b6000612a168383612c99565b60208301905092915050565b612a2b816131a1565b82525050565b6000612a3c8261303c565b612a46818561305f565b9350612a518361302c565b8060005b83811015612a82578151612a698882612a0a565b9750612a7483613052565b925050600181019050612a55565b5085935050505092915050565b612a98816131b3565b82525050565b612aa7816131bf565b82525050565b612ab681613227565b82525050565b6000612ac782613047565b612ad1818561307b565b9350612ae181856020860161325d565b612aea81613413565b840191505092915050565b6000612b0260148361307b565b9150612b0d82613424565b602082019050919050565b6000612b2560268361307b565b9150612b308261344d565b604082019050919050565b6000612b4860108361307b565b9150612b538261349c565b602082019050919050565b6000612b6b603a8361307b565b9150612b76826134c5565b604082019050919050565b6000612b8e601d8361307b565b9150612b9982613514565b602082019050919050565b6000612bb160158361307b565b9150612bbc8261353d565b602082019050919050565b6000612bd460108361307b565b9150612bdf82613566565b602082019050919050565b6000612bf760188361307b565b9150612c028261358f565b602082019050919050565b6000612c1a60208361307b565b9150612c25826135b8565b602082019050919050565b6000612c3d601e8361307b565b9150612c48826135e1565b602082019050919050565b6000612c6060198361307b565b9150612c6b8261360a565b602082019050919050565b6000612c83600083613070565b9150612c8e82613633565b600082019050919050565b612ca28161321d565b82525050565b612cb18161321d565b82525050565b6000612cc282612c76565b9150819050919050565b6000602082019050612ce16000830184612a22565b92915050565b6000606082019050612cfc6000830186612a22565b612d096020830185612a22565b612d166040830184612ca8565b949350505050565b6000604082019050612d336000830185612a22565b612d406020830184612ca8565b9392505050565b60006020820190508181036000830152612d618184612a31565b905092915050565b6000602082019050612d7e6000830184612a8f565b92915050565b6000602082019050612d996000830184612a9e565b92915050565b6000608082019050612db46000830187612aad565b612dc16020830186612a22565b612dce6040830185612ca8565b612ddb6060830184612ca8565b95945050505050565b60006020820190508181036000830152612dfe8184612abc565b905092915050565b60006020820190508181036000830152612e1f81612af5565b9050919050565b60006020820190508181036000830152612e3f81612b18565b9050919050565b60006020820190508181036000830152612e5f81612b3b565b9050919050565b60006020820190508181036000830152612e7f81612b5e565b9050919050565b60006020820190508181036000830152612e9f81612b81565b9050919050565b60006020820190508181036000830152612ebf81612ba4565b9050919050565b60006020820190508181036000830152612edf81612bc7565b9050919050565b60006020820190508181036000830152612eff81612bea565b9050919050565b60006020820190508181036000830152612f1f81612c0d565b9050919050565b60006020820190508181036000830152612f3f81612c30565b9050919050565b60006020820190508181036000830152612f5f81612c53565b9050919050565b6000602082019050612f7b6000830184612ca8565b92915050565b6000604082019050612f966000830185612ca8565b612fa36020830184612ca8565b9392505050565b6000612fb4612fc5565b9050612fc08282613290565b919050565b6000604051905090565b600067ffffffffffffffff821115612fea57612fe96133c6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613016576130156133c6565b5b61301f82613413565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006130978261321d565b91506130a28361321d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156130d7576130d661330a565b5b828201905092915050565b60006130ed8261321d565b91506130f88361321d565b92508261310857613107613339565b5b828204905092915050565b600061311e8261321d565b91506131298361321d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131625761316161330a565b5b828202905092915050565b60006131788261321d565b91506131838361321d565b9250828210156131965761319561330a565b5b828203905092915050565b60006131ac826131fd565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006131f6826131a1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061323282613239565b9050919050565b60006132448261324b565b9050919050565b6000613256826131fd565b9050919050565b60005b8381101561327b578082015181840152602081019050613260565b8381111561328a576000848401525b50505050565b61329982613413565b810181811067ffffffffffffffff821117156132b8576132b76133c6565b5b80604052505050565b60006132cc8261321d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156132ff576132fe61330a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7468696e6720696e20706f6f6c2e00000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4e6f7420746865206f776e6572206f6620706f6f6c0000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e4654206973206e6f7420696e20796f757220706f6f6c2e0000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546865726520617265206e6f206665657320746f2077697468647261772e0000600082015250565b7f4e6f7420656e6f7567682045544820746f207061792066656500000000000000600082015250565b50565b61363f816131a1565b811461364a57600080fd5b50565b613656816131eb565b811461366157600080fd5b50565b61366d8161321d565b811461367857600080fd5b5056fea26469706673582212207eb0ef6de7c547ec312ed967301256b5c2b2a84efffc1e759f04b5704bb30af564736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101815760003560e01c806376a6b114116100d1578063b5383c861161008a578063d52b859211610064578063d52b859214610567578063e9dc637514610590578063f07b6df8146105cd578063f2fde38b1461060a57610181565b8063b5383c86146104d6578063bd45432114610513578063d41977cd1461053c57610181565b806376a6b114146103df5780638456cb59146103fb5780638da5cb5b14610412578063a7858adb1461043d578063ab894d8c14610459578063ac4afa381461049657610181565b80635c975abb1161013e578063656f0b7b11610118578063656f0b7b146103395780636a6d964e14610362578063715018a61461039f578063756c2eb3146103b657610181565b80635c975abb146102a85780635d03a63e146102d357806364fd28b41461031057610181565b8063150b7a02146101865780631fd2a82f146101c357806322822c621461020057806335c62bc21461023d5780633f4ba83a146102685780634aa67d311461027f575b600080fd5b34801561019257600080fd5b506101ad60048036038101906101a89190612741565b610633565b6040516101ba9190612d84565b60405180910390f35b3480156101cf57600080fd5b506101ea60048036038101906101e591906128c1565b610648565b6040516101f79190612d47565b60405180910390f35b34801561020c57600080fd5b50610227600480360381019061022291906126d4565b61066c565b6040516102349190612de4565b60405180910390f35b34801561024957600080fd5b506102526106f8565b60405161025f9190612f66565b60405180910390f35b34801561027457600080fd5b5061027d610705565b005b34801561028b57600080fd5b506102a660048036038101906102a191906128c1565b61078b565b005b3480156102b457600080fd5b506102bd610811565b6040516102ca9190612d69565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f591906128c1565b610827565b6040516103079190612f66565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190612977565b610856565b005b34801561034557600080fd5b50610360600480360381019061035b9190612809565b610937565b005b34801561036e57600080fd5b50610389600480360381019061038491906128c1565b610c48565b6040516103969190612f66565b60405180910390f35b3480156103ab57600080fd5b506103b4610c77565b005b3480156103c257600080fd5b506103dd60048036038101906103d8919061291b565b610cff565b005b6103f960048036038101906103f4919061291b565b611013565b005b34801561040757600080fd5b506104106112a9565b005b34801561041e57600080fd5b5061042761132f565b6040516104349190612ccc565b60405180910390f35b610457600480360381019061045291906129b7565b611358565b005b34801561046557600080fd5b50610480600480360381019061047b9190612701565b611701565b60405161048d9190612d47565b60405180910390f35b3480156104a257600080fd5b506104bd60048036038101906104b891906128c1565b6117ad565b6040516104cd9493929190612d9f565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f891906128c1565b61182d565b60405161050a9190612f66565b60405180910390f35b34801561051f57600080fd5b5061053a600480360381019061053591906126d4565b611851565b005b34801561054857600080fd5b50610551611911565b60405161055e9190612f66565b60405180910390f35b34801561057357600080fd5b5061058e600480360381019061058991906128c1565b611917565b005b34801561059c57600080fd5b506105b760048036038101906105b291906127c9565b611add565b6040516105c49190612de4565b60405180910390f35b3480156105d957600080fd5b506105f460048036038101906105ef91906126d4565b611b75565b6040516106019190612d47565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c91906126d4565b611ca3565b005b600063150b7a0260e01b905095945050505050565b606061066560026000848152602001908152602001600020611db5565b9050919050565b60608173ffffffffffffffffffffffffffffffffffffffff166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156106b457600080fd5b505afa1580156106c8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906106f19190612878565b9050919050565b6000600180549050905090565b61070d611dd6565b73ffffffffffffffffffffffffffffffffffffffff1661072b61132f565b73ffffffffffffffffffffffffffffffffffffffff1614610781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077890612f06565b60405180910390fd5b610789611dde565b565b610793611dd6565b73ffffffffffffffffffffffffffffffffffffffff166107b161132f565b73ffffffffffffffffffffffffffffffffffffffff1614610807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fe90612f06565b60405180910390fd5b8060038190555050565b60008060149054906101000a900460ff16905090565b60006001828154811061083d5761083c613397565b5b9060005260206000209060040201600201549050919050565b3373ffffffffffffffffffffffffffffffffffffffff166001838154811061088157610880613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090090612ea6565b60405180910390fd5b806001838154811061091e5761091d613397565b5b9060005260206000209060040201600201819055505050565b61093f610811565b1561097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097690612ec6565b60405180910390fd5b600060405180608001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018381526020016000815250905060006001805490509050600182908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015550503373ffffffffffffffffffffffffffffffffffffffff16817f7524dce055c8ea88a4f9e9f8a72187c08f9d0d94834cd442b57c9bfc19b1022b60405160405180910390a360005b8451811015610c4057610b3a858281518110610b1157610b10613397565b5b602002602001015160026000858152602001908152602001600020611d9b90919063ffffffff16565b508573ffffffffffffffffffffffffffffffffffffffff166342842e0e3330888581518110610b6c57610b6b613397565b5b60200260200101516040518463ffffffff1660e01b8152600401610b9293929190612ce7565b600060405180830381600087803b158015610bac57600080fd5b505af1158015610bc0573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff16827f4d1447c72d725c05e614d0892302c423c8f2e085e6a4018f4ded32c0aebe9161878481518110610c1057610c0f613397565b5b6020026020010151604051610c259190612f66565b60405180910390a38080610c38906132c1565b915050610af2565b505050505050565b600060018281548110610c5e57610c5d613397565b5b9060005260206000209060040201600301549050919050565b610c7f611dd6565b73ffffffffffffffffffffffffffffffffffffffff16610c9d61132f565b73ffffffffffffffffffffffffffffffffffffffff1614610cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cea90612f06565b60405180910390fd5b610cfd6000611e7f565b565b610d07610811565b15610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e90612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1660018381548110610d7257610d71613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190612ea6565b60405180910390fd5b60005b815181101561100e57610e45828281518110610e1c57610e1b613397565b5b602002602001015160026000868152602001908152602001600020611f4390919063ffffffff16565b610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b90612ee6565b60405180910390fd5b60018381548110610e9857610e97613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033858581518110610efa57610ef9613397565b5b60200260200101516040518463ffffffff1660e01b8152600401610f2093929190612ce7565b600060405180830381600087803b158015610f3a57600080fd5b505af1158015610f4e573d6000803e3d6000fd5b50505050610f91828281518110610f6857610f67613397565b5b602002602001015160026000868152602001908152602001600020611f5d90919063ffffffff16565b503373ffffffffffffffffffffffffffffffffffffffff16837f3d5f3c57bb30626d35c4589c00c52455836241a6c332b242ba6f929837f7eb62848481518110610fde57610fdd613397565b5b6020026020010151604051610ff39190612f66565b60405180910390a38080611006906132c1565b915050610dfd565b505050565b61101b610811565b1561105b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105290612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166001838154811061108657611085613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461110e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110590612ea6565b60405180910390fd5b60005b81518110156112a4576001838154811061112e5761112d613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e33308585815181106111905761118f613397565b5b60200260200101516040518463ffffffff1660e01b81526004016111b693929190612ce7565b600060405180830381600087803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b505050506112278282815181106111fe576111fd613397565b5b602002602001015160026000868152602001908152602001600020611d9b90919063ffffffff16565b503373ffffffffffffffffffffffffffffffffffffffff16837f4d1447c72d725c05e614d0892302c423c8f2e085e6a4018f4ded32c0aebe916184848151811061127457611273613397565b5b60200260200101516040516112899190612f66565b60405180910390a3808061129c906132c1565b915050611111565b505050565b6112b1611dd6565b73ffffffffffffffffffffffffffffffffffffffff166112cf61132f565b73ffffffffffffffffffffffffffffffffffffffff1614611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131c90612f06565b60405180910390fd5b61132d611f77565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611360610811565b156113a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139790612ec6565b60405180910390fd5b60006113bd6002600086815260200190815260200160002061201a565b116113fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f490612e46565b60405180910390fd5b6001838154811061141157611410613397565b5b906000526020600020906004020160020154341015611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90612f46565b60405180910390fd5b6001838154811061147957611478613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330856040518463ffffffff1660e01b81526004016114e793929190612ce7565b600060405180830381600087803b15801561150157600080fd5b505af1158015611515573d6000803e3d6000fd5b505050506001838154811061152d5761152c613397565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161159b93929190612ce7565b600060405180830381600087803b1580156115b557600080fd5b505af11580156115c9573d6000803e3d6000fd5b5050505060006064600354346115df9190613113565b6115e991906130e2565b905080346115f7919061316d565b6001858154811061160b5761160a613397565b5b9060005260206000209060040201600301600082825461162b919061308c565b925050819055506116578260026000878152602001908152602001600020611f5d90919063ffffffff16565b5061167d8360026000878152602001908152602001600020611d9b90919063ffffffff16565b506116aa600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261202f565b3373ffffffffffffffffffffffffffffffffffffffff16847fb6bb24d48b7a7f099035f05122f42b3c661a517945b8ffeff8032243d76aa77185856040516116f3929190612f81565b60405180910390a350505050565b6060600061170f8484612123565b67ffffffffffffffff811115611728576117276133c6565b5b6040519080825280602002602001820160405280156117565781602001602082028036833780820191505090505b50905060005b81518110156117a2576117708582866121b6565b82828151811061178357611782613397565b5b602002602001018181525050808061179a906132c1565b91505061175c565b508091505092915050565b600181815481106117bd57600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905084565b600061184a6002600084815260200190815260200160002061201a565b9050919050565b611859611dd6565b73ffffffffffffffffffffffffffffffffffffffff1661187761132f565b73ffffffffffffffffffffffffffffffffffffffff16146118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490612f06565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60035481565b61191f610811565b1561195f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195690612ec6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166001828154811061198a57611989613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0990612ea6565b60405180910390fd5b600060018281548110611a2857611a27613397565b5b90600052602060002090600402016003015411611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7190612f26565b60405180910390fd5b600060018281548110611a9057611a8f613397565b5b9060005260206000209060040201600301549050600060018381548110611aba57611ab9613397565b5b906000526020600020906004020160030181905550611ad9338261202f565b5050565b60608273ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611b189190612f66565b60006040518083038186803b158015611b3057600080fd5b505afa158015611b44573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611b6d9190612878565b905092915050565b6060600080611b838461224c565b67ffffffffffffffff811115611b9c57611b9b6133c6565b5b604051908082528060200260200182016040528015611bca5781602001602082028036833780820191505090505b50905060005b600180549050811015611c98578473ffffffffffffffffffffffffffffffffffffffff1660018281548110611c0857611c07613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611c855780828481518110611c6a57611c69613397565b5b6020026020010181815250508280611c81906132c1565b9350505b8080611c90906132c1565b915050611bd0565b508092505050919050565b611cab611dd6565b73ffffffffffffffffffffffffffffffffffffffff16611cc961132f565b73ffffffffffffffffffffffffffffffffffffffff1614611d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1690612f06565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690612e26565b60405180910390fd5b611d9881611e7f565b50565b6000611dad836000018360001b612308565b905092915050565b60606000611dc583600001612378565b905060608190508092505050919050565b600033905090565b611de6610811565b611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90612e06565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611e68611dd6565b604051611e759190612ccc565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f55836000018360001b6123d4565b905092915050565b6000611f6f836000018360001b6123f7565b905092915050565b611f7f610811565b15611fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb690612ec6565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612003611dd6565b6040516120109190612ccc565b60405180910390a1565b60006120288260000161250b565b9050919050565b80471015612072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206990612e86565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161209890612cb7565b60006040518083038185875af1925050503d80600081146120d5576040519150601f19603f3d011682016040523d82523d6000602084013e6120da565b606091505b505090508061211e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211590612e66565b60405180910390fd5b505050565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040161215e9190612ccc565b60206040518083038186803b15801561217657600080fd5b505afa15801561218a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ae91906128ee565b905092915050565b60008173ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b81526004016121f3929190612d1e565b60206040518083038186803b15801561220b57600080fd5b505afa15801561221f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224391906128ee565b90509392505050565b6000806000905060005b6001805490508110156122fe578373ffffffffffffffffffffffffffffffffffffffff166001828154811061228e5761228d613397565b5b906000526020600020906004020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156122eb5781806122e7906132c1565b9250505b80806122f6906132c1565b915050612256565b5080915050919050565b600061231483836123d4565b61236d578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612372565b600090505b92915050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156123c857602002820191906000526020600020905b8154815260200190600101908083116123b4575b50505050509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146124ff576000600182612429919061316d565b9050600060018660000180549050612441919061316d565b90508181146124b057600086600001828154811061246257612461613397565b5b906000526020600020015490508087600001848154811061248657612485613397565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b856000018054806124c4576124c3613368565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612505565b60009150505b92915050565b600081600001805490509050919050565b600061252f61252a84612fcf565b612faa565b90508083825260208201905082856020860282011115612552576125516133ff565b5b60005b85811015612582578161256888826126aa565b845260208401935060208301925050600181019050612555565b5050509392505050565b600061259f61259a84612ffb565b612faa565b9050828152602081018484840111156125bb576125ba613404565b5b6125c684828561325d565b509392505050565b6000813590506125dd81613636565b92915050565b600082601f8301126125f8576125f76133fa565b5b813561260884826020860161251c565b91505092915050565b60008083601f840112612627576126266133fa565b5b8235905067ffffffffffffffff811115612644576126436133f5565b5b6020830191508360018202830111156126605761265f6133ff565b5b9250929050565b6000813590506126768161364d565b92915050565b600082601f830112612691576126906133fa565b5b81516126a184826020860161258c565b91505092915050565b6000813590506126b981613664565b92915050565b6000815190506126ce81613664565b92915050565b6000602082840312156126ea576126e961340e565b5b60006126f8848285016125ce565b91505092915050565b600080604083850312156127185761271761340e565b5b6000612726858286016125ce565b9250506020612737858286016125ce565b9150509250929050565b60008060008060006080868803121561275d5761275c61340e565b5b600061276b888289016125ce565b955050602061277c888289016125ce565b945050604061278d888289016126aa565b935050606086013567ffffffffffffffff8111156127ae576127ad613409565b5b6127ba88828901612611565b92509250509295509295909350565b600080604083850312156127e0576127df61340e565b5b60006127ee858286016125ce565b92505060206127ff858286016126aa565b9150509250929050565b6000806000606084860312156128225761282161340e565b5b600061283086828701612667565b935050602084013567ffffffffffffffff81111561285157612850613409565b5b61285d868287016125e3565b925050604061286e868287016126aa565b9150509250925092565b60006020828403121561288e5761288d61340e565b5b600082015167ffffffffffffffff8111156128ac576128ab613409565b5b6128b88482850161267c565b91505092915050565b6000602082840312156128d7576128d661340e565b5b60006128e5848285016126aa565b91505092915050565b6000602082840312156129045761290361340e565b5b6000612912848285016126bf565b91505092915050565b600080604083850312156129325761293161340e565b5b6000612940858286016126aa565b925050602083013567ffffffffffffffff81111561296157612960613409565b5b61296d858286016125e3565b9150509250929050565b6000806040838503121561298e5761298d61340e565b5b600061299c858286016126aa565b92505060206129ad858286016126aa565b9150509250929050565b6000806000606084860312156129d0576129cf61340e565b5b60006129de868287016126aa565b93505060206129ef868287016126aa565b9250506040612a00868287016126aa565b9150509250925092565b6000612a168383612c99565b60208301905092915050565b612a2b816131a1565b82525050565b6000612a3c8261303c565b612a46818561305f565b9350612a518361302c565b8060005b83811015612a82578151612a698882612a0a565b9750612a7483613052565b925050600181019050612a55565b5085935050505092915050565b612a98816131b3565b82525050565b612aa7816131bf565b82525050565b612ab681613227565b82525050565b6000612ac782613047565b612ad1818561307b565b9350612ae181856020860161325d565b612aea81613413565b840191505092915050565b6000612b0260148361307b565b9150612b0d82613424565b602082019050919050565b6000612b2560268361307b565b9150612b308261344d565b604082019050919050565b6000612b4860108361307b565b9150612b538261349c565b602082019050919050565b6000612b6b603a8361307b565b9150612b76826134c5565b604082019050919050565b6000612b8e601d8361307b565b9150612b9982613514565b602082019050919050565b6000612bb160158361307b565b9150612bbc8261353d565b602082019050919050565b6000612bd460108361307b565b9150612bdf82613566565b602082019050919050565b6000612bf760188361307b565b9150612c028261358f565b602082019050919050565b6000612c1a60208361307b565b9150612c25826135b8565b602082019050919050565b6000612c3d601e8361307b565b9150612c48826135e1565b602082019050919050565b6000612c6060198361307b565b9150612c6b8261360a565b602082019050919050565b6000612c83600083613070565b9150612c8e82613633565b600082019050919050565b612ca28161321d565b82525050565b612cb18161321d565b82525050565b6000612cc282612c76565b9150819050919050565b6000602082019050612ce16000830184612a22565b92915050565b6000606082019050612cfc6000830186612a22565b612d096020830185612a22565b612d166040830184612ca8565b949350505050565b6000604082019050612d336000830185612a22565b612d406020830184612ca8565b9392505050565b60006020820190508181036000830152612d618184612a31565b905092915050565b6000602082019050612d7e6000830184612a8f565b92915050565b6000602082019050612d996000830184612a9e565b92915050565b6000608082019050612db46000830187612aad565b612dc16020830186612a22565b612dce6040830185612ca8565b612ddb6060830184612ca8565b95945050505050565b60006020820190508181036000830152612dfe8184612abc565b905092915050565b60006020820190508181036000830152612e1f81612af5565b9050919050565b60006020820190508181036000830152612e3f81612b18565b9050919050565b60006020820190508181036000830152612e5f81612b3b565b9050919050565b60006020820190508181036000830152612e7f81612b5e565b9050919050565b60006020820190508181036000830152612e9f81612b81565b9050919050565b60006020820190508181036000830152612ebf81612ba4565b9050919050565b60006020820190508181036000830152612edf81612bc7565b9050919050565b60006020820190508181036000830152612eff81612bea565b9050919050565b60006020820190508181036000830152612f1f81612c0d565b9050919050565b60006020820190508181036000830152612f3f81612c30565b9050919050565b60006020820190508181036000830152612f5f81612c53565b9050919050565b6000602082019050612f7b6000830184612ca8565b92915050565b6000604082019050612f966000830185612ca8565b612fa36020830184612ca8565b9392505050565b6000612fb4612fc5565b9050612fc08282613290565b919050565b6000604051905090565b600067ffffffffffffffff821115612fea57612fe96133c6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613016576130156133c6565b5b61301f82613413565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006130978261321d565b91506130a28361321d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156130d7576130d661330a565b5b828201905092915050565b60006130ed8261321d565b91506130f88361321d565b92508261310857613107613339565b5b828204905092915050565b600061311e8261321d565b91506131298361321d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131625761316161330a565b5b828202905092915050565b60006131788261321d565b91506131838361321d565b9250828210156131965761319561330a565b5b828203905092915050565b60006131ac826131fd565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006131f6826131a1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061323282613239565b9050919050565b60006132448261324b565b9050919050565b6000613256826131fd565b9050919050565b60005b8381101561327b578082015181840152602081019050613260565b8381111561328a576000848401525b50505050565b61329982613413565b810181811067ffffffffffffffff821117156132b8576132b76133c6565b5b80604052505050565b60006132cc8261321d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156132ff576132fe61330a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7468696e6720696e20706f6f6c2e00000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4e6f7420746865206f776e6572206f6620706f6f6c0000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4e4654206973206e6f7420696e20796f757220706f6f6c2e0000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546865726520617265206e6f206665657320746f2077697468647261772e0000600082015250565b7f4e6f7420656e6f7567682045544820746f207061792066656500000000000000600082015250565b50565b61363f816131a1565b811461364a57600080fd5b50565b613656816131eb565b811461366157600080fd5b50565b61366d8161321d565b811461367857600080fd5b5056fea26469706673582212207eb0ef6de7c547ec312ed967301256b5c2b2a84efffc1e759f04b5704bb30af564736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.