Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
20558457 | 2 days ago | 0.0002 ETH | |||||
20558457 | 2 days ago | 0.0002 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20545208 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH | |||||
20544302 | 4 days ago | 0 ETH |
Loading...
Loading
Contract Name:
AlienswapModule
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 AlienswapModule 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 AlienswapModule.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
60c0346200012857601f6200350038819003918201601f19168301916001600160401b038311848410176200012d5780849260609460405283398101031262000128576200004d8162000143565b620000696040620000616020850162000143565b930162000143565b600080546001600160a01b0319166001600160a01b03938416908117825560405194917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a360016002556080521660a0526133a790816200015982396080518181816103bf015261141d015260a05181818161079c01528181610bf6015281816111f1015281816112e7015281816118d901528181612635015281816126ba0152818161297b01528181612a7c01528181612d080152612de70152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620001285756fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f00000000000000000000000000000000000000000000000000000000000000006115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b6001600160401b03811161043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f8480611e09565b6060810190611e1f565b90611e54565b92600361072b85611e98565b61073481611e86565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b8880611e09565b6040810190611ea2565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000000000000000000000000000000000000000000008c166107c7818d6132bf565b8d6130cc565b60036107d882611e98565b6107e181611e86565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a61292b565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b612fcc565b61147b565b612e7a565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b611f11565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b01611f83565b6001600160781b031690565b90611698565b90611f5f565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a61260d565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb83611ed7565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e385611e98565b6109ec81611e86565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611c44565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f8580611e09565b936002610ba986611e98565b610bb281611e86565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b80611e09565b966001600160a01b0396610c277f00000000000000000000000000000000000000000000000000000000000000008916610c21818a6132bf565b8a6130cc565b610c3360408b016116c2565b15610d4c57610c449083309161292b565b6002610c4f82611e98565b610c5881611e86565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b612ee8565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316611f5f565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b810190611efc565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d43606091611ed7565b51015194610c65565b610d589083309161260d565b610c44565b506004610d6986611e98565b610d7281611e86565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612a34565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612690565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611ba1565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611b5c565b80611b8c565b6110288761147b565b858d611035868c8b611b5c565b013592612a34565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611b5c565b6110788761147b565b858d611085868c8b611b5c565b013592612690565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526123e0565b0381837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b810190611f8d565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612359565b916112a06112948480612093565b89835289830190612254565b90602094848680960190612328565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906131bb565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b61292b565b610320916119436116cc565b90359161194f83610304565b61260d565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611aca565b805190816119fa57505050565b8280611a0a938301019101611a69565b15611a125750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b908160209103126101945751611485816116b8565b15611a8557565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611aea5750815115611ade575090565b611485903b1515611a7e565b825190915015611afd5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b43575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b20565b9190811015611b7f575b60051b81013590603e1981360301821215610194570190565b611b8761144c565b611b66565b903590609e1981360301821215610194570190565b909291611bac6116cc565b91611bb9604083016116c2565b15611c015760005b858110611bd057505050509050565b80611bfb611be46110196001948a87611b5c565b611bed8661147b565b876020611035868d8a611b5c565b01611bc1565b60005b858110611c1357505050509050565b80611c3e611c276110196001948a87611b5c565b611c308661147b565b876020611085868d8a611b5c565b01611c04565b909192949394611c566060850161147b565b60808501359680611c6f57505050610320939450611d6e565b6040516370a0823160e01b808252306004830152602097949693959294611cc4946001600160a01b038816948a9392919084866024818a5afa958615611d3b575b600096611d14575b509061181e9291611d6e565b60005b828110611cd8575050505050509050565b80611cef89610ea3858a610e9c6001978a8d611667565b80611cfc575b5001611cc7565b611d0e906118826108a684888b611667565b38611cf5565b61181e9392919650611d3290863d88116109575761094881836104ac565b95909192611cb8565b611d43611792565b611cb0565b909161148592811015611d61575b60051b810190611b8c565b611d6961144c565b611d56565b9190611d7f6118d16060840161147b565b611d876116cc565b90611d94604084016116c2565b15611dd15760005b818110611daa575050505050565b80611dcb611dbb6001938589611d48565b85611dc58861147b565b9161292b565b01611d9c565b60005b818110611de2575050505050565b80611e03611df36001938589611d48565b85611dfd8861147b565b9161260d565b01611dd4565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b9015611e5d5790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b60061115611e9057565b610320611e6f565b3561148581611e65565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b602090805115611ee5570190565b611eed61144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b03821117611f52575b6040528035611f4681610304565b83520135602082015290565b611f5a610409565b611f38565b81611f6957505050565b61032092611954565b6001600160781b0381160361019457565b3561148581611f72565b6020908181840312610194578051906001600160401b038211610194570182601f8201121561019457805191611fc2836104ed565b936040611fd1815196876104ac565b848652828601918360e080970286010194818611610194578401925b858410611ffe575050505050505090565b8382038781126101945783519161201483610448565b60a080921261019457889261207b8893875161202f81610420565b895161203a81611e65565b8152858a015161204981610304565b86820152888a0151898201526060808b0151908201526080808b01519061206f82610304565b82015283528801611ef1565b8382015260c087015186820152815201930192611fed565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156120e95752565b6120f1611e6f565b52565b9190808252602080920192916000905b828210612112575050505090565b909192938061212d600192873561212881611e65565b6120dc565b8286013561213a81610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a08091019501920190929192612104565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106121c7575050505090565b90919293806121dd600192873561212881611e65565b828601356121ea81610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561222581610304565b169082015260c09081019501939201906121b9565b3590600482101561019457565b9060048210156120e95752565b9061226f8161226284610315565b6001600160a01b03169052565b61228e61227e60208401610315565b6001600160a01b03166020830152565b6122cd6122b26122a160408501856120a8565b6101608060408701528501916120f4565b6122bf6060850185612175565b9084830360608601526121a9565b916122e76122dd6080830161223a565b6080840190612247565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106123bf575050505090565b833585528381013585820152604094850194909301926001909101906123b1565b90808352602080930192838260051b850194846000925b858410612408575050505050505090565b90919293949596858061245b83856001950388526124268c88612359565b9061244e612444612437848061236d565b60408086528501916123a1565b928581019061236d565b91858185039101526123a1565b9901940194019295949391906123f7565b90815180825260208092019182818360051b8501950193600080925b858410612499575050505050505090565b9091929394959681810384528751908660c060a0928381019385518252838601516002811015612531575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612518575050509080600192990194019401929594939190612488565b91938060019294865181520194019201889392916124f8565b612539611e6f565b6124c4565b9392906125f3610320936125e560609360808952886125d56125ca6125786125668580612093565b60a06080860152610120850190612254565b602085013561258681611f72565b6001600160781b0380911660a086015260408601356125a481611f72565b1660c08501526125b689860186612328565b90607f199560e08782860301910152611538565b926080810190612328565b918b8403016101008c0152611538565b90878203602089015261246c565b600060408701526001600160a01b03909216940193909352565b9060209161262f60405194859384936339eb2ac960e21b85526004850161253e565b038160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af16126665750565b6126869060203d8111612689575b61267e81836104ac565b810190611a69565b50565b503d612674565b92602092916126b694604051958694859384936339eb2ac960e21b85526004850161253e565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af16126665750565b81601f8201121561019457803590612702826104ed565b92604090612712825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612742575050505050505090565b868483031261019457848791845161275981610420565b863561276481611e65565b81528287013561277381610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612731565b81601f82011215610194578035906127b5826104ed565b926040906127c5825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b8584106127f5575050505050505090565b868483031261019457848791845161280c81610463565b863561281781611e65565b81528287013561282681610304565b838201528587013586820152606080880135908201526080808801359082015260a0808801359061285682610304565b8201528152019301926127e4565b61016081360312610194576128776104cd565b9061288181610315565b825261288f60208201610315565b60208301526001600160401b036040820135818111610194576128b590369084016126eb565b60408401526060820135908111610194576128d3903690830161279e565b60608301526128e46080820161223a565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b919061297661294a6129456129408680611e09565b612864565b612cd5565b91602061295684612dca565b9460009260405194859283926339eb2ac960e21b84528a6004850161253e565b0381847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612a14575b506129c457604051631298f31b60e11b8152600490fd5b6129da57604051631298f31b60e11b8152600490fd5b60206129f46129fb936129ef61091194612dca565b611652565b9301611f83565b03612a0257565b604051631298f31b60e11b8152600490fd5b612a2d91925060203d81116126895761267e81836104ac565b90386129ad565b929190612a78906020612a4d6129456129408880611e09565b93612a5785612dca565b956000936040518096819482936339eb2ac960e21b84528c6004850161253e565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af1909181612a1457506129c457604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117612b2a575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b612b32610409565b612ae0565b90815180825260208080930193019160005b828110612b57575050505090565b909192938260a06001928751612b6e8282516120dc565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101612b49565b90815180825260208080930193019160005b828110612bc7575050505090565b909192938260c06001928751612bde8282516120dc565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a0809201511690820152019501910192919092612bb9565b602080825282516001600160a01b03169082015260208201516001600160a01b031660408201526040820151612c82612c6c61016092836060860152610180850190612b37565b6060850151848203601f19016080860152612ba7565b92612c95608082015160a0850190612247565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b612cdd612ac4565b50805160405163f07ec37360e01b81526001600160a01b039182166004820152602092612d659284927f0000000000000000000000000000000000000000000000000000000000000000909116908381602481855afa908115612dbd575b600091612da0575b5061014083015260405180809581946379df72bd60e01b835260048301612c25565b03915afa918215612d93575b600092612d7d57505090565b6114859250803d106109575761094881836104ac565b612d9b611792565b612d71565b612db79150843d86116109575761094881836104ac565b38612d43565b612dc5611792565b612d3b565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115612e6d575b600091612e24575090565b906080823d8211612e65575b81612e3d608093836104ac565b81010312610a65575080612e53604092516116b8565b612e6060208201516116b8565b015190565b3d9150612e30565b612e75611792565b612e19565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215612edb575b600092612ebb575b5081611f6957505050565b612ed491925060203d81116109575761094881836104ac565b9038612eb0565b612ee3611792565b612ea8565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa918215612fbf575b600092612f9f575b50163014612f3057505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af18015612f92575b612f7f5750565b80612f8c6103209261047e565b806109f3565b612f9a611792565b612f78565b612fb891925060203d8111610d2357610d1481836104ac565b9038612f23565b612fc7611792565b612f1b565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa9182156130bf575b60009261309f575b5081613016575b50505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af18015613092575b61307f575b808080613010565b80612f8c61308c9261047e565b38613077565b61309a611792565b613072565b6130b891925060203d81116109575761094881836104ac565b9038613009565b6130c7611792565b613001565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216918382604481865afa9182156131ae575b60009261318f575b50600019821061311d5750505050565b60405163095ea7b360e01b81526001600160a01b0391909116600482015290196024820152908290829060449082906000905af18015613182575b613164575b8080613010565b8161317a92903d106126895761267e81836104ac565b50388061315d565b61318a611792565b613158565b6131a7919250843d86116109575761094881836104ac565b903861310d565b6131b6611792565b613105565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094939192168483604481845afa9283156132b2575b600093613293575b5083831061320d575b5050505050565b61321b859361325095611652565b60405163095ea7b360e01b81526001600160a01b03909316600484015260248301529092839190829060009082906044820190565b03925af18015613286575b613268575b808080613206565b8161327e92903d106126895761267e81836104ac565b503880613260565b61328e611792565b61325b565b6132ab919350853d87116109575761094881836104ac565b91386131fd565b6132ba611792565b6131f5565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa908115613364575b600091613346575b501561330a575050565b803b156101945760405163a22cb46560e01b81526001600160a01b03909216600483015260016024830152600090829081838160448101612f6d565b61335e915060203d81116126895761267e81836104ac565b38613300565b61336c611792565b6132f856fea26469706673582212206cc3fd1fcd21ba91024db890a51e78cd132e9dd102803725eb1b075a27822dea64736f6c63430008110033000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a
Deployed Bytecode
0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c806312f3a43f1461015b578063150b7a02146101525780632b8a88ec146101495780634e71e0c81461014057806359082309146101375780636baab5f71461012e57806376af66291461012557806380b102ff1461011c57806386f20e8c146101135780638da5cb5b1461010a578063a817440414610101578063b50e44b8146100f8578063e30c3978146100ef578063f23a6e61146100e6578063f2fde38b146100dd5763f887ea400361000e576100d8611406565b61000e565b506100d86113b5565b506100d8611340565b506100d8611316565b506100d86112d0565b506100d8611141565b506100d8611117565b506100d8611093565b506100d8610ef4565b506100d8610d8a565b506100d8610b70565b506100d8610a68565b506100d86109fe565b506100d86106e4565b506100d861034f565b506100d8610199565b9181601f84011215610194578235916001600160401b038311610194576020808501948460051b01011161019457565b600080fd5b50606080600319360112610194576001600160401b0390600435828111610194576101c8903690600401610164565b602493919335828111610194576101e3903690600401610164565b92604435908111610194576101fc903690600401610164565b60005491956001600160a01b03949092851633036102f35761021c611559565b60005b818110610230576100196001600255565b807fa3f06cf374cf66be06f5fe85cdd3b13d9d9fdef6482f640d2de1d44c3ed7332c8787868c6102e68f878f81816102b7828f60019f976102b28c8e6102ac8e6102a3886102ca9f806102c29f61028b61029b938d8d611463565b359761029689610304565b611488565b969093611463565b35933691611501565b90611619565b611463565b35986102968a610304565b959094611463565b359160409384519687961686528c60208701528c860191611538565b918301520390a10161021f565b6040516282b42960e81b8152600490fd5b6001600160a01b0381160361019457565b359061032082610304565b565b9181601f84011215610194578235916001600160401b038311610194576020838186019501011161019457565b50346101945760803660031901126101945761036c600435610304565b610377602435610304565b6064356001600160401b03811161019457610396903690600401610322565b806103ae575b604051630a85bd0160e11b8152602090f35b6103e3916103bd913691611501565b7f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86115dd565b388061039c565b60a090602319011261019457602490565b908160a09103126101945790565b50634e487b7160e01b600052604160045260246000fd5b60a081019081106001600160401b0382111761043b57604052565b610443610409565b604052565b606081019081106001600160401b0382111761043b57604052565b60c081019081106001600160401b0382111761043b57604052565b6001600160401b03811161043b57604052565b604081019081106001600160401b0382111761043b57604052565b90601f801991011681019081106001600160401b0382111761043b57604052565b6040519061016082018281106001600160401b0382111761043b57604052565b6020906001600160401b038111610506575b60051b0190565b61050e610409565b6104ff565b81601f820112156101945780359161052a836104ed565b9261053860405194856104ac565b808452602092838086019260051b820101928311610194578301905b828210610562575050505090565b81358152908301908301610554565b606090604319011261019457604490565b9181601f84011215610194578235916001600160401b038311610194576020808501948460061b01011161019457565b60c0600319820112610194576001600160401b039060043582811161019457816105de916004016103fb565b926024803590848211610194578360238301121561019457816004013591610605836104ed565b926040610614815195866104ac565b818552602093808587019360051b8501019388851161019457818101935b85851061066557505050505050509261064a83610571565b9260a4359182116101945761066191600401610582565b9091565b84358b81116101945782019060a0828c0360231901126101945784519061068b82610420565b8483013582526044830135600281101561019457898301526064830135868301526084830135606083015260a4830135918d8311610194576106d48d878c969587960101610513565b6080820152815201940193610632565b5034610194576106f3366105b2565b6106ff94919294611559565b61071f61071961070f8480611e09565b6060810190611e1f565b90611e54565b92600361072b85611e98565b61073481611e86565b1415806109d7575b6109c55760209161075d61075184870161147b565b6001600160a01b031690565b9361088261086861078b6107518761078561071961077b8880611e09565b6040810190611ea2565b0161147b565b986001600160a01b039887906107cd7f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a8c166107c7818d6132bf565b8d6130cc565b60036107d882611e98565b6107e181611e86565b036109af5760400135809a5b604051627eeac760e11b808252306004830152602482018490529094918c16918f8587604481875afa9687156109a2575b60009761097c575b50604061083391016116c2565b1561096b576108449030908a61292b565b60405190815230600482015260248101929092529093849190829081906044820190565b03915afa91821561095e575b60009261092f575b50611652565b91826108ba575b6108b0886108ab8b6108a68b8b6108a18c850161147b565b612fcc565b61147b565b612e7a565b6100196001600255565b60005b8181106108ca5750610889565b806109298a6108e46108df600195878b611667565b611f11565b805161092390610903908a908d906001600160a01b0316940151611685565b61091d6109118d8b01611f83565b6001600160781b031690565b90611698565b90611f5f565b016108bd565b610950919250873d8911610957575b61094881836104ac565b810190611783565b903861087c565b503d61093e565b610966611792565b610874565b6109779030908a61260d565b610844565b61083391975061099a604091883d8a116109575761094881836104ac565b979150610826565b6109aa611792565b61081e565b5060606109bb83611ed7565b510151809a6107ed565b604051635863f78960e01b8152600490fd5b5060056109e385611e98565b6109ec81611e86565b141561073c565b600091031261019457565b503461019457600080600319360112610a65576001546001600160a01b03811690338290036102f35782546001600160a01b03199081168317845516600155807f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b80fd5b50346101945760e0366003190112610194576001600160401b0360043581811161019457610a9a903690600401610164565b9091610aa5366103ea565b60c43591821161019457610ac0610aec923690600401610582565b91610ac9611559565b602081013594610ad886610304565b606082013596610ae788610304565b611c44565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215610b63575b600092610b43575b5081610b32576100196001600255565b610b3b92611954565b3880806108b0565b610b5c91925060203d81116109575761094881836104ac565b9038610b22565b610b6b611792565b610b1a565b503461019457610b7f366105b2565b610b8d949294939193611559565b610b9d61071961070f8580611e09565b936002610ba986611e98565b610bb281611e86565b141580610d5d575b6109c557602091610bcf61075184880161147b565b93610be76107518561078561071961077b8b80611e09565b966001600160a01b0396610c277f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a8916610c21818a6132bf565b8a6130cc565b610c3360408b016116c2565b15610d4c57610c449083309161292b565b6002610c4f82611e98565b610c5881611e86565b03610d3757604091500135945b6040516331a9108f60e11b8152600481018790529084826024818985165afa918215610d2a575b600092610cfb575b5030911603610cbb575b6108b0866108ab896108a68989610cb68a850161147b565b612ee8565b60005b818110610ccb5750610c9e565b80610cf588610ce06108df6001958789611667565b805190880151906001600160a01b0316611f5f565b01610cbe565b610d1c919250853d8711610d23575b610d1481836104ac565b810190611efc565b9038610c94565b503d610d0a565b610d32611792565b610c8c565b50610d43606091611ed7565b51015194610c65565b610d589083309161260d565b610c44565b506004610d6986611e98565b610d7281611e86565b1415610bba565b608090602319011261019457602490565b5060c0366003190112610194576001600160401b0360043581811161019457610db79036906004016103fb565b610dc036610d79565b9160a43590811161019457610dd9903690600401610582565b929091610de4611559565b60208083013593610df485610304565b60608401359580610e2d57505050610e0d9293506116fd565b4780610e1d576100196001600255565b610e2691611744565b38806108b0565b919392610e6f91938747926040830135610e46816116b8565b15610ed257610e6892610e576116cc565b903591610e6383610304565b612a34565b4790611652565b60005b828110610e855750505050509050610e0d565b80610ea888610ea38589610e9c6001978a8c611667565b0135611685565b611698565b80610eb5575b5001610e72565b610ecc90610ec76108a684888a611667565b611744565b38610eae565b610eef92610ede6116cc565b903591610eea83610304565b612690565b610e68565b5060c0366003190112610194576001600160401b0360043581811161019457610f21903690600401610164565b91610f2b36610d79565b9060a43590811161019457610f44903690600401610582565b939092610f4f611559565b60208084013594610f5f86610304565b60608501359680610f7857505050610e0d939450611ba1565b9291949390934792610f886116cc565b610f94604084016116c2565b156110435760005b848110611005575050505050610fb3904790611652565b60005b828110610fc95750505050509050610e0d565b80610fe088610ea38589610e9c6001978a8c611667565b80610fed575b5001610fb6565b610fff90610ec76108a684888a611667565b38610fe6565b8061103d61101f6110196001948988611b5c565b80611b8c565b6110288761147b565b858d611035868c8b611b5c565b013592612a34565b01610f9c565b60005b84811061105b575050505050610fb390610e68565b8061108d61106f6110196001948988611b5c565b6110788761147b565b858d611085868c8b611b5c565b013592612690565b01611046565b50346101945760e0366003190112610194576001600160401b03600435818111610194576110c59036906004016103fb565b906110cf366103ea565b9060c435908111610194576110eb610aec913690600401610582565b906110f4611559565b60208401359361110385610304565b60608101359561111287610304565b61179f565b5034610194576000366003190112610194576000546040516001600160a01b039091168152602090f35b50346101945760406003198181360112610194576001600160401b039060043582811161019457611176903690600401610164565b9092602435908111610194579161119285933690600401610164565b9161119b611559565b8451958694632a05d10160e21b8652806044870188600489015252606486019160648260051b8801019781936000925b8484106112605789600081806111ec8f8e8e8e8584030160248601526123e0565b0381837f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165af18015611253575b611230576100196001600255565b61124c903d806000833e61124481836104ac565b810190611f8d565b50806108b0565b61125b611792565b611222565b919395969798509193986112af6001916063198d82030185526112bc6112868d86612359565b916112a06112948480612093565b89835289830190612254565b90602094848680960190612328565b9185818503910152611538565b9b019301940191938a9897969593916111cb565b5034610194576000366003190112610194576040517f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03168152602090f35b5034610194576000366003190112610194576001546040516001600160a01b039091168152602090f35b50346101945760a03660031901126101945761135d600435610304565b611368602435610304565b6084356001600160401b03811161019457611387903690600401610322565b8061139f575b60405163f23a6e6160e01b8152602090f35b6113ae916103bd913691611501565b388061138d565b5034610194576020366003190112610194576004356113d381610304565b6000546001600160a01b039190821633036102f357166bffffffffffffffffffffffff60a01b6001541617600155600080f35b5034610194576000366003190112610194576040517f000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd86001600160a01b03168152602090f35b50634e487b7160e01b600052603260045260246000fd5b91908110156114735760051b0190565b61050e61144c565b3561148581610304565b90565b91908110156114ca575b60051b81013590601e19813603018212156101945701908135916001600160401b038311610194576020018236038113610194579190565b6114d261144c565b611492565b6020906001600160401b0381116114f4575b601f01601f19160190565b6114fc610409565b6114e9565b92919261150d826114d7565b9161151b60405193846104ac565b829481845281830111610194578281602093846000960137010152565b908060209392818452848401376000828201840152601f01601f1916010190565b60028054146115685760028055565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b3d156115d8573d906115be826114d7565b916115cc60405193846104ac565b82523d6000602084013e565b606090565b8151600092839260209091019083906001600160a01b03165af16115ff6115ad565b501561160757565b6040516322092f2f60e11b8152600490fd5b8151600093849391926020909201916001600160a01b03165af16115ff6115ad565b50634e487b7160e01b600052601160045260246000fd5b9190820391821161165f57565b61032061163b565b9190811015611678575b60061b0190565b61168061144c565b611671565b8181029291811591840414171561165f57565b81156116a2570490565b634e487b7160e01b600052601260045260246000fd5b8015150361019457565b35611485816116b8565b604051602081018181106001600160401b038211176116f0575b6040526000815290565b6116f8610409565b6116e6565b604082013561170b816116b8565b1561172a576103209161171c6116cc565b606082359261103584610304565b610320916117366116cc565b606082359261108584610304565b8161174d575050565b6000918291829182916001600160a01b03165af16117696115ad565b501561177157565b60405163d2dcf4f360e01b8152600490fd5b90816020910312610194575190565b506040513d6000823e3d90fd5b90919392936117b06060840161147b565b608084013595806117c9575050506103209293506118c0565b6040516370a0823160e01b808252306004830152602096949593949293611838936001600160a01b038716939289929091908385602481895afa9485156118b3575b60009561188e575b509061181e916118c0565b604051908152306004820152928390818060248101610868565b60005b82811061184c575050505050509050565b8061186389610ea3858a610e9c6001978a8d611667565b80611870575b500161183b565b611888906118826108a684888b611667565b87611954565b38611869565b61181e929195506118ab90853d87116109575761094881836104ac565b949091611813565b6118bb611792565b61180b565b61190760608301356118d181610304565b6080840135907f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b0316906131bb565b6040820135611915816116b8565b1561193757610320916119266116cc565b90359161193283610304565b61292b565b610320916119436116cc565b90359161194f83610304565b61260d565b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815291926119ed9291600090819061199b6064866104ac565b60018060a01b031692604051946119b186610491565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af16119e76115ad565b91611aca565b805190816119fa57505050565b8280611a0a938301019101611a69565b15611a125750565b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152fd5b908160209103126101945751611485816116b8565b15611a8557565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b91929015611aea5750815115611ade575090565b611485903b1515611a7e565b825190915015611afd5750805190602001fd5b6040519062461bcd60e51b82528160208060048301528251908160248401526000935b828510611b43575050604492506000838284010152601f80199101168101030190fd5b8481018201518686016044015293810193859350611b20565b9190811015611b7f575b60051b81013590603e1981360301821215610194570190565b611b8761144c565b611b66565b903590609e1981360301821215610194570190565b909291611bac6116cc565b91611bb9604083016116c2565b15611c015760005b858110611bd057505050509050565b80611bfb611be46110196001948a87611b5c565b611bed8661147b565b876020611035868d8a611b5c565b01611bc1565b60005b858110611c1357505050509050565b80611c3e611c276110196001948a87611b5c565b611c308661147b565b876020611085868d8a611b5c565b01611c04565b909192949394611c566060850161147b565b60808501359680611c6f57505050610320939450611d6e565b6040516370a0823160e01b808252306004830152602097949693959294611cc4946001600160a01b038816948a9392919084866024818a5afa958615611d3b575b600096611d14575b509061181e9291611d6e565b60005b828110611cd8575050505050509050565b80611cef89610ea3858a610e9c6001978a8d611667565b80611cfc575b5001611cc7565b611d0e906118826108a684888b611667565b38611cf5565b61181e9392919650611d3290863d88116109575761094881836104ac565b95909192611cb8565b611d43611792565b611cb0565b909161148592811015611d61575b60051b810190611b8c565b611d6961144c565b611d56565b9190611d7f6118d16060840161147b565b611d876116cc565b90611d94604084016116c2565b15611dd15760005b818110611daa575050505050565b80611dcb611dbb6001938589611d48565b85611dc58861147b565b9161292b565b01611d9c565b60005b818110611de2575050505050565b80611e03611df36001938589611d48565b85611dfd8861147b565b9161260d565b01611dd4565b90359061015e1981360301821215610194570190565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160c082023603831361019457565b9015611e5d5790565b61148561144c565b6006111561019457565b50634e487b7160e01b600052602160045260246000fd5b60061115611e9057565b610320611e6f565b3561148581611e65565b903590601e198136030182121561019457018035906001600160401b038211610194576020019160a082023603831361019457565b602090805115611ee5570190565b611eed61144c565b0190565b519061032082610304565b90816020910312610194575161148581610304565b60408136031261019457602060405191604083018381106001600160401b03821117611f52575b6040528035611f4681610304565b83520135602082015290565b611f5a610409565b611f38565b81611f6957505050565b61032092611954565b6001600160781b0381160361019457565b3561148581611f72565b6020908181840312610194578051906001600160401b038211610194570182601f8201121561019457805191611fc2836104ed565b936040611fd1815196876104ac565b848652828601918360e080970286010194818611610194578401925b858410611ffe575050505050505090565b8382038781126101945783519161201483610448565b60a080921261019457889261207b8893875161202f81610420565b895161203a81611e65565b8152858a015161204981610304565b86820152888a0151898201526060808b0151908201526080808b01519061206f82610304565b82015283528801611ef1565b8382015260c087015186820152815201930192611fed565b903561015e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760a082023603831361019457565b9060068210156120e95752565b6120f1611e6f565b52565b9190808252602080920192916000905b828210612112575050505090565b909192938061212d600192873561212881611e65565b6120dc565b8286013561213a81610304565b828060a01b03168382015260408087013590820152606080870135908201526080808701359082015260a08091019501920190929192612104565b9035601e19823603018112156101945701602081359101916001600160401b0382116101945760c082023603831361019457565b9190808252602080920192916000905b8282106121c7575050505090565b90919293806121dd600192873561212881611e65565b828601356121ea81610304565b828060a01b038091168483015260408088013590830152606080880135908301526080808801359083015260a0908188013561222581610304565b169082015260c09081019501939201906121b9565b3590600482101561019457565b9060048210156120e95752565b9061226f8161226284610315565b6001600160a01b03169052565b61228e61227e60208401610315565b6001600160a01b03166020830152565b6122cd6122b26122a160408501856120a8565b6101608060408701528501916120f4565b6122bf6060850185612175565b9084830360608601526121a9565b916122e76122dd6080830161223a565b6080840190612247565b60a081013560a083015260c081013560c083015260e081013560e0830152610100808201359083015261012080820135908301526101408091013591015290565b9035601e19823603018112156101945701602081359101916001600160401b03821161019457813603831361019457565b9035603e1982360301811215610194570190565b9035601e19823603018112156101945701602081359101916001600160401b038211610194578160061b3603831361019457565b9190808252602080920192916000905b8282106123bf575050505090565b833585528381013585820152604094850194909301926001909101906123b1565b90808352602080930192838260051b850194846000925b858410612408575050505050505090565b90919293949596858061245b83856001950388526124268c88612359565b9061244e612444612437848061236d565b60408086528501916123a1565b928581019061236d565b91858185039101526123a1565b9901940194019295949391906123f7565b90815180825260208092019182818360051b8501950193600080925b858410612499575050505050505090565b9091929394959681810384528751908660c060a0928381019385518252838601516002811015612531575b8483015260408087015190830152606080870151908301526080958601519582015284519384905291939101919083019085905b808210612518575050509080600192990194019401929594939190612488565b91938060019294865181520194019201889392916124f8565b612539611e6f565b6124c4565b9392906125f3610320936125e560609360808952886125d56125ca6125786125668580612093565b60a06080860152610120850190612254565b602085013561258681611f72565b6001600160781b0380911660a086015260408601356125a481611f72565b1660c08501526125b689860186612328565b90607f199560e08782860301910152611538565b926080810190612328565b918b8403016101008c0152611538565b90878203602089015261246c565b600060408701526001600160a01b03909216940193909352565b9060209161262f60405194859384936339eb2ac960e21b85526004850161253e565b038160007f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165af16126665750565b6126869060203d8111612689575b61267e81836104ac565b810190611a69565b50565b503d612674565b92602092916126b694604051958694859384936339eb2ac960e21b85526004850161253e565b03917f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165af16126665750565b81601f8201121561019457803590612702826104ed565b92604090612712825195866104ac565b838552602091828601918360a080970286010194818611610194578401925b858410612742575050505050505090565b868483031261019457848791845161275981610420565b863561276481611e65565b81528287013561277381610304565b8382015285870135868201526060808801359082015260808088013590820152815201930192612731565b81601f82011215610194578035906127b5826104ed565b926040906127c5825195866104ac565b838552602091828601918360c080970286010194818611610194578401925b8584106127f5575050505050505090565b868483031261019457848791845161280c81610463565b863561281781611e65565b81528287013561282681610304565b838201528587013586820152606080880135908201526080808801359082015260a0808801359061285682610304565b8201528152019301926127e4565b61016081360312610194576128776104cd565b9061288181610315565b825261288f60208201610315565b60208301526001600160401b036040820135818111610194576128b590369084016126eb565b60408401526060820135908111610194576128d3903690830161279e565b60608301526128e46080820161223a565b608083015260a081013560a083015260c081013560c083015260e081013560e083015261010080820135908301526101208082013590830152610140809101359082015290565b919061297661294a6129456129408680611e09565b612864565b612cd5565b91602061295684612dca565b9460009260405194859283926339eb2ac960e21b84528a6004850161253e565b0381847f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165af1909181612a14575b506129c457604051631298f31b60e11b8152600490fd5b6129da57604051631298f31b60e11b8152600490fd5b60206129f46129fb936129ef61091194612dca565b611652565b9301611f83565b03612a0257565b604051631298f31b60e11b8152600490fd5b612a2d91925060203d81116126895761267e81836104ac565b90386129ad565b929190612a78906020612a4d6129456129408880611e09565b93612a5785612dca565b956000936040518096819482936339eb2ac960e21b84528c6004850161253e565b03917f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165af1909181612a1457506129c457604051631298f31b60e11b8152600490fd5b6040519061016082018281106001600160401b03821117612b2a575b60405281610140600091828152826020820152606060408201526060808201528260808201528260a08201528260c08201528260e082015282610100820152826101208201520152565b612b32610409565b612ae0565b90815180825260208080930193019160005b828110612b57575050505090565b909192938260a06001928751612b6e8282516120dc565b8084015185841b869003168285015260408082015190830152606080820151908301526080908101519082015201950193929101612b49565b90815180825260208080930193019160005b828110612bc7575050505090565b909192938260c06001928751612bde8282516120dc565b848060a01b038085830151168584015260408083015190840152606080830151908401526080808301519084015260a0809201511690820152019501910192919092612bb9565b602080825282516001600160a01b03169082015260208201516001600160a01b031660408201526040820151612c82612c6c61016092836060860152610180850190612b37565b6060850151848203601f19016080860152612ba7565b92612c95608082015160a0850190612247565b60a081015160c084015260c081015160e084015260e081015161010090818501528101516101209081850152810151906101409182850152015191015290565b612cdd612ac4565b50805160405163f07ec37360e01b81526001600160a01b039182166004820152602092612d659284927f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a909116908381602481855afa908115612dbd575b600091612da0575b5061014083015260405180809581946379df72bd60e01b835260048301612c25565b03915afa918215612d93575b600092612d7d57505090565b6114859250803d106109575761094881836104ac565b612d9b611792565b612d71565b612db79150843d86116109575761094881836104ac565b38612d43565b612dc5611792565b612d3b565b6040516346423aa760e01b815260048101919091526080816024817f00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a6001600160a01b03165afa908115612e6d575b600091612e24575090565b906080823d8211612e65575b81612e3d608093836104ac565b81010312610a65575080612e53604092516116b8565b612e6060208201516116b8565b015190565b3d9150612e30565b612e75611792565b612e19565b6040516370a0823160e01b8152306004820152906020826024816001600160a01b0387165afa918215612edb575b600092612ebb575b5081611f6957505050565b612ed491925060203d81116109575761094881836104ac565b9038612eb0565b612ee3611792565b612ea8565b6040516331a9108f60e11b8152600481018490526001600160a01b03928316939192602082602481885afa918215612fbf575b600092612f9f575b50163014612f3057505050565b823b1561019457604051632142170760e11b81523060048201526001600160a01b0390921660248301526044820152906000908290818381606481015b03925af18015612f92575b612f7f5750565b80612f8c6103209261047e565b806109f3565b612f9a611792565b612f78565b612fb891925060203d8111610d2357610d1481836104ac565b9038612f23565b612fc7611792565b612f1b565b604051627eeac760e11b81523060048201526024810184905290916001600160a01b0316602082604481845afa9182156130bf575b60009261309f575b5081613016575b50505050565b803b1561019457604051637921219560e11b81523060048201526001600160a01b039390931660248401526044830193909352606482015260a06084820152600060a482018190529091829060c490829084905af18015613092575b61307f575b808080613010565b80612f8c61308c9261047e565b38613077565b61309a611792565b613072565b6130b891925060203d81116109575761094881836104ac565b9038613009565b6130c7611792565b613001565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526020939216918382604481865afa9182156131ae575b60009261318f575b50600019821061311d5750505050565b60405163095ea7b360e01b81526001600160a01b0391909116600482015290196024820152908290829060449082906000905af18015613182575b613164575b8080613010565b8161317a92903d106126895761267e81836104ac565b50388061315d565b61318a611792565b613158565b6131a7919250843d86116109575761094881836104ac565b903861310d565b6131b6611792565b613105565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152602094939192168483604481845afa9283156132b2575b600093613293575b5083831061320d575b5050505050565b61321b859361325095611652565b60405163095ea7b360e01b81526001600160a01b03909316600484015260248301529092839190829060009082906044820190565b03925af18015613286575b613268575b808080613206565b8161327e92903d106126895761267e81836104ac565b503880613260565b61328e611792565b61325b565b6132ab919350853d87116109575761094881836104ac565b91386131fd565b6132ba611792565b6131f5565b60405163e985e9c560e01b81523060048201526001600160a01b0383811660248301529190911690602081604481855afa908115613364575b600091613346575b501561330a575050565b803b156101945760405163a22cb46560e01b81526001600160a01b03909216600483015260016024830152600090829081838160448101612f6d565b61335e915060203d81116126895761267e81836104ac565b38613300565b61336c611792565b6132f856fea26469706673582212206cc3fd1fcd21ba91024db890a51e78cd132e9dd102803725eb1b075a27822dea64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd800000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a
-----Decoded View---------------
Arg [0] : owner (address): 0xf3d63166F0Ca56C3c1A3508FcE03Ff0Cf3Fb691e
Arg [1] : router (address): 0xC2c862322E9c97D6244a3506655DA95F05246Fd8
Arg [2] : exchange (address): 0x83746dE31FC8dE985fFE46c1C20eA6d7d8f4ed3a
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f3d63166f0ca56c3c1a3508fce03ff0cf3fb691e
Arg [1] : 000000000000000000000000c2c862322e9c97d6244a3506655da95f05246fd8
Arg [2] : 00000000000000000000000083746de31fc8de985ffe46c1c20ea6d7d8f4ed3a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.