Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 66 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Multipl... | 17888740 | 379 days ago | IN | 0 ETH | 0.00792782 | ||||
Transfer Multipl... | 17695784 | 406 days ago | IN | 0 ETH | 0.00184691 | ||||
Cancel Multiple ... | 17579866 | 422 days ago | IN | 0 ETH | 0.00098083 | ||||
Take Multiple On... | 17436339 | 442 days ago | IN | 15 ETH | 0.00703932 | ||||
Take Multiple On... | 17430607 | 443 days ago | IN | 15 ETH | 0.00395741 | ||||
Take Multiple On... | 17422471 | 444 days ago | IN | 15 ETH | 0.0055021 | ||||
Cancel Multiple ... | 17417838 | 445 days ago | IN | 0 ETH | 0.00094758 | ||||
Take Multiple On... | 17415145 | 445 days ago | IN | 15 ETH | 0.01274019 | ||||
Cancel All Order... | 17415042 | 445 days ago | IN | 0 ETH | 0.00151358 | ||||
Cancel Multiple ... | 17411717 | 446 days ago | IN | 0 ETH | 0.00131045 | ||||
Cancel Multiple ... | 17410036 | 446 days ago | IN | 0 ETH | 0.00089388 | ||||
Cancel Multiple ... | 17410027 | 446 days ago | IN | 0 ETH | 0.00105133 | ||||
Take Multiple On... | 17409864 | 446 days ago | IN | 15 ETH | 0.00353755 | ||||
Take Multiple On... | 17402460 | 447 days ago | IN | 15 ETH | 0.00370252 | ||||
Take Multiple On... | 17402454 | 447 days ago | IN | 5 ETH | 0.00377013 | ||||
Take Multiple On... | 17402447 | 447 days ago | IN | 1 ETH | 0.0038983 | ||||
Cancel Multiple ... | 17399475 | 447 days ago | IN | 0 ETH | 0.00241322 | ||||
Take Multiple On... | 17393411 | 448 days ago | IN | 15 ETH | 0.00502197 | ||||
Take Multiple On... | 17386440 | 449 days ago | IN | 15 ETH | 0.00748473 | ||||
Cancel All Order... | 17383072 | 450 days ago | IN | 0 ETH | 0.00201044 | ||||
Cancel Multiple ... | 17381680 | 450 days ago | IN | 0 ETH | 0.0015243 | ||||
Take Multiple On... | 17379200 | 450 days ago | IN | 15 ETH | 0.00752668 | ||||
Take Multiple On... | 17379198 | 450 days ago | IN | 2 ETH | 0.0075738 | ||||
Cancel All Order... | 17375653 | 451 days ago | IN | 0 ETH | 0.00128296 | ||||
Take Multiple On... | 17372786 | 451 days ago | IN | 2 ETH | 0.01327027 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17645491 | 413 days ago | 8.9115 ETH | ||||
17436339 | 442 days ago | 14.7 ETH | ||||
17430607 | 443 days ago | 14.7 ETH | ||||
17422471 | 444 days ago | 14.7 ETH | ||||
17415145 | 445 days ago | 14.7 ETH | ||||
17409864 | 446 days ago | 14.7 ETH | ||||
17402460 | 447 days ago | 14.7 ETH | ||||
17402454 | 447 days ago | 4.9 ETH | ||||
17402447 | 447 days ago | 0.98 ETH | ||||
17393411 | 448 days ago | 14.7 ETH | ||||
17386440 | 449 days ago | 14.7 ETH | ||||
17379200 | 450 days ago | 14.7 ETH | ||||
17379198 | 450 days ago | 1.96 ETH | ||||
17372786 | 451 days ago | 1.96 ETH | ||||
17367008 | 452 days ago | 19.6 ETH | ||||
17360192 | 453 days ago | 19.6 ETH | ||||
17346872 | 455 days ago | 19.6 ETH | ||||
17344878 | 455 days ago | 19.6 ETH | ||||
17339129 | 456 days ago | 19.6 ETH | ||||
17329297 | 457 days ago | 19.6 ETH | ||||
17303975 | 461 days ago | 1.96 ETH | ||||
17296830 | 462 days ago | 1.96 ETH | ||||
17289575 | 463 days ago | 19.6 ETH | ||||
17279723 | 464 days ago | 19.6 ETH | ||||
17260448 | 467 days ago | 19.6 ETH |
Loading...
Loading
Contract Name:
FlowExchange
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 99999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; // external imports import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { IERC165 } from "@openzeppelin/contracts/interfaces/IERC165.sol"; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; // internal imports import { IFlowExchange } from "../interfaces/IFlowExchange.sol"; import { OrderTypes } from "../libs/OrderTypes.sol"; import { IFlowComplication } from "../interfaces/IFlowComplication.sol"; /** @title FlowExchange @author nneverlander. Twitter @nneverlander @notice The main NFT exchange contract that holds state and does asset transfers @dev This contract can be extended via 'complications' - strategies that let the exchange execute various types of orders like dutch auctions, reverse dutch auctions, floor price orders, private sales, etc. */ contract FlowExchange is IFlowExchange, ReentrancyGuard, Ownable, Pausable { /// @dev WETH address of a chain; set at deploy time to the WETH address of the chain that this contract is deployed to // solhint-disable-next-line var-name-mixedcase address public immutable WETH; /// @dev This is the address that is used to send auto sniped orders for execution on chain address public matchExecutor; /// @dev Gas cost for auto sniped orders are paid by the buyers and refunded to this contract in the form of WETH uint32 public wethTransferGasUnits = 5e4; /// @notice max weth transfer gas units uint32 public constant MAX_WETH_TRANSFER_GAS_UNITS = 2e5; /// @notice Exchange fee in basis points (250 bps = 2.5%) uint32 public protocolFeeBps = 250; /// @notice Max exchange fee in basis points (2000 bps = 20%) uint32 public constant MAX_PROTOCOL_FEE_BPS = 2000; /// @dev Used in division uint256 public constant PRECISION = 1e4; // precision for division; similar to bps /** @dev All orders should have a nonce >= to this value. Any orders with nonce value less than this are non-executable. Used for cancelling all outstanding orders. */ mapping(address => uint256) public userMinOrderNonce; /// @dev This records already executed or cancelled orders to prevent replay attacks. mapping(address => mapping(uint256 => bool)) public isUserOrderNonceExecutedOrCancelled; ///@notice admin events event ETHWithdrawn(address indexed destination, uint256 amount); event ERC20Withdrawn( address indexed destination, address indexed currency, uint256 amount ); event MatchExecutorUpdated(address indexed matchExecutor); event WethTransferGasUnitsUpdated(uint32 wethTransferGasUnits); event ProtocolFeeUpdated(uint32 protocolFee); /// @notice user events event MatchOrderFulfilled( bytes32 sellOrderHash, bytes32 buyOrderHash, address indexed seller, address indexed buyer, address complication, // address of the complication that defines the execution address indexed currency, // token address of the transacting currency uint256 amount, // amount spent on the order OrderTypes.OrderItem[] nfts // items in the order ); event TakeOrderFulfilled( bytes32 orderHash, address indexed seller, address indexed buyer, address complication, // address of the complication that defines the execution address indexed currency, // token address of the transacting currency uint256 amount, // amount spent on the order OrderTypes.OrderItem[] nfts // items in the order ); event CancelAllOrders(address indexed user, uint256 newMinNonce); event CancelMultipleOrders(address indexed user, uint256[] orderNonces); /** @param _weth address of a chain; set at deploy time to the WETH address of the chain that this contract is deployed to @param _matchExecutor address of the match executor used by match* functions to auto execute orders */ constructor(address _weth, address _matchExecutor) { WETH = _weth; matchExecutor = _matchExecutor; } // solhint-disable-next-line no-empty-blocks receive() external payable {} // =================================================== USER FUNCTIONS ======================================================= /** @notice Matches orders one to one where each order has 1 NFT. Example: Match 1 specific NFT buy with one specific NFT sell. @dev Can execute orders in batches for gas efficiency. Can only be called by the match executor. Buyers refund gas cost incurred by the match executor to this contract. Checks whether the given complication can execute the match. @param makerOrders1 Maker order 1 @param makerOrders2 Maker order 2 */ function matchOneToOneOrders( OrderTypes.MakerOrder[] calldata makerOrders1, OrderTypes.MakerOrder[] calldata makerOrders2 ) external override nonReentrant whenNotPaused { uint256 startGas = gasleft(); uint256 numMakerOrders = makerOrders1.length; require(msg.sender == matchExecutor, "only match executor"); require(numMakerOrders == makerOrders2.length, "mismatched lengths"); // the below 3 variables are copied locally once to save on gas // an SLOAD costs minimum 100 gas where an MLOAD only costs minimum 3 gas // since these values won't change during function execution, we can save on gas by copying them locally once // instead of SLOADing once for each loop iteration uint32 _protocolFeeBps = protocolFeeBps; uint32 _wethTransferGasUnits = wethTransferGasUnits; address weth = WETH; uint256 sharedCost = (startGas - gasleft()) / numMakerOrders; for (uint256 i; i < numMakerOrders; ) { uint256 startGasPerOrder = gasleft() + sharedCost; _matchOneToOneOrders( makerOrders1[i], makerOrders2[i], startGasPerOrder, _protocolFeeBps, _wethTransferGasUnits, weth ); unchecked { ++i; } } } /** @notice Matches one order to many orders. Example: A buy order with 5 specific NFTs with 5 sell orders with those specific NFTs. @dev Can only be called by the match executor. Buyers refund gas cost incurred by the match executor to this contract. Checks whether the given complication can execute the match. @param makerOrder The one order to match @param manyMakerOrders Array of multiple orders to match the one order against */ function matchOneToManyOrders( OrderTypes.MakerOrder calldata makerOrder, OrderTypes.MakerOrder[] calldata manyMakerOrders ) external override nonReentrant whenNotPaused { uint256 startGas = gasleft(); require(msg.sender == matchExecutor, "only match executor"); (bool canExec, bytes32 makerOrderHash) = IFlowComplication( makerOrder.execParams[0] ).canExecMatchOneToMany(makerOrder, manyMakerOrders); require(canExec, "cannot execute"); bool makerOrderExpired = isUserOrderNonceExecutedOrCancelled[ makerOrder.signer ][makerOrder.constraints[5]] || makerOrder.constraints[5] < userMinOrderNonce[makerOrder.signer]; require(!makerOrderExpired, "maker order expired"); uint256 ordersLength = manyMakerOrders.length; // the below 3 variables are copied locally once to save on gas // an SLOAD costs minimum 100 gas where an MLOAD only costs minimum 3 gas // since these values won't change during function execution, we can save on gas by copying them locally once // instead of SLOADing once for each loop iteration uint32 _protocolFeeBps = protocolFeeBps; uint32 _wethTransferGasUnits = wethTransferGasUnits; address weth = WETH; if (makerOrder.isSellOrder) { // 20000 for the SSTORE op that updates maker nonce status from zero to a non zero status uint256 sharedCost = (startGas + 20000 - gasleft()) / ordersLength; for (uint256 i; i < ordersLength; ) { uint256 startGasPerOrder = gasleft() + sharedCost; _matchOneMakerSellToManyMakerBuys( makerOrderHash, makerOrder, manyMakerOrders[i], startGasPerOrder, _protocolFeeBps, _wethTransferGasUnits, weth ); unchecked { ++i; } } isUserOrderNonceExecutedOrCancelled[makerOrder.signer][ makerOrder.constraints[5] ] = true; } else { // check gas price constraint if (makerOrder.constraints[6] > 0) { require( tx.gasprice <= makerOrder.constraints[6], "gas price too high" ); } uint256 protocolFee; for (uint256 i; i < ordersLength; ) { protocolFee = protocolFee + _matchOneMakerBuyToManyMakerSells( makerOrderHash, manyMakerOrders[i], makerOrder, _protocolFeeBps ); unchecked { ++i; } } isUserOrderNonceExecutedOrCancelled[makerOrder.signer][ makerOrder.constraints[5] ] = true; uint256 gasCost = (startGas - gasleft() + _wethTransferGasUnits) * tx.gasprice; // if the execution currency is weth, we can send the protocol fee and gas cost in one transfer to save gas // else we need to send the protocol fee separately in the execution currency // since the buyer is common across many sell orders, this part can be executed outside the above for loop // in contrast to the case where if the one order is a sell order, we need to do this in each for loop if (makerOrder.execParams[1] == weth) { IERC20(weth).transferFrom( makerOrder.signer, address(this), protocolFee + gasCost ); } else { IERC20(makerOrder.execParams[1]).transferFrom( makerOrder.signer, address(this), protocolFee ); IERC20(weth).transferFrom( makerOrder.signer, address(this), gasCost ); } } } /** @notice Matches orders one to one where no specific NFTs are specified. Example: A collection wide buy order with any 2 NFTs with a sell order that has any 2 NFTs from that collection. @dev Can only be called by the match executor. Buyers refund gas cost incurred by the match executor to this contract. Checks whether the given complication can execute the match. The constructs param specifies the actual NFTs that will be executed since buys and sells need not specify actual NFTs - only a higher level intent. @param sells User signed sell orders @param buys User signed buy orders @param constructs Intersection of the NFTs in the sells and buys. Constructed by an off chain matching engine. */ function matchOrders( OrderTypes.MakerOrder[] calldata sells, OrderTypes.MakerOrder[] calldata buys, OrderTypes.OrderItem[][] calldata constructs ) external override nonReentrant whenNotPaused { uint256 startGas = gasleft(); uint256 numSells = sells.length; require(msg.sender == matchExecutor, "only match executor"); require(numSells == buys.length, "mismatched lengths"); require(numSells == constructs.length, "mismatched lengths"); // the below 3 variables are copied locally once to save on gas // an SLOAD costs minimum 100 gas where an MLOAD only costs minimum 3 gas // since these values won't change during function execution, we can save on gas by copying them locally once // instead of SLOADing once for each loop iteration uint32 _protocolFeeBps = protocolFeeBps; uint32 _wethTransferGasUnits = wethTransferGasUnits; address weth = WETH; uint256 sharedCost = (startGas - gasleft()) / numSells; for (uint256 i; i < numSells; ) { uint256 startGasPerOrder = gasleft() + sharedCost; _matchOrders( sells[i], buys[i], constructs[i], startGasPerOrder, _protocolFeeBps, _wethTransferGasUnits, weth ); unchecked { ++i; } } } /** @notice Batch buys or sells orders with specific `1` NFTs. Transaction initiated by an end user. @param makerOrders The orders to fulfill */ function takeMultipleOneOrders( OrderTypes.MakerOrder[] calldata makerOrders ) external payable override nonReentrant whenNotPaused { uint256 totalPrice; address currency = makerOrders[0].execParams[1]; if (currency != address(0)) { require(msg.value == 0, "msg has value"); } bool isMakerSeller = makerOrders[0].isSellOrder; if (!isMakerSeller) { require(currency != address(0), "offers only in ERC20"); } for (uint256 i; i < makerOrders.length; ) { require( currency == makerOrders[i].execParams[1], "cannot mix currencies" ); require( isMakerSeller == makerOrders[i].isSellOrder, "cannot mix order sides" ); require(msg.sender != makerOrders[i].signer, "no dogfooding"); bool orderExpired = isUserOrderNonceExecutedOrCancelled[ makerOrders[i].signer ][makerOrders[i].constraints[5]] || makerOrders[i].constraints[5] < userMinOrderNonce[makerOrders[i].signer]; require(!orderExpired, "order expired"); (bool canExec, bytes32 makerOrderHash) = IFlowComplication( makerOrders[i].execParams[0] ).canExecTakeOneOrder(makerOrders[i]); require(canExec, "cannot execute"); uint256 execPrice = _getCurrentPrice(makerOrders[i]); totalPrice = totalPrice + execPrice; _execTakeOneOrder( makerOrderHash, makerOrders[i], isMakerSeller, execPrice ); unchecked { ++i; } } // check to ensure that for ETH orders, enough ETH is sent // for non ETH orders, IERC20 transferFrom will throw error if insufficient amount is sent if (currency == address(0)) { require(msg.value >= totalPrice, "insufficient total price"); if (msg.value > totalPrice) { (bool sent, ) = msg.sender.call{ value: msg.value - totalPrice }(""); require(sent, "failed returning excess ETH"); } } } /** @notice Batch buys or sells orders where maker orders can have unspecified NFTs. Transaction initiated by an end user. @param makerOrders The orders to fulfill @param takerNfts The specific NFTs that the taker is willing to take that intersect with the higher level intent of the maker Example: If a makerOrder is 'buy any one of these 2 specific NFTs', then the takerNfts would be 'this one specific NFT'. */ function takeOrders( OrderTypes.MakerOrder[] calldata makerOrders, OrderTypes.OrderItem[][] calldata takerNfts ) external payable override nonReentrant whenNotPaused { require(makerOrders.length == takerNfts.length, "mismatched lengths"); uint256 totalPrice; address currency = makerOrders[0].execParams[1]; if (currency != address(0)) { require(msg.value == 0, "msg has value"); } bool isMakerSeller = makerOrders[0].isSellOrder; if (!isMakerSeller) { require(currency != address(0), "offers only in ERC20"); } for (uint256 i; i < makerOrders.length; ) { require( currency == makerOrders[i].execParams[1], "cannot mix currencies" ); require( isMakerSeller == makerOrders[i].isSellOrder, "cannot mix order sides" ); require(msg.sender != makerOrders[i].signer, "no dogfooding"); uint256 execPrice = _getCurrentPrice(makerOrders[i]); totalPrice = totalPrice + execPrice; _takeOrders(makerOrders[i], takerNfts[i], execPrice); unchecked { ++i; } } // check to ensure that for ETH orders, enough ETH is sent // for non ETH orders, IERC20 transferFrom will throw error if insufficient amount is sent if (currency == address(0)) { require(msg.value >= totalPrice, "insufficient total price"); if (msg.value > totalPrice) { (bool sent, ) = msg.sender.call{ value: msg.value - totalPrice }(""); require(sent, "failed returning excess ETH"); } } } /** @notice Helper function (non exchange related) to send multiple NFTs in one go. Only ERC721 @param to the receiver address @param items the specific NFTs to transfer */ function transferMultipleNFTs( address to, OrderTypes.OrderItem[] calldata items ) external override nonReentrant whenNotPaused { require(to != address(0), "invalid address"); _transferMultipleNFTs(msg.sender, to, items); } /** * @notice Cancel all pending orders * @param minNonce minimum user nonce */ function cancelAllOrders(uint256 minNonce) external override { require(minNonce > userMinOrderNonce[msg.sender], "nonce too low"); require(minNonce < userMinOrderNonce[msg.sender] + 1e5, "too many"); userMinOrderNonce[msg.sender] = minNonce; emit CancelAllOrders(msg.sender, minNonce); } /** * @notice Cancel multiple orders * @param orderNonces array of order nonces */ function cancelMultipleOrders( uint256[] calldata orderNonces ) external override { require(orderNonces.length != 0, "cannot be empty"); for (uint256 i; i < orderNonces.length; ) { require( orderNonces[i] >= userMinOrderNonce[msg.sender], "nonce too low" ); require( !isUserOrderNonceExecutedOrCancelled[msg.sender][ orderNonces[i] ], "nonce already exec or cancelled" ); isUserOrderNonceExecutedOrCancelled[msg.sender][ orderNonces[i] ] = true; unchecked { ++i; } } emit CancelMultipleOrders(msg.sender, orderNonces); } // ====================================================== VIEW FUNCTIONS ====================================================== /** * @notice Check whether user order nonce is executed or cancelled * @param user address of user * @param nonce nonce of the order * @return whether nonce is valid */ function isNonceValid( address user, uint256 nonce ) external view override returns (bool) { return !isUserOrderNonceExecutedOrCancelled[user][nonce] && nonce >= userMinOrderNonce[user]; } // ====================================================== INTERNAL FUNCTIONS ================================================ /** * @notice Internal helper function to match orders one to one * @param makerOrder1 first order * @param makerOrder2 second maker order * @param startGasPerOrder start gas when this order started execution * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _matchOneToOneOrders( OrderTypes.MakerOrder calldata makerOrder1, OrderTypes.MakerOrder calldata makerOrder2, uint256 startGasPerOrder, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { OrderTypes.MakerOrder calldata sell; OrderTypes.MakerOrder calldata buy; if (makerOrder1.isSellOrder) { sell = makerOrder1; buy = makerOrder2; } else { sell = makerOrder2; buy = makerOrder1; } require( sell.execParams[0] == buy.execParams[0], "complication mismatch" ); ( bool canExec, bytes32 sellOrderHash, bytes32 buyOrderHash, uint256 execPrice ) = IFlowComplication(sell.execParams[0]).canExecMatchOneToOne( sell, buy ); require(canExec, "cannot execute"); bool sellOrderExpired = isUserOrderNonceExecutedOrCancelled[ sell.signer ][sell.constraints[5]] || sell.constraints[5] < userMinOrderNonce[sell.signer]; require(!sellOrderExpired, "sell order expired"); bool buyOrderExpired = isUserOrderNonceExecutedOrCancelled[buy.signer][ buy.constraints[5] ] || buy.constraints[5] < userMinOrderNonce[buy.signer]; require(!buyOrderExpired, "buy order expired"); _execMatchOneToOneOrders( sellOrderHash, buyOrderHash, sell, buy, startGasPerOrder, execPrice, _protocolFeeBps, _wethTransferGasUnits, weth ); } /** * @notice Internal helper function to match one maker sell order to many maker buys * @param sellOrderHash sell order hash * @param sell the sell order * @param buy the buy order * @param startGasPerOrder start gas when this order started execution * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _matchOneMakerSellToManyMakerBuys( bytes32 sellOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, uint256 startGasPerOrder, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { require( sell.execParams[0] == buy.execParams[0], "complication mismatch" ); (bool verified, bytes32 buyOrderHash) = IFlowComplication( sell.execParams[0] ).verifyMatchOneToManyOrders(false, sell, buy); require(verified, "order not verified"); bool buyOrderExpired = isUserOrderNonceExecutedOrCancelled[buy.signer][ buy.constraints[5] ] || buy.constraints[5] < userMinOrderNonce[buy.signer]; require(!buyOrderExpired, "buy order expired"); _execMatchOneMakerSellToManyMakerBuys( sellOrderHash, buyOrderHash, sell, buy, startGasPerOrder, _getCurrentPrice(buy), _protocolFeeBps, _wethTransferGasUnits, weth ); } /** * @notice Internal helper function to match one maker buy order to many maker sells * @param buyOrderHash buy order hash * @param sell the sell order * @param buy the buy order * @param _protocolFeeBps exchange fee */ function _matchOneMakerBuyToManyMakerSells( bytes32 buyOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, uint32 _protocolFeeBps ) internal returns (uint256) { require( sell.execParams[0] == buy.execParams[0], "complication mismatch" ); (bool verified, bytes32 sellOrderHash) = IFlowComplication( sell.execParams[0] ).verifyMatchOneToManyOrders(true, sell, buy); require(verified, "order not verified"); bool sellOrderExpired = isUserOrderNonceExecutedOrCancelled[ sell.signer ][sell.constraints[5]] || sell.constraints[5] < userMinOrderNonce[sell.signer]; require(!sellOrderExpired, "sell order expired"); return _execMatchOneMakerBuyToManyMakerSells( sellOrderHash, buyOrderHash, sell, buy, _getCurrentPrice(sell), _protocolFeeBps ); } /** * @notice Internal helper function to match orders specified via a higher level intent * @param sell the sell order * @param buy the buy order * @param constructedNfts the nfts constructed by an off chain matching that are guaranteed to intersect with the user specified signed intents (orders) * @param startGasPerOrder start gas when this order started execution * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _matchOrders( OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, OrderTypes.OrderItem[] calldata constructedNfts, uint256 startGasPerOrder, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { require( sell.execParams[0] == buy.execParams[0], "complication mismatch" ); ( bool executionValid, bytes32 sellOrderHash, bytes32 buyOrderHash, uint256 execPrice ) = IFlowComplication(sell.execParams[0]).canExecMatchOrder( sell, buy, constructedNfts ); require(executionValid, "cannot execute"); bool sellOrderExpired = isUserOrderNonceExecutedOrCancelled[ sell.signer ][sell.constraints[5]] || sell.constraints[5] < userMinOrderNonce[sell.signer]; require(!sellOrderExpired, "sell order expired"); bool buyOrderExpired = isUserOrderNonceExecutedOrCancelled[buy.signer][ buy.constraints[5] ] || buy.constraints[5] < userMinOrderNonce[buy.signer]; require(!buyOrderExpired, "buy order expired"); _execMatchOrders( sellOrderHash, buyOrderHash, sell, buy, constructedNfts, startGasPerOrder, execPrice, _protocolFeeBps, _wethTransferGasUnits, weth ); } /** * @notice Internal helper function that executes contract state changes and does asset transfers for match one to one orders * @dev Updates order nonce states, does asset transfers and emits events. Also refunds gas expenditure to the contract * @param sellOrderHash sell order hash * @param buyOrderHash buy order hash * @param sell the sell order * @param buy the buy order * @param startGasPerOrder start gas when this order started execution * @param execPrice execution price * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _execMatchOneToOneOrders( bytes32 sellOrderHash, bytes32 buyOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, uint256 startGasPerOrder, uint256 execPrice, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { if (buy.constraints[6] > 0) { require(tx.gasprice <= buy.constraints[6], "gas price too high"); } isUserOrderNonceExecutedOrCancelled[sell.signer][ sell.constraints[5] ] = true; isUserOrderNonceExecutedOrCancelled[buy.signer][ buy.constraints[5] ] = true; uint256 protocolFee = (_protocolFeeBps * execPrice) / PRECISION; uint256 remainingAmount = execPrice - protocolFee; _transferMultipleNFTs(sell.signer, buy.signer, sell.nfts); // transfer final amount (post-fees) to seller IERC20(buy.execParams[1]).transferFrom( buy.signer, sell.signer, remainingAmount ); _emitMatchEvent( sellOrderHash, buyOrderHash, sell.signer, buy.signer, buy.execParams[0], buy.execParams[1], execPrice, buy.nfts ); uint256 gasCost = (startGasPerOrder - gasleft() + _wethTransferGasUnits) * tx.gasprice; // if the execution currency is weth, we can send the protocol fee and gas cost in one transfer to save gas // else we need to send the protocol fee separately in the execution currency if (buy.execParams[1] == weth) { IERC20(weth).transferFrom( buy.signer, address(this), protocolFee + gasCost ); } else { IERC20(buy.execParams[1]).transferFrom( buy.signer, address(this), protocolFee ); IERC20(weth).transferFrom(buy.signer, address(this), gasCost); } } /** * @notice Internal helper function that executes contract state changes and does asset transfers for match one sell to many buy orders * @dev Updates order nonce states, does asset transfers and emits events. Also refunds gas expenditure to the contract * @param sellOrderHash sell order hash * @param buyOrderHash buy order hash * @param sell the sell order * @param buy the buy order * @param startGasPerOrder start gas when this order started execution * @param execPrice execution price * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _execMatchOneMakerSellToManyMakerBuys( bytes32 sellOrderHash, bytes32 buyOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, uint256 startGasPerOrder, uint256 execPrice, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { if (buy.constraints[6] > 0) { require(tx.gasprice <= buy.constraints[6], "gas price too high"); } isUserOrderNonceExecutedOrCancelled[buy.signer][ buy.constraints[5] ] = true; uint256 protocolFee = (_protocolFeeBps * execPrice) / PRECISION; uint256 remainingAmount = execPrice - protocolFee; _execMatchOneToManyOrders( sell.signer, buy.signer, buy.nfts, buy.execParams[1], remainingAmount ); _emitMatchEvent( sellOrderHash, buyOrderHash, sell.signer, buy.signer, buy.execParams[0], buy.execParams[1], execPrice, buy.nfts ); uint256 gasCost = (startGasPerOrder - gasleft() + _wethTransferGasUnits) * tx.gasprice; // if the execution currency is weth, we can send the protocol fee and gas cost in one transfer to save gas // else we need to send the protocol fee separately in the execution currency if (buy.execParams[1] == weth) { IERC20(weth).transferFrom( buy.signer, address(this), protocolFee + gasCost ); } else { IERC20(buy.execParams[1]).transferFrom( buy.signer, address(this), protocolFee ); IERC20(weth).transferFrom(buy.signer, address(this), gasCost); } } /** * @notice Internal helper function that executes contract state changes and does asset transfers for match one buy to many sell orders * @dev Updates order nonce states, does asset transfers and emits events. Gas expenditure refund is done in the caller since it does not need to be done in a loop * @param sellOrderHash sell order hash * @param buyOrderHash buy order hash * @param sell the sell order * @param buy the buy order * @param execPrice execution price * @param _protocolFeeBps exchange fee * @return the protocolFee so that the buyer can pay the protocol fee and gas cost in one go */ function _execMatchOneMakerBuyToManyMakerSells( bytes32 sellOrderHash, bytes32 buyOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, uint256 execPrice, uint32 _protocolFeeBps ) internal returns (uint256) { isUserOrderNonceExecutedOrCancelled[sell.signer][ sell.constraints[5] ] = true; uint256 protocolFee = (_protocolFeeBps * execPrice) / PRECISION; uint256 remainingAmount = execPrice - protocolFee; _execMatchOneToManyOrders( sell.signer, buy.signer, sell.nfts, buy.execParams[1], remainingAmount ); _emitMatchEvent( sellOrderHash, buyOrderHash, sell.signer, buy.signer, buy.execParams[0], buy.execParams[1], execPrice, sell.nfts ); return protocolFee; } /// @dev This helper purely exists to help reduce contract size a bit and avoid any stack too deep errors function _execMatchOneToManyOrders( address seller, address buyer, OrderTypes.OrderItem[] calldata constructedNfts, address currency, uint256 amount ) internal { _transferMultipleNFTs(seller, buyer, constructedNfts); // transfer final amount (post-fees) to seller IERC20(currency).transferFrom(buyer, seller, amount); } /** * @notice Internal helper function that executes contract state changes and does asset transfers for match orders * @dev Updates order nonce states, does asset transfers, emits events and does gas refunds * @param sellOrderHash sell order hash * @param buyOrderHash buy order hash * @param sell the sell order * @param buy the buy order * @param constructedNfts the constructed nfts * @param startGasPerOrder gas when this order started execution * @param execPrice execution price * @param _protocolFeeBps exchange fee * @param _wethTransferGasUnits gas units that a WETH transfer will use * @param weth WETH address */ function _execMatchOrders( bytes32 sellOrderHash, bytes32 buyOrderHash, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, OrderTypes.OrderItem[] calldata constructedNfts, uint256 startGasPerOrder, uint256 execPrice, uint32 _protocolFeeBps, uint32 _wethTransferGasUnits, address weth ) internal { // checks if maker specified a max gas price if (buy.constraints[6] > 0) { require(tx.gasprice <= buy.constraints[6], "gas price too high"); } uint256 protocolFee = (_protocolFeeBps * execPrice) / PRECISION; uint256 remainingAmount = execPrice - protocolFee; _execMatchOrder( sell.signer, buy.signer, sell.constraints[5], buy.constraints[5], constructedNfts, buy.execParams[1], remainingAmount ); _emitMatchEvent( sellOrderHash, buyOrderHash, sell.signer, buy.signer, buy.execParams[0], buy.execParams[1], execPrice, constructedNfts ); uint256 gasCost = (startGasPerOrder - gasleft() + _wethTransferGasUnits) * tx.gasprice; // if the execution currency is weth, we can send the protocol fee and gas cost in one transfer to save gas // else we need to send the protocol fee separately in the execution currency if (buy.execParams[1] == weth) { IERC20(weth).transferFrom( buy.signer, address(this), protocolFee + gasCost ); } else { IERC20(buy.execParams[1]).transferFrom( buy.signer, address(this), protocolFee ); IERC20(weth).transferFrom(buy.signer, address(this), gasCost); } } /// @dev This helper purely exists to help reduce contract size a bit and avoid any stack too deep errors function _execMatchOrder( address seller, address buyer, uint256 sellNonce, uint256 buyNonce, OrderTypes.OrderItem[] calldata constructedNfts, address currency, uint256 amount ) internal { // Update order execution status to true (prevents replay) isUserOrderNonceExecutedOrCancelled[seller][sellNonce] = true; isUserOrderNonceExecutedOrCancelled[buyer][buyNonce] = true; _transferMultipleNFTs(seller, buyer, constructedNfts); // transfer final amount (post-fees) to seller IERC20(currency).transferFrom(buyer, seller, amount); } /// @notice Internal helper function to emit match events function _emitMatchEvent( bytes32 sellOrderHash, bytes32 buyOrderHash, address seller, address buyer, address complication, address currency, uint256 amount, OrderTypes.OrderItem[] calldata nfts ) internal { emit MatchOrderFulfilled( sellOrderHash, buyOrderHash, seller, buyer, complication, currency, amount, nfts ); } /** * @notice Internal helper function that executes contract state changes and does asset transfers for simple take orders * @dev Updates order nonce state, does asset transfers and emits events * @param makerOrderHash maker order hash * @param makerOrder the maker order * @param isMakerSeller is the maker order a sell order * @param execPrice execution price */ function _execTakeOneOrder( bytes32 makerOrderHash, OrderTypes.MakerOrder calldata makerOrder, bool isMakerSeller, uint256 execPrice ) internal { isUserOrderNonceExecutedOrCancelled[makerOrder.signer][ makerOrder.constraints[5] ] = true; if (isMakerSeller) { _transferNFTsAndFees( makerOrder.signer, msg.sender, makerOrder.nfts, makerOrder.execParams[1], execPrice ); _emitTakerEvent( makerOrderHash, makerOrder.signer, msg.sender, makerOrder, execPrice, makerOrder.nfts ); } else { _transferNFTsAndFees( msg.sender, makerOrder.signer, makerOrder.nfts, makerOrder.execParams[1], execPrice ); _emitTakerEvent( makerOrderHash, msg.sender, makerOrder.signer, makerOrder, execPrice, makerOrder.nfts ); } } /** * @notice Internal helper function to take orders * @dev verifies whether order can be executed * @param makerOrder the maker order * @param takerItems nfts to be transferred * @param execPrice execution price */ function _takeOrders( OrderTypes.MakerOrder calldata makerOrder, OrderTypes.OrderItem[] calldata takerItems, uint256 execPrice ) internal { bool orderExpired = isUserOrderNonceExecutedOrCancelled[ makerOrder.signer ][makerOrder.constraints[5]] || makerOrder.constraints[5] < userMinOrderNonce[makerOrder.signer]; require(!orderExpired, "order expired"); (bool executionValid, bytes32 makerOrderHash) = IFlowComplication( makerOrder.execParams[0] ).canExecTakeOrder(makerOrder, takerItems); require(executionValid, "cannot execute"); _execTakeOrders( makerOrderHash, makerOrder, takerItems, makerOrder.isSellOrder, execPrice ); } /** * @notice Internal helper function that executes contract state changes and does asset transfers for take orders specifying a higher level intent * @dev Updates order nonce state, does asset transfers and emits events * @param makerOrderHash maker order hash * @param makerOrder the maker order * @param takerItems nfts to be transferred * @param isMakerSeller is the maker order a sell order * @param execPrice execution price */ function _execTakeOrders( bytes32 makerOrderHash, OrderTypes.MakerOrder calldata makerOrder, OrderTypes.OrderItem[] calldata takerItems, bool isMakerSeller, uint256 execPrice ) internal { isUserOrderNonceExecutedOrCancelled[makerOrder.signer][ makerOrder.constraints[5] ] = true; if (isMakerSeller) { _transferNFTsAndFees( makerOrder.signer, msg.sender, takerItems, makerOrder.execParams[1], execPrice ); _emitTakerEvent( makerOrderHash, makerOrder.signer, msg.sender, makerOrder, execPrice, takerItems ); } else { _transferNFTsAndFees( msg.sender, makerOrder.signer, takerItems, makerOrder.execParams[1], execPrice ); _emitTakerEvent( makerOrderHash, msg.sender, makerOrder.signer, makerOrder, execPrice, takerItems ); } } /// @notice Internal helper function to emit events for take orders function _emitTakerEvent( bytes32 orderHash, address seller, address buyer, OrderTypes.MakerOrder calldata order, uint256 amount, OrderTypes.OrderItem[] calldata nfts ) internal { emit TakeOrderFulfilled( orderHash, seller, buyer, order.execParams[0], order.execParams[1], amount, nfts ); } /** * @notice Transfers NFTs and fees * @param seller the seller * @param buyer the buyer * @param nfts nfts to transfer * @param currency currency of the transfer * @param amount amount to transfer */ function _transferNFTsAndFees( address seller, address buyer, OrderTypes.OrderItem[] calldata nfts, address currency, uint256 amount ) internal { // transfer NFTs _transferMultipleNFTs(seller, buyer, nfts); // transfer fees _transferFees(seller, buyer, currency, amount); } /** * @notice Transfers multiple NFTs in a loop * @param from the from address * @param to the to address * @param nfts nfts to transfer */ function _transferMultipleNFTs( address from, address to, OrderTypes.OrderItem[] calldata nfts ) internal { for (uint256 i; i < nfts.length; ) { _transferNFTs(from, to, nfts[i]); unchecked { ++i; } } } /** * @notice Transfer NFTs * @dev Only supports ERC721, no ERC1155 or NFTs that conform to both ERC721 and ERC1155 * @param from address of the sender * @param to address of the recipient * @param item item to transfer */ function _transferNFTs( address from, address to, OrderTypes.OrderItem calldata item ) internal { require( IERC165(item.collection).supportsInterface(0x80ac58cd) && !IERC165(item.collection).supportsInterface(0xd9b67a26), "only erc721" ); _transferERC721s(from, to, item); } /** * @notice Transfer ERC721s * @dev requires approvals to be set * @param from address of the sender * @param to address of the recipient * @param item item to transfer */ function _transferERC721s( address from, address to, OrderTypes.OrderItem calldata item ) internal { for (uint256 i; i < item.tokens.length; ) { IERC721(item.collection).transferFrom( from, to, item.tokens[i].tokenId ); unchecked { ++i; } } } /** * @notice Transfer fees. Fees are always transferred from buyer to the seller and the exchange although seller is the one that actually 'pays' the fees * @dev if the currency ETH, no additional transfer is needed to pay exchange fees since reqd functions are 'payable' * @param seller the seller * @param buyer the buyer * @param currency currency of the transfer * @param amount amount to transfer */ function _transferFees( address seller, address buyer, address currency, uint256 amount ) internal { // protocol fee uint256 protocolFee = (protocolFeeBps * amount) / PRECISION; uint256 remainingAmount = amount - protocolFee; // ETH if (currency == address(0)) { // transfer amount to seller (bool sent, ) = seller.call{ value: remainingAmount }(""); require(sent, "failed to send ether to seller"); } else { // transfer final amount (post-fees) to seller IERC20(currency).transferFrom(buyer, seller, remainingAmount); // send fee to protocol IERC20(currency).transferFrom(buyer, address(this), protocolFee); } } // =================================================== UTILS ================================================================== /// @dev Gets current order price for orders that vary in price over time (dutch and reverse dutch auctions) function _getCurrentPrice( OrderTypes.MakerOrder calldata order ) internal view returns (uint256) { (uint256 startPrice, uint256 endPrice) = ( order.constraints[1], order.constraints[2] ); if (startPrice == endPrice) { return startPrice; } uint256 duration = order.constraints[4] - order.constraints[3]; if (duration == 0) { return startPrice; } // solhint-disable-next-line not-rely-on-time uint256 elapsedTime = block.timestamp - order.constraints[3]; unchecked { uint256 portionBps = elapsedTime > duration ? PRECISION : ((elapsedTime * PRECISION) / duration); if (startPrice > endPrice) { uint256 priceDiff = ((startPrice - endPrice) * portionBps) / PRECISION; return startPrice - priceDiff; } else { uint256 priceDiff = ((endPrice - startPrice) * portionBps) / PRECISION; return startPrice + priceDiff; } } } // ====================================================== ADMIN FUNCTIONS ====================================================== /// @dev Used for withdrawing exchange fees paid to the contract in ETH function withdrawETH(address destination) external onlyOwner { uint256 amount = address(this).balance; (bool sent, ) = destination.call{ value: amount }(""); require(sent, "failed"); emit ETHWithdrawn(destination, amount); } /// @dev Used for withdrawing exchange fees paid to the contract in ERC20 tokens function withdrawTokens( address destination, address currency, uint256 amount ) external onlyOwner { IERC20(currency).transfer(destination, amount); emit ERC20Withdrawn(destination, currency, amount); } /// @dev Updates auto snipe executor function updateMatchExecutor(address _matchExecutor) external onlyOwner { require(_matchExecutor != address(0), "match executor cannot be 0"); matchExecutor = _matchExecutor; emit MatchExecutorUpdated(_matchExecutor); } /// @dev Updates the gas units required for WETH transfers function updateWethTransferGas( uint32 _newWethTransferGasUnits ) external onlyOwner { require( _newWethTransferGasUnits <= MAX_WETH_TRANSFER_GAS_UNITS, "gas units too high" ); wethTransferGasUnits = _newWethTransferGasUnits; emit WethTransferGasUnitsUpdated(_newWethTransferGasUnits); } /// @dev Updates exchange fees function updateProtocolFee(uint32 _newProtocolFeeBps) external onlyOwner { require( _newProtocolFeeBps <= MAX_PROTOCOL_FEE_BPS, "protocol fee too high" ); protocolFeeBps = _newProtocolFeeBps; emit ProtocolFeeUpdated(_newProtocolFeeBps); } /// @dev Function to pause the contract function pause() external onlyOwner { _pause(); } /// @dev Function to unpause the contract function unpause() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // 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.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.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)); } } /** * @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 v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.14; import { OrderTypes } from "../libs/OrderTypes.sol"; /** * @title IFlowComplication * @author nneverlander. Twitter @nneverlander * @notice Complication interface that must be implemented by all complications (execution strategies) */ interface IFlowComplication { function canExecMatchOneToOne( OrderTypes.MakerOrder calldata makerOrder1, OrderTypes.MakerOrder calldata makerOrder2 ) external view returns (bool, bytes32, bytes32, uint256); function canExecMatchOneToMany( OrderTypes.MakerOrder calldata makerOrder, OrderTypes.MakerOrder[] calldata manyMakerOrders ) external view returns (bool, bytes32); function canExecMatchOrder( OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy, OrderTypes.OrderItem[] calldata constructedNfts ) external view returns (bool, bytes32, bytes32, uint256); function canExecTakeOneOrder( OrderTypes.MakerOrder calldata makerOrder ) external view returns (bool, bytes32); function canExecTakeOrder( OrderTypes.MakerOrder calldata makerOrder, OrderTypes.OrderItem[] calldata takerItems ) external view returns (bool, bytes32); function verifyMatchOneToManyOrders( bool verifySellOrder, OrderTypes.MakerOrder calldata sell, OrderTypes.MakerOrder calldata buy ) external view returns (bool, bytes32); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import { OrderTypes } from "../libs/OrderTypes.sol"; /** * @title IFlowExchange * @author Joe * @notice Exchange interface that must be implemented by the Flow Exchange */ interface IFlowExchange { function matchOneToOneOrders( OrderTypes.MakerOrder[] calldata makerOrders1, OrderTypes.MakerOrder[] calldata makerOrders2 ) external; function matchOneToManyOrders( OrderTypes.MakerOrder calldata makerOrder, OrderTypes.MakerOrder[] calldata manyMakerOrders ) external; function matchOrders( OrderTypes.MakerOrder[] calldata sells, OrderTypes.MakerOrder[] calldata buys, OrderTypes.OrderItem[][] calldata constructs ) external; function takeMultipleOneOrders( OrderTypes.MakerOrder[] calldata makerOrders ) external payable; function takeOrders( OrderTypes.MakerOrder[] calldata makerOrders, OrderTypes.OrderItem[][] calldata takerNfts ) external payable; function transferMultipleNFTs( address to, OrderTypes.OrderItem[] calldata items ) external; function cancelAllOrders(uint256 minNonce) external; function cancelMultipleOrders(uint256[] calldata orderNonces) external; function isNonceValid( address user, uint256 nonce ) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; /** * @title OrderTypes * @author nneverlander. Twitter @nneverlander * @notice This library contains the order types used by the main exchange and complications */ library OrderTypes { /// @dev the tokenId and numTokens (==1 for ERC721) struct TokenInfo { uint256 tokenId; uint256 numTokens; } /// @dev an order item is a collection address and tokens from that collection struct OrderItem { address collection; TokenInfo[] tokens; } struct MakerOrder { ///@dev is order sell or buy bool isSellOrder; ///@dev signer of the order (maker address) address signer; ///@dev Constraints array contains the order constraints. Total constraints: 7. In order: // numItems - min (for buy orders) / max (for sell orders) number of items in the order // start price in wei // end price in wei // start time in block.timestamp // end time in block.timestamp // nonce of the order // max tx.gasprice in wei that a user is willing to pay for gas // 1 for trustedExecution, 0 or non-existent for not trustedExecution uint256[] constraints; ///@dev nfts array contains order items where each item is a collection and its tokenIds OrderItem[] nfts; ///@dev address of complication for trade execution (e.g. FlowOrderBookComplication), address of the currency (e.g., WETH) address[] execParams; ///@dev additional parameters like traits for trait orders, private sale buyer for OTC orders etc bytes extraParams; ///@dev the order signature uint8 v: parameter (27 or 28), bytes32 r, bytes32 s bytes sig; } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 99999999 }, "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":"_weth","type":"address"},{"internalType":"address","name":"_matchExecutor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"newMinNonce","type":"uint256"}],"name":"CancelAllOrders","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"orderNonces","type":"uint256[]"}],"name":"CancelMultipleOrders","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"matchExecutor","type":"address"}],"name":"MatchExecutorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"sellOrderHash","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"buyOrderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"address","name":"complication","type":"address"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"indexed":false,"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"}],"name":"MatchOrderFulfilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"protocolFee","type":"uint32"}],"name":"ProtocolFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"address","name":"complication","type":"address"},{"indexed":true,"internalType":"address","name":"currency","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"indexed":false,"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"}],"name":"TakeOrderFulfilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"wethTransferGasUnits","type":"uint32"}],"name":"WethTransferGasUnitsUpdated","type":"event"},{"inputs":[],"name":"MAX_PROTOCOL_FEE_BPS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WETH_TRANSFER_GAS_UNITS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minNonce","type":"uint256"}],"name":"cancelAllOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"orderNonces","type":"uint256[]"}],"name":"cancelMultipleOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"isNonceValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isUserOrderNonceExecutedOrCancelled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"matchExecutor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder","name":"makerOrder","type":"tuple"},{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"manyMakerOrders","type":"tuple[]"}],"name":"matchOneToManyOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"makerOrders1","type":"tuple[]"},{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"makerOrders2","type":"tuple[]"}],"name":"matchOneToOneOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"sells","type":"tuple[]"},{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"buys","type":"tuple[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[][]","name":"constructs","type":"tuple[][]"}],"name":"matchOrders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeeBps","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"makerOrders","type":"tuple[]"}],"name":"takeMultipleOneOrders","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"isSellOrder","type":"bool"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256[]","name":"constraints","type":"uint256[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"nfts","type":"tuple[]"},{"internalType":"address[]","name":"execParams","type":"address[]"},{"internalType":"bytes","name":"extraParams","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"internalType":"struct OrderTypes.MakerOrder[]","name":"makerOrders","type":"tuple[]"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[][]","name":"takerNfts","type":"tuple[][]"}],"name":"takeOrders","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"address","name":"collection","type":"address"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"internalType":"struct OrderTypes.TokenInfo[]","name":"tokens","type":"tuple[]"}],"internalType":"struct OrderTypes.OrderItem[]","name":"items","type":"tuple[]"}],"name":"transferMultipleNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_matchExecutor","type":"address"}],"name":"updateMatchExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_newProtocolFeeBps","type":"uint32"}],"name":"updateProtocolFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_newWethTransferGasUnits","type":"uint32"}],"name":"updateWethTransferGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMinOrderNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wethTransferGasUnits","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0346200009b57601f6200541738819003918201601f19168301916001600160401b03831184841017620000a05780849260409485528339810103126200009b57806200005f6020620000576200006694620000b6565b9201620000b6565b90620000cb565b6040516152d090816200014782396080518181816103a501528181610a6201528181610bf001528181611bc00152611cb60152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200009b57565b600160005560015460018060a01b0390338282167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a36001600160a81b0319163360ff60a01b191617600155600280546080939093526001600160e01b0319909216921691909117640fa0000c3560a41b17905556fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80630df4239c1461025f578063183f17c41461025657806331e27e271461024d57806335659fb8146102445780633f4ba83a1461023b5780634266581e146102325780635c975abb146102295780635e35359e1461022057806363f3c03414610217578063690d83201461020e5780636d947e4b14610205578063715018a6146101fc578063723d9836146101f357806378759e13146101ea5780638456cb59146101e15780638aff5573146101d85780638ca793b2146101cf5780638da5cb5b146101c657806398011ac8146101bd5780639d9a0cef146101b4578063aaf5eb68146101ab578063ad5c4648146101a2578063bcb47ece14610199578063bd11257c14610190578063bd545f5314610187578063cb97a8101461017e578063d19b6da314610175578063ed5fd5751461016c5763f2fde38b0361000e5761016761218b565b61000e565b5061016761214e565b5061016761202d565b50610167611f26565b50610167611dcc565b50610167611d2d565b50610167611cda565b50610167611c6a565b50610167611c2e565b50610167611b3b565b50610167611a0f565b506101676119bc565b5061016761189f565b5061016761177a565b50610167611671565b506101676113c3565b5061016761119e565b5061016761108b565b5061016761104f565b50610167610f46565b50610167610862565b5061016761072d565b506101676106e8565b5061016761067e565b5061016761056f565b50610167610529565b506101676104ac565b5061016761043b565b5061016761029e565b9181601f840112156102995782359167ffffffffffffffff8311610299576020808501948460051b01011161029957565b600080fd5b50346102995760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995767ffffffffffffffff600435818111610299576102ef903690600401610268565b6024929192358281116102995761030a903690600401610268565b9260443590811161029957610323903690600401610268565b93909161033560026000541415612353565b600260005560019561034e60ff885460a01c16156123b8565b5a936002549261037573ffffffffffffffffffffffffffffffffffffffff8516331461241d565b610380858814612482565b61038b888814612482565b63ffffffff808560c01c169460a01c16946103d1886103cc7f0000000000000000000000000000000000000000000000000000000000000000995a90612517565b61252e565b9060005b8981106103e6576100196001600055565b8061042a8a8a8f948f8f8a6104228f948f948f94828f8f908261041c94610410610416935a6125a2565b9b612625565b96612625565b94612e10565b929091613af9565b016103d5565b600091031261029957565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602063ffffffff60025460a01c16604051908152f35b73ffffffffffffffffffffffffffffffffffffffff81160361029957565b35906104aa82610481565b565b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995773ffffffffffffffffffffffffffffffffffffffff6004356104fd81610481565b1660005260046020526040600020602435600052602052602060ff604060002054166040519015158152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602063ffffffff60025460c01c16604051908152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576001546105c33373ffffffffffffffffffffffffffffffffffffffff83161461227f565b60ff8160a01c1615610620577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff166001557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995773ffffffffffffffffffffffffffffffffffffffff6004356106cf81610481565b1660005260036020526020604060002054604051908152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060ff60015460a01c166040519015158152f35b50346102995760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760043561076981610481565b6024359061077682610481565b7fbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b102536261082260443573ffffffffffffffffffffffffffffffffffffffff80956107c38260015416331461227f565b1694604051947fa9059cbb000000000000000000000000000000000000000000000000000000008652169384600482015281602482015260208160448160008a5af18015610855575b610827575b506040519081529081906020820190565b0390a3005b6108479060203d811161084e575b61083f81836127b6565b810190612dfb565b5038610811565b503d610835565b61085d612c78565b61080c565b5034610299577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc604081360112610299576004359067ffffffffffffffff908183116102995760e090833603011261029957602435908111610299576108cc903690600401610268565b91906108dd60026000541415612353565b60026000556108f460ff60015460a01c16156123b8565b5a9260025461091a73ffffffffffffffffffffffffffffffffffffffff8216331461241d565b61095a61094161094161093c6109366084890189600401612673565b906126c7565b61275b565b73ffffffffffffffffffffffffffffffffffffffff1690565b946040805180977ff1332a910000000000000000000000000000000000000000000000000000000082528180610998888a8c60040160048501612bb1565b03915afa958615610f39575b600090600097610f05575b506109b990612c85565b610a23610a1c6109f46109ce6024890161275b565b73ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d610a0760448a018a600401612673565b906126db565b35600052602052604060002090565b5460ff1690565b8015610eaf575b610a349015612cea565b610a4085600401612d4f565b15610b3457826103cc610a55610a5c93612567565b5a90612517565b926000907f00000000000000000000000000000000000000000000000000000000000000009363ffffffff808560a01c169460c01c16925b818110610b035750505050505050610af9915080610a0d610a07610ac06109ce6024610ace960161275b565b926044810190600401612673565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6100196001600055565b600190610b2e8787878d8d610b188e5a6125a2565b91610b24888b8d612625565b916004019061372a565b01610a94565b9194610b51610b4b60448796970186600401612673565b906126f2565b35610e8b575b936000946000915b878310610e505750505073ffffffffffffffffffffffffffffffffffffffff939450610bd191610bc563ffffffff610bca93610bb9610ace610ba66109ce60248b0161275b565b610a0d610a0760448c018c600401612673565b60a01c16915a90612517565b6125a2565b3a90612dbe565b90610bee61093c610be86084840184600401612673565b90612701565b7f0000000000000000000000000000000000000000000000000000000000000000841693168303610cd85791610c36610c979492610c3060246020960161275b565b936125a2565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909316600484015230602484015260448301529092839190829060009082906064820190565b03925af18015610ccb575b610cad575b50610af9565b610cc49060203d811161084e5761083f81836127b6565b5038610ca7565b610cd3612c78565b610ca2565b9190610cea6084840160048501612673565b610cf391612701565b610cfc9061275b565b73ffffffffffffffffffffffffffffffffffffffff1691610d1f6024850161275b565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff929092166004820152306024820152604481019690965260209586948590829060649082905a90600091f18015610de497600093610da793602493610e43575b610e26575b500161275b565b60405192835273ffffffffffffffffffffffffffffffffffffffff1660048301523060248301526044820193909352938492839182906064820190565b03925af18015610e19575b610dfb575b5050610af9565b81610e1192903d1061084e5761083f81836127b6565b503880610df4565b610e21612c78565b610def565b610e3c90893d8b1161084e5761083f81836127b6565b5038610da0565b610e4b612c78565b610d9b565b909195610e82600191610e7c63ffffffff8760c01c168b610e768c8c6004019289612625565b88613876565b906125a2565b96019190610b5f565b610eaa610ea1610b4b6044870187600401612673565b353a1115612d59565b610b57565b50610a34610ec6610a076044880188600401612673565b35610efc610ed66024890161275b565b73ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b54119050610a2a565b6109b99750610f2c915060403d604011610f32575b610f2481836127b6565b810190612801565b966109af565b503d610f1a565b610f41612c78565b6109a4565b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435610f8281610481565b73ffffffffffffffffffffffffffffffffffffffff610fa68160015416331461227f565b47916000808060405186855af1610fbb61310a565b5015610ff1577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c916020916040519485521692a2005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f6661696c656400000000000000000000000000000000000000000000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760206040516107d08152f35b5034610299576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112611132576001547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff82169161110333841461227f565b1660015581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b80fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102995767ffffffffffffffff91600435838111610299578261118091600401610268565b939093926024359182116102995761119a91600401610268565b9091565b506111a836611135565b9192906000936111bc600286541415612353565b600285556001916111d460ff845460a01c16156123b8565b6111df858314612482565b85946111eb83866125de565b9273ffffffffffffffffffffffffffffffffffffffff61121661093c610be860809788810190612673565b16958615968715908161136b575b61123661123185856125de565b612d4f565b159182159261135c575b508a5b8481106112a8578b8b8b611262575b5061125d6001600055565b604051f35b61126e813410156130a5565b8181341161127d575b50611252565b808061128c6112a19434612517565b60405190335af161129b61310a565b50613176565b8181611277565b88906112d56112ce61094161093c610be88d6112c5878d8d612625565b90810190612673565b8414612f00565b6112f56112ee6112e9611231848a8a612625565b151590565b8514612f65565b611319611311610941602061130b858b8b612625565b0161275b565b331415612fca565b61135661133961133261132d848a8a612625565b6151d4565b809e6125a2565b9c611345838989612625565b611350848b8d612e10565b916149a3565b01611243565b61136590612e9b565b38611240565b6113753415612e36565b611224565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc820112610299576004359067ffffffffffffffff82116102995761119a91600401610268565b506113cd3661137a565b6113dc60026000541415612353565b60026000556113f360ff60015460a01c16156123b8565b60009173ffffffffffffffffffffffffffffffffffffffff61142861093c610be861141e86866125de565b6080810190612673565b16918215159182611662575b61144161123183836125de565b9182159384611653575b5060005b81811061149257868615611467576100196001600055565b611473813410156130a5565b80341115610af9576000808061128c61148c9434612517565b80610af9565b611589966114b76114b061094161093c610be861141e87898b612625565b8814612f00565b6114d36114cb6112e9611231858789612625565b871514612f65565b6114e9611311610941602061130b86888a612625565b61151d610a1c6115026109ce602061130b87898b612625565b610a0d610a0761151387898b612625565b6040810190612673565b8015611621575b61152e901561302f565b604061154a61094161094161093c61093661141e888a8c612625565b611555848688612625565b90825180809c81947f9e0daf5e00000000000000000000000000000000000000000000000000000000835260048301613094565b03915afa978815611614575b6000906000996115e2575b50600192916115b16115dc92612c85565b866115ca6115c361132d86898b612625565b80936125a2565b9a6115d685888a612625565b90614870565b0161144f565b6115b199506115dc9150916116086001949360403d604011610f3257610f2481836127b6565b9a9092505091926115a0565b61161c612c78565b611595565b5061152e611636610a07611513858789612625565b3561164a610ed6602061130b87898b612625565b54119050611524565b61165c90612e9b565b3861144b565b61166c3415612e36565b611434565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff6001546116fc3373ffffffffffffffffffffffffffffffffffffffff83161461227f565b61170c60ff8260a01c16156123b8565b16176001557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60209101126102995760043563ffffffff811681036102995790565b5034610299576117893661173d565b6117ac73ffffffffffffffffffffffffffffffffffffffff60015416331461227f565b6107d063ffffffff82161161184157600280547fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff1660c083901b7bffffffff0000000000000000000000000000000000000000000000001617905560405163ffffffff90911681527f45a5a29d28d3452ca649e48ecb93f018866388cb166efa2f14529862d6c30e109080602081015b0390a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f70726f746f636f6c2066656520746f6f206869676800000000000000000000006044820152fd5b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576004356118db81610481565b73ffffffffffffffffffffffffffffffffffffffff906119008260015416331461227f565b16801561195e57806000917fffffffffffffffffffffffff00000000000000000000000000000000000000006002541617600255604051907f18068b45283315585200a72a30aee7615ec699afcdbe3070b03535c8439c93078383a2f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d61746368206578656375746f722063616e6e6f7420626520300000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602073ffffffffffffffffffffffffffffffffffffffff60015416604051908152f35b503461029957611a1e3661137a565b611a29811515613240565b60005b818110611a6c5750611a677ffa0ae5d80fe3763c880a3839fab0294171a6f730d1f82c4cd5392c6f67b417329160405191829133958361330a565b0390a2005b80611ab0611a7d600193858761273d565b35611aa83373ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b5411156131db565b611afa611af5611af1610a1c611ae63373ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d86898b61273d565b1590565b6132a5565b611b35610ace611b2a3373ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d84878961273d565b01611a2c565b503461029957611b4a36611135565b9092611b5b60026000541415612353565b6002600055600193611b7460ff865460a01c16156123b8565b5a9160025490611b9b73ffffffffffffffffffffffffffffffffffffffff8316331461241d565b611ba6858714612482565b63ffffffff808360c01c169260a01c1692611be7876103cc7f0000000000000000000000000000000000000000000000000000000000000000975a90612517565b9660005b818110611bfc576100196001600055565b80611c28888888888f968f8f91611c1b818c610416611c22955a6125a2565b928c612625565b9061349a565b01611beb565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760206040516127108152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602073ffffffffffffffffffffffffffffffffffffffff60025416604051908152f35b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576020600435611d6b81610481565b73ffffffffffffffffffffffffffffffffffffffff60243591169060008281526004845260408120828252845260ff604082205416159283611db5575b5050506040519015158152f35b604092935081526003845220541115388080611da8565b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435336000526003602052611e1860406000205482116131db565b336000526003602052620186a06040600020547ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe795f8111611f19575b01811015611ebb5780611e863373ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b5560405190815233907f1e7178d84f0b0825c65795cd62e7972809ad3aac6917843aaec596161b2c0a97908060208101611a67565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f746f6f206d616e790000000000000000000000000000000000000000000000006044820152fd5b611f216124e7565b611e53565b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435611f6281610481565b60243567ffffffffffffffff811161029957611f82903690600401610268565b90611f9260026000541415612353565b6002600055611fa960ff60015460a01c16156123b8565b73ffffffffffffffffffffffffffffffffffffffff831615611fcf57610af99233614deb565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c6964206164647265737300000000000000000000000000000000006044820152fd5b50346102995761203c3661173d565b61205f73ffffffffffffffffffffffffffffffffffffffff60015416331461227f565b62030d4063ffffffff8216116120f057600280547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1660a083901b77ffffffff00000000000000000000000000000000000000001617905560405163ffffffff90911681527f70315b78769d300844b16f6da622ba96060a0bcd294a60299e48b5ac10b53efa90806020810161183c565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f67617320756e69747320746f6f206869676800000000000000000000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060405162030d408152f35b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576004356121c781610481565b73ffffffffffffffffffffffffffffffffffffffff6121eb8160015416331461227f565b8116156121fb57610019906122e4565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b1561228657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b1561235a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b156123bf57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b1561242457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6f6e6c79206d61746368206578656375746f72000000000000000000000000006044820152fd5b1561248957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6d69736d617463686564206c656e6774687300000000000000000000000000006044820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818110612522570390565b61252a6124e7565b0390565b8115612538570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b614e20907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb1df8111612596570190565b61259e6124e7565b0190565b81198111612596570190565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9015612618575b8035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2181360301821215610299570190565b6126206125ae565b6125e5565b9190811015612666575b60051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2181360301821215610299570190565b61266e6125ae565b61262f565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610299570180359067ffffffffffffffff821161029957602001918160051b3603831361029957565b90156126d05790565b6126d86125ae565b90565b60a091600510156126ea570190565b61259e6125ae565b60c091600610156126ea570190565b602091600110156126ea570190565b604091600210156126ea570190565b608091600410156126ea570190565b606091600310156126ea570190565b919081101561274e575b60051b0190565b6127566125ae565b612747565b356126d881610481565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff81116127a957604052565b6127b1612765565b604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176127a957604052565b8015150361029957565b9190826040910312610299576020825161281a816127f7565b92015190565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957016020813591019167ffffffffffffffff8211610299578160051b3603831361029957565b90918281527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83116102995760209260051b80928483013701016000815290565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc182360301811215610299570190565b90808352602080930192838260051b850194846000925b85841061290e575050505050505090565b90919293949596818103845261292488846128b4565b6040908183019073ffffffffffffffffffffffffffffffffffffffff813561294b81610481565b168452888101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957019088823592019367ffffffffffffffff8311610299578260061b3603851361029957808385938c96876060950152520193916000915b8183106129d55750505050806001929901940194019295949391906128fd565b833586528a8401358b870152948501948a9450928301926001909201916129b5565b91908082526020809201929160005b828110612a14575050505090565b90919293828060019273ffffffffffffffffffffffffffffffffffffffff8835612a3d81610481565b16815201950193929101612a06565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957016020813591019167ffffffffffffffff821161029957813603831361029957565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0938186528686013760008582860101520116010190565b6126d8918135612aea816127f7565b15158152612b1a612afd6020840161049f565b73ffffffffffffffffffffffffffffffffffffffff166020830152565b612ba3612b98612b7d612b62612b47612b366040880188612820565b60e0604089015260e0880191612873565b612b546060880188612820565b9087830360608901526128e6565b612b6f6080870187612820565b9086830360808801526129f7565b612b8a60a0860186612a4c565b9085830360a0870152612a9c565b9260c0810190612a4c565b9160c0818503910152612a9c565b90612bc490604083526040830190612adb565b926020918281860391015280845281840191808260051b8601019484600080925b858410612bf757505050505050505090565b90919293949596977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820301885288357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2185360301811215612c745786612c6460019387839401612adb565b9a01980196959401929190612be5565b8380fd5b506040513d6000823e3d90fd5b15612c8c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f63616e6e6f7420657865637574650000000000000000000000000000000000006044820152fd5b15612cf157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6d616b6572206f726465722065787069726564000000000000000000000000006044820152fd5b356126d8816127f7565b15612d6057565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f67617320707269636520746f6f206869676800000000000000000000000000006044820152fd5b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821181151516612def570290565b612df76124e7565b0290565b9081602091031261029957516126d8816127f7565b909161119a92811015612e29575b60051b810190612673565b612e316125ae565b612e1e565b15612e3d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d7367206861732076616c7565000000000000000000000000000000000000006044820152fd5b15612ea257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6f6666657273206f6e6c7920696e2045524332300000000000000000000000006044820152fd5b15612f0757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f63616e6e6f74206d69782063757272656e6369657300000000000000000000006044820152fd5b15612f6c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f63616e6e6f74206d6978206f72646572207369646573000000000000000000006044820152fd5b15612fd157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6e6f20646f67666f6f64696e67000000000000000000000000000000000000006044820152fd5b1561303657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6f726465722065787069726564000000000000000000000000000000000000006044820152fd5b9060206126d8928181520190612adb565b156130ac57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f696e73756666696369656e7420746f74616c20707269636500000000000000006044820152fd5b3d15613171573d9067ffffffffffffffff8211613164575b6040519161315860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846127b6565b82523d6000602084013e565b61316c612765565b613122565b606090565b1561317d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6661696c65642072657475726e696e67206578636573732045544800000000006044820152fd5b156131e257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6e6f6e636520746f6f206c6f77000000000000000000000000000000000000006044820152fd5b1561324757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f63616e6e6f7420626520656d70747900000000000000000000000000000000006044820152fd5b156132ac57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6e6f6e636520616c72656164792065786563206f722063616e63656c6c6564006044820152fd5b9160206126d8938181520191612873565b1561332257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f636f6d706c69636174696f6e206d69736d6174636800000000000000000000006044820152fd5b9190826080910312610299578151613397816127f7565b916020810151916060604083015192015190565b90916133c26126d893604084526040840190612adb565b916020818403910152612adb565b156133d757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f73656c6c206f72646572206578706972656400000000000000000000000000006044820152fd5b1561343c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f627579206f7264657220657870697265640000000000000000000000000000006044820152fd5b916104aa959493926134ab81612d4f565b1561367657915b61351161094161094161093c6109366080880161350b6134d861093c610936848d612673565b73ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093660808e018e612673565b91161461331b565b88612673565b92608060405180957fd9814ac5000000000000000000000000000000000000000000000000000000008252818061354c8787600484016133ab565b03915afa938415613669575b60008080928197613630575b5061356e90612c85565b6135aa602084016135816109ce8261275b565b9061359a610a1c6040880193610a0d610a07868b612673565b918215613611575b5050156133d0565b6135e6602085016135bd6109ce8261275b565b906135d6610a1c6040890193610a0d610a07868c612673565b9182156135eb575b505015613435565b613bf1565b613608919250613601610a07610ed6928a612673565b359261275b565b541138806135de565b613627919250613601610a07610ed69289612673565b541138806135a2565b91505061356e9550613659915060803d8111613662575b61365181836127b6565b810190613380565b96909290613564565b503d613647565b613671612c78565b613558565b6134b2565b90916136996126d89360008452606060208501526060840190612adb565b916040818403910152612adb565b90916136996126d89360018452606060208501526060840190612adb565b156136cc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f72646572206e6f7420766572696669656400000000000000000000000000006044820152fd5b916104aa969594939161378d61094161094161093c610936856137878873ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093661377c61093c61093660808b01809b612673565b956080810190612673565b86612673565b6040805180927f83d1214600000000000000000000000000000000000000000000000000000000825281806137c688886004840161367b565b03915afa908115613869575b6000908192613846575b506137e6906136c5565b613821602084016137f96109ce8261275b565b90613812610a1c6040880193610a0d610a07868b612673565b91821561383057505015613435565b61382a836151d4565b94614000565b613608919250613601610a07610ed69289612673565b6137e69250613863915060403d8111610f3257610f2481836127b6565b916137dc565b613871612c78565b6137d2565b90916126d893926138c661094161094161093c610936856137878873ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093661377c61093c61093660808b01809b612673565b926040805180957f83d1214600000000000000000000000000000000000000000000000000000000825281806139008888600484016136a7565b03915afa9384156139a3575b6000908195613980575b50613920906136c5565b61395b602083016139336109ce8261275b565b9061394c610a1c6040870193610a0d610a07868a612673565b91821561396a575050156133d0565b613964826151d4565b9361430f565b613627919250613601610a07610ed69288612673565b613920955061399d915060403d8111610f3257610f2481836127b6565b94613916565b6139ab612c78565b61390c565b90808352602080930192838260051b850194846000925b8584106139d8575050505050505090565b9091929394959681810384526139ee88846128b4565b6040908183019073ffffffffffffffffffffffffffffffffffffffff8135613a1581610481565b168452888101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957019088823592019367ffffffffffffffff8311610299578260061b3603851361029957808385938c96876060950152520193916000915b818310613a9f5750505050806001929901940194019295949391906139c7565b833586528a8401358b870152948501948a945092830192600190920191613a7f565b92906126d89492613add613aeb92606087526060870190612adb565b908582036020870152612adb565b9260408185039101526139b0565b9290916104aa9796959492613b3161094161094161093c61093689613b2b6134d861093c610936608085018095612673565b8a612673565b94608060405180977f950c52bb0000000000000000000000000000000000000000000000000000000082528180613b6e8989898960048601613ac1565b03915afa958615613be4575b60008080928199613bbb575b50613b9090612c85565b613ba3602084016135816109ce8261275b565b613bb6602085016135bd6109ce8261275b565b614535565b915050613b909750613bdb915060803d81116136625761365181836127b6565b98909290613b86565b613bec612c78565b613b7a565b979692959385879560408701613c0a610b4b828a612673565b35613feb575b613c1c6020870161275b565b613c469073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b613c536040880188612673565b613c5c916126db565b35613c709190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055613ca56020890161275b565b613ccf9073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b90613cda9089612673565b613ce3916126db565b35613cf79190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905563ffffffff1690613d3091612dbe565b612710900498613d408a88612517565b92613d4d6020860161275b565b613d596020890161275b565b613d666060880188612673565b91613d7093614deb565b613d7d6080880188612673565b613d8691612701565b613d8f9061275b565b73ffffffffffffffffffffffffffffffffffffffff16613db16020890161275b565b94613dbe6020880161275b565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9788166004820152961660248701526044860152846064815a602094600091f191821598610bca98613e48602063ffffffff99613e9199610a5598613e999f613fde575b613fc857500161275b565b613e546020830161275b565b613e6761093c6109366080860186612673565b91613e89613e7e61093c610be86080880188612673565b946060810190612673565b9790966147f4565b9116906125a2565b90613ead61093c610be86080840184612673565b73ffffffffffffffffffffffffffffffffffffffff93841693168303613f1b5791610c36613ee39492610c30602080960161275b565b03925af18015613f0e575b613ef6575b50565b613ef39060203d60201161084e5761083f81836127b6565b613f16612c78565b613eee565b91613f4f602084613fb382613ee398613f4461094161094161093c610be86080879e0189612673565b613f4f83860161275b565b60006040518096819582947f23b872dd00000000000000000000000000000000000000000000000000000000845230906004850160409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b03925af18015613fde57613fc857500161275b565b610e3c90833d851161084e5761083f81836127b6565b613fe6612c78565b613e3d565b613ffb610ea1610b4b838b612673565b613c10565b958397919894939293604084019461401b610b4b8787612673565b356142fa575b60209a8b998a8701976140338961275b565b61405d9073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b906140689089612673565b614071916126db565b356140859190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558963ffffffff809616906140c191612dbe565b6127109004998b6140d28c83612517565b94016140dd8161275b565b6140e68b61275b565b9560608b01968b6140f78982612673565b916080019d8e61410691612673565b61410f91612701565b6141189061275b565b9261412295614471565b61412b9061275b565b938d6141368b61275b565b6141408b83612673565b614149916126c7565b6141529061275b565b9161415d8c82612673565b61416691612701565b61416f9061275b565b9361417991612673565b966141859891966147f4565b5a61418f91612517565b911661419a916125a2565b3a6141a491612dbe565b956141af8282612673565b6141b891612701565b6141c19061275b565b73ffffffffffffffffffffffffffffffffffffffff948516941684036142295750506141f394610c30610c369261275b565b03925af1801561421c575b614206575050565b81613ef392903d1061084e5761083f81836127b6565b614224612c78565b6141fe565b6141f39694926000876142ba61424f61094161094161093c610be8879a610da79a612673565b6142588561275b565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff909216600482015230602482015260448101999099529793849283919082906064820190565b03925af180156142ed575b6142d0575b5061275b565b6142e690883d8a1161084e5761083f81836127b6565b50386142ca565b6142f5612c78565b6142c5565b61430a610ea1610b4b8888612673565b614021565b9194939092816020870195863561432581610481565b73ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002060408901614356908a612673565b61435f916126db565b35600052602052604060002061439a9060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b63ffffffff16906143aa91612dbe565b6127109004956143ba8784612517565b916143c48761275b565b9160208201976143d38961275b565b9360608301956143e38785612673565b6080870197916143f38989612673565b6143fc91612701565b6144059061275b565b9261440f95614471565b6144189061275b565b976144229061275b565b9161442d8482612673565b614436916126c7565b61443f9061275b565b9361444991612673565b61445291612701565b61445b9061275b565b9361446591612673565b966126d89891966147f4565b9073ffffffffffffffffffffffffffffffffffffffff60009161449d6144fe9896602098968387614deb565b604051978896879586937f23b872dd0000000000000000000000000000000000000000000000000000000085526004850160409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0393165af18015614528575b6145115750565b613ef39060203d811161084e5761083f81836127b6565b614530612c78565b61450a565b919995929893979490978763ffffffff60408c01978c89614559610b4b8284612673565b356146f3575b5050169061456c91612dbe565b61271090049761457c8982612517565b998b60209d8e809d8183019288886145938661275b565b9487019e8f6145a19061275b565b93604081016145af91612673565b6145b8916126db565b35906145c49089612673565b6145cd916126db565b35906145dc60808a018a612673565b6145e591612701565b6145ee9061275b565b946145f89761470a565b6146019061275b565b61460a8a61275b565b906146186080840184612673565b614621916126c7565b61462a9061275b565b926080810161463891612673565b61464191612701565b61464a9061275b565b93614654986147f4565b5a61465e91612517565b9063ffffffff1661466e916125a2565b3a61467891612dbe565b946146866080820182612673565b61468f91612701565b6146989061275b565b73ffffffffffffffffffffffffffffffffffffffff938416931683036146c957506141f394610c30610c369261275b565b610da76141f39694926000876142ba61424f61094161094161093c610be88a6080899c0190612673565b610b4b610ea19161470393612673565b8c8961455f565b91946147e1969397949161449d73ffffffffffffffffffffffffffffffffffffffff92600094848716865260209b8c9a60048c52604088209088528b526147796040882060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6147a38573ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b9087528a526147da6040872060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b8387614deb565b0393165af1801561421c57614206575050565b929795947f9f0ef199f3d5fa3ecdee559103421e5ce53b68b3187e374801d79307d145d1eb9561486b939892956040519687968752602087015273ffffffffffffffffffffffffffffffffffffffff928392838093166040890152606088015260a0608088015216991697169560a08401916139b0565b0390a4565b919092602084019161488683356109ce81610481565b614896610a076040880188612673565b356000526020526148d0604060002060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b15614929576104aa9361491f6149186148e88561275b565b9461093c8560608601976148fc8988612673565b9061491061093c610be860808c018c612673565b923390614c81565b9382612673565b9490933391614bb9565b6104aa9361497461496d61493e85969561275b565b9561093c8560608601986149528a88612673565b9061496661093c610be860808c018c612673565b9233614c81565b9482612673565b9490933390614bb9565b916149956126d89492604085526040850190612adb565b9260208185039101526139b0565b90916104aa93926149e6602084016149bd6109ce8261275b565b906149d6610a1c6040880193610a0d610a07868b612673565b918215614a99575b50501561302f565b6149ff61094161094161093c6109366080880188612673565b926040805180957ffd2596280000000000000000000000000000000000000000000000000000000082528180614a3a8888886004850161497e565b03915afa938415614a8c575b6000908195614a69575b50614a5a90612c85565b614a6381612d4f565b93614ab8565b614a5a9550614a86915060403d8111610f3257610f2481836127b6565b94614a50565b614a94612c78565b614a46565b614aaf919250613601610a07610ed69289612673565b541138806149de565b949192936020820190813590614acd82610481565b73ffffffffffffffffffffffffffffffffffffffff821660005260046020526040600020614b01610a076040870187612673565b35600052602052614b3b604060002060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b15614b7757506104aa95614b6784614b528461275b565b888861491061093c610be860808b018b612673565b614b71339261275b565b90614bb9565b90506104aa95614b8682610481565b614bad84614b9a610be86080870187612673565b35614ba481610481565b88888633614c81565b614bb682610481565b33905b909461486b907fd1b78f78360698bdfc69fb877fd0dd84d4817dfe3095a8456e6f7ff0f4d51170949397956020614c0d60808701614bf78189612673565b15614c74575b3597614c0889610481565b612673565b60011015614c67575b013590614c2282610481565b604051958695865273ffffffffffffffffffffffffffffffffffffffff92839283809316602089015260408801526080606088015216991697169560808401916139b0565b614c6f6125ae565b614c16565b614c7c6125ae565b614bfd565b9392614c909195928686614deb565b73ffffffffffffffffffffffffffffffffffffffff614ce2614cdb614cd384614cce614cc560025463ffffffff9060c01c1690565b63ffffffff1690565b612dbe565b612710900490565b8093612517565b921680614d0a5750506104aa9250600080928192604051915af1614d0461310a565b5061516f565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff878116600484015295909516602482015260448101939093526020946141f394869460009190868160648186895af18015614dde575b614dc1575b5060405190815273ffffffffffffffffffffffffffffffffffffffff90921660048301523060248301526044820193909352938492839182906064820190565b614dd790873d891161084e5761083f81836127b6565b5038614d81565b614de6612c78565b614d7c565b9291909260005b838110614e00575050505050565b8060051b830135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc18436030182121561029957614ede6001928501614ed7614e4e6109416109418461275b565b60408051907f01ffc9a7000000000000000000000000000000000000000000000000000000009283835260209182846004938180614eb2878201907f80ac58cd00000000000000000000000000000000000000000000000000000000602083019252565b03915afa938415614f99575b600094614f7a575b5083614ee4575b5050509050614fa6565b878561505f565b01614df2565b614f3093508294614efa6109416109418a61275b565b915180958194829383528201907fd9b67a2600000000000000000000000000000000000000000000000000000000602083019252565b03915afa918215614f6d575b600092614f50575b50501580388080614ecd565b614f669250803d1061084e5761083f81836127b6565b3880614f44565b614f75612c78565b614f3c565b614f92919450833d851161084e5761083f81836127b6565b9238614ec6565b614fa1612c78565b614ebe565b15614fad57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6f6e6c79206572633732310000000000000000000000000000000000000000006044820152fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610299570180359067ffffffffffffffff821161029957602001918160061b3603831361029957565b92919260005b6020850190615074828761500b565b9050811015615167576150a873ffffffffffffffffffffffffffffffffffffffff87356150a081610481565b16928761500b565b82101561515a575b823b15610299576040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286166024820152600683901b919091013560448201526001926000908290606490829084905af1801561514d575b615134575b5001615065565b8061514161514792612795565b80610430565b3861512d565b615155612c78565b615128565b6151626125ae565b6150b0565b505050509050565b1561517657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6661696c656420746f2073656e6420657468657220746f2073656c6c657200006044820152fd5b604081016151e5610be88284612673565b35916151fa6151f48383612673565b90612710565b3590818414615294576152346152196152138584612673565b9061271f565b3561522d6152278685612673565b9061272e565b3590612517565b90811561528d5761524e6152276127109561525593612673565b3542612517565b908082111561527c57505081905b838181111561527457030204900390565b900302040190565b83615287920261252e565b90615263565b5050505090565b5050509056fea26469706673582212209b1600f3b5193d8c16f1787565d5125f082c971333d408e30b0fab7e908fd5f764736f6c634300080e0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f1000c3d7117638ccede869607ae50c8a47cb233
Deployed Bytecode
0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80630df4239c1461025f578063183f17c41461025657806331e27e271461024d57806335659fb8146102445780633f4ba83a1461023b5780634266581e146102325780635c975abb146102295780635e35359e1461022057806363f3c03414610217578063690d83201461020e5780636d947e4b14610205578063715018a6146101fc578063723d9836146101f357806378759e13146101ea5780638456cb59146101e15780638aff5573146101d85780638ca793b2146101cf5780638da5cb5b146101c657806398011ac8146101bd5780639d9a0cef146101b4578063aaf5eb68146101ab578063ad5c4648146101a2578063bcb47ece14610199578063bd11257c14610190578063bd545f5314610187578063cb97a8101461017e578063d19b6da314610175578063ed5fd5751461016c5763f2fde38b0361000e5761016761218b565b61000e565b5061016761214e565b5061016761202d565b50610167611f26565b50610167611dcc565b50610167611d2d565b50610167611cda565b50610167611c6a565b50610167611c2e565b50610167611b3b565b50610167611a0f565b506101676119bc565b5061016761189f565b5061016761177a565b50610167611671565b506101676113c3565b5061016761119e565b5061016761108b565b5061016761104f565b50610167610f46565b50610167610862565b5061016761072d565b506101676106e8565b5061016761067e565b5061016761056f565b50610167610529565b506101676104ac565b5061016761043b565b5061016761029e565b9181601f840112156102995782359167ffffffffffffffff8311610299576020808501948460051b01011161029957565b600080fd5b50346102995760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995767ffffffffffffffff600435818111610299576102ef903690600401610268565b6024929192358281116102995761030a903690600401610268565b9260443590811161029957610323903690600401610268565b93909161033560026000541415612353565b600260005560019561034e60ff885460a01c16156123b8565b5a936002549261037573ffffffffffffffffffffffffffffffffffffffff8516331461241d565b610380858814612482565b61038b888814612482565b63ffffffff808560c01c169460a01c16946103d1886103cc7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2995a90612517565b61252e565b9060005b8981106103e6576100196001600055565b8061042a8a8a8f948f8f8a6104228f948f948f94828f8f908261041c94610410610416935a6125a2565b9b612625565b96612625565b94612e10565b929091613af9565b016103d5565b600091031261029957565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602063ffffffff60025460a01c16604051908152f35b73ffffffffffffffffffffffffffffffffffffffff81160361029957565b35906104aa82610481565b565b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995773ffffffffffffffffffffffffffffffffffffffff6004356104fd81610481565b1660005260046020526040600020602435600052602052602060ff604060002054166040519015158152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602063ffffffff60025460c01c16604051908152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576001546105c33373ffffffffffffffffffffffffffffffffffffffff83161461227f565b60ff8160a01c1615610620577fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff166001557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995773ffffffffffffffffffffffffffffffffffffffff6004356106cf81610481565b1660005260036020526020604060002054604051908152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060ff60015460a01c166040519015158152f35b50346102995760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760043561076981610481565b6024359061077682610481565b7fbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b102536261082260443573ffffffffffffffffffffffffffffffffffffffff80956107c38260015416331461227f565b1694604051947fa9059cbb000000000000000000000000000000000000000000000000000000008652169384600482015281602482015260208160448160008a5af18015610855575b610827575b506040519081529081906020820190565b0390a3005b6108479060203d811161084e575b61083f81836127b6565b810190612dfb565b5038610811565b503d610835565b61085d612c78565b61080c565b5034610299577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc604081360112610299576004359067ffffffffffffffff908183116102995760e090833603011261029957602435908111610299576108cc903690600401610268565b91906108dd60026000541415612353565b60026000556108f460ff60015460a01c16156123b8565b5a9260025461091a73ffffffffffffffffffffffffffffffffffffffff8216331461241d565b61095a61094161094161093c6109366084890189600401612673565b906126c7565b61275b565b73ffffffffffffffffffffffffffffffffffffffff1690565b946040805180977ff1332a910000000000000000000000000000000000000000000000000000000082528180610998888a8c60040160048501612bb1565b03915afa958615610f39575b600090600097610f05575b506109b990612c85565b610a23610a1c6109f46109ce6024890161275b565b73ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d610a0760448a018a600401612673565b906126db565b35600052602052604060002090565b5460ff1690565b8015610eaf575b610a349015612cea565b610a4085600401612d4f565b15610b3457826103cc610a55610a5c93612567565b5a90612517565b926000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29363ffffffff808560a01c169460c01c16925b818110610b035750505050505050610af9915080610a0d610a07610ac06109ce6024610ace960161275b565b926044810190600401612673565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6100196001600055565b600190610b2e8787878d8d610b188e5a6125a2565b91610b24888b8d612625565b916004019061372a565b01610a94565b9194610b51610b4b60448796970186600401612673565b906126f2565b35610e8b575b936000946000915b878310610e505750505073ffffffffffffffffffffffffffffffffffffffff939450610bd191610bc563ffffffff610bca93610bb9610ace610ba66109ce60248b0161275b565b610a0d610a0760448c018c600401612673565b60a01c16915a90612517565b6125a2565b3a90612dbe565b90610bee61093c610be86084840184600401612673565b90612701565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2841693168303610cd85791610c36610c979492610c3060246020960161275b565b936125a2565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909316600484015230602484015260448301529092839190829060009082906064820190565b03925af18015610ccb575b610cad575b50610af9565b610cc49060203d811161084e5761083f81836127b6565b5038610ca7565b610cd3612c78565b610ca2565b9190610cea6084840160048501612673565b610cf391612701565b610cfc9061275b565b73ffffffffffffffffffffffffffffffffffffffff1691610d1f6024850161275b565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff929092166004820152306024820152604481019690965260209586948590829060649082905a90600091f18015610de497600093610da793602493610e43575b610e26575b500161275b565b60405192835273ffffffffffffffffffffffffffffffffffffffff1660048301523060248301526044820193909352938492839182906064820190565b03925af18015610e19575b610dfb575b5050610af9565b81610e1192903d1061084e5761083f81836127b6565b503880610df4565b610e21612c78565b610def565b610e3c90893d8b1161084e5761083f81836127b6565b5038610da0565b610e4b612c78565b610d9b565b909195610e82600191610e7c63ffffffff8760c01c168b610e768c8c6004019289612625565b88613876565b906125a2565b96019190610b5f565b610eaa610ea1610b4b6044870187600401612673565b353a1115612d59565b610b57565b50610a34610ec6610a076044880188600401612673565b35610efc610ed66024890161275b565b73ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b54119050610a2a565b6109b99750610f2c915060403d604011610f32575b610f2481836127b6565b810190612801565b966109af565b503d610f1a565b610f41612c78565b6109a4565b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435610f8281610481565b73ffffffffffffffffffffffffffffffffffffffff610fa68160015416331461227f565b47916000808060405186855af1610fbb61310a565b5015610ff1577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c916020916040519485521692a2005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f6661696c656400000000000000000000000000000000000000000000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760206040516107d08152f35b5034610299576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112611132576001547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff82169161110333841461227f565b1660015581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b80fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126102995767ffffffffffffffff91600435838111610299578261118091600401610268565b939093926024359182116102995761119a91600401610268565b9091565b506111a836611135565b9192906000936111bc600286541415612353565b600285556001916111d460ff845460a01c16156123b8565b6111df858314612482565b85946111eb83866125de565b9273ffffffffffffffffffffffffffffffffffffffff61121661093c610be860809788810190612673565b16958615968715908161136b575b61123661123185856125de565b612d4f565b159182159261135c575b508a5b8481106112a8578b8b8b611262575b5061125d6001600055565b604051f35b61126e813410156130a5565b8181341161127d575b50611252565b808061128c6112a19434612517565b60405190335af161129b61310a565b50613176565b8181611277565b88906112d56112ce61094161093c610be88d6112c5878d8d612625565b90810190612673565b8414612f00565b6112f56112ee6112e9611231848a8a612625565b151590565b8514612f65565b611319611311610941602061130b858b8b612625565b0161275b565b331415612fca565b61135661133961133261132d848a8a612625565b6151d4565b809e6125a2565b9c611345838989612625565b611350848b8d612e10565b916149a3565b01611243565b61136590612e9b565b38611240565b6113753415612e36565b611224565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc820112610299576004359067ffffffffffffffff82116102995761119a91600401610268565b506113cd3661137a565b6113dc60026000541415612353565b60026000556113f360ff60015460a01c16156123b8565b60009173ffffffffffffffffffffffffffffffffffffffff61142861093c610be861141e86866125de565b6080810190612673565b16918215159182611662575b61144161123183836125de565b9182159384611653575b5060005b81811061149257868615611467576100196001600055565b611473813410156130a5565b80341115610af9576000808061128c61148c9434612517565b80610af9565b611589966114b76114b061094161093c610be861141e87898b612625565b8814612f00565b6114d36114cb6112e9611231858789612625565b871514612f65565b6114e9611311610941602061130b86888a612625565b61151d610a1c6115026109ce602061130b87898b612625565b610a0d610a0761151387898b612625565b6040810190612673565b8015611621575b61152e901561302f565b604061154a61094161094161093c61093661141e888a8c612625565b611555848688612625565b90825180809c81947f9e0daf5e00000000000000000000000000000000000000000000000000000000835260048301613094565b03915afa978815611614575b6000906000996115e2575b50600192916115b16115dc92612c85565b866115ca6115c361132d86898b612625565b80936125a2565b9a6115d685888a612625565b90614870565b0161144f565b6115b199506115dc9150916116086001949360403d604011610f3257610f2481836127b6565b9a9092505091926115a0565b61161c612c78565b611595565b5061152e611636610a07611513858789612625565b3561164a610ed6602061130b87898b612625565b54119050611524565b61165c90612e9b565b3861144b565b61166c3415612e36565b611434565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957740100000000000000000000000000000000000000007fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff6001546116fc3373ffffffffffffffffffffffffffffffffffffffff83161461227f565b61170c60ff8260a01c16156123b8565b16176001557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60209101126102995760043563ffffffff811681036102995790565b5034610299576117893661173d565b6117ac73ffffffffffffffffffffffffffffffffffffffff60015416331461227f565b6107d063ffffffff82161161184157600280547fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff1660c083901b7bffffffff0000000000000000000000000000000000000000000000001617905560405163ffffffff90911681527f45a5a29d28d3452ca649e48ecb93f018866388cb166efa2f14529862d6c30e109080602081015b0390a1005b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f70726f746f636f6c2066656520746f6f206869676800000000000000000000006044820152fd5b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576004356118db81610481565b73ffffffffffffffffffffffffffffffffffffffff906119008260015416331461227f565b16801561195e57806000917fffffffffffffffffffffffff00000000000000000000000000000000000000006002541617600255604051907f18068b45283315585200a72a30aee7615ec699afcdbe3070b03535c8439c93078383a2f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d61746368206578656375746f722063616e6e6f7420626520300000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602073ffffffffffffffffffffffffffffffffffffffff60015416604051908152f35b503461029957611a1e3661137a565b611a29811515613240565b60005b818110611a6c5750611a677ffa0ae5d80fe3763c880a3839fab0294171a6f730d1f82c4cd5392c6f67b417329160405191829133958361330a565b0390a2005b80611ab0611a7d600193858761273d565b35611aa83373ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b5411156131db565b611afa611af5611af1610a1c611ae63373ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d86898b61273d565b1590565b6132a5565b611b35610ace611b2a3373ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b610a0d84878961273d565b01611a2c565b503461029957611b4a36611135565b9092611b5b60026000541415612353565b6002600055600193611b7460ff865460a01c16156123b8565b5a9160025490611b9b73ffffffffffffffffffffffffffffffffffffffff8316331461241d565b611ba6858714612482565b63ffffffff808360c01c169260a01c1692611be7876103cc7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2975a90612517565b9660005b818110611bfc576100196001600055565b80611c28888888888f968f8f91611c1b818c610416611c22955a6125a2565b928c612625565b9061349a565b01611beb565b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102995760206040516127108152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168152f35b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602073ffffffffffffffffffffffffffffffffffffffff60025416604051908152f35b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576020600435611d6b81610481565b73ffffffffffffffffffffffffffffffffffffffff60243591169060008281526004845260408120828252845260ff604082205416159283611db5575b5050506040519015158152f35b604092935081526003845220541115388080611da8565b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435336000526003602052611e1860406000205482116131db565b336000526003602052620186a06040600020547ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe795f8111611f19575b01811015611ebb5780611e863373ffffffffffffffffffffffffffffffffffffffff166000526003602052604060002090565b5560405190815233907f1e7178d84f0b0825c65795cd62e7972809ad3aac6917843aaec596161b2c0a97908060208101611a67565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f746f6f206d616e790000000000000000000000000000000000000000000000006044820152fd5b611f216124e7565b611e53565b50346102995760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957600435611f6281610481565b60243567ffffffffffffffff811161029957611f82903690600401610268565b90611f9260026000541415612353565b6002600055611fa960ff60015460a01c16156123b8565b73ffffffffffffffffffffffffffffffffffffffff831615611fcf57610af99233614deb565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c6964206164647265737300000000000000000000000000000000006044820152fd5b50346102995761203c3661173d565b61205f73ffffffffffffffffffffffffffffffffffffffff60015416331461227f565b62030d4063ffffffff8216116120f057600280547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1660a083901b77ffffffff00000000000000000000000000000000000000001617905560405163ffffffff90911681527f70315b78769d300844b16f6da622ba96060a0bcd294a60299e48b5ac10b53efa90806020810161183c565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f67617320756e69747320746f6f206869676800000000000000000000000000006044820152fd5b50346102995760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029957602060405162030d408152f35b50346102995760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610299576004356121c781610481565b73ffffffffffffffffffffffffffffffffffffffff6121eb8160015416331461227f565b8116156121fb57610019906122e4565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b1561228657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b1561235a57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b156123bf57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b1561242457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6f6e6c79206d61746368206578656375746f72000000000000000000000000006044820152fd5b1561248957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6d69736d617463686564206c656e6774687300000000000000000000000000006044820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818110612522570390565b61252a6124e7565b0390565b8115612538570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b614e20907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb1df8111612596570190565b61259e6124e7565b0190565b81198111612596570190565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9015612618575b8035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2181360301821215610299570190565b6126206125ae565b6125e5565b9190811015612666575b60051b810135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2181360301821215610299570190565b61266e6125ae565b61262f565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610299570180359067ffffffffffffffff821161029957602001918160051b3603831361029957565b90156126d05790565b6126d86125ae565b90565b60a091600510156126ea570190565b61259e6125ae565b60c091600610156126ea570190565b602091600110156126ea570190565b604091600210156126ea570190565b608091600410156126ea570190565b606091600310156126ea570190565b919081101561274e575b60051b0190565b6127566125ae565b612747565b356126d881610481565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff81116127a957604052565b6127b1612765565b604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176127a957604052565b8015150361029957565b9190826040910312610299576020825161281a816127f7565b92015190565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957016020813591019167ffffffffffffffff8211610299578160051b3603831361029957565b90918281527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83116102995760209260051b80928483013701016000815290565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc182360301811215610299570190565b90808352602080930192838260051b850194846000925b85841061290e575050505050505090565b90919293949596818103845261292488846128b4565b6040908183019073ffffffffffffffffffffffffffffffffffffffff813561294b81610481565b168452888101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957019088823592019367ffffffffffffffff8311610299578260061b3603851361029957808385938c96876060950152520193916000915b8183106129d55750505050806001929901940194019295949391906128fd565b833586528a8401358b870152948501948a9450928301926001909201916129b5565b91908082526020809201929160005b828110612a14575050505090565b90919293828060019273ffffffffffffffffffffffffffffffffffffffff8835612a3d81610481565b16815201950193929101612a06565b90357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957016020813591019167ffffffffffffffff821161029957813603831361029957565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0938186528686013760008582860101520116010190565b6126d8918135612aea816127f7565b15158152612b1a612afd6020840161049f565b73ffffffffffffffffffffffffffffffffffffffff166020830152565b612ba3612b98612b7d612b62612b47612b366040880188612820565b60e0604089015260e0880191612873565b612b546060880188612820565b9087830360608901526128e6565b612b6f6080870187612820565b9086830360808801526129f7565b612b8a60a0860186612a4c565b9085830360a0870152612a9c565b9260c0810190612a4c565b9160c0818503910152612a9c565b90612bc490604083526040830190612adb565b926020918281860391015280845281840191808260051b8601019484600080925b858410612bf757505050505050505090565b90919293949596977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820301885288357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2185360301811215612c745786612c6460019387839401612adb565b9a01980196959401929190612be5565b8380fd5b506040513d6000823e3d90fd5b15612c8c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f63616e6e6f7420657865637574650000000000000000000000000000000000006044820152fd5b15612cf157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6d616b6572206f726465722065787069726564000000000000000000000000006044820152fd5b356126d8816127f7565b15612d6057565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f67617320707269636520746f6f206869676800000000000000000000000000006044820152fd5b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821181151516612def570290565b612df76124e7565b0290565b9081602091031261029957516126d8816127f7565b909161119a92811015612e29575b60051b810190612673565b612e316125ae565b612e1e565b15612e3d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6d7367206861732076616c7565000000000000000000000000000000000000006044820152fd5b15612ea257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f6f6666657273206f6e6c7920696e2045524332300000000000000000000000006044820152fd5b15612f0757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f63616e6e6f74206d69782063757272656e6369657300000000000000000000006044820152fd5b15612f6c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f63616e6e6f74206d6978206f72646572207369646573000000000000000000006044820152fd5b15612fd157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6e6f20646f67666f6f64696e67000000000000000000000000000000000000006044820152fd5b1561303657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6f726465722065787069726564000000000000000000000000000000000000006044820152fd5b9060206126d8928181520190612adb565b156130ac57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f696e73756666696369656e7420746f74616c20707269636500000000000000006044820152fd5b3d15613171573d9067ffffffffffffffff8211613164575b6040519161315860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846127b6565b82523d6000602084013e565b61316c612765565b613122565b606090565b1561317d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f6661696c65642072657475726e696e67206578636573732045544800000000006044820152fd5b156131e257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f6e6f6e636520746f6f206c6f77000000000000000000000000000000000000006044820152fd5b1561324757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f63616e6e6f7420626520656d70747900000000000000000000000000000000006044820152fd5b156132ac57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6e6f6e636520616c72656164792065786563206f722063616e63656c6c6564006044820152fd5b9160206126d8938181520191612873565b1561332257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f636f6d706c69636174696f6e206d69736d6174636800000000000000000000006044820152fd5b9190826080910312610299578151613397816127f7565b916020810151916060604083015192015190565b90916133c26126d893604084526040840190612adb565b916020818403910152612adb565b156133d757565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f73656c6c206f72646572206578706972656400000000000000000000000000006044820152fd5b1561343c57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f627579206f7264657220657870697265640000000000000000000000000000006044820152fd5b916104aa959493926134ab81612d4f565b1561367657915b61351161094161094161093c6109366080880161350b6134d861093c610936848d612673565b73ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093660808e018e612673565b91161461331b565b88612673565b92608060405180957fd9814ac5000000000000000000000000000000000000000000000000000000008252818061354c8787600484016133ab565b03915afa938415613669575b60008080928197613630575b5061356e90612c85565b6135aa602084016135816109ce8261275b565b9061359a610a1c6040880193610a0d610a07868b612673565b918215613611575b5050156133d0565b6135e6602085016135bd6109ce8261275b565b906135d6610a1c6040890193610a0d610a07868c612673565b9182156135eb575b505015613435565b613bf1565b613608919250613601610a07610ed6928a612673565b359261275b565b541138806135de565b613627919250613601610a07610ed69289612673565b541138806135a2565b91505061356e9550613659915060803d8111613662575b61365181836127b6565b810190613380565b96909290613564565b503d613647565b613671612c78565b613558565b6134b2565b90916136996126d89360008452606060208501526060840190612adb565b916040818403910152612adb565b90916136996126d89360018452606060208501526060840190612adb565b156136cc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f72646572206e6f7420766572696669656400000000000000000000000000006044820152fd5b916104aa969594939161378d61094161094161093c610936856137878873ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093661377c61093c61093660808b01809b612673565b956080810190612673565b86612673565b6040805180927f83d1214600000000000000000000000000000000000000000000000000000000825281806137c688886004840161367b565b03915afa908115613869575b6000908192613846575b506137e6906136c5565b613821602084016137f96109ce8261275b565b90613812610a1c6040880193610a0d610a07868b612673565b91821561383057505015613435565b61382a836151d4565b94614000565b613608919250613601610a07610ed69289612673565b6137e69250613863915060403d8111610f3257610f2481836127b6565b916137dc565b613871612c78565b6137d2565b90916126d893926138c661094161094161093c610936856137878873ffffffffffffffffffffffffffffffffffffffff61350361094161093c61093661377c61093c61093660808b01809b612673565b926040805180957f83d1214600000000000000000000000000000000000000000000000000000000825281806139008888600484016136a7565b03915afa9384156139a3575b6000908195613980575b50613920906136c5565b61395b602083016139336109ce8261275b565b9061394c610a1c6040870193610a0d610a07868a612673565b91821561396a575050156133d0565b613964826151d4565b9361430f565b613627919250613601610a07610ed69288612673565b613920955061399d915060403d8111610f3257610f2481836127b6565b94613916565b6139ab612c78565b61390c565b90808352602080930192838260051b850194846000925b8584106139d8575050505050505090565b9091929394959681810384526139ee88846128b4565b6040908183019073ffffffffffffffffffffffffffffffffffffffff8135613a1581610481565b168452888101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18236030181121561029957019088823592019367ffffffffffffffff8311610299578260061b3603851361029957808385938c96876060950152520193916000915b818310613a9f5750505050806001929901940194019295949391906139c7565b833586528a8401358b870152948501948a945092830192600190920191613a7f565b92906126d89492613add613aeb92606087526060870190612adb565b908582036020870152612adb565b9260408185039101526139b0565b9290916104aa9796959492613b3161094161094161093c61093689613b2b6134d861093c610936608085018095612673565b8a612673565b94608060405180977f950c52bb0000000000000000000000000000000000000000000000000000000082528180613b6e8989898960048601613ac1565b03915afa958615613be4575b60008080928199613bbb575b50613b9090612c85565b613ba3602084016135816109ce8261275b565b613bb6602085016135bd6109ce8261275b565b614535565b915050613b909750613bdb915060803d81116136625761365181836127b6565b98909290613b86565b613bec612c78565b613b7a565b979692959385879560408701613c0a610b4b828a612673565b35613feb575b613c1c6020870161275b565b613c469073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b613c536040880188612673565b613c5c916126db565b35613c709190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055613ca56020890161275b565b613ccf9073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b90613cda9089612673565b613ce3916126db565b35613cf79190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905563ffffffff1690613d3091612dbe565b612710900498613d408a88612517565b92613d4d6020860161275b565b613d596020890161275b565b613d666060880188612673565b91613d7093614deb565b613d7d6080880188612673565b613d8691612701565b613d8f9061275b565b73ffffffffffffffffffffffffffffffffffffffff16613db16020890161275b565b94613dbe6020880161275b565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9788166004820152961660248701526044860152846064815a602094600091f191821598610bca98613e48602063ffffffff99613e9199610a5598613e999f613fde575b613fc857500161275b565b613e546020830161275b565b613e6761093c6109366080860186612673565b91613e89613e7e61093c610be86080880188612673565b946060810190612673565b9790966147f4565b9116906125a2565b90613ead61093c610be86080840184612673565b73ffffffffffffffffffffffffffffffffffffffff93841693168303613f1b5791610c36613ee39492610c30602080960161275b565b03925af18015613f0e575b613ef6575b50565b613ef39060203d60201161084e5761083f81836127b6565b613f16612c78565b613eee565b91613f4f602084613fb382613ee398613f4461094161094161093c610be86080879e0189612673565b613f4f83860161275b565b60006040518096819582947f23b872dd00000000000000000000000000000000000000000000000000000000845230906004850160409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b03925af18015613fde57613fc857500161275b565b610e3c90833d851161084e5761083f81836127b6565b613fe6612c78565b613e3d565b613ffb610ea1610b4b838b612673565b613c10565b958397919894939293604084019461401b610b4b8787612673565b356142fa575b60209a8b998a8701976140338961275b565b61405d9073ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b906140689089612673565b614071916126db565b356140859190600052602052604060002090565b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558963ffffffff809616906140c191612dbe565b6127109004998b6140d28c83612517565b94016140dd8161275b565b6140e68b61275b565b9560608b01968b6140f78982612673565b916080019d8e61410691612673565b61410f91612701565b6141189061275b565b9261412295614471565b61412b9061275b565b938d6141368b61275b565b6141408b83612673565b614149916126c7565b6141529061275b565b9161415d8c82612673565b61416691612701565b61416f9061275b565b9361417991612673565b966141859891966147f4565b5a61418f91612517565b911661419a916125a2565b3a6141a491612dbe565b956141af8282612673565b6141b891612701565b6141c19061275b565b73ffffffffffffffffffffffffffffffffffffffff948516941684036142295750506141f394610c30610c369261275b565b03925af1801561421c575b614206575050565b81613ef392903d1061084e5761083f81836127b6565b614224612c78565b6141fe565b6141f39694926000876142ba61424f61094161094161093c610be8879a610da79a612673565b6142588561275b565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff909216600482015230602482015260448101999099529793849283919082906064820190565b03925af180156142ed575b6142d0575b5061275b565b6142e690883d8a1161084e5761083f81836127b6565b50386142ca565b6142f5612c78565b6142c5565b61430a610ea1610b4b8888612673565b614021565b9194939092816020870195863561432581610481565b73ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002060408901614356908a612673565b61435f916126db565b35600052602052604060002061439a9060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b63ffffffff16906143aa91612dbe565b6127109004956143ba8784612517565b916143c48761275b565b9160208201976143d38961275b565b9360608301956143e38785612673565b6080870197916143f38989612673565b6143fc91612701565b6144059061275b565b9261440f95614471565b6144189061275b565b976144229061275b565b9161442d8482612673565b614436916126c7565b61443f9061275b565b9361444991612673565b61445291612701565b61445b9061275b565b9361446591612673565b966126d89891966147f4565b9073ffffffffffffffffffffffffffffffffffffffff60009161449d6144fe9896602098968387614deb565b604051978896879586937f23b872dd0000000000000000000000000000000000000000000000000000000085526004850160409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0393165af18015614528575b6145115750565b613ef39060203d811161084e5761083f81836127b6565b614530612c78565b61450a565b919995929893979490978763ffffffff60408c01978c89614559610b4b8284612673565b356146f3575b5050169061456c91612dbe565b61271090049761457c8982612517565b998b60209d8e809d8183019288886145938661275b565b9487019e8f6145a19061275b565b93604081016145af91612673565b6145b8916126db565b35906145c49089612673565b6145cd916126db565b35906145dc60808a018a612673565b6145e591612701565b6145ee9061275b565b946145f89761470a565b6146019061275b565b61460a8a61275b565b906146186080840184612673565b614621916126c7565b61462a9061275b565b926080810161463891612673565b61464191612701565b61464a9061275b565b93614654986147f4565b5a61465e91612517565b9063ffffffff1661466e916125a2565b3a61467891612dbe565b946146866080820182612673565b61468f91612701565b6146989061275b565b73ffffffffffffffffffffffffffffffffffffffff938416931683036146c957506141f394610c30610c369261275b565b610da76141f39694926000876142ba61424f61094161094161093c610be88a6080899c0190612673565b610b4b610ea19161470393612673565b8c8961455f565b91946147e1969397949161449d73ffffffffffffffffffffffffffffffffffffffff92600094848716865260209b8c9a60048c52604088209088528b526147796040882060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b6147a38573ffffffffffffffffffffffffffffffffffffffff166000526004602052604060002090565b9087528a526147da6040872060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b8387614deb565b0393165af1801561421c57614206575050565b929795947f9f0ef199f3d5fa3ecdee559103421e5ce53b68b3187e374801d79307d145d1eb9561486b939892956040519687968752602087015273ffffffffffffffffffffffffffffffffffffffff928392838093166040890152606088015260a0608088015216991697169560a08401916139b0565b0390a4565b919092602084019161488683356109ce81610481565b614896610a076040880188612673565b356000526020526148d0604060002060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b15614929576104aa9361491f6149186148e88561275b565b9461093c8560608601976148fc8988612673565b9061491061093c610be860808c018c612673565b923390614c81565b9382612673565b9490933391614bb9565b6104aa9361497461496d61493e85969561275b565b9561093c8560608601986149528a88612673565b9061496661093c610be860808c018c612673565b9233614c81565b9482612673565b9490933390614bb9565b916149956126d89492604085526040850190612adb565b9260208185039101526139b0565b90916104aa93926149e6602084016149bd6109ce8261275b565b906149d6610a1c6040880193610a0d610a07868b612673565b918215614a99575b50501561302f565b6149ff61094161094161093c6109366080880188612673565b926040805180957ffd2596280000000000000000000000000000000000000000000000000000000082528180614a3a8888886004850161497e565b03915afa938415614a8c575b6000908195614a69575b50614a5a90612c85565b614a6381612d4f565b93614ab8565b614a5a9550614a86915060403d8111610f3257610f2481836127b6565b94614a50565b614a94612c78565b614a46565b614aaf919250613601610a07610ed69289612673565b541138806149de565b949192936020820190813590614acd82610481565b73ffffffffffffffffffffffffffffffffffffffff821660005260046020526040600020614b01610a076040870187612673565b35600052602052614b3b604060002060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055565b15614b7757506104aa95614b6784614b528461275b565b888861491061093c610be860808b018b612673565b614b71339261275b565b90614bb9565b90506104aa95614b8682610481565b614bad84614b9a610be86080870187612673565b35614ba481610481565b88888633614c81565b614bb682610481565b33905b909461486b907fd1b78f78360698bdfc69fb877fd0dd84d4817dfe3095a8456e6f7ff0f4d51170949397956020614c0d60808701614bf78189612673565b15614c74575b3597614c0889610481565b612673565b60011015614c67575b013590614c2282610481565b604051958695865273ffffffffffffffffffffffffffffffffffffffff92839283809316602089015260408801526080606088015216991697169560808401916139b0565b614c6f6125ae565b614c16565b614c7c6125ae565b614bfd565b9392614c909195928686614deb565b73ffffffffffffffffffffffffffffffffffffffff614ce2614cdb614cd384614cce614cc560025463ffffffff9060c01c1690565b63ffffffff1690565b612dbe565b612710900490565b8093612517565b921680614d0a5750506104aa9250600080928192604051915af1614d0461310a565b5061516f565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff878116600484015295909516602482015260448101939093526020946141f394869460009190868160648186895af18015614dde575b614dc1575b5060405190815273ffffffffffffffffffffffffffffffffffffffff90921660048301523060248301526044820193909352938492839182906064820190565b614dd790873d891161084e5761083f81836127b6565b5038614d81565b614de6612c78565b614d7c565b9291909260005b838110614e00575050505050565b8060051b830135907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc18436030182121561029957614ede6001928501614ed7614e4e6109416109418461275b565b60408051907f01ffc9a7000000000000000000000000000000000000000000000000000000009283835260209182846004938180614eb2878201907f80ac58cd00000000000000000000000000000000000000000000000000000000602083019252565b03915afa938415614f99575b600094614f7a575b5083614ee4575b5050509050614fa6565b878561505f565b01614df2565b614f3093508294614efa6109416109418a61275b565b915180958194829383528201907fd9b67a2600000000000000000000000000000000000000000000000000000000602083019252565b03915afa918215614f6d575b600092614f50575b50501580388080614ecd565b614f669250803d1061084e5761083f81836127b6565b3880614f44565b614f75612c78565b614f3c565b614f92919450833d851161084e5761083f81836127b6565b9238614ec6565b614fa1612c78565b614ebe565b15614fad57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6f6e6c79206572633732310000000000000000000000000000000000000000006044820152fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610299570180359067ffffffffffffffff821161029957602001918160061b3603831361029957565b92919260005b6020850190615074828761500b565b9050811015615167576150a873ffffffffffffffffffffffffffffffffffffffff87356150a081610481565b16928761500b565b82101561515a575b823b15610299576040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015286166024820152600683901b919091013560448201526001926000908290606490829084905af1801561514d575b615134575b5001615065565b8061514161514792612795565b80610430565b3861512d565b615155612c78565b615128565b6151626125ae565b6150b0565b505050509050565b1561517657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f6661696c656420746f2073656e6420657468657220746f2073656c6c657200006044820152fd5b604081016151e5610be88284612673565b35916151fa6151f48383612673565b90612710565b3590818414615294576152346152196152138584612673565b9061271f565b3561522d6152278685612673565b9061272e565b3590612517565b90811561528d5761524e6152276127109561525593612673565b3542612517565b908082111561527c57505081905b838181111561527457030204900390565b900302040190565b83615287920261252e565b90615263565b5050505090565b5050509056fea26469706673582212209b1600f3b5193d8c16f1787565d5125f082c971333d408e30b0fab7e908fd5f764736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f1000c3d7117638ccede869607ae50c8a47cb233
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _matchExecutor (address): 0xf1000c3D7117638cCEDe869607aE50C8a47Cb233
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000f1000c3d7117638ccede869607ae50c8a47cb233
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.