Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20453262 | 141 days ago | 0.00289 ETH | ||||
20453262 | 141 days ago | 0.00373925 ETH | ||||
18295230 | 443 days ago | 0.002478 ETH | ||||
18295230 | 443 days ago | 0.00331695 ETH | ||||
18289656 | 444 days ago | 0.00138 ETH | ||||
18289656 | 444 days ago | 0.0021915 ETH | ||||
18108836 | 469 days ago | 0.0011 ETH | ||||
18108836 | 469 days ago | 0.0019045 ETH | ||||
17552200 | 547 days ago | 0.0015 ETH | ||||
17552200 | 547 days ago | 0.00153843 ETH | ||||
17515772 | 552 days ago | 0.0029 ETH | ||||
17515772 | 552 days ago | 0.0037495 ETH | ||||
17502414 | 554 days ago | 0.0029 ETH | ||||
17502414 | 554 days ago | 0.0037495 ETH | ||||
17467717 | 559 days ago | 0.0012 ETH | ||||
17467717 | 559 days ago | 0.002007 ETH | ||||
17452065 | 561 days ago | 0.0012 ETH | ||||
17452065 | 561 days ago | 0.002007 ETH | ||||
17446568 | 562 days ago | 0.0029 ETH | ||||
17446568 | 562 days ago | 0.0037495 ETH | ||||
17446563 | 562 days ago | 0.0029 ETH | ||||
17446563 | 562 days ago | 0.0037495 ETH | ||||
17446563 | 562 days ago | 0.0029 ETH | ||||
17446563 | 562 days ago | 0.0037495 ETH | ||||
17446563 | 562 days ago | 0.0029 ETH |
Loading...
Loading
Contract Name:
SeaportV14Module
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {BaseExchangeModule} from "./BaseExchangeModule.sol"; import {BaseModule} from "../BaseModule.sol"; import {ISeaport} from "../../../interfaces/ISeaport.sol"; // Notes on the Seaport module: // - supports filling listings (both ERC721/ERC1155) // - supports filling offers (both ERC721/ERC1155) contract SeaportV14Module is BaseExchangeModule { // --- Structs --- struct SeaportETHListingWithPrice { ISeaport.AdvancedOrder order; uint256 price; } // --- Fields --- ISeaport public immutable EXCHANGE; // --- Constructor --- constructor( address owner, address router, address exchange ) BaseModule(owner) BaseExchangeModule(router) { EXCHANGE = ISeaport(exchange); } // --- Fallback --- receive() external payable {} // --- Single ETH listing --- function acceptETHListing( ISeaport.AdvancedOrder calldata order, ETHListingParams calldata params, Fee[] calldata fees ) external payable nonReentrant refundETHLeftover(params.refundTo) chargeETHFees(fees, params.amount) { // Execute the fill params.revertIfIncomplete ? _fillSingleOrderWithRevertIfIncomplete( order, new ISeaport.CriteriaResolver[](0), params.fillTo, params.amount ) : _fillSingleOrder(order, new ISeaport.CriteriaResolver[](0), params.fillTo, params.amount); } // --- Single ERC20 listing --- function acceptERC20Listing( ISeaport.AdvancedOrder calldata order, ERC20ListingParams calldata params, Fee[] calldata fees ) external nonReentrant refundERC20Leftover(params.refundTo, params.token) chargeERC20Fees(fees, params.token, params.amount) { // Approve the exchange if needed _approveERC20IfNeeded(params.token, address(EXCHANGE), params.amount); // Execute the fill params.revertIfIncomplete ? _fillSingleOrderWithRevertIfIncomplete( order, new ISeaport.CriteriaResolver[](0), params.fillTo, 0 ) : _fillSingleOrder(order, new ISeaport.CriteriaResolver[](0), params.fillTo, 0); } // --- Multiple ETH listings --- function acceptETHListings( SeaportETHListingWithPrice[] calldata orders, ETHListingParams calldata params, Fee[] calldata fees ) external payable nonReentrant refundETHLeftover(params.refundTo) chargeETHFees(fees, params.amount) { uint256 length = orders.length; ISeaport.CriteriaResolver[] memory criteriaResolvers = new ISeaport.CriteriaResolver[](0); // Execute the fills if (params.revertIfIncomplete) { for (uint256 i; i < length; ) { _fillSingleOrderWithRevertIfIncomplete( orders[i].order, criteriaResolvers, params.fillTo, orders[i].price ); unchecked { ++i; } } } else { for (uint256 i; i < length; ) { _fillSingleOrder(orders[i].order, criteriaResolvers, params.fillTo, orders[i].price); unchecked { ++i; } } } } // --- Multiple ERC20 listings --- function acceptERC20Listings( ISeaport.AdvancedOrder[] calldata orders, ERC20ListingParams calldata params, Fee[] calldata fees ) external nonReentrant refundERC20Leftover(params.refundTo, params.token) chargeERC20Fees(fees, params.token, params.amount) { // Approve the exchange if needed _approveERC20IfNeeded(params.token, address(EXCHANGE), params.amount); uint256 length = orders.length; ISeaport.CriteriaResolver[] memory criteriaResolvers = new ISeaport.CriteriaResolver[](0); // Execute the fills if (params.revertIfIncomplete) { for (uint256 i; i < length; ) { _fillSingleOrderWithRevertIfIncomplete(orders[i], criteriaResolvers, params.fillTo, 0); unchecked { ++i; } } } else { for (uint256 i; i < length; ) { _fillSingleOrder(orders[i], criteriaResolvers, params.fillTo, 0); unchecked { ++i; } } } } // --- Single ERC721 offer --- function acceptERC721Offer( ISeaport.AdvancedOrder calldata order, // Use `memory` instead of `calldata` to avoid `Stack too deep` errors ISeaport.CriteriaResolver[] memory criteriaResolvers, OfferParams calldata params, Fee[] calldata fees ) external nonReentrant { // Extract the ERC721 token from the consideration items ISeaport.ConsiderationItem calldata nftItem = order.parameters.consideration[0]; if ( nftItem.itemType != ISeaport.ItemType.ERC721 && nftItem.itemType != ISeaport.ItemType.ERC721_WITH_CRITERIA ) { revert WrongParams(); } IERC721 nftToken = IERC721(nftItem.token); // Extract the payment token from the offer items ISeaport.OfferItem calldata paymentItem = order.parameters.offer[0]; IERC20 paymentToken = IERC20(paymentItem.token); // Approve the exchange if needed _approveERC721IfNeeded(nftToken, address(EXCHANGE)); _approveERC20IfNeeded(paymentToken, address(EXCHANGE), type(uint256).max); // Execute the fill params.revertIfIncomplete ? _fillSingleOrderWithRevertIfIncomplete(order, criteriaResolvers, address(this), 0) : _fillSingleOrder(order, criteriaResolvers, address(this), 0); uint256 identifier = nftItem.itemType == ISeaport.ItemType.ERC721 ? nftItem.identifierOrCriteria : criteriaResolvers[0].identifier; // Pay fees if (nftToken.ownerOf(identifier) != address(this)) { // Only pay fees if the fill was successful uint256 feesLength = fees.length; for (uint256 i; i < feesLength; ) { Fee memory fee = fees[i]; _sendERC20(fee.recipient, fee.amount, paymentToken); unchecked { ++i; } } } // Refund any ERC721 leftover _sendAllERC721(params.refundTo, nftToken, identifier); // Forward any left payment to the specified receiver _sendAllERC20(params.fillTo, paymentToken); } // --- Single ERC1155 offer --- function acceptERC1155Offer( ISeaport.AdvancedOrder calldata order, // Use `memory` instead of `calldata` to avoid `Stack too deep` errors ISeaport.CriteriaResolver[] memory criteriaResolvers, OfferParams calldata params, Fee[] calldata fees ) external nonReentrant { // Extract the ERC1155 token from the consideration items ISeaport.ConsiderationItem calldata nftItem = order.parameters.consideration[0]; if ( nftItem.itemType != ISeaport.ItemType.ERC1155 && nftItem.itemType != ISeaport.ItemType.ERC1155_WITH_CRITERIA ) { revert WrongParams(); } IERC1155 nftToken = IERC1155(nftItem.token); // Extract the payment token from the offer items ISeaport.OfferItem calldata paymentItem = order.parameters.offer[0]; IERC20 paymentToken = IERC20(paymentItem.token); // Approve the exchange if needed _approveERC1155IfNeeded(nftToken, address(EXCHANGE)); _approveERC20IfNeeded(paymentToken, address(EXCHANGE), type(uint256).max); uint256 identifier = nftItem.itemType == ISeaport.ItemType.ERC1155 ? nftItem.identifierOrCriteria : criteriaResolvers[0].identifier; uint256 balanceBefore = nftToken.balanceOf(address(this), identifier); // Execute the fill params.revertIfIncomplete ? _fillSingleOrderWithRevertIfIncomplete(order, criteriaResolvers, address(this), 0) : _fillSingleOrder(order, criteriaResolvers, address(this), 0); uint256 balanceAfter = nftToken.balanceOf(address(this), identifier); // Pay fees uint256 amountFilled = balanceBefore - balanceAfter; if (amountFilled > 0) { uint256 feesLength = fees.length; for (uint256 i; i < feesLength; ) { Fee memory fee = fees[i]; _sendERC20( fee.recipient, // Only pay fees for the amount that was actually filled (fee.amount * amountFilled) / order.numerator, paymentToken ); unchecked { ++i; } } } // Refund any ERC1155 leftover _sendAllERC1155(params.refundTo, nftToken, identifier); // Forward any left payment to the specified receiver _sendAllERC20(params.fillTo, paymentToken); } // --- Generic handler (used for Seaport-based approvals) --- function matchOrders( ISeaport.Order[] calldata orders, ISeaport.Fulfillment[] calldata fulfillments ) external nonReentrant { // We don't perform any kind of input or return value validation, // so this function should be used with precaution - the official // way to use it is only for Seaport-based approvals EXCHANGE.matchOrders(orders, fulfillments); } // --- ERC721 / ERC1155 hooks --- // Single token offer acceptance can be done approval-less by using the // standard `safeTransferFrom` method together with specifying data for // further contract calls. An example: // `safeTransferFrom( // 0xWALLET, // 0xMODULE, // TOKEN_ID, // 0xABI_ENCODED_ROUTER_EXECUTION_CALLDATA_FOR_OFFER_ACCEPTANCE // )` function onERC721Received( address, // operator, address, // from uint256, // tokenId, bytes calldata data ) external returns (bytes4) { if (data.length > 0) { _makeCall(router, data, 0); } return this.onERC721Received.selector; } function onERC1155Received( address, // operator address, // from uint256, // tokenId uint256, // amount bytes calldata data ) external returns (bytes4) { if (data.length > 0) { _makeCall(router, data, 0); } return this.onERC1155Received.selector; } // --- Internal --- // NOTE: In lots of cases, Seaport will not revert if fills were not // fully executed. An example of that is partial filling, which will // successfully fill any amount that is still available (including a // zero amount). One way to ensure that we revert in case of partial // executions is to check the order's filled amount before and after // we trigger the fill (we can use Seaport's `getOrderStatus` method // to check). Since this can be expensive in terms of gas, we have a // separate method variant to be called when reverts are enabled. function _fillSingleOrder( ISeaport.AdvancedOrder calldata order, // Use `memory` instead of `calldata` to avoid `Stack too deep` errors ISeaport.CriteriaResolver[] memory criteriaResolvers, address receiver, uint256 value ) internal { // Execute the fill try EXCHANGE.fulfillAdvancedOrder{value: value}(order, criteriaResolvers, bytes32(0), receiver) {} catch {} } function _fillSingleOrderWithRevertIfIncomplete( ISeaport.AdvancedOrder calldata order, // Use `memory` instead of `calldata` to avoid `Stack too deep` errors ISeaport.CriteriaResolver[] memory criteriaResolvers, address receiver, uint256 value ) internal { // Cache the order's hash bytes32 orderHash = _getOrderHash(order.parameters); // Before filling, get the order's filled amount uint256 beforeFilledAmount = _getFilledAmount(orderHash); // Execute the fill bool success; try EXCHANGE.fulfillAdvancedOrder{value: value}(order, criteriaResolvers, bytes32(0), receiver) returns (bool fulfilled) { success = fulfilled; } catch { revert UnsuccessfulFill(); } if (!success) { revert UnsuccessfulFill(); } else { // After successfully filling, get the order's filled amount uint256 afterFilledAmount = _getFilledAmount(orderHash); // Make sure the amount filled as part of this call is correct if (afterFilledAmount - beforeFilledAmount != order.numerator) { revert UnsuccessfulFill(); } } } function _getOrderHash( // Must use `memory` instead of `calldata` for the below cast ISeaport.OrderParameters memory orderParameters ) internal view returns (bytes32 orderHash) { // `OrderParameters` and `OrderComponents` share the exact same // fields, apart from the last one, so here we simply treat the // `orderParameters` argument as `OrderComponents` and then set // the last field to the correct data ISeaport.OrderComponents memory orderComponents; assembly { orderComponents := orderParameters } orderComponents.counter = EXCHANGE.getCounter(orderParameters.offerer); orderHash = EXCHANGE.getOrderHash(orderComponents); } function _getFilledAmount(bytes32 orderHash) internal view returns (uint256 totalFilled) { (, , totalFilled, ) = EXCHANGE.getOrderStatus(orderHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the 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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-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/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface ISeaport { enum OrderType { FULL_OPEN, PARTIAL_OPEN, FULL_RESTRICTED, PARTIAL_RESTRICTED } enum ItemType { NATIVE, ERC20, ERC721, ERC1155, ERC721_WITH_CRITERIA, ERC1155_WITH_CRITERIA } enum Side { OFFER, CONSIDERATION } struct OfferItem { ItemType itemType; address token; uint256 identifierOrCriteria; uint256 startAmount; uint256 endAmount; } struct ConsiderationItem { ItemType itemType; address token; uint256 identifierOrCriteria; uint256 startAmount; uint256 endAmount; address recipient; } struct SpentItem { ItemType itemType; address token; uint256 identifier; uint256 amount; } struct ReceivedItem { ItemType itemType; address token; uint256 identifier; uint256 amount; address recipient; } struct OrderComponents { address offerer; address zone; OfferItem[] offer; ConsiderationItem[] consideration; OrderType orderType; uint256 startTime; uint256 endTime; bytes32 zoneHash; uint256 salt; bytes32 conduitKey; uint256 counter; } struct OrderParameters { address offerer; address zone; OfferItem[] offer; ConsiderationItem[] consideration; OrderType orderType; uint256 startTime; uint256 endTime; bytes32 zoneHash; uint256 salt; bytes32 conduitKey; uint256 totalOriginalConsiderationItems; } struct Order { OrderParameters parameters; bytes signature; } struct AdvancedOrder { OrderParameters parameters; uint120 numerator; uint120 denominator; bytes signature; bytes extraData; } struct CriteriaResolver { uint256 orderIndex; Side side; uint256 index; uint256 identifier; bytes32[] criteriaProof; } struct FulfillmentComponent { uint256 orderIndex; uint256 itemIndex; } struct Fulfillment { FulfillmentComponent[] offerComponents; FulfillmentComponent[] considerationComponents; } struct Execution { ReceivedItem item; address offerer; bytes32 conduitKey; } struct ZoneParameters { bytes32 orderHash; address fulfiller; address offerer; SpentItem[] offer; ReceivedItem[] consideration; bytes extraData; bytes32[] orderHashes; uint256 startTime; uint256 endTime; bytes32 zoneHash; } struct Schema { uint256 id; bytes metadata; } function getOrderHash(OrderComponents calldata order) external view returns (bytes32 orderHash); function getOrderStatus(bytes32 orderHash) external view returns ( bool isValidated, bool isCancelled, uint256 totalFilled, uint256 totalSize ); function getCounter(address offerer) external view returns (uint256 counter); function fulfillAdvancedOrder( AdvancedOrder calldata advancedOrder, CriteriaResolver[] calldata criteriaResolvers, bytes32 fulfillerConduitKey, address recipient ) external payable returns (bool fulfilled); function fulfillAvailableAdvancedOrders( AdvancedOrder[] memory advancedOrders, CriteriaResolver[] calldata criteriaResolvers, FulfillmentComponent[][] calldata offerFulfillments, FulfillmentComponent[][] calldata considerationFulfillments, bytes32 fulfillerConduitKey, address recipient, uint256 maximumFulfilled ) external payable returns (bool[] memory availableOrders, Execution[] memory executions); function matchOrders(Order[] calldata orders, Fulfillment[] calldata fulfillments) external payable returns (Execution[] memory executions); function matchAdvancedOrders( AdvancedOrder[] calldata advancedOrders, CriteriaResolver[] calldata criteriaResolvers, Fulfillment[] calldata fulfillments ) external payable returns (Execution[] memory executions); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // Adapted from: // https://github.com/boringcrypto/BoringSolidity/blob/e74c5b22a61bfbadd645e51a64aa1d33734d577a/contracts/BoringOwnable.sol contract TwoStepOwnable { // --- Fields --- address public owner; address public pendingOwner; // --- Events --- event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); // --- Errors --- error InvalidParams(); error Unauthorized(); // --- Modifiers --- modifier onlyOwner() { if (msg.sender != owner) { revert Unauthorized(); } _; } // --- Constructor --- constructor(address initialOwner) { owner = initialOwner; emit OwnershipTransferred(address(0), initialOwner); } // --- Methods --- function transferOwnership(address newOwner) public onlyOwner { pendingOwner = newOwner; } function claimOwnership() public { address _pendingOwner = pendingOwner; if (msg.sender != _pendingOwner) { revert Unauthorized(); } owner = _pendingOwner; pendingOwner = address(0); emit OwnershipTransferred(owner, _pendingOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {TwoStepOwnable} from "../../misc/TwoStepOwnable.sol"; // Notes: // - includes common helpers useful for all modules abstract contract BaseModule is TwoStepOwnable, ReentrancyGuard { using SafeERC20 for IERC20; // --- Events --- event CallExecuted(address target, bytes data, uint256 value); // --- Errors --- error UnsuccessfulCall(); error UnsuccessfulPayment(); error WrongParams(); // --- Constructor --- constructor(address owner) TwoStepOwnable(owner) {} // --- Owner --- // To be able to recover anything that gets stucked by mistake in the module, // we allow the owner to perform any arbitrary call. Since the goal is to be // stateless, this should only happen in case of mistakes. In addition, this // method is also useful for withdrawing any earned trading rewards. function makeCalls( address[] calldata targets, bytes[] calldata data, uint256[] calldata values ) external payable onlyOwner nonReentrant { uint256 length = targets.length; for (uint256 i = 0; i < length; ) { _makeCall(targets[i], data[i], values[i]); emit CallExecuted(targets[i], data[i], values[i]); unchecked { ++i; } } } // --- Helpers --- function _sendETH(address to, uint256 amount) internal { if (amount > 0) { (bool success, ) = payable(to).call{value: amount}(""); if (!success) { revert UnsuccessfulPayment(); } } } function _sendERC20( address to, uint256 amount, IERC20 token ) internal { if (amount > 0) { token.safeTransfer(to, amount); } } function _makeCall( address target, bytes memory data, uint256 value ) internal { (bool success, ) = payable(target).call{value: value}(data); if (!success) { revert UnsuccessfulCall(); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import {BaseModule} from "../BaseModule.sol"; // Notes: // - includes common helpers useful for all marketplace/exchange modules abstract contract BaseExchangeModule is BaseModule { using SafeERC20 for IERC20; // --- Structs --- // Every fill execution has the following parameters: // - `fillTo`: the recipient of the received items // - `refundTo`: the recipient of any refunds // - `revertIfIncomplete`: whether to revert or skip unsuccessful fills // The below `ETHListingParams` and `ERC20ListingParams` rely on the // off-chain execution encoder to ensure that the orders filled with // the passed in listing parameters exactly match (eg. order amounts // and payment tokens match). struct ETHListingParams { address fillTo; address refundTo; bool revertIfIncomplete; // The total amount of ETH to be provided when filling uint256 amount; } struct ERC20ListingParams { address fillTo; address refundTo; bool revertIfIncomplete; // The ERC20 payment token for the listings IERC20 token; // The total amount of `token` to be provided when filling uint256 amount; } struct OfferParams { address fillTo; address refundTo; bool revertIfIncomplete; } struct Fee { address recipient; uint256 amount; } // --- Fields --- address public immutable router; // --- Errors --- error UnsuccessfulFill(); // --- Constructor --- constructor(address routerAddress) { router = routerAddress; } // --- Modifiers --- modifier refundETHLeftover(address refundTo) { _; uint256 leftover = address(this).balance; if (leftover > 0) { _sendETH(refundTo, leftover); } } modifier refundERC20Leftover(address refundTo, IERC20 token) { _; uint256 leftover = token.balanceOf(address(this)); if (leftover > 0) { token.safeTransfer(refundTo, leftover); } } modifier chargeETHFees(Fee[] calldata fees, uint256 amount) { if (fees.length == 0) { _; } else { uint256 balanceBefore = address(this).balance; _; uint256 length = fees.length; if (length > 0) { uint256 balanceAfter = address(this).balance; uint256 actualPaid = balanceBefore - balanceAfter; uint256 actualFee; for (uint256 i = 0; i < length; ) { // Adjust the fee to what was actually paid actualFee = (fees[i].amount * actualPaid) / amount; if (actualFee > 0) { _sendETH(fees[i].recipient, actualFee); } unchecked { ++i; } } } } } modifier chargeERC20Fees( Fee[] calldata fees, IERC20 token, uint256 amount ) { if (fees.length == 0) { _; } else { uint256 balanceBefore = token.balanceOf(address(this)); _; uint256 length = fees.length; if (length > 0) { uint256 balanceAfter = token.balanceOf(address(this)); uint256 actualPaid = balanceBefore - balanceAfter; uint256 actualFee; for (uint256 i = 0; i < length; ) { // Adjust the fee to what was actually paid actualFee = (fees[i].amount * actualPaid) / amount; if (actualFee > 0) { token.safeTransfer(fees[i].recipient, actualFee); } unchecked { ++i; } } } } } // --- Helpers --- function _sendAllETH(address to) internal { _sendETH(to, address(this).balance); } function _sendAllERC20(address to, IERC20 token) internal { uint256 balance = token.balanceOf(address(this)); if (balance > 0) { token.safeTransfer(to, balance); } } function _sendAllERC721( address to, IERC721 token, uint256 tokenId ) internal { if (token.ownerOf(tokenId) == address(this)) { token.safeTransferFrom(address(this), to, tokenId); } } function _sendAllERC1155( address to, IERC1155 token, uint256 tokenId ) internal { uint256 balance = token.balanceOf(address(this), tokenId); if (balance > 0) { token.safeTransferFrom(address(this), to, tokenId, balance, ""); } } function _approveERC20IfNeeded( IERC20 token, address spender, uint256 amount ) internal { uint256 allowance = token.allowance(address(this), spender); if (allowance < amount) { token.approve(spender, amount - allowance); } } function _approveERC721IfNeeded(IERC721 token, address operator) internal { bool isApproved = token.isApprovedForAll(address(this), operator); if (!isApproved) { token.setApprovalForAll(operator, true); } } function _approveERC1155IfNeeded(IERC1155 token, address operator) internal { bool isApproved = token.isApprovedForAll(address(this), operator); if (!isApproved) { token.setApprovalForAll(operator, true); } } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"exchange","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidParams","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsuccessfulCall","type":"error"},{"inputs":[],"name":"UnsuccessfulFill","type":"error"},{"inputs":[],"name":"UnsuccessfulPayment","type":"error"},{"inputs":[],"name":"WrongParams","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"CallExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"EXCHANGE","outputs":[{"internalType":"contract ISeaport","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"enum ISeaport.Side","name":"side","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"bytes32[]","name":"criteriaProof","type":"bytes32[]"}],"internalType":"struct ISeaport.CriteriaResolver[]","name":"criteriaResolvers","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"internalType":"struct BaseExchangeModule.OfferParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC1155Offer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ERC20ListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC20Listing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder[]","name":"orders","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ERC20ListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC20Listings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"enum ISeaport.Side","name":"side","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"bytes32[]","name":"criteriaProof","type":"bytes32[]"}],"internalType":"struct ISeaport.CriteriaResolver[]","name":"criteriaResolvers","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"}],"internalType":"struct BaseExchangeModule.OfferParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptERC721Offer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ETHListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptETHListing","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"uint120","name":"numerator","type":"uint120"},{"internalType":"uint120","name":"denominator","type":"uint120"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct ISeaport.AdvancedOrder","name":"order","type":"tuple"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct SeaportV14Module.SeaportETHListingWithPrice[]","name":"orders","type":"tuple[]"},{"components":[{"internalType":"address","name":"fillTo","type":"address"},{"internalType":"address","name":"refundTo","type":"address"},{"internalType":"bool","name":"revertIfIncomplete","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.ETHListingParams","name":"params","type":"tuple"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BaseExchangeModule.Fee[]","name":"fees","type":"tuple[]"}],"name":"acceptETHListings","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"makeCalls","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct ISeaport.OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ISeaport.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct ISeaport.ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum ISeaport.OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalConsiderationItems","type":"uint256"}],"internalType":"struct ISeaport.OrderParameters","name":"parameters","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ISeaport.Order[]","name":"orders","type":"tuple[]"},{"components":[{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"uint256","name":"itemIndex","type":"uint256"}],"internalType":"struct ISeaport.FulfillmentComponent[]","name":"offerComponents","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"orderIndex","type":"uint256"},{"internalType":"uint256","name":"itemIndex","type":"uint256"}],"internalType":"struct ISeaport.FulfillmentComponent[]","name":"considerationComponents","type":"tuple[]"}],"internalType":"struct ISeaport.Fulfillment[]","name":"fulfillments","type":"tuple[]"}],"name":"matchOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0346200012857601f6200350538819003918201601f19168301916001600160401b038311848410176200012d5780849260609460405283398101031262000128576200004d8162000143565b620000696040620000616020850162000143565b930162000143565b600080546001600160a01b0319166001600160a01b03938416908117825560405194917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a360016002556080521660a0526133ac90816200015982396080518181816103bf015261141d015260a05181818161079c01528181610bf6015281816111f1015281816112e7015281816118d901528181612b4401528181612bb601528181612e7701528181612f780152818161320401526132e30152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001285756fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f00000000000000000000000000000000000000000000000000000000000000006115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b6001600160401b03811161043b57604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f848061200d565b6060810190612023565b90612058565b92600361072b8561209c565b6107348161208a565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b888061200d565b60408101906120a6565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000000000000000000000000000000000000000000008c166107c7818d6122c9565b8d611b5c565b60036107d88261209c565b6107e18161208a565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a612e27565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b612396565b61147b565b612176565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b612115565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b0161238c565b6001600160781b031690565b90611698565b90612163565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a612b1c565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb836120db565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e38561209c565b6109ec8161208a565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611e48565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f858061200d565b936002610ba98661209c565b610bb28161208a565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b8061200d565b966001600160a01b0396610c277f00000000000000000000000000000000000000000000000000000000000000008916610c21818a6122c9565b8a611b5c565b610c3360408b016116c2565b15610d4c57610c4490833091612e27565b6002610c4f8261209c565b610c588161208a565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b6121e4565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316612163565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b810190612100565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d436060916120db565b51015194610c65565b610d5890833091612b1c565b610c44565b506004610d698661209c565b610d728161208a565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612f30565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612b8c565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611da5565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611d60565b80611d90565b6110288761147b565b858d611035868c8b611d60565b013592612f30565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611d60565b6110788761147b565b858d611085868c8b611d60565b013592612b8c565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526128e8565b0381837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b810190612495565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612861565b916112a0611294848061259b565b8983528983019061275c565b90602094848680960190612830565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690611c5c565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b612e27565b610320916119436116cc565b90359161194f83610304565b612b1c565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611aca565b805190816119fa57505050565b8280611a0a938301019101611a69565b15611a125750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b908160209103126101945751611485816116b8565b15611a8557565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611aea5750815115611ade575090565b611485903b1515611a7e565b825190915015611afd5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b43575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b20565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216918382604481865afa918215611c4f575b600092611c30575b506000198210611bae575b50505050565b60405163095ea7b360e01b81526001600160a01b0391909116600482015290196024820152908290829060449082906000905af18015611c23575b611bf5575b8080611ba8565b81611c1492903d10611c1c575b611c0c81836104ac565b810190611a69565b503880611bee565b503d611c02565b611c2b611792565b611be9565b611c48919250843d86116109575761094881836104ac565b9038611b9d565b611c57611792565b611b95565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094939192168483604481845afa928315611d53575b600093611d34575b50838310611cae575b5050505050565b611cbc8593611cf195611652565b60405163095ea7b360e01b81526001600160a01b03909316600484015260248301529092839190829060009082906044820190565b03925af18015611d27575b611d09575b808080611ca7565b81611d1f92903d10611c1c57611c0c81836104ac565b503880611d01565b611d2f611792565b611cfc565b611d4c919350853d87116109575761094881836104ac565b9138611c9e565b611d5b611792565b611c96565b9190811015611d83575b60051b81013590603e1981360301821215610194570190565b611d8b61144c565b611d6a565b903590609e1981360301821215610194570190565b909291611db06116cc565b91611dbd604083016116c2565b15611e055760005b858110611dd457505050509050565b80611dff611de86110196001948a87611d60565b611df18661147b565b876020611035868d8a611d60565b01611dc5565b60005b858110611e1757505050509050565b80611e42611e2b6110196001948a87611d60565b611e348661147b565b876020611085868d8a611d60565b01611e08565b909192949394611e5a6060850161147b565b60808501359680611e7357505050610320939450611f72565b6040516370a0823160e01b808252306004830152602097949693959294611ec8946001600160a01b038816948a9392919084866024818a5afa958615611f3f575b600096611f18575b509061181e9291611f72565b60005b828110611edc575050505050509050565b80611ef389610ea3858a610e9c6001978a8d611667565b80611f00575b5001611ecb565b611f12906118826108a684888b611667565b38611ef9565b61181e9392919650611f3690863d88116109575761094881836104ac565b95909192611ebc565b611f47611792565b611eb4565b909161148592811015611f65575b60051b810190611d90565b611f6d61144c565b611f5a565b9190611f836118d16060840161147b565b611f8b6116cc565b90611f98604084016116c2565b15611fd55760005b818110611fae575050505050565b80611fcf611fbf6001938589611f4c565b85611fc98861147b565b91612e27565b01611fa0565b60005b818110611fe6575050505050565b80612007611ff76001938589611f4c565b856120018861147b565b91612b1c565b01611fd8565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b90156120615790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b6006111561209457565b610320612073565b3561148581612069565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b6020908051156120e9570190565b6120f161144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b03821117612156575b604052803561214a81610304565b83520135602082015290565b61215e610409565b61213c565b8161216d57505050565b61032092611954565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa9182156121d7575b6000926121b7575b508161216d57505050565b6121d091925060203d81116109575761094881836104ac565b90386121ac565b6121df611792565b6121a4565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa9182156122bc575b60009261229c575b5016301461222c57505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af1801561228f575b61227c575b50565b8061228961032092610448565b806109f3565b612297611792565b612274565b6122b591925060203d8111610d2357610d1481836104ac565b903861221f565b6122c4611792565b612217565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa90811561236e575b600091612350575b5015612314575050565b803b156101945760405163a22cb46560e01b81526001600160a01b03909216600483015260016024830152600090829081838160448101612269565b612368915060203d8111611c1c57611c0c81836104ac565b3861230a565b612376611792565b612302565b6001600160781b0381160361019457565b356114858161237b565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa918215612488575b600092612468575b50816123df5750505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af1801561245b575b612448575b808080611ba8565b8061228961245592610448565b38612440565b612463611792565b61243b565b61248191925060203d81116109575761094881836104ac565b90386123d3565b612490611792565b6123cb565b6020908181840312610194578051906001600160401b038211610194570182601f82011215610194578051916124ca836104ed565b9360406124d9815196876104ac565b848652828601918360e080970286010194818611610194578401925b858410612506575050505050505090565b8382038781126101945783519161251c8361045b565b60a08092126101945788926125838893875161253781610420565b895161254281612069565b8152858a015161255181610304565b86820152888a0151898201526060808b0151908201526080808b01519061257782610304565b820152835288016120f5565b8382015260c0870151868201528152019301926124f5565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156125f15752565b6125f9612073565b52565b9190808252602080920192916000905b82821061261a575050505090565b9091929380612635600192873561263081612069565b6125e4565b8286013561264281610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a0809101950192019092919261260c565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106126cf575050505090565b90919293806126e5600192873561263081612069565b828601356126f281610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561272d81610304565b169082015260c09081019501939201906126c1565b3590600482101561019457565b9060048210156125f15752565b906127778161276a84610315565b6001600160a01b03169052565b61279661278660208401610315565b6001600160a01b03166020830152565b6127d56127ba6127a960408501856125b0565b6101608060408701528501916125fc565b6127c7606085018561267d565b9084830360608601526126b1565b916127ef6127e560808301612742565b608084019061274f565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106128c7575050505090565b833585528381013585820152604094850194909301926001909101906128b9565b90808352602080930192838260051b850194846000925b858410612910575050505050505090565b909192939495968580612963838560019503885261292e8c88612861565b9061295661294c61293f8480612875565b60408086528501916128a9565b9285810190612875565b91858185039101526128a9565b9901940194019295949391906128ff565b908082519081815260208091019281808460051b830101950193600080925b8584106129a4575050505050505090565b90919293949596601f198282030184528751908660c060a0928381019385518252838601516002811015612a40575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612a27575050509080600192990194019401929594939190612993565b9193806001929486518152019401920188939291612a07565b612a48612073565b6129d3565b939290612b0261032093612af46060936080895288612ae4612ad9612a87612a75858061259b565b60a0608086015261012085019061275c565b6020850135612a958161237b565b6001600160781b0380911660a08601526040860135612ab38161237b565b1660c0850152612ac589860186612830565b90607f199560e08782860301910152611538565b926080810190612830565b918b8403016101008c0152611538565b908782036020890152612974565b600060408701526001600160a01b03909216940193909352565b90602091612b3e60405194859384936339eb2ac960e21b855260048501612a4d565b038160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1612b755750565b6122799060203d8111611c1c57611c0c81836104ac565b9260209291612bb294604051958694859384936339eb2ac960e21b855260048501612a4d565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1612b755750565b81601f8201121561019457803590612bfe826104ed565b92604090612c0e825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612c3e575050505050505090565b8684830312610194578487918451612c5581610420565b8635612c6081612069565b815282870135612c6f81610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612c2d565b81601f8201121561019457803590612cb1826104ed565b92604090612cc1825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b858410612cf1575050505050505090565b8684830312610194578487918451612d0881610476565b8635612d1381612069565b815282870135612d2281610304565b838201528587013586820152606080880135908201526080808801359082015260a08088013590612d5282610304565b820152815201930192612ce0565b6101608136031261019457612d736104cd565b90612d7d81610315565b8252612d8b60208201610315565b60208301526001600160401b03604082013581811161019457612db19036908401612be7565b6040840152606082013590811161019457612dcf9036908301612c9a565b6060830152612de060808201612742565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b9190612e72612e46612e41612e3c868061200d565b612d60565b6131d1565b916020612e52846132c6565b9460009260405194859283926339eb2ac960e21b84528a60048501612a4d565b0381847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612f10575b50612ec057604051631298f31b60e11b8152600490fd5b612ed657604051631298f31b60e11b8152600490fd5b6020612ef0612ef793612eeb610911946132c6565b611652565b930161238c565b03612efe57565b604051631298f31b60e11b8152600490fd5b612f2991925060203d8111611c1c57611c0c81836104ac565b9038612ea9565b929190612f74906020612f49612e41612e3c888061200d565b93612f53856132c6565b956000936040518096819482936339eb2ac960e21b84528c60048501612a4d565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612f105750612ec057604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117613026575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b61302e610409565b612fdc565b90815180825260208080930193019160005b828110613053575050505090565b909192938260a0600192875161306a8282516125e4565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101613045565b90815180825260208080930193019160005b8281106130c3575050505090565b909192938260c060019287516130da8282516125e4565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a08092015116908201520195019101929190926130b5565b602080825282516001600160a01b03169082015260208201516001600160a01b03166040820152604082015161317e61316861016092836060860152610180850190613033565b6060850151848203601f190160808601526130a3565b92613191608082015160a085019061274f565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b6131d9612fc0565b50805160405163f07ec37360e01b81526001600160a01b0391821660048201526020926132619284927f0000000000000000000000000000000000000000000000000000000000000000909116908381602481855afa9081156132b9575b60009161329c575b5061014083015260405180809581946379df72bd60e01b835260048301613121565b03915afa91821561328f575b60009261327957505090565b6114859250803d106109575761094881836104ac565b613297611792565b61326d565b6132b39150843d86116109575761094881836104ac565b3861323f565b6132c1611792565b613237565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115613369575b600091613320575090565b906080823d8211613361575b81613339608093836104ac565b81010312610a6557508061334f604092516116b8565b61335c60208201516116b8565b015190565b3d915061332c565b613371611792565b61331556fea2646970667358221220a3198e7515a9360747d43d96e2c6484a6644f34642df456c65d77b4abe5a38d964736f6c63430008110033000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6
Deployed Bytecode
0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b6001600160401b03811161043b57604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f848061200d565b6060810190612023565b90612058565b92600361072b8561209c565b6107348161208a565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b888061200d565b60408101906120a6565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd68c166107c7818d6122c9565b8d611b5c565b60036107d88261209c565b6107e18161208a565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a612e27565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b612396565b61147b565b612176565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b612115565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b0161238c565b6001600160781b031690565b90611698565b90612163565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a612b1c565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb836120db565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e38561209c565b6109ec8161208a565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611e48565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f858061200d565b936002610ba98661209c565b610bb28161208a565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b8061200d565b966001600160a01b0396610c277f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd68916610c21818a6122c9565b8a611b5c565b610c3360408b016116c2565b15610d4c57610c4490833091612e27565b6002610c4f8261209c565b610c588161208a565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b6121e4565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316612163565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b810190612100565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d436060916120db565b51015194610c65565b610d5890833091612b1c565b610c44565b506004610d698661209c565b610d728161208a565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612f30565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612b8c565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611da5565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611d60565b80611d90565b6110288761147b565b858d611035868c8b611d60565b013592612f30565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611d60565b6110788761147b565b858d611085868c8b611d60565b013592612b8c565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526128e8565b0381837f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b810190612495565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612861565b916112a0611294848061259b565b8983528983019061275c565b90602094848680960190612830565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b031690611c5c565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b612e27565b610320916119436116cc565b90359161194f83610304565b612b1c565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611aca565b805190816119fa57505050565b8280611a0a938301019101611a69565b15611a125750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b908160209103126101945751611485816116b8565b15611a8557565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611aea5750815115611ade575090565b611485903b1515611a7e565b825190915015611afd5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b43575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b20565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216918382604481865afa918215611c4f575b600092611c30575b506000198210611bae575b50505050565b60405163095ea7b360e01b81526001600160a01b0391909116600482015290196024820152908290829060449082906000905af18015611c23575b611bf5575b8080611ba8565b81611c1492903d10611c1c575b611c0c81836104ac565b810190611a69565b503880611bee565b503d611c02565b611c2b611792565b611be9565b611c48919250843d86116109575761094881836104ac565b9038611b9d565b611c57611792565b611b95565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094939192168483604481845afa928315611d53575b600093611d34575b50838310611cae575b5050505050565b611cbc8593611cf195611652565b60405163095ea7b360e01b81526001600160a01b03909316600484015260248301529092839190829060009082906044820190565b03925af18015611d27575b611d09575b808080611ca7565b81611d1f92903d10611c1c57611c0c81836104ac565b503880611d01565b611d2f611792565b611cfc565b611d4c919350853d87116109575761094881836104ac565b9138611c9e565b611d5b611792565b611c96565b9190811015611d83575b60051b81013590603e1981360301821215610194570190565b611d8b61144c565b611d6a565b903590609e1981360301821215610194570190565b909291611db06116cc565b91611dbd604083016116c2565b15611e055760005b858110611dd457505050509050565b80611dff611de86110196001948a87611d60565b611df18661147b565b876020611035868d8a611d60565b01611dc5565b60005b858110611e1757505050509050565b80611e42611e2b6110196001948a87611d60565b611e348661147b565b876020611085868d8a611d60565b01611e08565b909192949394611e5a6060850161147b565b60808501359680611e7357505050610320939450611f72565b6040516370a0823160e01b808252306004830152602097949693959294611ec8946001600160a01b038816948a9392919084866024818a5afa958615611f3f575b600096611f18575b509061181e9291611f72565b60005b828110611edc575050505050509050565b80611ef389610ea3858a610e9c6001978a8d611667565b80611f00575b5001611ecb565b611f12906118826108a684888b611667565b38611ef9565b61181e9392919650611f3690863d88116109575761094881836104ac565b95909192611ebc565b611f47611792565b611eb4565b909161148592811015611f65575b60051b810190611d90565b611f6d61144c565b611f5a565b9190611f836118d16060840161147b565b611f8b6116cc565b90611f98604084016116c2565b15611fd55760005b818110611fae575050505050565b80611fcf611fbf6001938589611f4c565b85611fc98861147b565b91612e27565b01611fa0565b60005b818110611fe6575050505050565b80612007611ff76001938589611f4c565b856120018861147b565b91612b1c565b01611fd8565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b90156120615790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b6006111561209457565b610320612073565b3561148581612069565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b6020908051156120e9570190565b6120f161144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b03821117612156575b604052803561214a81610304565b83520135602082015290565b61215e610409565b61213c565b8161216d57505050565b61032092611954565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa9182156121d7575b6000926121b7575b508161216d57505050565b6121d091925060203d81116109575761094881836104ac565b90386121ac565b6121df611792565b6121a4565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa9182156122bc575b60009261229c575b5016301461222c57505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af1801561228f575b61227c575b50565b8061228961032092610448565b806109f3565b612297611792565b612274565b6122b591925060203d8111610d2357610d1481836104ac565b903861221f565b6122c4611792565b612217565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa90811561236e575b600091612350575b5015612314575050565b803b156101945760405163a22cb46560e01b81526001600160a01b03909216600483015260016024830152600090829081838160448101612269565b612368915060203d8111611c1c57611c0c81836104ac565b3861230a565b612376611792565b612302565b6001600160781b0381160361019457565b356114858161237b565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa918215612488575b600092612468575b50816123df5750505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af1801561245b575b612448575b808080611ba8565b8061228961245592610448565b38612440565b612463611792565b61243b565b61248191925060203d81116109575761094881836104ac565b90386123d3565b612490611792565b6123cb565b6020908181840312610194578051906001600160401b038211610194570182601f82011215610194578051916124ca836104ed565b9360406124d9815196876104ac565b848652828601918360e080970286010194818611610194578401925b858410612506575050505050505090565b8382038781126101945783519161251c8361045b565b60a08092126101945788926125838893875161253781610420565b895161254281612069565b8152858a015161255181610304565b86820152888a0151898201526060808b0151908201526080808b01519061257782610304565b820152835288016120f5565b8382015260c0870151868201528152019301926124f5565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156125f15752565b6125f9612073565b52565b9190808252602080920192916000905b82821061261a575050505090565b9091929380612635600192873561263081612069565b6125e4565b8286013561264281610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a0809101950192019092919261260c565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106126cf575050505090565b90919293806126e5600192873561263081612069565b828601356126f281610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561272d81610304565b169082015260c09081019501939201906126c1565b3590600482101561019457565b9060048210156125f15752565b906127778161276a84610315565b6001600160a01b03169052565b61279661278660208401610315565b6001600160a01b03166020830152565b6127d56127ba6127a960408501856125b0565b6101608060408701528501916125fc565b6127c7606085018561267d565b9084830360608601526126b1565b916127ef6127e560808301612742565b608084019061274f565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106128c7575050505090565b833585528381013585820152604094850194909301926001909101906128b9565b90808352602080930192838260051b850194846000925b858410612910575050505050505090565b909192939495968580612963838560019503885261292e8c88612861565b9061295661294c61293f8480612875565b60408086528501916128a9565b9285810190612875565b91858185039101526128a9565b9901940194019295949391906128ff565b908082519081815260208091019281808460051b830101950193600080925b8584106129a4575050505050505090565b90919293949596601f198282030184528751908660c060a0928381019385518252838601516002811015612a40575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612a27575050509080600192990194019401929594939190612993565b9193806001929486518152019401920188939291612a07565b612a48612073565b6129d3565b939290612b0261032093612af46060936080895288612ae4612ad9612a87612a75858061259b565b60a0608086015261012085019061275c565b6020850135612a958161237b565b6001600160781b0380911660a08601526040860135612ab38161237b565b1660c0850152612ac589860186612830565b90607f199560e08782860301910152611538565b926080810190612830565b918b8403016101008c0152611538565b908782036020890152612974565b600060408701526001600160a01b03909216940193909352565b90602091612b3e60405194859384936339eb2ac960e21b855260048501612a4d565b038160007f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165af1612b755750565b6122799060203d8111611c1c57611c0c81836104ac565b9260209291612bb294604051958694859384936339eb2ac960e21b855260048501612a4d565b03917f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165af1612b755750565b81601f8201121561019457803590612bfe826104ed565b92604090612c0e825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612c3e575050505050505090565b8684830312610194578487918451612c5581610420565b8635612c6081612069565b815282870135612c6f81610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612c2d565b81601f8201121561019457803590612cb1826104ed565b92604090612cc1825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b858410612cf1575050505050505090565b8684830312610194578487918451612d0881610476565b8635612d1381612069565b815282870135612d2281610304565b838201528587013586820152606080880135908201526080808801359082015260a08088013590612d5282610304565b820152815201930192612ce0565b6101608136031261019457612d736104cd565b90612d7d81610315565b8252612d8b60208201610315565b60208301526001600160401b03604082013581811161019457612db19036908401612be7565b6040840152606082013590811161019457612dcf9036908301612c9a565b6060830152612de060808201612742565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b9190612e72612e46612e41612e3c868061200d565b612d60565b6131d1565b916020612e52846132c6565b9460009260405194859283926339eb2ac960e21b84528a60048501612a4d565b0381847f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165af1909181612f10575b50612ec057604051631298f31b60e11b8152600490fd5b612ed657604051631298f31b60e11b8152600490fd5b6020612ef0612ef793612eeb610911946132c6565b611652565b930161238c565b03612efe57565b604051631298f31b60e11b8152600490fd5b612f2991925060203d8111611c1c57611c0c81836104ac565b9038612ea9565b929190612f74906020612f49612e41612e3c888061200d565b93612f53856132c6565b956000936040518096819482936339eb2ac960e21b84528c60048501612a4d565b03917f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165af1909181612f105750612ec057604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117613026575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b61302e610409565b612fdc565b90815180825260208080930193019160005b828110613053575050505090565b909192938260a0600192875161306a8282516125e4565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101613045565b90815180825260208080930193019160005b8281106130c3575050505090565b909192938260c060019287516130da8282516125e4565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a08092015116908201520195019101929190926130b5565b602080825282516001600160a01b03169082015260208201516001600160a01b03166040820152604082015161317e61316861016092836060860152610180850190613033565b6060850151848203601f190160808601526130a3565b92613191608082015160a085019061274f565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b6131d9612fc0565b50805160405163f07ec37360e01b81526001600160a01b0391821660048201526020926132619284927f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6909116908381602481855afa9081156132b9575b60009161329c575b5061014083015260405180809581946379df72bd60e01b835260048301613121565b03915afa91821561328f575b60009261327957505090565b6114859250803d106109575761094881836104ac565b613297611792565b61326d565b6132b39150843d86116109575761094881836104ac565b3861323f565b6132c1611792565b613237565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd66001600160a01b03165afa908115613369575b600091613320575090565b906080823d8211613361575b81613339608093836104ac565b81010312610a6557508061334f604092516116b8565b61335c60208201516116b8565b015190565b3d915061332c565b613371611792565b61331556fea2646970667358221220a3198e7515a9360747d43d96e2c6484a6644f34642df456c65d77b4abe5a38d964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6
-----Decoded View---------------
Arg [0] : owner (address): 0xf3d63166F0Ca56C3c1A3508FcE03Ff0Cf3Fb691e
Arg [1] : router (address): 0xC2c862322E9c97D6244a3506655DA95F05246Fd8
Arg [2] : exchange (address): 0x00000000000001ad428e4906aE43D8F9852d0dD6
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e
Arg [1] : 000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd8
Arg [2] : 00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.