20M+ users trust MoonPay worldwide. Checkout with your preferred payment method.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
100s of games, generous bonuses, 20+ years of trusted gaming. Join CryptoWins & start winning today!
Overview
ETH Balance
Eth Value
$32,834.26 (@ $3,231.06/ETH)Token Holdings
Could not find any matches!
- ERC-20 Tokens (53)10,000 FREEFree Coin (FREE)$0.00@0.001,432.10616157 TRBTellor Tribu... (TRB)18.73445622 BALBalancer (BAL)$40.47@2.1611,853.23463984 BZRXbZx Protocol... (BZRX)$66.64@0.00560.04894374 LINKChainLink To... (LINK)$0.68@13.89332.12165299 ENGEnigma (ENG)$3.82@0.0115171.53554765 LENDEthLend (LEND)$6.58@0.03840.1 EXMREXMR FDN. (EXMR)200 HERCHercules (HERC)0.00300723 KNCKyberNetwork (KNC)$0.00@0.5027891.92864164 MTAMeta (MTA)$26.07@0.02922,003.08257683 mUSDmStable USD (mUSD)$2,053.16@1.0250.0398499 OMGOMG Network (OMG)$0.01@0.2698273,232.66659041 PNKPinakion (PNK)$4,281.42@0.01570.15863457 RENRepublic (REN)$0.01@0.03694 STTScatter.cx (STT)$0.00@0.000.05405318 sETHSynth sETH (sETH)$174.14@3,221.5733.02412145 SNXSynthetix Ne... (SNX)$51.52@1.5614.47987638 UMAUMA Voting T... (UMA)$35.77@2.470.12632121 YFIyearn.financ... (YFI)$799.75@6,331.09996.46355577 ZRXZRX (ZRX)$361.08@0.3624162.37988066 BATBAT (BAT)$30.59@0.188413.34792077 COMPCompound (COMP)$643.77@48.234,382.84732795 DAIDai Stableco... (DAI)$4,391.61@1.0020.1050136 GNOGnosis (GNO)$27.23@259.331.22866445 MKRMaker (MKR)$1,918.25@1,561.2561.49490695 SAISai Stableco... (SAI)$1,041.72@16.940.00417729 WBTCWrapped BTC (WBTC)$371.72@88,987.0048,000 Earn $TUSD airdrops at https://www.tenorusd.org$ tenorusd.o... (Earn $...)1,000,000 AfroXAfroDex$0.01@0.008,848 BEBbetbeb.com空投... (BEB)0.00000061 BDCBurn Defi Co... (BDC)0.1 EATChowCoin10.07589803 DEMODemoToken (DEMO)888,888 KICKKickToken32,000 MNEMinereum32,000 MNEMinereum1 PONTPointnityNet... (PONT)3.06566346 REPReputation$2.49@0.81360.00417729 SHIKSHIKOKU INU3 STSSToken6,889.63801637 SNXSynthetix Network Token0.3 YFJZYearn Family (YFJZ)88,888 betbeb.com启动公链 (betbeb...)0.1 ADAOrevelation.finance1.4 TokenERC-20 TOKEN*[Suspicious]1.7 TokenERC-20 TOKEN*[Suspicious]1.5 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]500 TokenERC-20 TOKEN*[Spam]856,420,144,564 TokenERC-20 TOKEN*[Spam]856,420,144,564 TokenERC-20 TOKEN*[Spam]16,888 TokenERC-20 TOKEN*[Spam]NFT Tokens (22)claim rewards on apyusd.netapyusd.netERC-1155claim rewards on clinknetwork.orgclinknetwork.orgERC-1155nft-dai.comDAI Mysterybox NFTERC-1155claim rewards on snxtoken.comsnxtoken.comERC-1155claim rewards on wbtcnetwork.netwbtcnetwork.netERC-1155ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]
More Info
Private Name Tags
ContractCreator
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 18,196 transactions
Transaction Hash MethodBlockFromToDirect Withdrawa... 18419388 2023-10-24 10:01:11 386 days ago 1698141671 IN 0 ETH$0.00 0.00078545 29.2762502 Initiate Single ... 17350394 2023-05-27 12:29:47 536 days ago 1685190587 IN 0 ETH$0.00 0.00248833 68.40231321 Initiate Single ... 14538641 2022-04-07 12:11:04 951 days ago 1649333464 IN 0 ETH$0.00 0.00432288 68.40231321 Direct Withdrawa... 13667127 2021-11-22 22:19:13 1086 days ago 1637619553 IN 0 ETH$0.00 0.00394909 147.72363465 Deposit Ether 13621151 2021-11-15 15:37:08 1093 days ago 1636990628 IN 0.001 ETH$3.23 0.00802803 175.98006843 Transfer 13603760 2021-11-12 21:38:59 1096 days ago 1636753139 IN 0.001 ETH$3.23 0.00616762 135.8268544 Transfer 13603731 2021-11-12 21:33:38 1096 days ago 1636752818 IN 0.001 ETH$3.23 0.00357965 170.45986573 Deposit Ether 13597331 2021-11-11 21:36:38 1097 days ago 1636666598 IN 0.001 ETH$3.23 0.00994258 217.94833393 Deposit Ether 13595252 2021-11-11 13:43:38 1098 days ago 1636638218 IN 0.001 ETH$3.23 0.00478716 104.93806503 Initiate Single ... 13562016 2021-11-06 8:44:37 1103 days ago 1636188277 IN 0 ETH$0.00 0.00364514 100.2018722 Initiate Single ... 13516613 2021-10-30 5:23:23 1110 days ago 1635571403 IN 0 ETH$0.00 0.00489493 134.55769578 Deposit Ether 13516583 2021-10-30 5:16:14 1110 days ago 1635570974 IN 0.001 ETH$3.23 0.0045705 160.26185896 Transfer 13516577 2021-10-30 5:13:52 1110 days ago 1635570832 IN 0.0001 ETH$0.32 0.00615614 135.57403405 Transfer 13500054 2021-10-27 14:57:14 1112 days ago 1635346634 IN 0.005 ETH$16.16 0.00805846 177.46806072 Deposit Token 13500035 2021-10-27 14:51:54 1112 days ago 1635346314 IN 0 ETH$0.00 0.01660776 144.72239673 Deposit Ether 13499972 2021-10-27 14:36:19 1112 days ago 1635345379 IN 0.01 ETH$32.31 0.0074545 163.40792069 Deposit Ether 13461122 2021-10-21 12:52:31 1119 days ago 1634820751 IN 0.0001 ETH$0.32 0.00318527 69.8233725 Initiate Single ... 13114373 2021-08-28 14:15:55 1172 days ago 1630160155 IN 0 ETH$0.00 0.00174508 47.98679961 Transfer 13114066 2021-08-28 13:09:01 1173 days ago 1630156141 IN 0.00001 ETH$0.03 0.00337341 74.29122592 Initiate Single ... 12875562 2021-07-22 10:15:20 1210 days ago 1626948920 IN 0 ETH$0.00 0.00044502 17 Initiate Single ... 12860045 2021-07-19 23:38:30 1212 days ago 1626737910 IN 0 ETH$0.00 0.00034444 14 Initiate Single ... 12860016 2021-07-19 23:33:44 1212 days ago 1626737624 IN 0 ETH$0.00 0.00049206 20.00000145 Initiate Single ... 12859991 2021-07-19 23:28:34 1212 days ago 1626737314 IN 0 ETH$0.00 0.00036904 15 Initiate Single ... 12859971 2021-07-19 23:23:11 1212 days ago 1626736991 IN 0 ETH$0.00 0.00036544 15 Initiate Single ... 12859927 2021-07-19 23:13:55 1212 days ago 1626736435 IN 0 ETH$0.00 0.00077961 32 Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To 17350394 2023-05-27 12:29:47 536 days ago 1685190587 0.00000343 ETH$0.01 13562016 2021-11-06 8:44:37 1103 days ago 1636188277 0.055 ETH$177.71 13516613 2021-10-30 5:23:23 1110 days ago 1635571403 0.0011 ETH$3.55 13114373 2021-08-28 14:15:55 1172 days ago 1630160155 0.00001 ETH$0.03 12875562 2021-07-22 10:15:20 1210 days ago 1626948920 0.025 ETH$80.78 12264467 2021-04-18 13:59:13 1304 days ago 1618754353 16.50908089 ETH$53,341.91 12222687 2021-04-12 2:58:42 1311 days ago 1618196322 0 ETH$0.00 12186002 2021-04-06 11:54:05 1317 days ago 1617710045 2.2051405 ETH$7,124.95 12047604 2021-03-16 4:47:29 1338 days ago 1615870049 1.58059498 ETH$5,107.00 12047580 2021-03-16 4:43:42 1338 days ago 1615869822 0.13056078 ETH$421.85 11965099 2021-03-03 11:50:37 1351 days ago 1614772237 0.22 ETH$710.83 11958370 2021-03-02 10:47:28 1352 days ago 1614682048 4.31973766 ETH$13,957.35 11958182 2021-03-02 10:03:35 1352 days ago 1614679415 5.68553238 ETH$18,370.32 11956333 2021-03-02 3:18:04 1352 days ago 1614655084 10.18836198 ETH$32,919.26 11956333 2021-03-02 3:18:04 1352 days ago 1614655084 10.21901904 ETH$33,018.31 11952920 2021-03-01 14:37:33 1352 days ago 1614609453 0.01152087 ETH$37.22 11902478 2021-02-21 20:29:55 1360 days ago 1613939395 0.65050769 ETH$2,101.83 11838625 2021-02-12 0:38:12 1370 days ago 1613090292 10.05679543 ETH$32,494.16 11838625 2021-02-12 0:38:12 1370 days ago 1613090292 10.0870566 ETH$32,591.93 11797228 2021-02-05 16:02:47 1376 days ago 1612540967 0.20999999 ETH$678.52 11697806 2021-01-21 8:54:09 1392 days ago 1611219249 0.008 ETH$25.85 11647759 2021-01-13 16:30:44 1399 days ago 1610555444 10.11347119 ETH$32,677.28 11647759 2021-01-13 16:30:44 1399 days ago 1610555444 10.1439029 ETH$32,775.61 11604505 2021-01-07 1:14:52 1406 days ago 1609982092 0.98895 ETH$3,195.36 11412418 2020-12-08 13:31:48 1436 days ago 1607434308 10.00585185 ETH$32,329.56 Loading...LoadingThis contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.Contract Name:dexBlue
Compiler Versionv0.5.11+commit.c082d0b4
Contract Source Code (Solidity)
- contract dexBlueEvents *
- contract dexBlueStorage *
- contract dexBlueUtils is dexBlueSt ... *
- - function getBalance(address token, ad ...
- - function getTokenIndex(address token)
- - function getTokenFromIndex(uint256 in ...
- - function getTokens()
- - function getReserveIndex(address rese ...
- - function getReserveFromIndex(uint256 ...
- - function getReserves()
- - function getBlocked(address token, ad ...
- - function getLastBlockedTimestamp(addr ...
- - function checkERC20TransferSuccess()
- contract dexBlueStructs is dexBlue ... *
- - function orderFromInput(OrderInputPac ...
- - function tradeFromInput(TradeInputPac ...
- - function reserveTradeFromInput(TradeI ...
- - function reserveReserveTradeFromInput ...
- - function ringTradeFromInput(RingTrade ...
- contract dexBlueSettlementModule i ... *
- - function matchOrders(
- - function matchOrderWithReserve(
- - function matchOrderWithReserveWithDat ...
- - function matchReserveWithReserve(
- - function matchReserveWithReserveWithD ...
- - function batchSettleTrades(OrderInput ...
- - function settleTrade(OrderInputPacked ...
- - function settleReserveTrade(OrderInpu ...
- - function settleReserveTradeWithData(
- - function settleReserveReserveTrade(
- - function settleReserveReserveTradeWit ...
- - function settleRingTrade(OrderInputPa ...
- - function settleRingTradeWithData(
- - function getSwapOutput(address sell_t ...
- - function getBestReserve(address sell_ ...
- - function swap(address sell_token, uin ...
- - function swapWithReserve(address sell ...
- contract dexBlue is dexBlueStorage ... *
- - function depositEther()
- - function()
- - function depositWrappedEther(uint256 ...
- - function depositToken(address token, ...
- - function multiSigWithdrawal(address t ...
- - function multiSigSend(address token, ...
- - function multiSigTransfer(address tok ...
- - function userSigWithdrawal(bytes32 pa ...
- - function blockFundsForSingleSigWithdr ...
- - function initiateSingleSigWithdrawal( ...
- - function settleTrade(OrderInputPacked ...
- - function settleReserveTrade(OrderInpu ...
- - function settleReserveTradeWithData(O ...
- - function settleReserveReserveTrade(Tr ...
- - function settleReserveReserveTradeWit ...
- - function batchSettleTrades(OrderInput ...
- - function settleRingTrade(OrderInputPa ...
- - function settleRingTradeWithData(Orde ...
- - function executeReserveReserveTrade(
- - function executeReserveReserveTradeWi ...
- - function executeReserveTrade(
- - function executeReserveTradeWithData(
- - function getSwapOutput(address sell_t ...
- - function getBestReserve(address sell_ ...
- - function swap(address sell_token, uin ...
- - function swapWithReserve(address sell ...
- - function multiSigOrderBatchCancel(byt ...
- - function getAvailableGasTokens()
- - function mintGasTokens(uint amount)
- - function spendGasTokens(uint256 amoun ...
- - function createChildContract()
- - function restoreChildContractAddress( ...
- - function delegateAddress(address dele ...
- - function revokeDelegation(address del ...
- - function changeSingleSigWaitingPeriod ...
- - function changeOwner(address payable ...
- - function cacheReserveAddress(address ...
- - function removePublicReserveAddress(a ...
- - function cacheTokenAddress(address to ...
- - function removeTokenAddressFromArr(ad ...
- - function nominateArbiter(address arbi ...
- - function setMarketActiveState(bool st ...
- - function nominateFeeCollector(address ...
- - function lockFeeCollector()
- - function getFeeCollector()
- - function directWithdrawal(address tok ...
- contract dexBlueReserve *
- - function trade(address sell_token, ui ...
- - function tradeWithData(address sell_t ...
- - function offer(address sell_token, ui ...
- - function offerWithData(address sell_t ...
- - function offerExecuted(address sell_t ...
- - function swap(address sell_token, uin ...
- - function getSwapOutput(address sell_t ...
- contract Token
- - function totalSupply()
- - function balanceOf(address _owner)
- - function transfer(address _to, uint25 ...
- - function transferFrom(address _from, ...
- - function approve(address _spender, ui ...
- - function allowance(address _owner, ad ...
- contract WETH is Token
- - function deposit()
- - function withdraw(uint256 amount)
/** *Submitted for verification at Etherscan.io on 2019-09-12 */ pragma solidity 0.5.11; pragma experimental ABIEncoderV2; contract dexBlueEvents{ // Events /** @notice Emitted when a trade is settled * @param makerAsset The address of the token the maker gave * @param makerAmount The amount of makerAsset the maker gave * @param takerAsset The address of the token the taker gave * @param takerAmount The amount of takerAsset the taker gave */ event LogTrade(address makerAsset, uint256 makerAmount, address takerAsset, uint256 takerAmount); /** @notice Emitted when a simple token swap against a reserve is settled * @param soldAsset The address of the token the maker gave * @param soldAmount The amount of makerAsset the maker gave * @param boughtAsset The address of the token the taker gave * @param boughtAmount The amount of takerAsset the taker gave */ event LogSwap(address soldAsset, uint256 soldAmount, address boughtAsset, uint256 boughtAmount); /** @notice Emitted when a trade settlement failed */ event LogTradeFailed(); /** @notice Emitted after a successful deposit of ETH or token * @param account The address, which deposited the asset * @param token The address of the deposited token (ETH is address(0)) * @param amount The amount deposited in this transaction */ event LogDeposit(address account, address token, uint256 amount); /** @notice Emitted after a successful multi-sig withdrawal of deposited ETH or token * @param account The address, which initiated the withdrawal * @param token The address of the token which is withdrawn (ETH is address(0)) * @param amount The amount withdrawn in this transaction */ event LogWithdrawal(address account, address token, uint256 amount); /** @notice Emitted after a successful direct withdrawal of deposited ETH or token * @param account The address, which initiated the withdrawal * @param token The address of the token which is withdrawn (ETH is address(0)) * @param amount The amount withdrawn in this transaction */ event LogDirectWithdrawal(address account, address token, uint256 amount); /** @notice Emitted after a user successfully blocked tokens or ETH for a single signature withdrawal * @param account The address controlling the tokens * @param token The address of the token which is blocked (ETH is address(0)) * @param amount The amount blocked in this transaction */ event LogBlockedForSingleSigWithdrawal(address account, address token, uint256 amount); /** @notice Emitted after a successful single-sig withdrawal of deposited ETH or token * @param account The address, which initiated the withdrawal * @param token The address of the token which is withdrawn (ETH is address(0)) * @param amount The amount withdrawn in this transaction */ event LogSingleSigWithdrawal(address account, address token, uint256 amount); /** @notice Emitted once an on-chain cancellation of an order was performed * @param hash The invalidated orders hash */ event LogOrderCanceled(bytes32 hash); /** @notice Emitted once a address delegation or dedelegation was performed * @param delegator The delegating address, * @param delegate The delegated address, * @param status whether the transaction delegated an address (true) or inactivated an active delegation (false) */ event LogDelegateStatus(address delegator, address delegate, bool status); } contract dexBlueStorage{ // Storage Variables mapping(address => mapping(address => uint256)) balances; // Users balances (token address > user address > balance amount) (ETH is address(0)) mapping(address => mapping(address => uint256)) blocked_for_single_sig_withdrawal; // Users balances, blocked to withdraw without arbiters multi-sig (token address > user address > blocked amount) (ETH is address(0)) mapping(address => uint256) last_blocked_timestamp; // The last timestamp a user blocked tokens at, to withdraw with single-sig mapping(bytes32 => bool) processed_withdrawals; // Processed withdrawal hashes mapping(bytes32 => uint256) matched; // Orders matched sell amounts to prevent multiple-/over- matches of the same orders mapping(address => address) delegates; // Registered Delegated Signing Key addresses mapping(uint256 => address) tokens; // Cached token index > address mapping mapping(address => uint256) token_indices; // Cached token addresses > index mapping address[] token_arr; // Array of cached token addresses mapping(uint256 => address payable) reserves; // Reserve index > reserve address mapping mapping(address => uint256) reserve_indices; // Reserve address > reserve index mapping mapping(address => bool) public_reserves; // Reserves publicly accessible through swap() & swapWithReserve() address[] public_reserve_arr; // Array of the publicly accessible reserves address payable owner; // Contract owner address (has the right to nominate arbiters and feeCollector addresses) mapping(address => bool) arbiters; // Mapping of arbiters bool marketActive = true; // Make it possible to pause the market address payable feeCollector; // feeCollector address bool feeCollectorLocked = false; // Make it possible to lock the feeCollector address (to allow to change the feeCollector to a fee distribution contract) uint256 single_sig_waiting_period = 86400; // waiting period for single sig withdrawas, default (and max) is one day } contract dexBlueUtils is dexBlueStorage{ /** @notice Get the balance of a user for a specific token * @param token The token address (ETH is address(0)) * @param holder The address holding the token * @return The amount of the specified token held by the user */ function getBalance(address token, address holder) view public returns(uint256){ return balances[token][holder]; } /** @notice Get index of a cached token address * @param token The token address (ETH is address(0)) * @return The index of the token */ function getTokenIndex(address token) view public returns(uint256){ return token_indices[token]; } /** @notice Get a cached token address from an index * @param index The index of the token * @return The address of the token */ function getTokenFromIndex(uint256 index) view public returns(address){ return tokens[index]; } /** @notice Get the array containing all indexed token addresses * @return The array of all indexed token addresses */ function getTokens() view public returns(address[] memory){ return token_arr; } /** @notice Get index of a cached reserve address * @param reserve The reserve address * @return The index of the reserve */ function getReserveIndex(address reserve) view public returns(uint256){ return reserve_indices[reserve]; } /** @notice Get a cached reserve address from an index * @param index The index of the reserve * @return The address of the reserve */ function getReserveFromIndex(uint256 index) view public returns(address){ return reserves[index]; } /** @notice Get the array containing all publicly available reserve addresses * @return The array of addresses of all publicly available reserves */ function getReserves() view public returns(address[] memory){ return public_reserve_arr; } /** @notice Get the balance a user blocked for a single-signature withdrawal (ETH is address(0)) * @param token The token address (ETH is address(0)) * @param holder The address holding the token * @return The amount of the specified token blocked by the user */ function getBlocked(address token, address holder) view public returns(uint256){ return blocked_for_single_sig_withdrawal[token][holder]; } /** @notice Returns the timestamp of the last blocked balance * @param user Address of the user which blocked funds * @return The last unix timestamp the user blocked funds at, which starts the waiting period for single-sig withdrawals */ function getLastBlockedTimestamp(address user) view public returns(uint256){ return last_blocked_timestamp[user]; } /** @notice We have to check returndatasize after ERC20 tokens transfers, as some tokens are implemented badly (dont return a boolean) * @return Whether the last ERC20 transfer failed or succeeded */ function checkERC20TransferSuccess() pure internal returns(bool){ uint256 success = 0; assembly { switch returndatasize // Check the number of bytes the token contract returned case 0 { // Nothing returned, but contract did not throw > assume our transfer succeeded success := 1 } case 32 { // 32 bytes returned, result is the returned bool returndatacopy(0, 0, 32) success := mload(0) } } return success != 0; } } contract dexBlueStructs is dexBlueStorage{ // EIP712 Domain struct EIP712_Domain { string name; string version; uint256 chainId; address verifyingContract; } bytes32 constant EIP712_DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); bytes32 EIP712_DOMAIN_SEPARATOR; // Order typehash bytes32 constant EIP712_ORDER_TYPEHASH = keccak256("Order(address sellTokenAddress,uint128 sellTokenAmount,address buyTokenAddress,uint128 buyTokenAmount,uint32 expiry,uint64 nonce)"); // Withdrawal typehash bytes32 constant EIP712_WITHDRAWAL_TYPEHASH = keccak256("Withdrawal(address token,uint256 amount,uint64 nonce)"); struct Order{ address sellToken; // The token, the order signee wants to sell uint256 sellAmount; // The total amount the signee wants to give for the amount he wants to buy (the orders "rate" is implied by the ratio between the two amounts) address buyToken; // The token, the order signee wants to buy uint256 buyAmount; // The total amount the signee wants to buy uint256 expiry; // The expiry time of the order (after which it is not longer valid) bytes32 hash; // The orders hash address signee; // The orders signee } struct OrderInputPacked{ /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0 - 15 | sell amount 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff | 16 - 31 | buy amount */ bytes32 packedInput1; /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffff000000000000000000000000000000000000000000000000000000000000 | 0 - 1 | sell token identifier 0x0000ffff00000000000000000000000000000000000000000000000000000000 | 2 - 3 | buy token identifier 0x00000000ffffffff000000000000000000000000000000000000000000000000 | 4 - 7 | expiry 0x0000000000000000ffffffffffffffff00000000000000000000000000000000 | 8 - 15 | nonce 0x00000000000000000000000000000000ff000000000000000000000000000000 | 16 - 16 | v 0x0000000000000000000000000000000000ff0000000000000000000000000000 | 17 - 17 | signing scheme 0x00 = personal.sign, 0x01 = EIP712 0x000000000000000000000000000000000000ff00000000000000000000000000 | 18 - 18 | signed by delegate */ bytes32 packedInput2; bytes32 r; // Signature r bytes32 s; // Signature s } /** @notice Helper function parse an Order struct from an OrderInputPacked struct * @param orderInput The OrderInputPacked struct to parse * @return The parsed Order struct */ function orderFromInput(OrderInputPacked memory orderInput) view public returns(Order memory){ // Parse packed input Order memory order = Order({ sellToken : tokens[uint256(orderInput.packedInput2 >> 240)], sellAmount : uint256(orderInput.packedInput1 >> 128), buyToken : tokens[uint256((orderInput.packedInput2 & 0x0000ffff00000000000000000000000000000000000000000000000000000000) >> 224)], buyAmount : uint256(orderInput.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), expiry : uint256((orderInput.packedInput2 & 0x00000000ffffffff000000000000000000000000000000000000000000000000) >> 192), hash : 0x0, signee : address(0x0) }); // Restore order hash if( orderInput.packedInput2[17] == byte(0x00) // Signing scheme ){ // Order is hashed after signature scheme personal.sign() order.hash = keccak256(abi.encodePacked( // Restore the hash of this order "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked( order.sellToken, uint128(order.sellAmount), order.buyToken, uint128(order.buyAmount), uint32(order.expiry), uint64(uint256((orderInput.packedInput2 & 0x0000000000000000ffffffffffffffff00000000000000000000000000000000) >> 128)), // nonce address(this) // This contract's address )) )); }else{ // Order is hashed after EIP712 order.hash = keccak256(abi.encodePacked( "\x19\x01", EIP712_DOMAIN_SEPARATOR, keccak256(abi.encode( EIP712_ORDER_TYPEHASH, order.sellToken, order.sellAmount, order.buyToken, order.buyAmount, order.expiry, uint256((orderInput.packedInput2 & 0x0000000000000000ffffffffffffffff00000000000000000000000000000000) >> 128) // nonce )) )); } // Restore the signee of this order order.signee = ecrecover( order.hash, // Order hash uint8(orderInput.packedInput2[16]), // Signature v orderInput.r, // Signature r orderInput.s // Signature s ); // When the signature was delegated restore delegating address if( orderInput.packedInput2[18] == byte(0x01) // Is delegated ){ order.signee = delegates[order.signee]; } return order; } struct Trade{ uint256 makerAmount; uint256 takerAmount; uint256 makerFee; uint256 takerFee; uint256 makerRebate; } struct ReserveReserveTrade{ address makerToken; address takerToken; uint256 makerAmount; uint256 takerAmount; uint256 makerFee; uint256 takerFee; uint256 gasLimit; } struct ReserveTrade{ uint256 orderAmount; uint256 reserveAmount; uint256 orderFee; uint256 reserveFee; uint256 orderRebate; uint256 reserveRebate; bool orderIsMaker; uint256 gasLimit; } struct TradeInputPacked{ /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0 - 15 | maker amount 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff | 16 - 31 | taker amount */ bytes32 packedInput1; /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0-15 | maker fee 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff | 16-31 | taker fee */ bytes32 packedInput2; /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0 - 15 | maker rebate (optional) 0x00000000000000000000000000000000ff000000000000000000000000000000 | 16 - 16 | counterparty types: | | 0x11 : maker=order, taker=order, | | 0x10 : maker=order, taker=reserve, | | 0x01 : maker=reserve, taker=order | | 0x00 : maker=reserve, taker=reserve 0x0000000000000000000000000000000000ffff00000000000000000000000000 | 17 - 18 | maker_identifier 0x00000000000000000000000000000000000000ffff0000000000000000000000 | 19 - 20 | taker_identifier 0x000000000000000000000000000000000000000000ffff000000000000000000 | 21 - 22 | maker_token_identifier (optional) 0x0000000000000000000000000000000000000000000000ffff00000000000000 | 23 - 24 | taker_token_identifier (optional) 0x00000000000000000000000000000000000000000000000000ffffff00000000 | 25 - 27 | gas_limit (optional) 0x00000000000000000000000000000000000000000000000000000000ff000000 | 28 - 28 | burn_gas_tokens (optional) */ bytes32 packedInput3; } /** @notice Helper function parse an Trade struct from an TradeInputPacked struct * @param packed The TradeInputPacked struct to parse * @return The parsed Trade struct */ function tradeFromInput(TradeInputPacked memory packed) public pure returns (Trade memory){ return Trade({ makerAmount : uint256(packed.packedInput1 >> 128), takerAmount : uint256(packed.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), makerFee : uint256(packed.packedInput2 >> 128), takerFee : uint256(packed.packedInput2 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), makerRebate : uint256(packed.packedInput3 >> 128) }); } /** @notice Helper function parse an ReserveTrade struct from an TradeInputPacked struct * @param packed The TradeInputPacked struct to parse * @return The parsed ReserveTrade struct */ function reserveTradeFromInput(TradeInputPacked memory packed) public pure returns (ReserveTrade memory){ if(packed.packedInput3[16] == byte(0x10)){ // maker is order, taker is reserve return ReserveTrade({ orderAmount : uint256( packed.packedInput1 >> 128), reserveAmount : uint256( packed.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), orderFee : uint256( packed.packedInput2 >> 128), reserveFee : uint256( packed.packedInput2 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), orderRebate : uint256((packed.packedInput3 & 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000) >> 128), reserveRebate : 0, orderIsMaker : true, gasLimit : uint256((packed.packedInput3 & 0x00000000000000000000000000000000000000000000000000ffffff00000000) >> 32) }); }else{ // taker is order, maker is reserve return ReserveTrade({ orderAmount : uint256( packed.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), reserveAmount : uint256( packed.packedInput1 >> 128), orderFee : uint256( packed.packedInput2 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), reserveFee : uint256( packed.packedInput2 >> 128), orderRebate : 0, reserveRebate : uint256((packed.packedInput3 & 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000) >> 128), orderIsMaker : false, gasLimit : uint256((packed.packedInput3 & 0x00000000000000000000000000000000000000000000000000ffffff00000000) >> 32) }); } } /** @notice Helper function parse an ReserveReserveTrade struct from an TradeInputPacked struct * @param packed The TradeInputPacked struct to parse * @return The parsed ReserveReserveTrade struct */ function reserveReserveTradeFromInput(TradeInputPacked memory packed) public view returns (ReserveReserveTrade memory){ return ReserveReserveTrade({ makerToken : tokens[uint256((packed.packedInput3 & 0x000000000000000000000000000000000000000000ffff000000000000000000) >> 72)], takerToken : tokens[uint256((packed.packedInput3 & 0x0000000000000000000000000000000000000000000000ffff00000000000000) >> 56)], makerAmount : uint256( packed.packedInput1 >> 128), takerAmount : uint256( packed.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), makerFee : uint256( packed.packedInput2 >> 128), takerFee : uint256( packed.packedInput2 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), gasLimit : uint256((packed.packedInput3 & 0x00000000000000000000000000000000000000000000000000ffffff00000000) >> 32) }); } struct RingTrade { bool isReserve; // 1 if this trade is from a reserve, 0 when from an order uint256 identifier; // identifier of the reserve or order address giveToken; // the token this trade gives, the receive token is the givetoken of the previous ring element uint256 giveAmount; // the amount of giveToken, this ring element is giving for the amount it reeives from the previous element uint256 fee; // the fee this ring element has to pay on the giveToken giveAmount of the previous ring element uint256 rebate; // the rebate on giveAmount this element receives uint256 gasLimit; // the gas limit for the reserve call (if the element is a reserve) } struct RingTradeInputPacked{ /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0 - 15 | give amount 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff | 16 - 31 | fee */ bytes32 packedInput1; /* BITMASK | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0 - 15 | rebate 0x00000000000000000000000000000000ff000000000000000000000000000000 | 16 - 16 | is reserve 0x0000000000000000000000000000000000ffff00000000000000000000000000 | 17 - 18 | identifier 0x00000000000000000000000000000000000000ffff0000000000000000000000 | 19 - 20 | giveToken identifier 0x000000000000000000000000000000000000000000ffffff0000000000000000 | 21 - 23 | gas_limit 0x000000000000000000000000000000000000000000000000ff00000000000000 | 24 - 24 | burn_gas_tokens */ bytes32 packedInput2; } /** @notice Helper function parse an RingTrade struct from an RingTradeInputPacked struct * @param packed The RingTradeInputPacked struct to parse * @return The parsed RingTrade struct */ function ringTradeFromInput(RingTradeInputPacked memory packed) view public returns(RingTrade memory){ return RingTrade({ isReserve : (packed.packedInput2[16] == bytes1(0x01)), identifier : uint256(( packed.packedInput2 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104), giveToken : tokens[uint256((packed.packedInput2 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88)], giveAmount : uint256( packed.packedInput1 >> 128), fee : uint256( packed.packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff), rebate : uint256( packed.packedInput2 >> 128), gasLimit : uint256(( packed.packedInput2 & 0x000000000000000000000000000000000000000000ffffff0000000000000000) >> 64) }); } } contract dexBlueSettlementModule is dexBlueStorage, dexBlueEvents, dexBlueUtils, dexBlueStructs{ /** @notice Internal helper function to settle a trade between two orders * @param makerOrder The maker order * @param takerOrder The taker order * @param trade The trade to settle between the two * @return Whether the trade succeeded or failed */ function matchOrders( Order memory makerOrder, Order memory takerOrder, Trade memory trade ) internal returns (bool){ // Load the orders previously matched amounts into memory uint makerOrderMatched = matched[makerOrder.hash]; uint takerOrderMatched = matched[takerOrder.hash]; if( // Check if the arbiter has matched following the conditions of the two order signees // Do maker and taker want to trade the same tokens with each other makerOrder.buyToken == takerOrder.sellToken && takerOrder.buyToken == makerOrder.sellToken // Are both of the orders still valid && makerOrder.expiry > block.timestamp && takerOrder.expiry > block.timestamp // Do maker and taker hold the required balances && balances[makerOrder.sellToken][makerOrder.signee] >= trade.makerAmount - trade.makerRebate && balances[takerOrder.sellToken][takerOrder.signee] >= trade.takerAmount // Are they both matched at a rate better or equal to the one they signed && trade.makerAmount - trade.makerRebate <= makerOrder.sellAmount * trade.takerAmount / makerOrder.buyAmount + 1 // Check maker doesn't overpay (+ 1 to deal with rouding errors for very smal amounts) && trade.takerAmount <= takerOrder.sellAmount * trade.makerAmount / takerOrder.buyAmount + 1 // Check taker doesn't overpay (+ 1 to deal with rouding errors for very smal amounts) // Check if the order was cancelled && makerOrder.sellAmount > makerOrderMatched && takerOrder.sellAmount > takerOrderMatched // Check if the matched amount + previously matched trades doesn't exceed the amount specified by the order signee && trade.makerAmount - trade.makerRebate + makerOrderMatched <= makerOrder.sellAmount && trade.takerAmount + takerOrderMatched <= takerOrder.sellAmount // Check if the charged fee is not too high && trade.makerFee <= trade.takerAmount / 20 && trade.takerFee <= trade.makerAmount / 20 // Check if maker_rebate is smaller than or equal to the taker's fee which compensates it && trade.makerRebate <= trade.takerFee ){ // Settle the trade: // Substract sold amounts balances[makerOrder.sellToken][makerOrder.signee] -= trade.makerAmount - trade.makerRebate; // Substract maker's sold amount minus the makers rebate balances[takerOrder.sellToken][takerOrder.signee] -= trade.takerAmount; // Substract taker's sold amount // Add bought amounts balances[makerOrder.buyToken][makerOrder.signee] += trade.takerAmount - trade.makerFee; // Give the maker his bought amount minus the fee balances[takerOrder.buyToken][takerOrder.signee] += trade.makerAmount - trade.takerFee; // Give the taker his bought amount minus the fee // Save sold amounts to prevent double matching matched[makerOrder.hash] += trade.makerAmount - trade.makerRebate; // Prevent maker order from being reused matched[takerOrder.hash] += trade.takerAmount; // Prevent taker order from being reused // Give fee to feeCollector balances[takerOrder.buyToken][feeCollector] += trade.takerFee - trade.makerRebate; // Give the feeColletor the taker fee minus the maker rebate balances[makerOrder.buyToken][feeCollector] += trade.makerFee; // Give the feeColletor the maker fee // Set potential previous blocking of these funds to 0 blocked_for_single_sig_withdrawal[makerOrder.sellToken][makerOrder.signee] = 0; // If the maker tried to block funds which he/she used in this order we have to unblock them blocked_for_single_sig_withdrawal[takerOrder.sellToken][takerOrder.signee] = 0; // If the taker tried to block funds which he/she used in this order we have to unblock them emit LogTrade(makerOrder.sellToken, trade.makerAmount, takerOrder.sellToken, trade.takerAmount); return true; }else{ return false; } } /** @notice Internal helper function to settle a trade between an order and a reserve * @param order The order * @param reserve The reserve * @param trade The trade to settle between the two * @return Whether the trade succeeded or failed */ function matchOrderWithReserve( Order memory order, address reserve, ReserveTrade memory trade ) internal returns(bool){ // Load the orders previously matched amount into memory uint orderMatched = matched[order.hash]; if( // Check if the arbiter matched the conditions of the order signee // Does the order signee has the required balances deposited balances[order.sellToken][order.signee] >= trade.orderAmount - trade.orderRebate // Is the order still valid && order.expiry > block.timestamp // Is the order matched at a rate better or equal to the one specified by the signee && trade.orderAmount - trade.orderRebate <= order.sellAmount * trade.reserveAmount / order.buyAmount + 1 // + 1 to deal with rouding errors // Check if the order was cancelled && order.sellAmount > orderMatched // Check if the matched amount + previously matched trades doesn't exceed the amount specified by the order signee && trade.orderAmount - trade.orderRebate + orderMatched <= order.sellAmount // Check if the charged fee is not too high && trade.orderFee <= trade.reserveAmount / 20 && trade.reserveFee <= trade.orderAmount / 20 // Check if the rebates can be compensated by the fees && trade.orderRebate <= trade.reserveFee && trade.reserveRebate <= trade.orderFee ){ balances[order.sellToken][order.signee] -= trade.orderAmount - trade.orderRebate; // Substract users's sold amount minus the makers rebate (bool txSuccess, bytes memory returnData) = address(this).call.gas( trade.gasLimit // The gas limit for the call )( abi.encodePacked( // This encodes the function to call and the parameters we are passing to the settlement function dexBlue(address(0)).executeReserveTrade.selector, // This function executes the call to the reserve abi.encode( order.sellToken, // The token the order signee wants to exchange with the reserve trade.orderAmount - trade.reserveFee, // The reserve receives the sold amount minus the fee order.buyToken, // The token the order signee wants to receive from the reserve trade.reserveAmount - trade.reserveRebate, // The reserve has to return the amount the order want to receive minus reserve // The reserve the trade is settled with ) ) ); if( txSuccess // The call to the reserve did not fail && abi.decode(returnData, (bool)) // The call returned true (we are sure its a contract we called) // executeReserveTrade checks whether the reserve deposited the funds ){ // Substract the deposited amount from reserves balance balances[order.buyToken][reserve] -= trade.reserveAmount - trade.reserveRebate; // Substract reserves's sold amount // The amount to the order signees balance balances[order.buyToken][order.signee] += trade.reserveAmount - trade.orderFee; // Give the users his bought amount minus the fee // Save sold amounts to prevent double matching matched[order.hash] += trade.orderAmount - trade.orderRebate; // Prevent maker order from being reused // Give fee to feeCollector balances[order.buyToken][feeCollector] += trade.orderFee - trade.reserveRebate; // Give the feeColletor the fee minus the maker rebate balances[order.sellToken][feeCollector] += trade.reserveFee - trade.orderRebate; // Give the feeColletor the fee minus the maker rebate // Set potential previous blocking of these funds to 0 blocked_for_single_sig_withdrawal[order.sellToken][order.signee] = 0; // If the user blocked funds which he/she used in this order we have to unblock them if(trade.orderIsMaker){ emit LogTrade(order.sellToken, trade.orderAmount, order.buyToken, trade.reserveAmount); }else{ emit LogTrade(order.buyToken, trade.reserveAmount, order.sellToken, trade.orderAmount); } emit LogDirectWithdrawal(reserve, order.sellToken, trade.orderAmount - trade.reserveFee); return true; }else{ balances[order.sellToken][order.signee] += trade.orderAmount - trade.orderRebate; // Refund substracted amount return false; } }else{ return false; } } /** @notice Internal helper function to settle a trade between an order and a reserve, passing some additional data to the reserve * @param order The order * @param reserve The reserve * @param trade The trade to settle between the two * @param data The data to pass along to the reserve * @return Whether the trade succeeded or failed */ function matchOrderWithReserveWithData( Order memory order, address reserve, ReserveTrade memory trade, bytes32[] memory data ) internal returns(bool){ // Load the orders previously matched amount into memory uint orderMatched = matched[order.hash]; if( // Check if the arbiter matched the conditions of the order signee // Does the order signee has the required balances deposited balances[order.sellToken][order.signee] >= trade.orderAmount - trade.orderRebate // Is the order still valid && order.expiry > block.timestamp // Is the order matched at a rate better or equal to the one specified by the signee && trade.orderAmount - trade.orderRebate <= order.sellAmount * trade.reserveAmount / order.buyAmount + 1 // + 1 to deal with rouding errors // Check if the order was cancelled && order.sellAmount > orderMatched // Check if the matched amount + previously matched trades doesn't exceed the amount specified by the order signee && trade.orderAmount - trade.orderRebate + orderMatched <= order.sellAmount // Check if the charged fee is not too high && trade.orderFee <= trade.reserveAmount / 20 && trade.reserveFee <= trade.orderAmount / 20 // Check if the rebates can be compensated by the fees && trade.orderRebate <= trade.reserveFee && trade.reserveRebate <= trade.orderFee ){ balances[order.sellToken][order.signee] -= trade.orderAmount - trade.orderRebate; // Substract users's sold amount minus the makers rebate (bool txSuccess, bytes memory returnData) = address(this).call.gas( trade.gasLimit // The gas limit for the call )( abi.encodePacked( // This encodes the function to call and the parameters we are passing to the settlement function dexBlue(address(0)).executeReserveTradeWithData.selector, // This function executes the call to the reserve abi.encode( order.sellToken, // The token the order signee wants to exchange with the reserve trade.orderAmount - trade.reserveFee, // The reserve receives the sold amount minus the fee order.buyToken, // The token the order signee wants to receive from the reserve trade.reserveAmount - trade.reserveRebate, // The reserve has to return the amount the order want to receive minus reserve, // The reserve the trade is settled with data // The data passed on to the reserve ) ) ); if( txSuccess // The call to the reserve did not fail && abi.decode(returnData, (bool)) // The call returned true (we are sure its a contract we called) // executeReserveTrade checks whether the reserve deposited the funds ){ // substract the deposited amount from reserves balance balances[order.buyToken][reserve] -= trade.reserveAmount - trade.reserveRebate; // Substract reserves's sold amount // the amount to the order signees balance balances[order.buyToken][order.signee] += trade.reserveAmount - trade.orderFee; // Give the users his bought amount minus the fee // Save sold amounts to prevent double matching matched[order.hash] += trade.orderAmount - trade.orderRebate; // Prevent maker order from being reused // Give fee to feeCollector balances[order.buyToken][feeCollector] += trade.orderFee - trade.reserveRebate; // Give the feeColletor the fee minus the maker rebate balances[order.sellToken][feeCollector] += trade.reserveFee - trade.orderRebate; // Give the feeColletor the fee minus the maker rebate // Set potential previous blocking of these funds to 0 blocked_for_single_sig_withdrawal[order.sellToken][order.signee] = 0; // If the user blocked funds which he/she used in this order we have to unblock them if(trade.orderIsMaker){ emit LogTrade(order.sellToken, trade.orderAmount, order.buyToken, trade.reserveAmount); }else{ emit LogTrade(order.buyToken, trade.reserveAmount, order.sellToken, trade.orderAmount); } emit LogDirectWithdrawal(reserve, order.sellToken, trade.orderAmount - trade.reserveFee); return true; }else{ balances[order.sellToken][order.signee] += trade.orderAmount - trade.orderRebate; // Refund substracted amount return false; } }else{ return false; } } /** @notice internal helper function to settle a trade between two reserves * @param makerReserve The maker reserve * @param takerReserve The taker reserve * @param trade The trade to settle between the two * @return Whether the trade succeeded or failed */ function matchReserveWithReserve( address makerReserve, address takerReserve, ReserveReserveTrade memory trade ) internal returns(bool){ (bool txSuccess, bytes memory returnData) = address(this).call.gas( trade.gasLimit // The gas limit for the call )( abi.encodePacked( // This encodes the function to call and the parameters we are passing to the settlement function dexBlue(address(0)).executeReserveReserveTrade.selector, // This function executes the call to the reserves abi.encode( makerReserve, takerReserve, trade ) ) ); return ( txSuccess // The call to the reserve did not fail && abi.decode(returnData, (bool)) // The call returned true (we are sure its a contract we called) ); } /** @notice internal helper function to settle a trade between two reserves * @param makerReserve The maker reserve * @param takerReserve The taker reserve * @param trade The trade to settle between the two * @param makerData The data to pass on to the maker reserve * @param takerData The data to pass on to the taker reserve * @return Whether the trade succeeded or failed */ function matchReserveWithReserveWithData( address makerReserve, address takerReserve, ReserveReserveTrade memory trade, bytes32[] memory makerData, bytes32[] memory takerData ) internal returns(bool){ (bool txSuccess, bytes memory returnData) = address(this).call.gas( trade.gasLimit // The gas limit for the call )( abi.encodePacked( // This encodes the function to call and the parameters we are passing to the settlement function dexBlue(address(0)).executeReserveReserveTradeWithData.selector, // This function executes the call to the reserves abi.encode( makerReserve, takerReserve, trade, makerData, takerData ) ) ); return ( txSuccess // The call to the reserve did not fail && abi.decode(returnData, (bool)) // The call returned true (we are sure its a contract we called) ); } /** @notice Allows an arbiter to settle multiple trades between multiple orders and reserves * @param orderInput Array of all orders involved in the transactions * @param tradeInput Array of the trades to be settled */ function batchSettleTrades(OrderInputPacked[] calldata orderInput, TradeInputPacked[] calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active Order[] memory orders = new Order[](orderInput.length); uint256 i = orderInput.length; while(i-- != 0){ // Loop through the orderInput array, to parse the infos and restore all signees orders[i] = orderFromInput(orderInput[i]); // Parse this orders infos } uint256 makerIdentifier; uint256 takerIdentifier; for(i = 0; i < tradeInput.length; i++){ makerIdentifier = uint256((tradeInput[i].packedInput3 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104); takerIdentifier = uint256((tradeInput[i].packedInput3 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88); if(tradeInput[i].packedInput3[16] == byte(0x11)){ // Both are orders if(!matchOrders( orders[makerIdentifier], orders[takerIdentifier], tradeFromInput(tradeInput[i]) )){ emit LogTradeFailed(); } }else if(tradeInput[i].packedInput3[16] == byte(0x10)){ // Maker is order, taker is reserve if(!matchOrderWithReserve( orders[makerIdentifier], reserves[takerIdentifier], reserveTradeFromInput(tradeInput[i]) )){ emit LogTradeFailed(); } }else if(tradeInput[i].packedInput3[16] == byte(0x01)){ // Taker is order, maker is reserve if(!matchOrderWithReserve( orders[takerIdentifier], reserves[makerIdentifier], reserveTradeFromInput(tradeInput[i]) )){ emit LogTradeFailed(); } }else{ // Both are reserves if(!matchReserveWithReserve( reserves[makerIdentifier], reserves[takerIdentifier], reserveReserveTradeFromInput(tradeInput[i]) )){ emit LogTradeFailed(); } } } } /** @notice Allows an arbiter to settle a trade between two orders * @param makerOrderInput The packed maker order input * @param takerOrderInput The packed taker order input * @param tradeInput The packed trade to settle between the two */ function settleTrade(OrderInputPacked calldata makerOrderInput, OrderInputPacked calldata takerOrderInput, TradeInputPacked calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active if(!matchOrders( orderFromInput(makerOrderInput), orderFromInput(takerOrderInput), tradeFromInput(tradeInput) )){ emit LogTradeFailed(); } } /** @notice Allows an arbiter to settle a trade between an order and a reserve * @param orderInput The packed maker order input * @param tradeInput The packed trade to settle between the two */ function settleReserveTrade(OrderInputPacked calldata orderInput, TradeInputPacked calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active if(!matchOrderWithReserve( orderFromInput(orderInput), reserves[ tradeInput.packedInput3[16] == byte(0x01) ? // is maker reserve // maker is reserve uint256((tradeInput.packedInput3 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104) : // taker is reserve uint256((tradeInput.packedInput3 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88) ], reserveTradeFromInput(tradeInput) )){ emit LogTradeFailed(); } } /** @notice Allows an arbiter to settle a trade between an order and a reserve * @param orderInput The packed maker order input * @param tradeInput The packed trade to settle between the two * @param data The data to pass on to the reserve */ function settleReserveTradeWithData( OrderInputPacked calldata orderInput, TradeInputPacked calldata tradeInput, bytes32[] calldata data ) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active if(!matchOrderWithReserveWithData( orderFromInput(orderInput), reserves[ tradeInput.packedInput3[16] == byte(0x01) ? // Is maker reserve // maker is reserve uint256((tradeInput.packedInput3 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104) : // taker is reserve uint256((tradeInput.packedInput3 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88) ], reserveTradeFromInput(tradeInput), data )){ emit LogTradeFailed(); } } /** @notice Allows an arbiter to settle a trade between two reserves * @param tradeInput The packed trade to settle between the two */ function settleReserveReserveTrade( TradeInputPacked calldata tradeInput ) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active if(!matchReserveWithReserve( reserves[uint256((tradeInput.packedInput3 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104)], reserves[uint256((tradeInput.packedInput3 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88)], reserveReserveTradeFromInput(tradeInput) )){ emit LogTradeFailed(); } } /** @notice Allows an arbiter to settle a trade between two reserves * @param tradeInput The packed trade to settle between the two * @param makerData The data to pass on to the maker reserve * @param takerData The data to pass on to the taker reserve */ function settleReserveReserveTradeWithData( TradeInputPacked calldata tradeInput, bytes32[] calldata makerData, bytes32[] calldata takerData ) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active if(!matchReserveWithReserveWithData( reserves[uint256((tradeInput.packedInput3 & 0x0000000000000000000000000000000000ffff00000000000000000000000000) >> 104)], reserves[uint256((tradeInput.packedInput3 & 0x00000000000000000000000000000000000000ffff0000000000000000000000) >> 88)], reserveReserveTradeFromInput(tradeInput), makerData, takerData )){ emit LogTradeFailed(); } } /** @notice Allow arbiters to settle a ring of order and reserve trades * @param orderInput Array of OrderInputPacked structs * @param tradeInput Array of RingTradeInputPacked structs */ function settleRingTrade(OrderInputPacked[] calldata orderInput, RingTradeInputPacked[] calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active // Parse Orders from packed input uint256 i = orderInput.length; Order[] memory orders = new Order[](i); while(i-- != 0){ orders[i] = orderFromInput(orderInput[i]); } // Parse RingTrades from packed input i = tradeInput.length; RingTrade[] memory trades = new RingTrade[](i); while(i-- != 0){ trades[i] = ringTradeFromInput(tradeInput[i]); } uint256 prev = trades.length - 1; uint256 next = 1; // Loop through the RingTrades array and settle each participants trade for(i = 0; i < trades.length; i++){ require( // Check if the charged fee is not too high trades[i].fee <= trades[prev].giveAmount / 20 // Check if maker_rebate is smaller than or equal to the taker's fee which compensates it && trades[i].rebate <= trades[next].fee ); if(trades[i].isReserve){ // Ring element is a reserve address reserve = reserves[trades[i].identifier]; if(i == 0){ require( dexBlueReserve(reserve).offer( trades[i].giveToken, // The token the reserve would sell trades[i].giveAmount - trades[i].rebate, // The amount the reserve would sell trades[prev].giveToken, // The token the reserve would receive trades[prev].giveAmount - trades[i].fee // The amount the reserve would receive ) && balances[trades[i].giveToken][reserve] >= trades[i].giveAmount ); }else{ uint256 receiveAmount = trades[prev].giveAmount - trades[i].fee; if(trades[prev].giveToken != address(0)){ Token(trades[prev].giveToken).transfer(reserve, receiveAmount); // Send collateral to reserve require( // Revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } require( dexBlueReserve(reserve).trade.value( trades[prev].giveToken == address(0) ? receiveAmount : 0 )( trades[prev].giveToken, receiveAmount, // Reserve gets the reserve_buy_amount minus the fee trades[i].giveToken, trades[i].giveAmount - trades[i].rebate // Reserve has to give reserve_sell_amount minus the rebate ) ); } // Substract deposited amount from reserves balance balances[trades[i].giveToken][reserve] -= trades[i].giveAmount - trades[i].rebate; emit LogDirectWithdrawal(reserve, trades[prev].giveToken, trades[prev].giveAmount - trades[i].fee); }else{ // Ring element is an order Order memory order = orders[trades[i].identifier]; // Cache order uint256 orderMatched = matched[order.hash]; require( // Does the order signee want to trade the last elements giveToken and this elements giveToken order.buyToken == trades[prev].giveToken && order.sellToken == trades[i].giveToken // Is the order still valid && order.expiry > block.timestamp // Does the order signee hold the required balances && balances[order.sellToken][order.signee] >= trades[i].giveAmount - trades[i].rebate // Is the order matched at a rate better or equal to the one the order signee signed && trades[i].giveAmount - trades[i].rebate <= order.sellAmount * trades[prev].giveAmount / order.buyAmount + 1 // Check order doesn't overpay (+ 1 to deal with rouding errors for very smal amounts) // Check if the order was cancelled && order.sellAmount > orderMatched // Do the matched amount + previously matched trades not exceed the amount specified by the order signee && trades[i].giveAmount - trades[i].rebate + orderMatched <= order.sellAmount ); // Substract the sold amounts balances[order.sellToken ][order.signee] -= trades[i].giveAmount - trades[i].rebate; // Substract sold amount minus the makers rebate from order signees balance // Add bought amounts balances[trades[prev].giveToken][order.signee] += trades[prev].giveAmount - trades[i].fee; // Give the order signee his bought amount minus the fee // Save sold amounts to prevent double matching matched[order.hash] += trades[i].giveAmount - trades[i].rebate; // Prevent order from being reused // Set potential previous blocking of these funds to 0 blocked_for_single_sig_withdrawal[order.sellToken][order.signee] = 0; // If the order signee tried to block funds which he/she used in this order we have to unblock them } emit LogTrade(trades[prev].giveToken, trades[prev].giveAmount, trades[i].giveToken, trades[i].giveAmount); // Give fee to feeCollector balances[trades[prev].giveToken][feeCollector] += trades[i].fee - trades[prev].rebate; // Give the feeColletor the fee minus the maker rebate prev = i; if(i == trades.length - 2){ next = 0; }else{ next = i + 2; } } if(trades[0].isReserve){ address payable reserve = reserves[trades[0].identifier]; prev = trades.length - 1; if(trades[prev].giveToken == address(0)){ // Is the withdrawal token ETH require( reserve.send(trades[prev].giveAmount - trades[0].fee), // Withdraw ETH "Sending of ETH failed." ); }else{ Token(trades[prev].giveToken).transfer(reserve, trades[prev].giveAmount - trades[0].fee); // Withdraw ERC20 require( // Revert if the withdrawal failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Notify the reserve, that the offer got executed dexBlueReserve(reserve).offerExecuted( trades[0].giveToken, // The token the reserve sold trades[0].giveAmount - trades[0].rebate, // The amount the reserve sold trades[prev].giveToken, // The token the reserve received trades[prev].giveAmount - trades[0].fee // The amount the reserve received ); } } /** @notice Allow arbiters to settle a ring of order and reserve trades, passing on some data to the reserves * @param orderInput Array of OrderInputPacked structs * @param tradeInput Array of RingTradeInputPacked structs * @param data Array of data to pass along to the reserves */ function settleRingTradeWithData( OrderInputPacked[] calldata orderInput, RingTradeInputPacked[] calldata tradeInput, bytes32[][] calldata data ) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active // Parse Orders from packed input uint256 i = orderInput.length; Order[] memory orders = new Order[](i); while(i-- != 0){ orders[i] = orderFromInput(orderInput[i]); } // Parse RingTrades from packed input i = tradeInput.length; RingTrade[] memory trades = new RingTrade[](i); while(i-- != 0){ trades[i] = ringTradeFromInput(tradeInput[i]); } uint256 prev = trades.length - 1; uint256 next = 1; // Loop through the RingTrades array and settle each participants trade for(i = 0; i < trades.length; i++){ require( // Check if the charged fee is not too high trades[i].fee <= trades[prev].giveAmount / 20 // Check if maker_rebate is smaller than or equal to the taker's fee which compensates it && trades[i].rebate <= trades[next].fee ); if(trades[i].isReserve){ // ring element is a reserve address reserve = reserves[trades[i].identifier]; if(i == 0){ require( dexBlueReserve(reserve).offerWithData( trades[i].giveToken, // The token the reserve would sell trades[i].giveAmount - trades[i].rebate, // The amount the reserve would sell trades[prev].giveToken, // The token the reserve would receive trades[prev].giveAmount - trades[i].fee, // The amount the reserve would receive data[i] // The data to pass along to the reserve ) && balances[trades[i].giveToken][reserve] >= trades[i].giveAmount ); }else{ uint256 receiveAmount = trades[prev].giveAmount - trades[i].fee; if(trades[prev].giveToken != address(0)){ Token(trades[prev].giveToken).transfer(reserve, receiveAmount); // Send collateral to reserve require( // Revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } require( dexBlueReserve(reserve).tradeWithData.value( trades[prev].giveToken == address(0) ? receiveAmount : 0 )( trades[prev].giveToken, receiveAmount, // Reserve gets the reserve_buy_amount minus the fee trades[i].giveToken, trades[i].giveAmount - trades[i].rebate, // Reserve has to give reserve_sell_amount minus the reserve rebate data[i] // The data to pass along to the reserve ) ); } // Substract deposited amount from reserves balance balances[trades[i].giveToken][reserve] -= trades[i].giveAmount - trades[i].rebate; emit LogDirectWithdrawal(reserve, trades[prev].giveToken, trades[prev].giveAmount - trades[i].fee); }else{ // Ring element is an order Order memory order = orders[trades[i].identifier]; // Cache order uint256 orderMatched = matched[order.hash]; require( // Does the order signee want to trade the last elements giveToken and this elements giveToken order.buyToken == trades[prev].giveToken && order.sellToken == trades[i].giveToken // Is the order still valid && order.expiry > block.timestamp // Does the order signee hold the required balances && balances[order.sellToken][order.signee] >= trades[i].giveAmount - trades[i].rebate // Is the order matched at a rate better or equal to the one the order signee signed && trades[i].giveAmount - trades[i].rebate <= order.sellAmount * trades[prev].giveAmount / order.buyAmount + 1 // Check order doesn't overpay (+ 1 to deal with rouding errors for very smal amounts) // Check if the order was cancelled && order.sellAmount > orderMatched // Do the matched amount + previously matched trades not exceed the amount specified by the order signee && trades[i].giveAmount - trades[i].rebate + orderMatched <= order.sellAmount ); // Substract the sold amounts balances[order.sellToken ][order.signee] -= trades[i].giveAmount - trades[i].rebate; // Substract sold amount minus the makers rebate from order signees balance // Add bought amounts balances[trades[prev].giveToken][order.signee] += trades[prev].giveAmount - trades[i].fee; // Give the order signee his bought amount minus the fee // Save sold amounts to prevent double matching matched[order.hash] += trades[i].giveAmount - trades[i].rebate; // Prevent order from being reused // Set potential previous blocking of these funds to 0 blocked_for_single_sig_withdrawal[order.sellToken][order.signee] = 0; // If the order signee tried to block funds which he/she used in this order we have to unblock them } emit LogTrade(trades[prev].giveToken, trades[prev].giveAmount, trades[i].giveToken, trades[i].giveAmount); // Give fee to feeCollector balances[trades[prev].giveToken][feeCollector] += trades[i].fee - trades[prev].rebate; // Give the feeColletor the fee minus the maker rebate prev = i; if(i == trades.length - 2){ next = 0; }else{ next = i + 2; } } if(trades[0].isReserve){ address payable reserve = reserves[trades[0].identifier]; prev = trades.length - 1; if(trades[prev].giveToken == address(0)){ // Is the withdrawal token ETH require( reserve.send(trades[prev].giveAmount - trades[0].fee), // Withdraw ETH "Sending of ETH failed." ); }else{ Token(trades[prev].giveToken).transfer(reserve, trades[prev].giveAmount - trades[0].fee); // Withdraw ERC20 require( // Revert if the withdrawal failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Notify the reserve, that the offer got executed dexBlueReserve(reserve).offerExecuted( trades[0].giveToken, // The token the reserve sold trades[0].giveAmount - trades[0].rebate, // The amount the reserve sold trades[prev].giveToken, // The token the reserve received trades[prev].giveAmount - trades[0].fee // The amount the reserve received ); } } // Swapping functions /** @notice Queries best output for a trade currently available from the reserves * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @return The output amount the reserve with the best price offers */ function getSwapOutput(address sell_token, uint256 sell_amount, address buy_token) public view returns (uint256){ (, uint256 output) = getBestReserve(sell_token, sell_amount, buy_token); return output; } /** @notice Queries the reserve address and output of trade, of the reserve which offers the best deal on a trade * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @return The address of the reserve offering the best deal and the expected output of the trade */ function getBestReserve(address sell_token, uint256 sell_amount, address buy_token) public view returns (address, uint256){ address bestReserve; uint256 bestOutput = 0; uint256 output; for(uint256 i = 0; i < public_reserve_arr.length; i++){ output = dexBlueReserve(public_reserve_arr[i]).getSwapOutput(sell_token, sell_amount, buy_token); if(output > bestOutput){ bestOutput = output; bestReserve = public_reserve_arr[i]; } } return (bestReserve, bestOutput); } /** @notice Allows users to swap a token or ETH with the reserve offering the best price for his trade * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @param min_output The minimum amount of buy_token, the trade should result in * @param deadline The timestamp after which the transaction should not be executed * @return The amount of buy_token the user receives */ function swap(address sell_token, uint256 sell_amount, address buy_token, uint256 min_output, uint256 deadline) external payable returns(uint256){ require( ( deadline == 0 // No deadline is set || deadline > block.timestamp // Deadline is met ), // Check whether the deadline is met "Call deadline exceeded." ); (address reserve, uint256 amount) = getBestReserve(sell_token, sell_amount, buy_token); // Check which reserve offers the best deal on the trade require( amount >= min_output, // Check whether the best reserves deal is good enough "Too much slippage" ); return swapWithReserve(sell_token, sell_amount, buy_token, min_output, reserve, deadline); // Execute the swap with the best reserve } /** @notice Allows users to swap a token or ETH with a specified reserve * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @param min_output The minimum amount of buy_token, the trade should result in * @param reserve The address of the reserve to trade with * @param deadline The timestamp after which the transaction should not be executed */ function swapWithReserve(address sell_token, uint256 sell_amount, address buy_token, uint256 min_output, address reserve, uint256 deadline) public payable returns (uint256){ require( ( deadline == 0 // No deadline is set || deadline > block.timestamp // Deadline is met ), "Call deadline exceeded." ); require( public_reserves[reserve], // Check whether the reserve is registered "Unknown reserve." ); if(sell_token == address(0)){ // Caller wants to swap ETH require( msg.value == sell_amount, // Check whether the caller sent the required ETH "ETH amount not sent with the call." ); }else{ // Caller wants to swap a token require( msg.value == 0, // Check the caller hasn't sent any ETH with the call "Don't send ETH when swapping a token." ); Token(sell_token).transferFrom(msg.sender, reserve, sell_amount); // Deposit ERC20 into the reserve require( checkERC20TransferSuccess(), // Check whether the ERC20 token transfer was successful "ERC20 token transfer failed." ); } // Execute the swap with the reserve uint256 output = dexBlueReserve(reserve).swap.value(msg.value)( sell_token, sell_amount, buy_token, min_output ); if( output >= min_output // Check whether the output amount is sufficient && balances[buy_token][reserve] >= output // Check whether the reserve deposited the output amount ){ balances[buy_token][reserve] -= output; // Substract the amount from the reserves balance if(buy_token == address(0)){ // Is the bought asset ETH require( msg.sender.send(output), // Send the output ETH of the swap to msg.sender "Sending of ETH failed." ); }else{ Token(buy_token).transfer(msg.sender, output); // Transfer the output token of the swap msg.sender require( // Revert if the transfer failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } emit LogSwap(sell_token, sell_amount, buy_token, output); return output; }else{ revert("Too much slippage."); } } } contract dexBlue is dexBlueStorage, dexBlueEvents, dexBlueUtils, dexBlueStructs{ // Hardcode settlement module contract: address constant settlementModuleAddress = 0x9e3d5C6ffACA00cAf136609680b536DC0Eb20c66; // Deposit functions: /** @notice Deposit Ether into the smart contract */ function depositEther() public payable{ balances[address(0)][msg.sender] += msg.value; // Add the received ETH to the users balance emit LogDeposit(msg.sender, address(0), msg.value); // emit LogDeposit event } /** @notice Fallback function to credit ETH sent to the contract without data */ function() external payable{ if(msg.sender != wrappedEtherContract){ // ETH sends from WETH contract are handled in the depositWrappedEther() function depositEther(); // Call the deposit function to credit ETH sent in this transaction } } /** @notice Deposit Wrapped Ether (remember to set allowance in the token contract first) * @param amount The amount of WETH to deposit */ address constant wrappedEtherContract = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // We hardcode the address, to prevent misbehaviour through custom contracts (reentrancy etc) function depositWrappedEther(uint256 amount) external { Token(wrappedEtherContract).transferFrom(msg.sender, address(this), amount); // Transfer WETH to this contract require( checkERC20TransferSuccess(), // Check whether the ERC20 token transfer was successful "WETH deposit failed." ); uint balanceBefore = address(this).balance; // Remember ETH balance before the call WETH(wrappedEtherContract).withdraw(amount); // Unwrap the WETH require(balanceBefore + amount == address(this).balance); // Check whether the ETH was deposited balances[address(0)][msg.sender] += amount; // Credit the deposited eth to users balance emit LogDeposit(msg.sender, address(0), amount); // emit LogDeposit event } /** @notice Deposit ERC20 tokens into the smart contract (remember to set allowance in the token contract first) * @param token The address of the token to deposit * @param amount The amount of tokens to deposit */ function depositToken(address token, uint256 amount) external { Token(token).transferFrom(msg.sender, address(this), amount); // Deposit ERC20 require( checkERC20TransferSuccess(), // Check whether the ERC20 token transfer was successful "ERC20 token transfer failed." ); balances[token][msg.sender] += amount; // Credit the deposited token to users balance emit LogDeposit(msg.sender, token, amount); // emit LogDeposit event } // Multi-sig withdrawal functions: /** @notice User-submitted withdrawal with arbiters signature, which withdraws to the users address * @param token The token to withdraw (ETH is address(address(0))) * @param amount The amount of tokens to withdraw * @param nonce The nonce (to salt the hash) * @param v Multi-signature v * @param r Multi-signature r * @param s Multi-signature s */ function multiSigWithdrawal(address token, uint256 amount, uint64 nonce, uint8 v, bytes32 r, bytes32 s) external { multiSigSend(token, amount, nonce, v, r, s, msg.sender); // Call multiSigSend to send funds to msg.sender } /** @notice User-submitted withdrawal with arbiters signature, which sends tokens to specified address * @param token The token to withdraw (ETH is address(address(0))) * @param amount The amount of tokens to withdraw * @param nonce The nonce (to salt the hash) * @param v Multi-signature v * @param r Multi-signature r * @param s Multi-signature s * @param receiving_address The address to send the withdrawn token/ETH to */ function multiSigSend(address token, uint256 amount, uint64 nonce, uint8 v, bytes32 r, bytes32 s, address payable receiving_address) public { bytes32 hash = keccak256(abi.encodePacked( // Calculate the withdrawal hash from the parameters "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked( msg.sender, token, amount, nonce, address(this) )) )); if( !processed_withdrawals[hash] // Check if the withdrawal was initiated before && arbiters[ecrecover(hash, v,r,s)] // Check if the multi-sig is valid && balances[token][msg.sender] >= amount // Check if the user holds the required balance ){ processed_withdrawals[hash] = true; // Mark this withdrawal as processed balances[token][msg.sender] -= amount; // Substract the withdrawn balance from the users balance if(token == address(0)){ // Process an ETH withdrawal require( receiving_address.send(amount), "Sending of ETH failed." ); }else{ // Withdraw an ERC20 token Token(token).transfer(receiving_address, amount); // Transfer the ERC20 token require( checkERC20TransferSuccess(), // Check whether the ERC20 token transfer was successful "ERC20 token transfer failed." ); } blocked_for_single_sig_withdrawal[token][msg.sender] = 0; // Set potential previous blocking of these funds to 0 emit LogWithdrawal(msg.sender,token,amount); // emit LogWithdrawal event }else{ revert(); // Revert the transaction if checks fail } } /** @notice User-submitted transfer with arbiters signature, which sends tokens to another addresses account in the smart contract * @param token The token to transfer (ETH is address(address(0))) * @param amount The amount of tokens to transfer * @param nonce The nonce (to salt the hash) * @param v Multi-signature v * @param r Multi-signature r * @param s Multi-signature s * @param receiving_address The address to transfer the token/ETH to */ function multiSigTransfer(address token, uint256 amount, uint64 nonce, uint8 v, bytes32 r, bytes32 s, address receiving_address) external { bytes32 hash = keccak256(abi.encodePacked( // Calculate the withdrawal/transfer hash from the parameters "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked( msg.sender, token, amount, nonce, address(this) )) )); if( !processed_withdrawals[hash] // Check if the withdrawal was initiated before && arbiters[ecrecover(hash, v,r,s)] // Check if the multi-sig is valid && balances[token][msg.sender] >= amount // Check if the user holds the required balance ){ processed_withdrawals[hash] = true; // Mark this withdrawal as processed balances[token][msg.sender] -= amount; // Substract the balance from the withdrawing account balances[token][receiving_address] += amount; // Add the balance to the receiving account blocked_for_single_sig_withdrawal[token][msg.sender] = 0; // Set potential previous blocking of these funds to 0 emit LogWithdrawal(msg.sender,token,amount); // emit LogWithdrawal event emit LogDeposit(receiving_address,token,amount); // emit LogDeposit event }else{ revert(); // Revert the transaction if checks fail } } /** @notice Arbiter submitted withdrawal with users multi-sig to users address * @param packedInput1 tightly packed input arguments: * amount The amount of tokens to withdraw * fee The fee, covering the gas cost of the arbiter * @param packedInput2 tightly packed input arguments: * token The token to withdraw (ETH is address(address(0))) * nonce The nonce (to salt the hash) * v Multi-signature v (either 27 or 28. To identify the different signing schemes an offset of 10 is applied for EIP712) * signing_scheme The signing scheme of the users signature * burn_gas_tokens The amount of gas tokens to burn * @param r Multi-signature r * @param s Multi-signature s */ function userSigWithdrawal(bytes32 packedInput1, bytes32 packedInput2, bytes32 r, bytes32 s) external { /* BITMASK packedInput1 | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000 | 0-15 | amount 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff | 16-31 | gas fee BITMASK packedInput2 | BYTE RANGE | DESCRIPTION -------------------------------------------------------------------|------------|---------------------------------- 0xffff000000000000000000000000000000000000000000000000000000000000 | 0- 1 | token identifier 0x0000ffffffffffffffff00000000000000000000000000000000000000000000 | 2- 9 | nonce 0x00000000000000000000ff000000000000000000000000000000000000000000 | 10-10 | v 0x0000000000000000000000ff0000000000000000000000000000000000000000 | 11-11 | signing scheme 0x00 = personal.sign, 0x01 = EIP712 0x000000000000000000000000ff00000000000000000000000000000000000000 | 12-12 | burn_gas_tokens */ // parse the packed input parameters uint256 amount = uint256(packedInput1 >> 128); uint256 fee = uint256(packedInput1 & 0x00000000000000000000000000000000ffffffffffffffffffffffffffffffff); address token = tokens[uint256(packedInput2 >> 240)]; uint64 nonce = uint64(uint256((packedInput2 & 0x0000ffffffffffffffff00000000000000000000000000000000000000000000) >> 176)); uint8 v = uint8(packedInput2[10]); bytes32 hash; if(packedInput2[11] == byte(0x00)){ // Standard signing scheme (personal.sign()) hash = keccak256(abi.encodePacked( // Restore multi-sig hash "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked( token, amount, nonce, address(this) )) )); }else{ // EIP712 signing scheme hash = keccak256(abi.encodePacked( // Restore multi-sig hash "\x19\x01", EIP712_DOMAIN_SEPARATOR, keccak256(abi.encode( EIP712_WITHDRAWAL_TYPEHASH, token, amount, nonce )) )); } address payable account = address(uint160(ecrecover(hash, v, r, s))); // Restore signing address if( !processed_withdrawals[hash] // Check if the withdrawal was initiated before && arbiters[msg.sender] // Check if transaction comes from arbiter && fee <= amount / 20 // Check if fee is not too big && balances[token][account] >= amount // Check if the user holds the required tokens ){ processed_withdrawals[hash] = true; // Mark the withdrawal as processed balances[token][account] -= amount; // Deduct the withdrawn tokens from the users balance balances[token][feeCollector] += fee; // Fee to cover gas costs for the withdrawal if(token == address(0)){ // Send ETH require( account.send(amount - fee), "Sending of ETH failed." ); }else{ Token(token).transfer(account, amount - fee); // Withdraw ERC20 require( checkERC20TransferSuccess(), // Check if the transfer was successful "ERC20 token transfer failed." ); } blocked_for_single_sig_withdrawal[token][account] = 0; // Set potential previous blocking of these funds to 0 emit LogWithdrawal(account,token,amount); // emit LogWithdrawal event // burn gas tokens if(packedInput2[12] != byte(0x00)){ spendGasTokens(uint8(packedInput2[12])); } }else{ revert(); // Revert the transaction is checks fail } } // Single-sig withdrawal functions: /** @notice Allows user to block funds for single-sig withdrawal after 24h waiting period * (This period is necessary to ensure all trades backed by these funds will be settled.) * @param token The address of the token to block (ETH is address(address(0))) * @param amount The amount of the token to block */ function blockFundsForSingleSigWithdrawal(address token, uint256 amount) external { if (balances[token][msg.sender] - blocked_for_single_sig_withdrawal[token][msg.sender] >= amount){ // Check if the user holds the required funds blocked_for_single_sig_withdrawal[token][msg.sender] += amount; // Block funds for manual withdrawal last_blocked_timestamp[msg.sender] = block.timestamp; // Start waiting period emit LogBlockedForSingleSigWithdrawal(msg.sender, token, amount); // emit LogBlockedForSingleSigWithdrawal event }else{ revert(); // Revert the transaction if the user does not hold the required balance } } /** @notice Allows user to withdraw blocked funds without multi-sig after the waiting period * @param token The address of the token to withdraw (ETH is address(address(0))) * @param amount The amount of the token to withdraw */ function initiateSingleSigWithdrawal(address token, uint256 amount) external { if ( balances[token][msg.sender] >= amount // Check if the user holds the funds && ( ( blocked_for_single_sig_withdrawal[token][msg.sender] >= amount // Check if these funds are blocked && last_blocked_timestamp[msg.sender] + single_sig_waiting_period <= block.timestamp // Check if the waiting period has passed ) || single_sig_waiting_period == 0 // or the waiting period is disabled ) ){ balances[token][msg.sender] -= amount; // Substract the tokens from users balance if(blocked_for_single_sig_withdrawal[token][msg.sender] >= amount){ blocked_for_single_sig_withdrawal[token][msg.sender] = 0; // Substract the tokens from users blocked balance } if(token == address(0)){ // Withdraw ETH require( msg.sender.send(amount), "Sending of ETH failed." ); }else{ // Withdraw ERC20 tokens Token(token).transfer(msg.sender, amount); // Transfer the ERC20 tokens require( checkERC20TransferSuccess(), // Check if the transfer was successful "ERC20 token transfer failed." ); } emit LogSingleSigWithdrawal(msg.sender, token, amount); // emit LogSingleSigWithdrawal event }else{ revert(); // Revert the transaction if the required checks fail } } //Trade settlement structs and function /** @notice Allows an arbiter to settle a trade between two orders * @param makerOrderInput The packed maker order input * @param takerOrderInput The packed taker order input * @param tradeInput The packed trade to settle between the two */ function settleTrade(OrderInputPacked calldata makerOrderInput, OrderInputPacked calldata takerOrderInput, TradeInputPacked calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // burn gas tokens if(tradeInput.packedInput3[28] != byte(0x00)){ spendGasTokens(uint8(tradeInput.packedInput3[28])); } } /** @notice Allows an arbiter to settle a trade between an order and a reserve * @param orderInput The packed maker order input * @param tradeInput The packed trade to settle between the two */ function settleReserveTrade(OrderInputPacked calldata orderInput, TradeInputPacked calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // burn gas tokens if(tradeInput.packedInput3[28] != byte(0x00)){ spendGasTokens(uint8(tradeInput.packedInput3[28])); } } /** @notice Allows an arbiter to settle a trade between an order and a reserve, passing some additional data to the reserve * @param orderInput The packed maker order input * @param tradeInput The packed trade to settle between the two * @param data The data to pass on to the reserve */ function settleReserveTradeWithData(OrderInputPacked calldata orderInput, TradeInputPacked calldata tradeInput, bytes32[] calldata data) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // burn gas tokens if(tradeInput.packedInput3[28] != byte(0x00)){ spendGasTokens(uint8(tradeInput.packedInput3[28])); } } /** @notice Allows an arbiter to settle a trade between two reserves * @param tradeInput The packed trade to settle between the two */ function settleReserveReserveTrade(TradeInputPacked calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // burn gas tokens if(tradeInput.packedInput3[28] != byte(0x00)){ spendGasTokens(uint8(tradeInput.packedInput3[28])); } } /** @notice Allows an arbiter to settle a trade between two reserves * @param tradeInput The packed trade to settle between the two * @param makerData The data to pass on to the maker reserve * @param takerData The data to pass on to the taker reserve */ function settleReserveReserveTradeWithData(TradeInputPacked calldata tradeInput, bytes32[] calldata makerData, bytes32[] calldata takerData) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // burn gas tokens if(tradeInput.packedInput3[28] != byte(0x00)){ spendGasTokens(uint8(tradeInput.packedInput3[28])); } } /** @notice Allows an arbiter to settle multiple trades between multiple orders and reserves * @param orderInput Array of all orders involved in the transactions * @param tradeInput Array of the trades to be settled */ function batchSettleTrades(OrderInputPacked[] calldata orderInput, TradeInputPacked[] calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module // Loop through the trades and calc the gasToken sum uint256 i = tradeInput.length; uint256 gasTokenSum; while(i-- != 0){ gasTokenSum += uint8(tradeInput[i].packedInput3[28]); } // burn gas tokens if(gasTokenSum > 0){ spendGasTokens(gasTokenSum); } } /** @notice Allow arbiters to settle a ring of order and reserve trades * @param orderInput Array of OrderInputPacked structs * @param tradeInput Array of RingTradeInputPacked structs */ function settleRingTrade(OrderInputPacked[] calldata orderInput, RingTradeInputPacked[] calldata tradeInput) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // Loop through the trades and calc the gasToken sum uint256 i = tradeInput.length; uint256 gasTokenSum; while(i-- != 0){ gasTokenSum += uint8(tradeInput[i].packedInput2[24]); } // burn gas tokens if(gasTokenSum > 0){ spendGasTokens(gasTokenSum); } } /** @notice Allow arbiters to settle a ring of order and reserve trades, passing on some data to the reserves * @param orderInput Array of OrderInputPacked structs * @param tradeInput Array of RingTradeInputPacked structs * @param data Array of data to pass along to the reserves */ function settleRingTradeWithData(OrderInputPacked[] calldata orderInput, RingTradeInputPacked[] calldata tradeInput, bytes32[][] calldata data) external { require(arbiters[msg.sender] && marketActive); // Check if msg.sender is an arbiter and the market is active settlementModuleAddress.delegatecall(msg.data); // Loop through the trades and calc the gasToken sum uint256 i = tradeInput.length; uint256 gasTokenSum; while(i-- != 0){ gasTokenSum += uint8(tradeInput[i].packedInput2[24]); } // burn gas tokens if(gasTokenSum > 0){ spendGasTokens(gasTokenSum); } } /** @notice Helper function, callable only by the contract itself, to execute a trade between two reserves * @param makerReserve The maker reserve * @param takerReserve The taker reserve * @param trade The trade to settle between the two * @return Whether the trade succeeded or failed */ function executeReserveReserveTrade( address makerReserve, address payable takerReserve, ReserveReserveTrade calldata trade ) external returns(bool){ // this method is only callable from the contract itself // a call is used vs a jump, to be able to revert the sending of funds to the reserve without throwing the entire transaction require(msg.sender == address(this)); // Check that the caller is the contract itself // Check whether the taker reserve accepts the trade require( dexBlueReserve(takerReserve).offer( trade.takerToken, // The token we offer the reserve to sell trade.takerAmount, // The amount the reserve could sell trade.makerToken, // The token the reserve would receive trade.makerAmount - trade.takerFee // The amount the reserve would receive ) && balances[trade.takerToken][takerReserve] >= trade.takerAmount // Check whether the taker reserve deposited the collateral ); balances[trade.takerToken][takerReserve] -= trade.takerAmount; // Substract the deposited amount from the taker reserve if(trade.takerToken != address(0)){ Token(trade.takerToken).transfer(makerReserve, trade.takerAmount - trade.makerFee); // Send the taker reserves collateral to the maker reserve require( // Revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Check whether the maker reserve accepts the trade require( dexBlueReserve(makerReserve).trade.value( // Execute the trade in the maker reserve trade.takerToken == address(0) ? trade.takerAmount - trade.makerFee // Send the taker reserves collateral to the maker reserve : 0 )( trade.takerToken, // The token the taker reserve is selling trade.takerAmount - trade.makerFee, // The amount of sellToken the taker reserve wants to sell trade.makerToken, // The token the taker reserve wants in return trade.makerAmount // The amount of token the taker reserve wants in return ) && balances[trade.makerToken][makerReserve] >= trade.makerAmount // Check whether the maker reserve deposited the collateral ); balances[trade.makerToken][makerReserve] -= trade.makerAmount; // Substract the maker reserves's sold amount // Send the acquired amount to the taker reserve if(trade.makerToken == address(0)){ // Is the acquired token ETH require( takerReserve.send(trade.makerAmount - trade.takerFee), // Send ETH "Sending of ETH failed." ); }else{ Token(trade.makerToken).transfer(takerReserve, trade.makerAmount - trade.takerFee); // Transfer ERC20 require( // Revert if the transfer failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Notify the reserve, that the offer got executed dexBlueReserve(takerReserve).offerExecuted( trade.takerToken, // The token the reserve sold trade.takerAmount, // The amount the reserve sold trade.makerToken, // The token the reserve received trade.makerAmount - trade.takerFee // The amount the reserve received ); // Give fee to feeCollector balances[trade.makerToken][feeCollector] += trade.takerFee; // Give feeColletor the taker fee balances[trade.takerToken][feeCollector] += trade.makerFee; // Give feeColletor the maker fee emit LogTrade(trade.makerToken, trade.makerAmount, trade.takerToken, trade.takerAmount); emit LogDirectWithdrawal(makerReserve, trade.takerToken, trade.takerAmount - trade.makerFee); emit LogDirectWithdrawal(takerReserve, trade.makerToken, trade.makerAmount - trade.takerFee); return true; } /** @notice Helper function, callable only by the contract itself, to execute a trade between two reserves * @param makerReserve The maker reserve * @param takerReserve The taker reserve * @param trade The trade to settle between the two * @param makerData The data to pass on to the maker reserve * @param takerData The data to pass on to the taker reserve * @return Whether the trade succeeded or failed */ function executeReserveReserveTradeWithData( address makerReserve, address payable takerReserve, ReserveReserveTrade calldata trade, bytes32[] calldata makerData, bytes32[] calldata takerData ) external returns(bool){ // this method is only callable from the contract itself // a call is used vs a jump, to be able to revert the sending of funds to the reserve without throwing the entire transaction require(msg.sender == address(this)); // Check that the caller is the contract itself // Check whether the taker reserve accepts the trade require( dexBlueReserve(takerReserve).offerWithData( trade.takerToken, // The token we offer the reserve to sell trade.takerAmount, // The amount the reserve could sell trade.makerToken, // The token the reserve would receive trade.makerAmount - trade.takerFee, // The amount the reserve would receive takerData ) && balances[trade.takerToken][takerReserve] >= trade.takerAmount // Check whether the taker reserve deposited the collateral ); balances[trade.takerToken][takerReserve] -= trade.takerAmount; // Substract the deposited amount from the taker reserve if(trade.takerToken != address(0)){ Token(trade.takerToken).transfer(makerReserve, trade.takerAmount - trade.makerFee); // Send the taker reserves collateral to the maker reserve require( // Revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Check whether the maker reserve accepts the trade require( dexBlueReserve(makerReserve).tradeWithData.value( // Execute the trade in the maker reserve trade.takerToken == address(0) ? trade.takerAmount - trade.makerFee // Send the taker reserves collateral to the maker reserve : 0 )( trade.takerToken, // The token the taker reserve is selling trade.takerAmount - trade.makerFee, // The amount of sellToken the taker reserve wants to sell trade.makerToken, // The token the taker reserve wants in return trade.makerAmount, // The amount of token the taker reserve wants in return makerData ) && balances[trade.makerToken][makerReserve] >= trade.makerAmount // Check whether the maker reserve deposited the collateral ); balances[trade.makerToken][makerReserve] -= trade.makerAmount; // Substract the maker reserves's sold amount // Send the acquired amount to the taker reserve if(trade.makerToken == address(0)){ // Is the acquired token ETH require( takerReserve.send(trade.makerAmount - trade.takerFee), // Send ETH "Sending of ETH failed." ); }else{ Token(trade.makerToken).transfer(takerReserve, trade.makerAmount - trade.takerFee); // Transfer ERC20 require( // Revert if the transfer failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } // Notify the reserve, that the offer got executed dexBlueReserve(takerReserve).offerExecuted( trade.takerToken, // The token the reserve sold trade.takerAmount, // The amount the reserve sold trade.makerToken, // The token the reserve received trade.makerAmount - trade.takerFee // The amount the reserve received ); // Give fee to feeCollector balances[trade.makerToken][feeCollector] += trade.takerFee; // Give feeColletor the taker fee balances[trade.takerToken][feeCollector] += trade.makerFee; // Give feeColletor the maker fee emit LogTrade(trade.makerToken, trade.makerAmount, trade.takerToken, trade.takerAmount); emit LogDirectWithdrawal(makerReserve, trade.takerToken, trade.takerAmount - trade.makerFee); emit LogDirectWithdrawal(takerReserve, trade.makerToken, trade.makerAmount - trade.takerFee); return true; } /** @notice Helper function, callable only by the contract itself, to execute a trade with a reserve contract * @param sellToken The address of the token we want to sell (ETH is address(address(0))) * @param sellAmount The amount of sellToken we want to sell * @param buyToken The address of the token we want to buy (ETH is address(address(0))) * @param buyAmount The amount of buyToken we want in exchange for sellAmount * @param reserve The address of the reserve, we want to trade with */ function executeReserveTrade( address sellToken, uint256 sellAmount, address buyToken, uint256 buyAmount, address reserve ) external returns(bool){ // this method is only callable from the contract itself // a call is used vs a jump, to be able to revert the sending of funds to the reserve without throwing the entire transaction require(msg.sender == address(this)); // check that the caller is the contract itself if(sellToken == address(0)){ require(dexBlueReserve(reserve).trade.value( // execute the trade in the reserve // if the reserve accepts the trade, it will deposit the buyAmount and return true sellAmount // send collateral to reserve )( sellToken, // the token we want to sell sellAmount, // the amount of sellToken we want to exchange buyToken, // the token we want to receive buyAmount // the quantity of buyToken we demand in return )); }else{ Token(sellToken).transfer(reserve, sellAmount); // send collateral to reserve require( // revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); require(dexBlueReserve(reserve).trade( // execute the trade in the reserve sellToken, // the token we want to sell sellAmount, // the amount of sellToken we want to exchange buyToken, // the token we want to receive buyAmount // the quantity of buyToken we demand in return )); } require(balances[buyToken][reserve] >= buyAmount); // check if the reserve delivered on the request, else revert return true; // return true if all checks are passed and the trade was executed successfully } /** @notice private function to execute a trade with a reserve contract * @param sellToken The address of the token we want to sell (ETH is address(address(0))) * @param sellAmount The amount of sellToken we want to sell * @param buyToken The address of the token we want to buy (ETH is address(address(0))) * @param buyAmount The amount of buyToken we want in exchange for sellAmount * @param reserve The address of the reserve, we want to trade with * @param data The data passed on to the reserve */ function executeReserveTradeWithData( address sellToken, uint256 sellAmount, address buyToken, uint256 buyAmount, address reserve, bytes32[] calldata data ) external returns(bool){ // this method is only callable from the contract itself // a call is used vs a jump, to be able to revert the sending of funds to the reserve without throwing the entire transaction require(msg.sender == address(this)); // check that the caller is the contract itself if(sellToken == address(0)){ require(dexBlueReserve(reserve).tradeWithData.value(// execute the trade in the reserve // if the reserve accepts the trade, it will deposit the buyAmount and return true sellAmount // send collateral to reserve )( sellToken, // the token we want to sell sellAmount, // the amount of sellToken we want to exchange buyToken, // the token we want to receive buyAmount, // the quantity of buyToken we demand in return data // the data passed on to the reserve )); }else{ Token(sellToken).transfer(reserve, sellAmount); // send collateral to reserve require( // revert if the send failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); require(dexBlueReserve(reserve).tradeWithData( // execute the trade in the reserve sellToken, // the token we want to sell sellAmount, // the amount of sellToken we want to exchange buyToken, // the token we want to receive buyAmount, // the quantity of buyToken we demand in return data // the data passed on to the reserve )); } require(balances[buyToken][reserve] >= buyAmount); // check if the reserve delivered on the request, else revert return true; // return true if all checks are passed and the trade was executed successfully } // Token swapping functionality /** @notice Queries best output for a trade currently available from the reserves * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @return The output amount the reserve with the best price offers */ function getSwapOutput(address sell_token, uint256 sell_amount, address buy_token) public view returns (uint256){ (, uint256 output) = getBestReserve(sell_token, sell_amount, buy_token); return output; } /** @notice Queries the reserve address and output of trade, of the reserve which offers the best deal on a trade * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @return The address of the reserve offering the best deal and the expected output of the trade */ function getBestReserve(address sell_token, uint256 sell_amount, address buy_token) public view returns (address, uint256){ address bestReserve; uint256 bestOutput = 0; uint256 output; for(uint256 i = 0; i < public_reserve_arr.length; i++){ output = dexBlueReserve(public_reserve_arr[i]).getSwapOutput(sell_token, sell_amount, buy_token); if(output > bestOutput){ bestOutput = output; bestReserve = public_reserve_arr[i]; } } return (bestReserve, bestOutput); } /** @notice Allows users to swap a token or ETH with the reserve offering the best price for his trade * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @param min_output The minimum amount of buy_token, the trade should result in * @param deadline The timestamp after which the transaction should not be executed * @return The amount of buy_token the user receives */ function swap(address sell_token, uint256 sell_amount, address buy_token, uint256 min_output, uint256 deadline) external payable returns(uint256){ (bool success, bytes memory returnData) = settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module require(success); return abi.decode(returnData, (uint256)); } /** @notice Allows users to swap a token or ETH with a specified reserve * @param sell_token The token the user wants to sell (ETH is address(0)) * @param sell_amount The amount of sell_token to sell * @param buy_token The token the user wants to acquire (ETH is address(0)) * @param min_output The minimum amount of buy_token, the trade should result in * @param reserve The address of the reserve to trade with * @param deadline The timestamp after which the transaction should not be executed */ function swapWithReserve(address sell_token, uint256 sell_amount, address buy_token, uint256 min_output, address reserve, uint256 deadline) public payable returns (uint256){ (bool success, bytes memory returnData) = settlementModuleAddress.delegatecall(msg.data); // delegate the call to the settlement module require(success); return abi.decode(returnData, (uint256)); } // Order cancellation functions /** @notice Give the user the option to perform multiple on-chain cancellations of orders at once with arbiters multi-sig * @param orderHashes Array of orderHashes of the orders to be canceled * @param v Multi-sig v * @param r Multi-sig r * @param s Multi-sig s */ function multiSigOrderBatchCancel(bytes32[] calldata orderHashes, uint8 v, bytes32 r, bytes32 s) external { if( arbiters[ // Check if the signee is an arbiter ecrecover( // Restore the signing address keccak256(abi.encodePacked( // Restore the signed hash (hash of all orderHashes) "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(orderHashes)) )), v, r, s ) ] ){ uint256 len = orderHashes.length; for(uint256 i = 0; i < len; i++){ matched[orderHashes[i]] = 2**256 - 1; // Set the matched amount of all orders to the maximum emit LogOrderCanceled(orderHashes[i]); // emit LogOrderCanceled event } }else{ revert(); } } // Gastoken functionality // This is heavily inspired and based on the work of the gastoken.io team @ initc3.org, kudos! // Why not use their implementation? // We can safe even more gas through: having a even shorter contract address (1 byte less), saving the call to their contract, their token logic, and other minor optimisations uint256 gas_token_nonce_head; uint256 gas_token_nonce_tail; /** @notice Get the available amount of gasTokens * @return The array of all indexed token addresses */ function getAvailableGasTokens() view public returns (uint256 amount){ return gas_token_nonce_head - gas_token_nonce_tail; } /** @notice Mint new gasTokens * @param amount The amount of gasTokens to mint */ function mintGasTokens(uint amount) public { gas_token_nonce_head += amount; while(amount-- > 0){ createChildContract(); } } /** @notice internal function to burn gasTokens * @param amount The amount of gasTokens to burn */ function spendGasTokens(uint256 amount) internal { uint256 tail = gas_token_nonce_tail; if(amount <= gas_token_nonce_head - tail){ // tail points to slot behind the last contract in the queue for (uint256 i = tail + 1; i <= tail + amount; i++) { restoreChildContractAddress(i).call(""); } gas_token_nonce_tail = tail + amount; } } /** @notice internal helper function to create a child contract * @return The address of the created contract */ function createChildContract() internal returns (address addr) { assembly { let solidity_free_mem_ptr := mload(0x40) mstore(solidity_free_mem_ptr, 0x746d541e251335090ac5b47176af4f7e3318585733ff6000526015600bf3) // Load contract bytecode into memory addr := create(0, add(solidity_free_mem_ptr, 2), 30) // Create child contract } } /** @notice internal helper function to restore the address of a child contract for a given nonce * @param nonce The nonce of the child contract * @return The address of the child contract */ function restoreChildContractAddress(uint256 nonce) view internal returns (address) { require(nonce <= 256**9 - 1); uint256 encoded; uint256 tot_bytes; if (nonce < 128) { // RLP(nonce) = nonce // add the encoded nonce to the encoded word encoded = nonce * 256**9; // [address_length(1) address(20) nonce_length(0) nonce(1)] tot_bytes = 22; } else { // RLP(nonce) = [num_bytes_in_nonce nonce] uint nonce_bytes = 1; // count nonce bytes uint mask = 256; while (nonce >= mask) { nonce_bytes += 1; mask *= 256; } // add the encoded nonce to the word encoded = ((128 + nonce_bytes) * 256**9) + // nonce length (nonce * 256**(9 - nonce_bytes)); // nonce // [address_length(1) address(20) nonce_length(1) nonce(1-9)] tot_bytes = 22 + nonce_bytes; } // add the prefix and encoded address to the encoded word encoded += ((192 + tot_bytes) * 256**31) + // total length ((128 + 20) * 256**30) + // address length (uint256(address(this)) * 256**10); // address(this) uint256 hash; assembly { let mem_start := mload(0x40) // get a pointer to free memory mstore(0x40, add(mem_start, 0x20)) // update the pointer mstore(mem_start, encoded) // store the rlp encoding hash := keccak256(mem_start, add(tot_bytes, 1)) // hash the rlp encoding } // interpret hash as address (20 least significant bytes) return address(hash); } // Signature delegation /** @notice delegate an address to allow it to sign orders on your behalf * @param delegate The address to delegate */ function delegateAddress(address delegate) external { // set as delegate require(delegates[delegate] == address(0), "Address is already a delegate"); delegates[delegate] = msg.sender; emit LogDelegateStatus(msg.sender, delegate, true); } /** @notice revoke the delegation of an address * @param delegate The delegated address * @param v Multi-sig v * @param r Multi-sig r * @param s Multi-sig s */ function revokeDelegation(address delegate, uint8 v, bytes32 r, bytes32 s) external { bytes32 hash = keccak256(abi.encodePacked( // Restore the signed hash "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked( delegate, msg.sender, address(this) )) )); require( arbiters[ecrecover(hash, v, r, s)], // Check if signee is an arbiter "MultiSig is not from known arbiter" ); delegates[delegate] = address(1); // Set to 1 not 0 to prevent double delegation, which would make old signed orders valid for the new delegator emit LogDelegateStatus(msg.sender, delegate, false); } // Management functions: /** @notice Constructor function. Sets initial roles and creates EIP712 Domain. */ constructor() public { owner = msg.sender; // Nominate sender to be the contract owner // create EIP712 domain seperator EIP712_Domain memory eip712Domain = EIP712_Domain({ name : "dex.blue", version : "1", chainId : 1, verifyingContract : address(this) }); EIP712_DOMAIN_SEPARATOR = keccak256(abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(eip712Domain.name)), keccak256(bytes(eip712Domain.version)), eip712Domain.chainId, eip712Domain.verifyingContract )); } /** @notice Allows the owner to change / disable the waiting period for a single sig withdrawal * @param waiting_period The new waiting period */ function changeSingleSigWaitingPeriod(uint256 waiting_period) external { require( msg.sender == owner // only owner can set waiting period && waiting_period <= 86400 // max period owner can set is one day ); single_sig_waiting_period = waiting_period; } /** @notice Allows the owner to handle over the ownership to another address * @param new_owner The new owner address */ function changeOwner(address payable new_owner) external { require(msg.sender == owner); owner = new_owner; } /** @notice Allows the owner to register & cache a new reserve address in the smart conract * @param reserve The address of the reserve to add * @param index The index under which the reserve should be indexed * @param is_public Whether the reserve should publicly available through swap() & swapWithReserve() */ function cacheReserveAddress(address payable reserve, uint256 index, bool is_public) external { require(arbiters[msg.sender]); reserves[index] = reserve; reserve_indices[reserve] = index; if(is_public){ public_reserves[reserve] = true; public_reserve_arr.push(reserve); // append the reserve to the reserve array } } /** @notice Allows the owner to remove a reserve from the array swap() and getSwapOutput() need to loop through * @param reserve The address of the reserve to remove */ function removePublicReserveAddress(address reserve) external { require(arbiters[msg.sender]); public_reserves[reserve] = false; for(uint256 i = 0; i < public_reserve_arr.length; i++){ if(public_reserve_arr[i] == reserve){ public_reserve_arr[i] = public_reserve_arr[public_reserve_arr.length - 1]; // array order does not matter, so we just move the last element in the slot of the element we are removing delete public_reserve_arr[public_reserve_arr.length-1]; // delete the last element of the array public_reserve_arr.length--; return; } } } /** @notice Allows an arbiterto cache a new token address * @param token The address of the token to add * @param index The index under which the token should be indexed */ function cacheTokenAddress(address token, uint256 index) external { require(arbiters[msg.sender]); tokens[index] = token; token_indices[token] = index; token_arr.push(token); // append the token to the array } /** @notice Allows arbiters to remove a token from the token array * @param token The address of the token to remove */ function removeTokenAddressFromArr(address token) external { require(arbiters[msg.sender]); for(uint256 i = 0; i < token_arr.length; i++){ if(token_arr[i] == token){ token_arr[i] = token_arr[token_arr.length - 1]; // array order does not matter, so we just move the last element in the slot of the element we are removing delete token_arr[token_arr.length-1]; // delete the last element of the array token_arr.length--; return; } } } /** @notice Allows the owner to nominate or denominate trade arbiting addresses * @param arbiter The arbiter whose status to change * @param status whether the address should be an arbiter (true) or not (false) */ function nominateArbiter(address arbiter, bool status) external { require(msg.sender == owner); // Check if sender is owner arbiters[arbiter] = status; // Update address status } /** @notice Allows the owner to pause / unpause the market * @param state whether the the market should be active (true) or paused (false) */ function setMarketActiveState(bool state) external { require(msg.sender == owner); // Check if sender is owner marketActive = state; // pause / unpause market } /** @notice Allows the owner to nominate the feeCollector address * @param collector The address to nominate as feeCollector */ function nominateFeeCollector(address payable collector) external { require(msg.sender == owner && !feeCollectorLocked); // Check if sender is owner and feeCollector address is not locked feeCollector = collector; // Update feeCollector address } /** @notice Allows the owner to lock the feeCollector address */ function lockFeeCollector() external { require(msg.sender == owner); // Check if sender is owner feeCollectorLocked = true; // Lock feeCollector address } /** @notice Get the feeCollectors address * @return The feeCollectors address */ function getFeeCollector() public view returns (address){ return feeCollector; } /** @notice Allows an arbiter or feeCollector to directly withdraw his own funds (would allow e.g. a fee distribution contract the withdrawal of collected fees) * @param token The token to withdraw * @param amount The amount of tokens to withdraw */ function directWithdrawal(address token, uint256 amount) external returns(bool){ if ( ( msg.sender == feeCollector // Check if the sender is the feeCollector || arbiters[msg.sender] // Check if the sender is an arbiter ) && balances[token][msg.sender] >= amount // Check if feeCollector has the sufficient balance ){ balances[token][msg.sender] -= amount; // Substract the feeCollectors balance if(token == address(0)){ // Is the withdrawal token ETH require( msg.sender.send(amount), // Withdraw ETH "Sending of ETH failed." ); }else{ Token(token).transfer(msg.sender, amount); // Withdraw ERC20 require( // Revert if the withdrawal failed checkERC20TransferSuccess(), "ERC20 token transfer failed." ); } emit LogDirectWithdrawal(msg.sender, token, amount); // emit LogDirectWithdrawal event return true; }else{ return false; } } } // dexBlueReserve contract dexBlueReserve{ // insured trade function with fixed outcome function trade(address sell_token, uint256 sell_amount, address buy_token, uint256 buy_amount) public payable returns(bool success){} // insured trade function with fixed outcome, passes additional data to the reserve function tradeWithData(address sell_token, uint256 sell_amount, address buy_token, uint256 buy_amount, bytes32[] memory data) public payable returns(bool success){} // offer the reserve to enter a trade a a taker function offer(address sell_token, uint256 sell_amount, address buy_token, uint256 buy_amount) public returns(bool accept){} // offer the reserve to enter a trade a a taker, passes additional data to the reserve function offerWithData(address sell_token, uint256 sell_amount, address buy_token, uint256 buy_amount, bytes32[] memory data) public returns(bool accept){} // callback function, to inform the reserve that an offer has been accepted by the maker reserve function offerExecuted(address sell_token, uint256 sell_amount, address buy_token, uint256 buy_amount) public{} // uninsured swap function swap(address sell_token, uint256 sell_amount, address buy_token, uint256 min_output) public payable returns(uint256 output){} // get output amount of swap function getSwapOutput(address sell_token, uint256 sell_amount, address buy_token) public view returns(uint256 output){} } // Standart ERC20 token interface to interact with ERC20 token contracts // To support badly implemented tokens (which dont return a boolean on the transfer functions) // we have to expect a badly implemented token and then check with checkERC20TransferSuccess() whether the transfer succeeded contract Token { /** @return total amount of tokens */ function totalSupply() view public returns (uint256 supply) {} /** @param _owner The address from which the balance will be retrieved * @return The balance */ function balanceOf(address _owner) view public returns (uint256 balance) {} /** @notice send `_value` token to `_to` from `msg.sender` * @param _to The address of the recipient * @param _value The amount of tokens to be transferred * @return whether the transfer was successful or not */ function transfer(address _to, uint256 _value) public {} /** @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` * @param _from The address of the sender * @param _to The address of the recipient * @param _value The amount of tokens to be transferred * @return whether the transfer was successful or not */ function transferFrom(address _from, address _to, uint256 _value) public {} /** @notice `msg.sender` approves `_addr` to spend `_value` tokens * @param _spender The address of the account able to transfer the tokens * @param _value The amount of wei to be approved for transfer * @return whether the approval was successful or not */ function approve(address _spender, uint256 _value) public returns (bool success) {} /** @param _owner The address of the account owning tokens * @param _spender The address of the account able to transfer the tokens * @return Amount of remaining tokens allowed to spend */ function allowance(address _owner, address _spender) view public returns (uint256 remaining) {} event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); uint256 public decimals; string public name; } // Wrapped Ether interface contract WETH is Token{ function deposit() public payable {} function withdraw(uint256 amount) public {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"constant":false,"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setMarketActiveState","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"makerReserve","type":"address"},{"internalType":"address payable","name":"takerReserve","type":"address"},{"components":[{"internalType":"address","name":"makerToken","type":"address"},{"internalType":"address","name":"takerToken","type":"address"},{"internalType":"uint256","name":"makerAmount","type":"uint256"},{"internalType":"uint256","name":"takerAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"internalType":"struct dexBlueStructs.ReserveReserveTrade","name":"trade","type":"tuple"},{"internalType":"bytes32[]","name":"makerData","type":"bytes32[]"},{"internalType":"bytes32[]","name":"takerData","type":"bytes32[]"}],"name":"executeReserveReserveTradeWithData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"tradeInput","type":"tuple"},{"internalType":"bytes32[]","name":"makerData","type":"bytes32[]"},{"internalType":"bytes32[]","name":"takerData","type":"bytes32[]"}],"name":"settleReserveReserveTradeWithData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"tradeInput","type":"tuple"}],"name":"settleReserveReserveTrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getReserves","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getFeeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"reserve","type":"address"}],"name":"removePublicReserveAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"}],"internalType":"struct dexBlueStructs.RingTradeInputPacked","name":"packed","type":"tuple"}],"name":"ringTradeFromInput","outputs":[{"components":[{"internalType":"bool","name":"isReserve","type":"bool"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"address","name":"giveToken","type":"address"},{"internalType":"uint256","name":"giveAmount","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"rebate","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"internalType":"struct dexBlueStructs.RingTrade","name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"collector","type":"address"}],"name":"nominateFeeCollector","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"directWithdrawal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"address","name":"receiving_address","type":"address"}],"name":"multiSigTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"delegate","type":"address"}],"name":"delegateAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked","name":"orderInput","type":"tuple"}],"name":"orderFromInput","outputs":[{"components":[{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"uint256","name":"sellAmount","type":"uint256"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"uint256","name":"buyAmount","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"address","name":"signee","type":"address"}],"internalType":"struct dexBlueStructs.Order","name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked[]","name":"orderInput","type":"tuple[]"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked[]","name":"tradeInput","type":"tuple[]"}],"name":"batchSettleTrades","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeTokenAddressFromArr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"address payable","name":"receiving_address","type":"address"}],"name":"multiSigSend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"makerReserve","type":"address"},{"internalType":"address payable","name":"takerReserve","type":"address"},{"components":[{"internalType":"address","name":"makerToken","type":"address"},{"internalType":"address","name":"takerToken","type":"address"},{"internalType":"uint256","name":"makerAmount","type":"uint256"},{"internalType":"uint256","name":"takerAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"internalType":"struct dexBlueStructs.ReserveReserveTrade","name":"trade","type":"tuple"}],"name":"executeReserveReserveTrade","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sell_token","type":"address"},{"internalType":"uint256","name":"sell_amount","type":"uint256"},{"internalType":"address","name":"buy_token","type":"address"},{"internalType":"uint256","name":"min_output","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"cacheTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"sell_token","type":"address"},{"internalType":"uint256","name":"sell_amount","type":"uint256"},{"internalType":"address","name":"buy_token","type":"address"}],"name":"getBestReserve","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getTokenIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"arbiter","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"nominateArbiter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"packed","type":"tuple"}],"name":"reserveTradeFromInput","outputs":[{"components":[{"internalType":"uint256","name":"orderAmount","type":"uint256"},{"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"internalType":"uint256","name":"orderFee","type":"uint256"},{"internalType":"uint256","name":"reserveFee","type":"uint256"},{"internalType":"uint256","name":"orderRebate","type":"uint256"},{"internalType":"uint256","name":"reserveRebate","type":"uint256"},{"internalType":"bool","name":"orderIsMaker","type":"bool"},{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"internalType":"struct dexBlueStructs.ReserveTrade","name":"","type":"tuple"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[],"name":"lockFeeCollector","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"uint256","name":"sellAmount","type":"uint256"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"uint256","name":"buyAmount","type":"uint256"},{"internalType":"address","name":"reserve","type":"address"}],"name":"executeReserveTrade","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sell_token","type":"address"},{"internalType":"uint256","name":"sell_amount","type":"uint256"},{"internalType":"address","name":"buy_token","type":"address"},{"internalType":"uint256","name":"min_output","type":"uint256"},{"internalType":"address","name":"reserve","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapWithReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getLastBlockedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32[]","name":"orderHashes","type":"bytes32[]"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"multiSigOrderBatchCancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked","name":"orderInput","type":"tuple"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"tradeInput","type":"tuple"},{"internalType":"bytes32[]","name":"data","type":"bytes32[]"}],"name":"settleReserveTradeWithData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"packed","type":"tuple"}],"name":"reserveReserveTradeFromInput","outputs":[{"components":[{"internalType":"address","name":"makerToken","type":"address"},{"internalType":"address","name":"takerToken","type":"address"},{"internalType":"uint256","name":"makerAmount","type":"uint256"},{"internalType":"uint256","name":"takerAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"}],"internalType":"struct dexBlueStructs.ReserveReserveTrade","name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"blockFundsForSingleSigWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositWrappedEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"depositEther","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenFromIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"userSigWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"multiSigWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"initiateSingleSigWithdrawal","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked[]","name":"orderInput","type":"tuple[]"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"}],"internalType":"struct dexBlueStructs.RingTradeInputPacked[]","name":"tradeInput","type":"tuple[]"}],"name":"settleRingTrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getReserveFromIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"new_owner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"waiting_period","type":"uint256"}],"name":"changeSingleSigWaitingPeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"packed","type":"tuple"}],"name":"tradeFromInput","outputs":[{"components":[{"internalType":"uint256","name":"makerAmount","type":"uint256"},{"internalType":"uint256","name":"takerAmount","type":"uint256"},{"internalType":"uint256","name":"makerFee","type":"uint256"},{"internalType":"uint256","name":"takerFee","type":"uint256"},{"internalType":"uint256","name":"makerRebate","type":"uint256"}],"internalType":"struct dexBlueStructs.Trade","name":"","type":"tuple"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"reserve","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"is_public","type":"bool"}],"name":"cacheReserveAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked","name":"makerOrderInput","type":"tuple"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked","name":"takerOrderInput","type":"tuple"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"tradeInput","type":"tuple"}],"name":"settleTrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"sell_token","type":"address"},{"internalType":"uint256","name":"sell_amount","type":"uint256"},{"internalType":"address","name":"buy_token","type":"address"}],"name":"getSwapOutput","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintGasTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"holder","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"reserve","type":"address"}],"name":"getReserveIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked[]","name":"orderInput","type":"tuple[]"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"}],"internalType":"struct dexBlueStructs.RingTradeInputPacked[]","name":"tradeInput","type":"tuple[]"},{"internalType":"bytes32[][]","name":"data","type":"bytes32[][]"}],"name":"settleRingTradeWithData","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getAvailableGasTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"delegate","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"revokeDelegation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"holder","type":"address"}],"name":"getBlocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sellToken","type":"address"},{"internalType":"uint256","name":"sellAmount","type":"uint256"},{"internalType":"address","name":"buyToken","type":"address"},{"internalType":"uint256","name":"buyAmount","type":"uint256"},{"internalType":"address","name":"reserve","type":"address"},{"internalType":"bytes32[]","name":"data","type":"bytes32[]"}],"name":"executeReserveTradeWithData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct dexBlueStructs.OrderInputPacked","name":"orderInput","type":"tuple"},{"components":[{"internalType":"bytes32","name":"packedInput1","type":"bytes32"},{"internalType":"bytes32","name":"packedInput2","type":"bytes32"},{"internalType":"bytes32","name":"packedInput3","type":"bytes32"}],"internalType":"struct dexBlueStructs.TradeInputPacked","name":"tradeInput","type":"tuple"}],"name":"settleReserveTrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"makerAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"makerAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"takerAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"takerAmount","type":"uint256"}],"name":"LogTrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"soldAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"soldAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"boughtAsset","type":"address"},{"indexed":false,"internalType":"uint256","name":"boughtAmount","type":"uint256"}],"name":"LogSwap","type":"event"},{"anonymous":false,"inputs":[],"name":"LogTradeFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogDirectWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogBlockedForSingleSigWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogSingleSigWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"LogOrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"delegator","type":"address"},{"indexed":false,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"LogDelegateStatus","type":"event"}]
Contract Creation Code
6080604052600f805460ff60a81b1960ff19909116600117169055620151806010553480156200002e57600080fd5b50600d80546001600160a01b031916331790556200004b6200013c565b506040805160c0810182526008608082019081527f6465782e626c756500000000000000000000000000000000000000000000000060a083015281528151808301835260018082527f3100000000000000000000000000000000000000000000000000000000000000602083810191909152830191909152818301523060608201529051620000da9062000210565b6040518091039020816000015180519060200120826020015180519060200120836040015184606001516040516020016200011a95949392919062000223565b60408051601f198184030181529190528051602090910120601155506200029a565b604051806080016040528060608152602001606081526020016000815260200160006001600160a01b031681525090565b62000178816200027e565b82525050565b62000178816200028b565b60006200019860528362000279565b7f454950373132446f6d61696e28737472696e67206e616d652c737472696e672081527f76657273696f6e2c75696e7432353620636861696e49642c616464726573732060208201527f766572696679696e67436f6e7472616374290000000000000000000000000000604082015260520192915050565b60006200021d8262000189565b92915050565b60a081016200023382886200017e565b6200024260208301876200017e565b6200025160408301866200017e565b6200026060608301856200017e565b6200026f60808301846200016d565b9695505050505050565b919050565b60006200021d826200028e565b90565b6001600160a01b031690565b615fc980620002aa6000396000f3fe60806040526004361061036b5760003560e01c8063888d0e1d116101c6578063b695d805116100f7578063dedcc21b11610095578063ebf26a421161006f578063ebf26a4214610a33578063f618833914610a53578063f8cd6e0114610a73578063fdf9954314610a935761036b565b8063dedcc21b146109de578063e21407ba146109fe578063e4e695fe14610a1e5761036b565b8063c84693a7116100d1578063c84693a71461095e578063cabfc9031461097e578063d0847f1c1461099e578063d4fac45d146109be5761036b565b8063b695d805146108f1578063b78e1bcc14610911578063c47b81641461093e5761036b565b80639bafc51511610164578063a46555d31161013e578063a46555d31461087c578063a4d72d7c1461089c578063a6f9dae1146108bc578063aa6ca808146108dc5761036b565b80639bafc5151461081c5780639e8923721461083c578063a2c38a231461085c5761036b565b806394785a0c116101a057806394785a0c146107b457806398a968c1146107d457806398ea5fca146107f45780639946ce7d146107fc5761036b565b8063888d0e1d146107475780638e0be4451461076757806390216c8c146107875761036b565b8063574c748d116102a057806366c0bd241161023e57806372521dcd1161021857806372521dcd146106df57806373ee4d09146106f45780637bae7c2214610714578063862f9f5a146107275761036b565b806366c0bd24146106725780636849dbe51461069257806368bc15b0146106b25761036b565b80635e5dd3171161027a5780635e5dd317146105e45780635e75228f146106045780636190247014610624578063660c5132146106445761036b565b8063574c748d1461058457806359b07e7a146105a45780635d7bdccd146105c45761036b565b80632a1e58c01161030d5780633af89d03116102e75780633af89d03146104f757806349c35605146105175780634a0c3c3b146105375780634f94d4c3146105575761036b565b80632a1e58c01461048a5780632c580a1f146104b7578063338b5dea146104d75761036b565b806306b297d21161034957806306b297d2146104065780630902f1ac1461042657806312fde4b714610448578063268139d51461046a5761036b565b80630562b1a414610390578063057f8a38146103b057806306789047146103e6575b3373c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21461038e5761038e610ab3565b005b34801561039c57600080fd5b5061038e6103ab3660046150db565b610b14565b3480156103bc57600080fd5b506103d06103cb366004614a5b565b610b3e565b6040516103dd9190615cba565b60405180910390f35b3480156103f257600080fd5b5061038e610401366004615275565b611200565b34801561041257600080fd5b5061038e610421366004615257565b6112c6565b34801561043257600080fd5b5061043b611386565b6040516103dd9190615ca9565b34801561045457600080fd5b5061045d6113e9565b6040516103dd9190615b48565b34801561047657600080fd5b5061038e61048536600461496a565b6113fd565b34801561049657600080fd5b506104aa6104a5366004615239565b611528565b6040516103dd9190615e0a565b3480156104c357600080fd5b5061038e6104d236600461496a565b6115c6565b3480156104e357600080fd5b5061038e6104f2366004614b3a565b61161b565b34801561050357600080fd5b506103d0610512366004614b3a565b6116f5565b34801561052357600080fd5b5061038e610532366004614e01565b61187f565b34801561054357600080fd5b5061038e61055236600461496a565b611b32565b34801561056357600080fd5b5061057761057236600461521b565b611bd4565b6040516103dd9190615ddf565b34801561059057600080fd5b5061038e61059f366004615079565b611e75565b3480156105b057600080fd5b5061038e6105bf36600461496a565b611f5a565b3480156105d057600080fd5b5061038e6105df366004614e01565b61205c565b3480156105f057600080fd5b506103d06105ff366004614a17565b6122d9565b610617610612366004614d30565b612987565b6040516103dd9190615cc8565b34801561063057600080fd5b5061038e61063f366004614b3a565b612a2c565b34801561065057600080fd5b5061066461065f366004614b6a565b612abd565b6040516103dd929190615bea565b34801561067e57600080fd5b5061061761068d36600461496a565b612bb1565b34801561069e57600080fd5b5061038e6106ad366004614b0a565b612bcc565b3480156106be57600080fd5b506106d26106cd3660046152fa565b612c0e565b6040516103dd9190615dfb565b3480156106eb57600080fd5b5061038e612d16565b34801561070057600080fd5b506103d061070f366004614bad565b612d42565b610617610722366004614ca9565b612f3f565b34801561073357600080fd5b5061061761074236600461496a565b612fe3565b34801561075357600080fd5b5061038e610762366004614efe565b612ffe565b34801561077357600080fd5b5061038e6107823660046151bf565b613151565b34801561079357600080fd5b506107a76107a23660046152fa565b613214565b6040516103dd9190615ded565b3480156107c057600080fd5b5061038e6107cf366004614b3a565b6132b4565b3480156107e057600080fd5b5061038e6107ef366004615318565b613368565b61038e610ab3565b34801561080857600080fd5b5061045d610817366004615318565b6134c7565b34801561082857600080fd5b5061038e610837366004615117565b6134e2565b34801561084857600080fd5b5061038e610857366004614d98565b613880565b34801561086857600080fd5b5061038e610877366004614b3a565b61388f565b34801561088857600080fd5b5061038e610897366004614f6d565b613a7b565b3480156108a857600080fd5b5061045d6108b7366004615318565b613b49565b3480156108c857600080fd5b5061038e6108d736600461496a565b613b64565b3480156108e857600080fd5b5061043b613b9d565b3480156108fd57600080fd5b5061038e61090c366004615318565b613bfd565b34801561091d57600080fd5b5061093161092c3660046152fa565b613c28565b6040516103dd9190615e18565b34801561094a57600080fd5b5061038e610959366004614990565b613c7c565b34801561096a57600080fd5b5061038e61097936600461514a565b613d42565b34801561098a57600080fd5b50610617610999366004614b6a565b613dff565b3480156109aa57600080fd5b5061038e6109b9366004615318565b613e17565b3480156109ca57600080fd5b506106176109d93660046149dd565b613e39565b3480156109ea57600080fd5b506106176109f936600461496a565b613e62565b348015610a0a57600080fd5b5061038e610a19366004614fdb565b613e7d565b348015610a2a57600080fd5b50610617613f5a565b348015610a3f57600080fd5b5061038e610a4e366004614e9d565b613f64565b348015610a5f57600080fd5b50610617610a6e3660046149dd565b6140ae565b348015610a7f57600080fd5b506103d0610a8e366004614c22565b6140d9565b348015610a9f57600080fd5b5061038e610aae36600461518f565b6142e0565b3360008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb560205260408082208054349081019091559051600080516020615f6783398151915293610b0a9390929091615b56565b60405180910390a1565b600d546001600160a01b03163314610b2b57600080fd5b600f805460ff1916911515919091179055565b6000333014610b4c57600080fd5b6001600160a01b0387166350dba556610b6b6040890160208a0161496a565b6060890135610b7d60208b018b61496a565b8a60a001358b604001350388886040518763ffffffff1660e01b8152600401610bab96959493929190615c55565b602060405180830381600087803b158015610bc557600080fd5b505af1158015610bd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610bfd91908101906150f9565b8015610c4957506060860135600080610c1c60408a0160208b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205410155b610c5257600080fd5b6060860135600080610c6a60408a0160208b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152908352818120805494909403909355610cad9190890190890161496a565b6001600160a01b031614610d6157610ccb604087016020880161496a565b6001600160a01b031663a9059cbb8988608001358960600135036040518363ffffffff1660e01b8152600401610d02929190615bea565b600060405180830381600087803b158015610d1c57600080fd5b505af1158015610d30573d6000803e3d6000fd5b50505050610d3c61439d565b610d615760405162461bcd60e51b8152600401610d5890615dcf565b60405180910390fd5b6001600160a01b038816639e86aa346000610d8260408a0160208b0161496a565b6001600160a01b031614610d97576000610da3565b87608001358860600135035b610db360408a0160208b0161496a565b60808a013560608b013503610dcb60208c018c61496a565b8b604001358b8b6040518863ffffffff1660e01b8152600401610df396959493929190615c55565b6020604051808303818588803b158015610e0c57600080fd5b505af1158015610e20573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250610e4591908101906150f9565b8015610e8e57506040860135600080610e6160208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205410155b610e9757600080fd5b6040860135600080610eac60208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152908352908120805493909303909255610eec9088018861496a565b6001600160a01b03161415610f4a57604080516001600160a01b0389169160a0890135908901350380156108fc02916000818181858888f19350505050610f455760405162461bcd60e51b8152600401610d5890615d8f565b610fe4565b610f57602087018761496a565b6001600160a01b031663a9059cbb888860a001358960400135036040518363ffffffff1660e01b8152600401610f8e929190615bc1565b600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b50505050610fc861439d565b610fe45760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03871663141ac4566110036040890160208a0161496a565b606089013561101560208b018b61496a565b8a60a001358b60400135036040518563ffffffff1660e01b815260040161103f9493929190615c20565b600060405180830381600087803b15801561105957600080fd5b505af115801561106d573d6000803e3d6000fd5b5050505060a086013560008061108660208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f546101009004909216815290835281812080549094019093556080890135929182916110d991908b01908b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f54610100900490921681529083522080549092019091557f32f245cf5de196080c9e054c0e8a592ae3ef3d543a84301d007cc846a43779f6906111409088018861496a565b604088018035906111549060208b0161496a565b89606001356040516111699493929190615c20565b60405180910390a1600080516020615f47833981519152886111916040890160208a0161496a565b88608001358960600135036040516111ab93929190615bdc565b60405180910390a1600080516020615f47833981519152876111d0602089018961496a565b8860a001358960400135036040516111ea93929190615ba6565b60405180910390a1506001979650505050505050565b336000908152600e602052604090205460ff1680156112215750600f5460ff165b61122a57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611251906000903690615ac9565b600060405180830381855af49150503d806000811461128c576040519150601f19603f3d011682016040523d82523d6000602084013e611291565b606091505b5050506001600160f81b03196040860135601c1a60f81b16156112bf576112bf6040860135601c5b1a6143d1565b5050505050565b336000908152600e602052604090205460ff1680156112e75750600f5460ff165b6112f057600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611317906000903690615ac9565b600060405180830381855af49150503d8060008114611352576040519150601f19603f3d011682016040523d82523d6000602084013e611357565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615611383576113836040820135601c6112b9565b50565b6060600c8054806020026020016040519081016040528092919081815260200182805480156113de57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113c0575b505050505090505b90565b600f5461010090046001600160a01b031690565b336000908152600e602052604090205460ff1661141957600080fd5b6001600160a01b0381166000908152600b60205260408120805460ff191690555b600c5481101561152457816001600160a01b0316600c828154811061145b57fe5b6000918252602090912001546001600160a01b0316141561151c57600c8054600019810190811061148857fe5b600091825260209091200154600c80546001600160a01b0390921691839081106114ae57fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600c805460001981019081106114e957fe5b600091825260209091200180546001600160a01b0319169055600c80549061151590600019830161453a565b5050611383565b60010161143a565b5050565b61153061455e565b506040805160e08101825260208381018051600160f81b60109190911a60f81b6001600160f81b031916148352805160681c61ffff90811683850152815160581c166000908152600690925290839020546001600160a01b0316828401528351608090811c606084015284516001600160801b0316818401528151901c60a08301525190911c62ffffff1660c08201525b919050565b600d546001600160a01b0316331480156115ea5750600f54600160a81b900460ff16155b6115f357600080fd5b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6040516323b872dd60e01b81526001600160a01b038316906323b872dd9061164b90339030908690600401615b56565b600060405180830381600087803b15801561166557600080fd5b505af1158015611679573d6000803e3d6000fd5b5050505061168561439d565b6116a15760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b038216600090815260208181526040808320338085529252918290208054840190559051600080516020615f67833981519152916116e99185908590615ba6565b60405180910390a15050565b600f5460009061010090046001600160a01b03163314806117255750336000908152600e602052604090205460ff165b801561175257506001600160a01b0383166000908152602081815260408083203384529091529020548211155b15611875576001600160a01b0383166000818152602081815260408083203384529091529020805484900390556117c057604051339083156108fc029084906000818181858888f193505050506117bb5760405162461bcd60e51b8152600401610d5890615d8f565b611844565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb906117ee9033908690600401615bc1565b600060405180830381600087803b15801561180857600080fd5b505af115801561181c573d6000803e3d6000fd5b5050505061182861439d565b6118445760405162461bcd60e51b8152600401610d5890615dcf565b600080516020615f4783398151915233848460405161186593929190615ba6565b60405180910390a1506001611879565b5060005b92915050565b6000338888883060405160200161189a959493929190615969565b604051602081830303815290604052805190602001206040516020016118c09190615ad6565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161580156119645750600e60006001838888886040516000815260200160405260405161191a9493929190615d67565b6020604051602081039080840390855afa15801561193c573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff165b801561199157506001600160a01b0388166000908152602081815260408083203384529091529020548711155b15611b235760016003600083815260200190815260200160002060006101000a81548160ff021916908315150217905550866000808a6001600160a01b03166001600160a01b031681526020019081526020016000206000336001600160a01b03166001600160a01b0316815260200190815260200160002060008282540392505081905550866000808a6001600160a01b03166001600160a01b031681526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020600082825401925050819055506000600160008a6001600160a01b03166001600160a01b031681526020019081526020016000206000336001600160a01b03166001600160a01b03168152602001908152602001600020819055507f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd338989604051611aed93929190615ba6565b60405180910390a1600080516020615f67833981519152828989604051611b1693929190615bdc565b60405180910390a1611b28565b600080fd5b5050505050505050565b6001600160a01b038181166000908152600560205260409020541615611b6a5760405162461bcd60e51b8152600401610d5890615d9f565b6001600160a01b0381166000908152600560205260409081902080546001600160a01b0319163390811790915590517f62dd941162a19392928b6c40f397d22668655b1cca688e171c991a15b4d4205191611bc9918490600190615b7e565b60405180910390a150565b611bdc6145a6565b611be46145a6565b506040805160e080820183526020858101805160f01c60009081526006808452868220546001600160a01b0390811687528951608090811c86890152845190961c61ffff1683529352858120549092169484019490945285516001600160801b03166060840152835160c090811c63ffffffff169284019290925260a0830181905290820152905160111a60f81b6001600160f81b031916611d1457806000015181602001518260400151836060015184608001516080886020015167ffffffffffffffff60801b60001b16901c60001c30604051602001611ccc97969594939291906159f9565b60405160208183030381529060405280519060200120604051602001611cf29190615ad6565b60408051601f19818403018152919052805160209091012060a0820152611dbb565b601154604051611d2390615b27565b60405180910390208260000151836020015184604001518560600151866080015160808a6020015167ffffffffffffffff60801b60001b16901c60001c604051602001611d769796959493929190615cd6565b60405160208183030381529060405280519060200120604051602001611d9d929190615af6565b60408051601f19818403018152919052805160209091012060a08201525b60a0810151602084810151604080870151606088015182516000815290940191829052600194611df094909360101a92615d67565b6020604051602081039080840390855afa158015611e12573d6000803e3d6000fd5b5050604051601f1901516001600160a01b031660c0830152506020830151600160f81b9060121a60f81b6001600160f81b03191614156118795760c0810180516001600160a01b0390811660009081526005602052604090205416905292915050565b336000908152600e602052604090205460ff168015611e965750600f5460ff165b611e9f57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611ec6906000903690615ac9565b600060405180830381855af49150503d8060008114611f01576040519150601f19603f3d011682016040523d82523d6000602084013e611f06565b606091505b50829150600090505b60001982019115611f4357838383818110611f2657fe5b90506060020160400135601c60208110611f3c57fe5b1a01611f0f565b8015611f5257611f52816143d1565b505050505050565b336000908152600e602052604090205460ff16611f7657600080fd5b60005b60085481101561152457816001600160a01b031660088281548110611f9a57fe5b6000918252602090912001546001600160a01b0316141561205457600880546000198101908110611fc757fe5b600091825260209091200154600880546001600160a01b039092169183908110611fed57fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905560088054600019810190811061202857fe5b600091825260209091200180546001600160a01b0319169055600880549061151590600019830161453a565b600101611f79565b60003388888830604051602001612077959493929190615969565b6040516020818303038152906040528051906020012060405160200161209d9190615ad6565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161580156121415750600e6000600183888888604051600081526020016040526040516120f79493929190615d67565b6020604051602081039080840390855afa158015612119573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff165b801561216e57506001600160a01b0388166000908152602081815260408083203384529091529020548711155b15611b23576000818152600360209081526040808320805460ff191660011790556001600160a01b038b16808452838352818420338552909252909120805489900390556121fc576040516001600160a01b0383169088156108fc029089906000818181858888f193505050506121f75760405162461bcd60e51b8152600401610d5890615d8f565b612280565b60405163a9059cbb60e01b81526001600160a01b0389169063a9059cbb9061222a9085908b90600401615bc1565b600060405180830381600087803b15801561224457600080fd5b505af1158015612258573d6000803e3d6000fd5b5050505061226461439d565b6122805760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03881660009081526001602090815260408083203380855292528083209290925590517f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd91611b16918b908b90615ba6565b60003330146122e757600080fd5b6001600160a01b03831663666f4f16612306604085016020860161496a565b6060850135612318602087018761496a565b8660a001358760400135036040518563ffffffff1660e01b81526004016123429493929190615c20565b602060405180830381600087803b15801561235c57600080fd5b505af1158015612370573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061239491908101906150f9565b80156123e0575060608201356000806123b3604086016020870161496a565b6001600160a01b039081168252602080830193909352604091820160009081209188168152925290205410155b6123e957600080fd5b6060820135600080612401604086016020870161496a565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529083528181208054949094039093556124449190850190850161496a565b6001600160a01b0316146124ef57612462604083016020840161496a565b6001600160a01b031663a9059cbb8584608001358560600135036040518363ffffffff1660e01b8152600401612499929190615bea565b600060405180830381600087803b1580156124b357600080fd5b505af11580156124c7573d6000803e3d6000fd5b505050506124d361439d565b6124ef5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03841663bb39a9606000612510604086016020870161496a565b6001600160a01b031614612525576000612531565b83608001358460600135035b612541604086016020870161496a565b6080860135606087013503612559602088018861496a565b87604001356040518663ffffffff1660e01b815260040161257d9493929190615c20565b6020604051808303818588803b15801561259657600080fd5b505af11580156125aa573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052506125cf91908101906150f9565b8015612618575060408201356000806125eb602086018661496a565b6001600160a01b039081168252602080830193909352604091820160009081209189168152925290205410155b61262157600080fd5b6040820135600080612636602086018661496a565b6001600160a01b0390811682526020808301939093526040918201600090812091891681529083529081208054939093039092556126769084018461496a565b6001600160a01b031614156126d457604080516001600160a01b0385169160a0850135908501350380156108fc02916000818181858888f193505050506126cf5760405162461bcd60e51b8152600401610d5890615d8f565b61276e565b6126e1602083018361496a565b6001600160a01b031663a9059cbb848460a001358560400135036040518363ffffffff1660e01b8152600401612718929190615bc1565b600060405180830381600087803b15801561273257600080fd5b505af1158015612746573d6000803e3d6000fd5b5050505061275261439d565b61276e5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03831663141ac45661278d604085016020860161496a565b606085013561279f602087018761496a565b8660a001358760400135036040518563ffffffff1660e01b81526004016127c99493929190615c20565b600060405180830381600087803b1580156127e357600080fd5b505af11580156127f7573d6000803e3d6000fd5b5050505060a0820135600080612810602086018661496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f546101009004909216815290835281812080549094019093556080850135929182916128639190870190870161496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f54610100900490921681529083522080549092019091557f32f245cf5de196080c9e054c0e8a592ae3ef3d543a84301d007cc846a43779f6906128ca9084018461496a565b604084018035906128de906020870161496a565b85606001356040516128f39493929190615c20565b60405180910390a1600080516020615f478339815191528461291b604085016020860161496a565b846080013585606001350360405161293593929190615bdc565b60405180910390a1600080516020615f478339815191528361295a602085018561496a565b8460a0013585604001350360405161297493929190615ba6565b60405180910390a15060015b9392505050565b6000806060739e3d5c6ffaca00caf136609680b536dc0eb20c666001600160a01b03166000366040516129bb929190615ac9565b600060405180830381855af49150503d80600081146129f6576040519150601f19603f3d011682016040523d82523d6000602084013e6129fb565b606091505b509150915081612a0a57600080fd5b80806020019051612a1e9190810190615336565b925050505b95945050505050565b336000908152600e602052604090205460ff16612a4857600080fd5b600081815260066020908152604080832080546001600160a01b039096166001600160a01b0319968716811790915580845260079092528220929092556008805460018101825591527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3018054909216179055565b600080808080805b600c54811015612ba357600c8181548110612adc57fe5b60009182526020909120015460405163cabfc90360e01b81526001600160a01b039091169063cabfc90390612b19908c908c908c90600401615bf8565b60206040518083038186803b158015612b3157600080fd5b505afa158015612b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b699190810190615336565b915082821115612b9b57819250600c8181548110612b8357fe5b6000918252602090912001546001600160a01b031693505b600101612ac5565b509197909650945050505050565b6001600160a01b031660009081526007602052604090205490565b600d546001600160a01b03163314612be357600080fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b612c166145e2565b6040820151600160fc1b9060101a60f81b6001600160f81b0319161415612ca5575060408051610100810182528251608090811c825283516001600160801b039081166020808501919091528086018051841c858701525190911660608401529284018051821c91830191909152600060a0830152600160c08301525190911c62ffffff1660e08201526115c1565b50604080516101008101825282516001600160801b0390811682528351608090811c6020808501919091528086018051909316848601529151811c60608401526000818401819052938501805190911c60a084015260c0830193909352915190911c62ffffff1660e08201526115c1565b600d546001600160a01b03163314612d2d57600080fd5b600f805460ff60a81b1916600160a81b179055565b6000333014612d5057600080fd5b6001600160a01b038616612df2576040516305d9cd4b60e51b81526001600160a01b0383169063bb39a960908790612d92908a9083908a908a90600401615c20565b6020604051808303818588803b158015612dab57600080fd5b505af1158015612dbf573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250612de491908101906150f9565b612ded57600080fd5b612f03565b60405163a9059cbb60e01b81526001600160a01b0387169063a9059cbb90612e209085908990600401615bea565b600060405180830381600087803b158015612e3a57600080fd5b505af1158015612e4e573d6000803e3d6000fd5b50505050612e5a61439d565b612e765760405162461bcd60e51b8152600401610d5890615dcf565b6040516305d9cd4b60e51b81526001600160a01b0383169063bb39a96090612ea8908990899089908990600401615c20565b602060405180830381600087803b158015612ec257600080fd5b505af1158015612ed6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612efa91908101906150f9565b612f0357600080fd5b6001600160a01b0380851660009081526020818152604080832093861683529290522054831115612f3357600080fd5b50600195945050505050565b6000806060739e3d5c6ffaca00caf136609680b536dc0eb20c666001600160a01b0316600036604051612f73929190615ac9565b600060405180830381855af49150503d8060008114612fae576040519150601f19603f3d011682016040523d82523d6000602084013e612fb3565b606091505b509150915081612fc257600080fd5b80806020019051612fd69190810190615336565b9998505050505050505050565b6001600160a01b031660009081526002602052604090205490565b600e600060018787604051602001613017929190615abc565b6040516020818303038152906040528051906020012060405160200161303d9190615ad6565b60405160208183030381529060405280519060200120868686604051600081526020016040526040516130739493929190615d67565b6020604051602081039080840390855afa158015613095573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff1615611b23578360005b8181101561314a57600019600460008989858181106130e057fe5b905060200201358152602001908152602001600020819055507f0bcf9a26b9d4a9d57f0b8d74aecbc259a2b4d2344fd2ff794de7c69e1e3da15f87878381811061312657fe5b9050602002013560405161313a9190615cc8565b60405180910390a16001016130c5565b50506112bf565b336000908152600e602052604090205460ff1680156131725750600f5460ff165b61317b57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c66906131a2906000903690615ac9565b600060405180830381855af49150503d80600081146131dd576040519150601f19603f3d011682016040523d82523d6000602084013e6131e2565b606091505b5050506001600160f81b03196040840135601c1a60f81b161561320e5761320e6040840135601c6112b9565b50505050565b61321c614629565b506040805160e081018252828201805160481c61ffff908116600090815260066020818152868320546001600160a01b039081168752855160381c90941683529081529085902054909116818401528451608090811c9484019490945284516001600160801b0390811660608501529481018051851c94840194909452925190931660a08201529151901c62ffffff1660c082015290565b6001600160a01b03821660008181526001602090815260408083203380855290835281842054948452838352818420908452909152902054038111611b23576001600160a01b03821660009081526001602090815260408083203380855290835281842080548601905560029092529182902042905590517f82281e29ca97a96d0c1319ac203e949a694cd6187c769761b2fe013bce25ea439161335b9185908590615ba6565b60405180910390a1611524565b6040516323b872dd60e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906323b872dd906133a390339030908690600401615b56565b600060405180830381600087803b1580156133bd57600080fd5b505af11580156133d1573d6000803e3d6000fd5b505050506133dd61439d565b6133f95760405162461bcd60e51b8152600401610d5890615dbf565b604051632e1a7d4d60e01b815230319073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90613433908590600401615cc8565b600060405180830381600087803b15801561344d57600080fd5b505af1158015613461573d6000803e3d6000fd5b5050505080820130311461347457600080fd5b3360008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604080822080548601905551600080516020615f67833981519152926116e99290918690615b56565b6000908152600660205260409020546001600160a01b031690565b60f083901c600090815260066020526040812054608086901c916001600160801b038716916001600160a01b03169060b087901c6001600160401b031690600a88901a906001600160f81b0319600b8a901a60f81b1661359657838684306040516020016135539493929190615a74565b604051602081830303815290604052805190602001206040516020016135799190615ad6565b604051602081830303815290604052805190602001209050613600565b6011546040516135a590615b32565b6040519081900381206135c09187908a908890602001615d32565b604051602081830303815290604052805190602001206040516020016135e7929190615af6565b6040516020818303038152906040528051906020012090505b6000600182848b8b604051600081526020016040526040516136259493929190615d67565b6020604051602081039080840390855afa158015613647573d6000803e3d6000fd5b505060408051601f19015160008581526003602052919091205490925060ff1615905080156136855750336000908152600e602052604090205460ff165b80156136945750601487048611155b80156136c357506001600160a01b03808616600090815260208181526040808320938516835292905220548711155b15611b23576000828152600360209081526040808320805460ff191660011790556001600160a01b03888116808552848452828520868316865290935281842080548c90039055600f546101009004168352909120805488019055613769576040516001600160a01b0382169087890380156108fc02916000818181858888f193505050506137645760405162461bcd60e51b8152600401610d5890615d8f565b6137ef565b60405163a9059cbb60e01b81526001600160a01b0386169063a9059cbb906137999084908a8c0390600401615bc1565b600060405180830381600087803b1580156137b357600080fd5b505af11580156137c7573d6000803e3d6000fd5b505050506137d361439d565b6137ef5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b038086166000908152600160209081526040808320938516835292905281812055517f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd9061384990839088908b90615ba6565b60405180910390a16001600160f81b0319600c8b901a60f81b1615613873576138738a600c6112b9565b5050505050505050505050565b611f528686868686863361205c565b6001600160a01b038216600090815260208181526040808320338452909152902054811180159061390d57506001600160a01b0382166000908152600160209081526040808320338452909152902054811180159061390257506010543360009081526002602052604090205442910111155b8061390d5750601054155b15611b23576001600160a01b03821660008181526020818152604080832033808552908352818420805487900390559383526001825280832093835292905220548111613979576001600160a01b03821660009081526001602090815260408083203384529091528120555b6001600160a01b0382166139c457604051339082156108fc029083906000818181858888f193505050506139bf5760405162461bcd60e51b8152600401610d5890615d8f565b613a48565b60405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb906139f29033908590600401615bc1565b600060405180830381600087803b158015613a0c57600080fd5b505af1158015613a20573d6000803e3d6000fd5b50505050613a2c61439d565b613a485760405162461bcd60e51b8152600401610d5890615dcf565b7fabc0c89be5a5927fb2b8384e5097fbae457df4a35c7e183919395cbec4c373cf33838360405161335b93929190615ba6565b336000908152600e602052604090205460ff168015613a9c5750600f5460ff165b613aa557600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613acc906000903690615ac9565b600060405180830381855af49150503d8060008114613b07576040519150601f19603f3d011682016040523d82523d6000602084013e613b0c565b606091505b50829150600090505b60001982019115611f4357838383818110613b2c57fe5b90506040020160200135601860208110613b4257fe5b1a01613b15565b6000908152600960205260409020546001600160a01b031690565b600d546001600160a01b03163314613b7b57600080fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b606060088054806020026020016040519081016040528092919081815260200182805480156113de576020028201919060005260206000209081546001600160a01b031681526001909101906020018083116113c0575050505050905090565b600d546001600160a01b031633148015613c1a5750620151808111155b613c2357600080fd5b601055565b613c30614678565b506040805160a0810182528251608090811c825283516001600160801b0390811660208085019190915285018051831c84860152511660608301529290910151821c9181019190915290565b336000908152600e602052604090205460ff16613c9857600080fd5b600082815260096020908152604080832080546001600160a01b0319166001600160a01b0388169081179091558352600a90915290208290558015613d3d576001600160a01b0383166000818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b505050565b336000908152600e602052604090205460ff168015613d635750600f5460ff165b613d6c57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613d93906000903690615ac9565b600060405180830381855af49150503d8060008114613dce576040519150601f19603f3d011682016040523d82523d6000602084013e613dd3565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615613d3d57613d3d6040820135601c6112b9565b600080613e0d858585612abd565b9695505050505050565b60128054820190555b6000198101901561138357613e33614460565b50613e20565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205490565b6001600160a01b03166000908152600a602052604090205490565b336000908152600e602052604090205460ff168015613e9e5750600f5460ff165b613ea757600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613ece906000903690615ac9565b600060405180830381855af49150503d8060008114613f09576040519150601f19603f3d011682016040523d82523d6000602084013e613f0e565b606091505b50849150600090505b60001982019115613f4b57858583818110613f2e57fe5b90506040020160200135601860208110613f4457fe5b1a01613f17565b8015611b2857611b28816143d1565b6013546012540390565b6000843330604051602001613f7b939291906159c2565b60405160208183030381529060405280519060200120604051602001613fa19190615ad6565b604051602081830303815290604052805190602001209050600e600060018387878760405160008152602001604052604051613fe09493929190615d67565b6020604051602081039080840390855afa158015614002573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff166140455760405162461bcd60e51b8152600401610d5890615daf565b6001600160a01b03851660009081526005602052604080822080546001600160a01b0319166001179055517f62dd941162a19392928b6c40f397d22668655b1cca688e171c991a15b4d420519161409f9133918991615b7e565b60405180910390a15050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60003330146140e757600080fd5b6001600160a01b03881661418d576040516327a1aa8d60e21b81526001600160a01b03851690639e86aa3490899061412d908c9083908c908c908b908b90600401615c55565b6020604051808303818588803b15801561414657600080fd5b505af115801561415a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525061417f91908101906150f9565b61418857600080fd5b6142a2565b60405163a9059cbb60e01b81526001600160a01b0389169063a9059cbb906141bb9087908b90600401615bea565b600060405180830381600087803b1580156141d557600080fd5b505af11580156141e9573d6000803e3d6000fd5b505050506141f561439d565b6142115760405162461bcd60e51b8152600401610d5890615dcf565b6040516327a1aa8d60e21b81526001600160a01b03851690639e86aa3490614247908b908b908b908b908a908a90600401615c55565b602060405180830381600087803b15801561426157600080fd5b505af1158015614275573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061429991908101906150f9565b6142a257600080fd5b6001600160a01b03808716600090815260208181526040808320938816835292905220548511156142d257600080fd5b506001979650505050505050565b336000908152600e602052604090205460ff1680156143015750600f5460ff165b61430a57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690614331906000903690615ac9565b600060405180830381855af49150503d806000811461436c576040519150601f19603f3d011682016040523d82523d6000602084013e614371565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615611524576115246040820135601c6112b9565b6000803d80156143b457602081146143bd576143c9565b600191506143c9565b60206000803e60005191505b501515905090565b601354601254819003821161152457600181015b8282018111614459576143f781614495565b6001600160a01b031660405161440c90615b3d565b6000604051808303816000865af19150503d8060008114614449576040519150601f19603f3d011682016040523d82523d6000602084013e61444e565b606091505b5050506001016143e5565b5001601355565b60006040517d746d541e251335090ac5b47176af4f7e3318585733ff6000526015600bf38152601e600282016000f091505090565b600068ffffffffffffffffff8211156144ad57600080fd5b60008060808410156144c9575050600160481b82026016614505565b60016101005b8086106144e65760019190910190610100026144cf565b50600160481b608082010260098290036101000a860201925060160190505b6040805160208101909152600160f81b60c0830102600160501b30020192909201602560f21b01825260010190209050919050565b815481835581811115613d3d57600083815260209020613d3d9181019083016146a7565b6040518060e001604052806000151581526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081525090565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b604051806101000160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6040518060e0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6113e691905b808211156146c157600081556001016146ad565b5090565b803561187981615f0e565b60008083601f8401126146e257600080fd5b5081356001600160401b038111156146f957600080fd5b60208301915083602082028301111561471157600080fd5b9250929050565b60008083601f84011261472a57600080fd5b5081356001600160401b0381111561474157600080fd5b60208301915083608082028301111561471157600080fd5b60008083601f84011261476b57600080fd5b5081356001600160401b0381111561478257600080fd5b60208301915083604082028301111561471157600080fd5b60008083601f8401126147ac57600080fd5b5081356001600160401b038111156147c357600080fd5b60208301915083606082028301111561471157600080fd5b803561187981615f22565b805161187981615f22565b803561187981615f2b565b60006080828403121561480e57600080fd5b50919050565b60006080828403121561482657600080fd5b6148306080615e26565b9050600061483e84846147f1565b825250602061484f848483016147f1565b6020830152506040614863848285016147f1565b6040830152506060614877848285016147f1565b60608301525092915050565b600060e0828403121561480e57600080fd5b6000604082840312156148a757600080fd5b6148b16040615e26565b905060006148bf84846147f1565b82525060206148d0848483016147f1565b60208301525092915050565b60006060828403121561480e57600080fd5b60006060828403121561490057600080fd5b61490a6060615e26565b9050600061491884846147f1565b8252506020614929848483016147f1565b602083015250604061493d848285016147f1565b60408301525092915050565b805161187981615f2b565b803561187981615f34565b803561187981615f3d565b60006020828403121561497c57600080fd5b600061498884846146c5565b949350505050565b6000806000606084860312156149a557600080fd5b60006149b186866146c5565b93505060206149c2868287016147f1565b92505060406149d3868287016147db565b9150509250925092565b600080604083850312156149f057600080fd5b60006149fc85856146c5565b9250506020614a0d858286016146c5565b9150509250929050565b60008060006101208486031215614a2d57600080fd5b6000614a3986866146c5565b9350506020614a4a868287016146c5565b92505060406149d386828701614883565b6000806000806000806000610160888a031215614a7757600080fd5b6000614a838a8a6146c5565b9750506020614a948a828b016146c5565b9650506040614aa58a828b01614883565b9550506101208801356001600160401b03811115614ac257600080fd5b614ace8a828b016146d0565b94509450506101408801356001600160401b03811115614aed57600080fd5b614af98a828b016146d0565b925092505092959891949750929550565b60008060408385031215614b1d57600080fd5b6000614b2985856146c5565b9250506020614a0d858286016147db565b60008060408385031215614b4d57600080fd5b6000614b5985856146c5565b9250506020614a0d858286016147f1565b600080600060608486031215614b7f57600080fd5b6000614b8b86866146c5565b9350506020614b9c868287016147f1565b92505060406149d3868287016146c5565b600080600080600060a08688031215614bc557600080fd5b6000614bd188886146c5565b9550506020614be2888289016147f1565b9450506040614bf3888289016146c5565b9350506060614c04888289016147f1565b9250506080614c15888289016146c5565b9150509295509295909350565b600080600080600080600060c0888a031215614c3d57600080fd5b6000614c498a8a6146c5565b9750506020614c5a8a828b016147f1565b9650506040614c6b8a828b016146c5565b9550506060614c7c8a828b016147f1565b9450506080614c8d8a828b016146c5565b93505060a08801356001600160401b03811115614aed57600080fd5b60008060008060008060c08789031215614cc257600080fd5b6000614cce89896146c5565b9650506020614cdf89828a016147f1565b9550506040614cf089828a016146c5565b9450506060614d0189828a016147f1565b9350506080614d1289828a016146c5565b92505060a0614d2389828a016147f1565b9150509295509295509295565b600080600080600060a08688031215614d4857600080fd5b6000614d5488886146c5565b9550506020614d65888289016147f1565b9450506040614d76888289016146c5565b9350506060614d87888289016147f1565b9250506080614c15888289016147f1565b60008060008060008060c08789031215614db157600080fd5b6000614dbd89896146c5565b9650506020614dce89828a016147f1565b9550506040614ddf89828a01614954565b9450506060614df089828a0161495f565b9350506080614d1289828a016147f1565b600080600080600080600060e0888a031215614e1c57600080fd5b6000614e288a8a6146c5565b9750506020614e398a828b016147f1565b9650506040614e4a8a828b01614954565b9550506060614e5b8a828b0161495f565b9450506080614e6c8a828b016147f1565b93505060a0614e7d8a828b016147f1565b92505060c0614e8e8a828b016146c5565b91505092959891949750929550565b60008060008060808587031215614eb357600080fd5b6000614ebf87876146c5565b9450506020614ed08782880161495f565b9350506040614ee1878288016147f1565b9250506060614ef2878288016147f1565b91505092959194509250565b600080600080600060808688031215614f1657600080fd5b85356001600160401b03811115614f2c57600080fd5b614f38888289016146d0565b95509550506020614f4b8882890161495f565b9350506040614f5c888289016147f1565b9250506060614c15888289016147f1565b60008060008060408587031215614f8357600080fd5b84356001600160401b03811115614f9957600080fd5b614fa587828801614718565b945094505060208501356001600160401b03811115614fc357600080fd5b614fcf87828801614759565b95989497509550505050565b60008060008060008060608789031215614ff457600080fd5b86356001600160401b0381111561500a57600080fd5b61501689828a01614718565b965096505060208701356001600160401b0381111561503457600080fd5b61504089828a01614759565b945094505060408701356001600160401b0381111561505e57600080fd5b61506a89828a016146d0565b92509250509295509295509295565b6000806000806040858703121561508f57600080fd5b84356001600160401b038111156150a557600080fd5b6150b187828801614718565b945094505060208501356001600160401b038111156150cf57600080fd5b614fcf8782880161479a565b6000602082840312156150ed57600080fd5b600061498884846147db565b60006020828403121561510b57600080fd5b600061498884846147e6565b6000806000806080858703121561512d57600080fd5b600061513987876147f1565b9450506020614ed0878288016147f1565b6000806000610160848603121561516057600080fd5b600061516c86866147fc565b935050608061517d868287016147fc565b9250506101006149d3868287016148dc565b60008060e083850312156151a257600080fd5b60006151ae85856147fc565b9250506080614a0d858286016148dc565b60008060008061010085870312156151d657600080fd5b60006151e287876147fc565b94505060806151f3878288016148dc565b93505060e08501356001600160401b0381111561520f57600080fd5b614fcf878288016146d0565b60006080828403121561522d57600080fd5b60006149888484614814565b60006040828403121561524b57600080fd5b60006149888484614895565b60006060828403121561526957600080fd5b600061498884846148dc565b600080600080600060a0868803121561528d57600080fd5b600061529988886148dc565b95505060608601356001600160401b038111156152b557600080fd5b6152c1888289016146d0565b945094505060808601356001600160401b038111156152df57600080fd5b6152eb888289016146d0565b92509250509295509295909350565b60006060828403121561530c57600080fd5b600061498884846148ee565b60006020828403121561532a57600080fd5b600061498884846147f1565b60006020828403121561534857600080fd5b60006149888484614949565b60006153608383615388565b505060200190565b61537181615ea2565b82525050565b61537161538382615e5f565b615ebf565b61537181615e5f565b600061539c82615e52565b6153a68185615e56565b93506153b183615e4c565b8060005b838110156153df5781516153c98882615354565b97506153d483615e4c565b9250506001016153b5565b509495945050505050565b60006153f68385615e56565b93506001600160fb1b0383111561540c57600080fd5b60208302925061541d838584615eb3565b50500190565b60006153f683856115c1565b61537181615e6a565b615371816113e6565b61537161544d826113e6565b6113e6565b600061545e83856115c1565b935061541d838584615eb3565b6000615478601c836115c1565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c0192915050565b60006154b16002836115c1565b61190160f01b815260020192915050565b60006154cf601683615e56565b7529b2b73234b7339037b31022aa24103330b4b632b21760511b815260200192915050565b6000615501601d83615e56565b7f4164647265737320697320616c726561647920612064656c6567617465000000815260200192915050565b600061553a602283615e56565b7f4d756c7469536967206973206e6f742066726f6d206b6e6f776e20617262697481526132b960f11b602082015260400192915050565b600061557e6081836115c1565b7f4f7264657228616464726573732073656c6c546f6b656e416464726573732c7581527f696e743132382073656c6c546f6b656e416d6f756e742c61646472657373206260208201527f7579546f6b656e416464726573732c75696e7431323820627579546f6b656e4160408201527f6d6f756e742c75696e743332206578706972792c75696e743634206e6f6e63656060820152602960f81b608082015260810192915050565b6000615633601483615e56565b732ba2aa24103232b837b9b4ba103330b4b632b21760611b815260200192915050565b60006156636035836115c1565b7f5769746864726177616c286164647265737320746f6b656e2c75696e7432353681527420616d6f756e742c75696e743634206e6f6e63652960581b602082015260350192915050565b60006118796000836115c1565b60006156c7601c83615e56565b7f455243323020746f6b656e207472616e73666572206661696c65642e00000000815260200192915050565b805160e08301906157048482615388565b5060208201516157176020850182615438565b50604082015161572a6040850182615388565b50606082015161573d6060850182615438565b5060808201516157506080850182615438565b5060a082015161576360a0850182615438565b5060c082015161320e60c0850182615388565b805160e08301906157878482615388565b50602082015161579a6020850182615388565b5060408201516157ad6040850182615438565b5060608201516157c06060850182615438565b5060808201516157d36080850182615438565b5060a08201516157e660a0850182615438565b5060c082015161320e60c0850182615438565b805161010083019061580b8482615438565b50602082015161581e6020850182615438565b5060408201516158316040850182615438565b5060608201516158446060850182615438565b5060808201516158576080850182615438565b5060a082015161586a60a0850182615438565b5060c082015161587d60c085018261542f565b5060e082015161320e60e0850182615438565b805160e08301906158a1848261542f565b5060208201516158b46020850182615438565b5060408201516157ad6040850182615388565b805160a08301906158d88482615438565b5060208201516158eb6020850182615438565b5060408201516158fe6040850182615438565b5060608201516159116060850182615438565b50608082015161320e6080850182615438565b61537161593082615e6f565b615eca565b61537161594182615e87565b615ee0565b61537181615e90565b61537161595b82615e90565b615eeb565b61537181615e9c565b60006159758288615377565b6014820191506159858287615377565b6014820191506159958286615441565b6020820191506159a5828561594f565b6008820191506159b58284615377565b5060140195945050505050565b60006159ce8286615377565b6014820191506159de8285615377565b6014820191506159ee8284615377565b506014019392505050565b6000615a05828a615377565b601482019150615a158289615924565b601082019150615a258288615377565b601482019150615a358287615924565b601082019150615a458286615935565b600482019150615a55828561594f565b600882019150615a658284615377565b50601401979650505050505050565b6000615a808287615377565b601482019150615a908286615441565b602082019150615aa0828561594f565b600882019150615ab08284615377565b50601401949350505050565b6000614988828486615423565b6000614988828486615452565b6000615ae18261546b565b9150615aed8284615441565b50602001919050565b6000615b01826154a4565b9150615b0d8285615441565b602082019150615b1d8284615441565b5060200192915050565b600061187982615571565b600061187982615656565b6000611879826156ad565b602081016118798284615388565b60608101615b648286615368565b615b716020830185615368565b6149886040830184615438565b60608101615b8c8286615368565b615b996020830185615388565b614988604083018461542f565b60608101615bb48286615368565b615b716020830185615388565b60408101615bcf8285615368565b6129806020830184615438565b60608101615bb48286615388565b60408101615bcf8285615388565b60608101615c068286615388565b615c136020830185615438565b6149886040830184615388565b60808101615c2e8287615388565b615c3b6020830186615438565b615c486040830185615388565b612a236060830184615438565b60a08101615c638289615388565b615c706020830188615438565b615c7d6040830187615388565b615c8a6060830186615438565b8181036080830152615c9d8184866153ea565b98975050505050505050565b602080825281016129808184615391565b60208101611879828461542f565b602081016118798284615438565b60e08101615ce4828a615438565b615cf16020830189615388565b615cfe6040830188615438565b615d0b6060830187615388565b615d186080830186615438565b615d2560a0830185615438565b615c9d60c0830184615438565b60808101615d408287615438565b615d4d6020830186615388565b615d5a6040830185615438565b612a236060830184615946565b60808101615d758287615438565b615d826020830186615960565b615c486040830185615438565b60208082528101611879816154c2565b60208082528101611879816154f4565b602080825281016118798161552d565b6020808252810161187981615626565b60208082528101611879816156ba565b60e0810161187982846156f3565b60e081016118798284615776565b610100810161187982846157f9565b60e081016118798284615890565b60a0810161187982846158c7565b6040518181016001600160401b0381118282101715615e4457600080fd5b604052919050565b60200190565b5190565b90815260200190565b600061187982615e7b565b151590565b6001600160801b031690565b6001600160a01b031690565b63ffffffff1690565b6001600160401b031690565b60ff1690565b600061187982600061187982615e5f565b82818337506000910152565b600061187982615ed5565b600061187982615ef6565b600061187982615f08565b600061187982615f02565b600061187982615efc565b60801b90565b60c01b90565b60e01b90565b60601b90565b615f1781615e5f565b811461138357600080fd5b615f1781615e6a565b615f17816113e6565b615f1781615e90565b615f1781615e9c56fe2daf3810ba97a6604cd762f318b7511437c0148eb524edc0728ceb094acbc6455c8d1f77b6233deba47b516a690497af4c7f1be42a768e331832cb02b3400d6ba365627a7a72315820fd8b6f37389c02b72ea85b59a88c5fe3e5cabc58a34d4b06bae5467d5cd77de66c6578706572696d656e74616cf564736f6c634300050b0040Deployed Bytecode
0x60806040526004361061036b5760003560e01c8063888d0e1d116101c6578063b695d805116100f7578063dedcc21b11610095578063ebf26a421161006f578063ebf26a4214610a33578063f618833914610a53578063f8cd6e0114610a73578063fdf9954314610a935761036b565b8063dedcc21b146109de578063e21407ba146109fe578063e4e695fe14610a1e5761036b565b8063c84693a7116100d1578063c84693a71461095e578063cabfc9031461097e578063d0847f1c1461099e578063d4fac45d146109be5761036b565b8063b695d805146108f1578063b78e1bcc14610911578063c47b81641461093e5761036b565b80639bafc51511610164578063a46555d31161013e578063a46555d31461087c578063a4d72d7c1461089c578063a6f9dae1146108bc578063aa6ca808146108dc5761036b565b80639bafc5151461081c5780639e8923721461083c578063a2c38a231461085c5761036b565b806394785a0c116101a057806394785a0c146107b457806398a968c1146107d457806398ea5fca146107f45780639946ce7d146107fc5761036b565b8063888d0e1d146107475780638e0be4451461076757806390216c8c146107875761036b565b8063574c748d116102a057806366c0bd241161023e57806372521dcd1161021857806372521dcd146106df57806373ee4d09146106f45780637bae7c2214610714578063862f9f5a146107275761036b565b806366c0bd24146106725780636849dbe51461069257806368bc15b0146106b25761036b565b80635e5dd3171161027a5780635e5dd317146105e45780635e75228f146106045780636190247014610624578063660c5132146106445761036b565b8063574c748d1461058457806359b07e7a146105a45780635d7bdccd146105c45761036b565b80632a1e58c01161030d5780633af89d03116102e75780633af89d03146104f757806349c35605146105175780634a0c3c3b146105375780634f94d4c3146105575761036b565b80632a1e58c01461048a5780632c580a1f146104b7578063338b5dea146104d75761036b565b806306b297d21161034957806306b297d2146104065780630902f1ac1461042657806312fde4b714610448578063268139d51461046a5761036b565b80630562b1a414610390578063057f8a38146103b057806306789047146103e6575b3373c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21461038e5761038e610ab3565b005b34801561039c57600080fd5b5061038e6103ab3660046150db565b610b14565b3480156103bc57600080fd5b506103d06103cb366004614a5b565b610b3e565b6040516103dd9190615cba565b60405180910390f35b3480156103f257600080fd5b5061038e610401366004615275565b611200565b34801561041257600080fd5b5061038e610421366004615257565b6112c6565b34801561043257600080fd5b5061043b611386565b6040516103dd9190615ca9565b34801561045457600080fd5b5061045d6113e9565b6040516103dd9190615b48565b34801561047657600080fd5b5061038e61048536600461496a565b6113fd565b34801561049657600080fd5b506104aa6104a5366004615239565b611528565b6040516103dd9190615e0a565b3480156104c357600080fd5b5061038e6104d236600461496a565b6115c6565b3480156104e357600080fd5b5061038e6104f2366004614b3a565b61161b565b34801561050357600080fd5b506103d0610512366004614b3a565b6116f5565b34801561052357600080fd5b5061038e610532366004614e01565b61187f565b34801561054357600080fd5b5061038e61055236600461496a565b611b32565b34801561056357600080fd5b5061057761057236600461521b565b611bd4565b6040516103dd9190615ddf565b34801561059057600080fd5b5061038e61059f366004615079565b611e75565b3480156105b057600080fd5b5061038e6105bf36600461496a565b611f5a565b3480156105d057600080fd5b5061038e6105df366004614e01565b61205c565b3480156105f057600080fd5b506103d06105ff366004614a17565b6122d9565b610617610612366004614d30565b612987565b6040516103dd9190615cc8565b34801561063057600080fd5b5061038e61063f366004614b3a565b612a2c565b34801561065057600080fd5b5061066461065f366004614b6a565b612abd565b6040516103dd929190615bea565b34801561067e57600080fd5b5061061761068d36600461496a565b612bb1565b34801561069e57600080fd5b5061038e6106ad366004614b0a565b612bcc565b3480156106be57600080fd5b506106d26106cd3660046152fa565b612c0e565b6040516103dd9190615dfb565b3480156106eb57600080fd5b5061038e612d16565b34801561070057600080fd5b506103d061070f366004614bad565b612d42565b610617610722366004614ca9565b612f3f565b34801561073357600080fd5b5061061761074236600461496a565b612fe3565b34801561075357600080fd5b5061038e610762366004614efe565b612ffe565b34801561077357600080fd5b5061038e6107823660046151bf565b613151565b34801561079357600080fd5b506107a76107a23660046152fa565b613214565b6040516103dd9190615ded565b3480156107c057600080fd5b5061038e6107cf366004614b3a565b6132b4565b3480156107e057600080fd5b5061038e6107ef366004615318565b613368565b61038e610ab3565b34801561080857600080fd5b5061045d610817366004615318565b6134c7565b34801561082857600080fd5b5061038e610837366004615117565b6134e2565b34801561084857600080fd5b5061038e610857366004614d98565b613880565b34801561086857600080fd5b5061038e610877366004614b3a565b61388f565b34801561088857600080fd5b5061038e610897366004614f6d565b613a7b565b3480156108a857600080fd5b5061045d6108b7366004615318565b613b49565b3480156108c857600080fd5b5061038e6108d736600461496a565b613b64565b3480156108e857600080fd5b5061043b613b9d565b3480156108fd57600080fd5b5061038e61090c366004615318565b613bfd565b34801561091d57600080fd5b5061093161092c3660046152fa565b613c28565b6040516103dd9190615e18565b34801561094a57600080fd5b5061038e610959366004614990565b613c7c565b34801561096a57600080fd5b5061038e61097936600461514a565b613d42565b34801561098a57600080fd5b50610617610999366004614b6a565b613dff565b3480156109aa57600080fd5b5061038e6109b9366004615318565b613e17565b3480156109ca57600080fd5b506106176109d93660046149dd565b613e39565b3480156109ea57600080fd5b506106176109f936600461496a565b613e62565b348015610a0a57600080fd5b5061038e610a19366004614fdb565b613e7d565b348015610a2a57600080fd5b50610617613f5a565b348015610a3f57600080fd5b5061038e610a4e366004614e9d565b613f64565b348015610a5f57600080fd5b50610617610a6e3660046149dd565b6140ae565b348015610a7f57600080fd5b506103d0610a8e366004614c22565b6140d9565b348015610a9f57600080fd5b5061038e610aae36600461518f565b6142e0565b3360008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb560205260408082208054349081019091559051600080516020615f6783398151915293610b0a9390929091615b56565b60405180910390a1565b600d546001600160a01b03163314610b2b57600080fd5b600f805460ff1916911515919091179055565b6000333014610b4c57600080fd5b6001600160a01b0387166350dba556610b6b6040890160208a0161496a565b6060890135610b7d60208b018b61496a565b8a60a001358b604001350388886040518763ffffffff1660e01b8152600401610bab96959493929190615c55565b602060405180830381600087803b158015610bc557600080fd5b505af1158015610bd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610bfd91908101906150f9565b8015610c4957506060860135600080610c1c60408a0160208b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205410155b610c5257600080fd5b6060860135600080610c6a60408a0160208b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152908352818120805494909403909355610cad9190890190890161496a565b6001600160a01b031614610d6157610ccb604087016020880161496a565b6001600160a01b031663a9059cbb8988608001358960600135036040518363ffffffff1660e01b8152600401610d02929190615bea565b600060405180830381600087803b158015610d1c57600080fd5b505af1158015610d30573d6000803e3d6000fd5b50505050610d3c61439d565b610d615760405162461bcd60e51b8152600401610d5890615dcf565b60405180910390fd5b6001600160a01b038816639e86aa346000610d8260408a0160208b0161496a565b6001600160a01b031614610d97576000610da3565b87608001358860600135035b610db360408a0160208b0161496a565b60808a013560608b013503610dcb60208c018c61496a565b8b604001358b8b6040518863ffffffff1660e01b8152600401610df396959493929190615c55565b6020604051808303818588803b158015610e0c57600080fd5b505af1158015610e20573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250610e4591908101906150f9565b8015610e8e57506040860135600080610e6160208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205410155b610e9757600080fd5b6040860135600080610eac60208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152908352908120805493909303909255610eec9088018861496a565b6001600160a01b03161415610f4a57604080516001600160a01b0389169160a0890135908901350380156108fc02916000818181858888f19350505050610f455760405162461bcd60e51b8152600401610d5890615d8f565b610fe4565b610f57602087018761496a565b6001600160a01b031663a9059cbb888860a001358960400135036040518363ffffffff1660e01b8152600401610f8e929190615bc1565b600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b50505050610fc861439d565b610fe45760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03871663141ac4566110036040890160208a0161496a565b606089013561101560208b018b61496a565b8a60a001358b60400135036040518563ffffffff1660e01b815260040161103f9493929190615c20565b600060405180830381600087803b15801561105957600080fd5b505af115801561106d573d6000803e3d6000fd5b5050505060a086013560008061108660208a018a61496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f546101009004909216815290835281812080549094019093556080890135929182916110d991908b01908b0161496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f54610100900490921681529083522080549092019091557f32f245cf5de196080c9e054c0e8a592ae3ef3d543a84301d007cc846a43779f6906111409088018861496a565b604088018035906111549060208b0161496a565b89606001356040516111699493929190615c20565b60405180910390a1600080516020615f47833981519152886111916040890160208a0161496a565b88608001358960600135036040516111ab93929190615bdc565b60405180910390a1600080516020615f47833981519152876111d0602089018961496a565b8860a001358960400135036040516111ea93929190615ba6565b60405180910390a1506001979650505050505050565b336000908152600e602052604090205460ff1680156112215750600f5460ff165b61122a57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611251906000903690615ac9565b600060405180830381855af49150503d806000811461128c576040519150601f19603f3d011682016040523d82523d6000602084013e611291565b606091505b5050506001600160f81b03196040860135601c1a60f81b16156112bf576112bf6040860135601c5b1a6143d1565b5050505050565b336000908152600e602052604090205460ff1680156112e75750600f5460ff165b6112f057600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611317906000903690615ac9565b600060405180830381855af49150503d8060008114611352576040519150601f19603f3d011682016040523d82523d6000602084013e611357565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615611383576113836040820135601c6112b9565b50565b6060600c8054806020026020016040519081016040528092919081815260200182805480156113de57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113c0575b505050505090505b90565b600f5461010090046001600160a01b031690565b336000908152600e602052604090205460ff1661141957600080fd5b6001600160a01b0381166000908152600b60205260408120805460ff191690555b600c5481101561152457816001600160a01b0316600c828154811061145b57fe5b6000918252602090912001546001600160a01b0316141561151c57600c8054600019810190811061148857fe5b600091825260209091200154600c80546001600160a01b0390921691839081106114ae57fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600c805460001981019081106114e957fe5b600091825260209091200180546001600160a01b0319169055600c80549061151590600019830161453a565b5050611383565b60010161143a565b5050565b61153061455e565b506040805160e08101825260208381018051600160f81b60109190911a60f81b6001600160f81b031916148352805160681c61ffff90811683850152815160581c166000908152600690925290839020546001600160a01b0316828401528351608090811c606084015284516001600160801b0316818401528151901c60a08301525190911c62ffffff1660c08201525b919050565b600d546001600160a01b0316331480156115ea5750600f54600160a81b900460ff16155b6115f357600080fd5b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6040516323b872dd60e01b81526001600160a01b038316906323b872dd9061164b90339030908690600401615b56565b600060405180830381600087803b15801561166557600080fd5b505af1158015611679573d6000803e3d6000fd5b5050505061168561439d565b6116a15760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b038216600090815260208181526040808320338085529252918290208054840190559051600080516020615f67833981519152916116e99185908590615ba6565b60405180910390a15050565b600f5460009061010090046001600160a01b03163314806117255750336000908152600e602052604090205460ff165b801561175257506001600160a01b0383166000908152602081815260408083203384529091529020548211155b15611875576001600160a01b0383166000818152602081815260408083203384529091529020805484900390556117c057604051339083156108fc029084906000818181858888f193505050506117bb5760405162461bcd60e51b8152600401610d5890615d8f565b611844565b60405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb906117ee9033908690600401615bc1565b600060405180830381600087803b15801561180857600080fd5b505af115801561181c573d6000803e3d6000fd5b5050505061182861439d565b6118445760405162461bcd60e51b8152600401610d5890615dcf565b600080516020615f4783398151915233848460405161186593929190615ba6565b60405180910390a1506001611879565b5060005b92915050565b6000338888883060405160200161189a959493929190615969565b604051602081830303815290604052805190602001206040516020016118c09190615ad6565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161580156119645750600e60006001838888886040516000815260200160405260405161191a9493929190615d67565b6020604051602081039080840390855afa15801561193c573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff165b801561199157506001600160a01b0388166000908152602081815260408083203384529091529020548711155b15611b235760016003600083815260200190815260200160002060006101000a81548160ff021916908315150217905550866000808a6001600160a01b03166001600160a01b031681526020019081526020016000206000336001600160a01b03166001600160a01b0316815260200190815260200160002060008282540392505081905550866000808a6001600160a01b03166001600160a01b031681526020019081526020016000206000846001600160a01b03166001600160a01b03168152602001908152602001600020600082825401925050819055506000600160008a6001600160a01b03166001600160a01b031681526020019081526020016000206000336001600160a01b03166001600160a01b03168152602001908152602001600020819055507f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd338989604051611aed93929190615ba6565b60405180910390a1600080516020615f67833981519152828989604051611b1693929190615bdc565b60405180910390a1611b28565b600080fd5b5050505050505050565b6001600160a01b038181166000908152600560205260409020541615611b6a5760405162461bcd60e51b8152600401610d5890615d9f565b6001600160a01b0381166000908152600560205260409081902080546001600160a01b0319163390811790915590517f62dd941162a19392928b6c40f397d22668655b1cca688e171c991a15b4d4205191611bc9918490600190615b7e565b60405180910390a150565b611bdc6145a6565b611be46145a6565b506040805160e080820183526020858101805160f01c60009081526006808452868220546001600160a01b0390811687528951608090811c86890152845190961c61ffff1683529352858120549092169484019490945285516001600160801b03166060840152835160c090811c63ffffffff169284019290925260a0830181905290820152905160111a60f81b6001600160f81b031916611d1457806000015181602001518260400151836060015184608001516080886020015167ffffffffffffffff60801b60001b16901c60001c30604051602001611ccc97969594939291906159f9565b60405160208183030381529060405280519060200120604051602001611cf29190615ad6565b60408051601f19818403018152919052805160209091012060a0820152611dbb565b601154604051611d2390615b27565b60405180910390208260000151836020015184604001518560600151866080015160808a6020015167ffffffffffffffff60801b60001b16901c60001c604051602001611d769796959493929190615cd6565b60405160208183030381529060405280519060200120604051602001611d9d929190615af6565b60408051601f19818403018152919052805160209091012060a08201525b60a0810151602084810151604080870151606088015182516000815290940191829052600194611df094909360101a92615d67565b6020604051602081039080840390855afa158015611e12573d6000803e3d6000fd5b5050604051601f1901516001600160a01b031660c0830152506020830151600160f81b9060121a60f81b6001600160f81b03191614156118795760c0810180516001600160a01b0390811660009081526005602052604090205416905292915050565b336000908152600e602052604090205460ff168015611e965750600f5460ff165b611e9f57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690611ec6906000903690615ac9565b600060405180830381855af49150503d8060008114611f01576040519150601f19603f3d011682016040523d82523d6000602084013e611f06565b606091505b50829150600090505b60001982019115611f4357838383818110611f2657fe5b90506060020160400135601c60208110611f3c57fe5b1a01611f0f565b8015611f5257611f52816143d1565b505050505050565b336000908152600e602052604090205460ff16611f7657600080fd5b60005b60085481101561152457816001600160a01b031660088281548110611f9a57fe5b6000918252602090912001546001600160a01b0316141561205457600880546000198101908110611fc757fe5b600091825260209091200154600880546001600160a01b039092169183908110611fed57fe5b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905560088054600019810190811061202857fe5b600091825260209091200180546001600160a01b0319169055600880549061151590600019830161453a565b600101611f79565b60003388888830604051602001612077959493929190615969565b6040516020818303038152906040528051906020012060405160200161209d9190615ad6565b60408051601f1981840301815291815281516020928301206000818152600390935291205490915060ff161580156121415750600e6000600183888888604051600081526020016040526040516120f79493929190615d67565b6020604051602081039080840390855afa158015612119573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff165b801561216e57506001600160a01b0388166000908152602081815260408083203384529091529020548711155b15611b23576000818152600360209081526040808320805460ff191660011790556001600160a01b038b16808452838352818420338552909252909120805489900390556121fc576040516001600160a01b0383169088156108fc029089906000818181858888f193505050506121f75760405162461bcd60e51b8152600401610d5890615d8f565b612280565b60405163a9059cbb60e01b81526001600160a01b0389169063a9059cbb9061222a9085908b90600401615bc1565b600060405180830381600087803b15801561224457600080fd5b505af1158015612258573d6000803e3d6000fd5b5050505061226461439d565b6122805760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03881660009081526001602090815260408083203380855292528083209290925590517f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd91611b16918b908b90615ba6565b60003330146122e757600080fd5b6001600160a01b03831663666f4f16612306604085016020860161496a565b6060850135612318602087018761496a565b8660a001358760400135036040518563ffffffff1660e01b81526004016123429493929190615c20565b602060405180830381600087803b15801561235c57600080fd5b505af1158015612370573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061239491908101906150f9565b80156123e0575060608201356000806123b3604086016020870161496a565b6001600160a01b039081168252602080830193909352604091820160009081209188168152925290205410155b6123e957600080fd5b6060820135600080612401604086016020870161496a565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529083528181208054949094039093556124449190850190850161496a565b6001600160a01b0316146124ef57612462604083016020840161496a565b6001600160a01b031663a9059cbb8584608001358560600135036040518363ffffffff1660e01b8152600401612499929190615bea565b600060405180830381600087803b1580156124b357600080fd5b505af11580156124c7573d6000803e3d6000fd5b505050506124d361439d565b6124ef5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03841663bb39a9606000612510604086016020870161496a565b6001600160a01b031614612525576000612531565b83608001358460600135035b612541604086016020870161496a565b6080860135606087013503612559602088018861496a565b87604001356040518663ffffffff1660e01b815260040161257d9493929190615c20565b6020604051808303818588803b15801561259657600080fd5b505af11580156125aa573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052506125cf91908101906150f9565b8015612618575060408201356000806125eb602086018661496a565b6001600160a01b039081168252602080830193909352604091820160009081209189168152925290205410155b61262157600080fd5b6040820135600080612636602086018661496a565b6001600160a01b0390811682526020808301939093526040918201600090812091891681529083529081208054939093039092556126769084018461496a565b6001600160a01b031614156126d457604080516001600160a01b0385169160a0850135908501350380156108fc02916000818181858888f193505050506126cf5760405162461bcd60e51b8152600401610d5890615d8f565b61276e565b6126e1602083018361496a565b6001600160a01b031663a9059cbb848460a001358560400135036040518363ffffffff1660e01b8152600401612718929190615bc1565b600060405180830381600087803b15801561273257600080fd5b505af1158015612746573d6000803e3d6000fd5b5050505061275261439d565b61276e5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b03831663141ac45661278d604085016020860161496a565b606085013561279f602087018761496a565b8660a001358760400135036040518563ffffffff1660e01b81526004016127c99493929190615c20565b600060405180830381600087803b1580156127e357600080fd5b505af11580156127f7573d6000803e3d6000fd5b5050505060a0820135600080612810602086018661496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f546101009004909216815290835281812080549094019093556080850135929182916128639190870190870161496a565b6001600160a01b03908116825260208083019390935260409182016000908120600f54610100900490921681529083522080549092019091557f32f245cf5de196080c9e054c0e8a592ae3ef3d543a84301d007cc846a43779f6906128ca9084018461496a565b604084018035906128de906020870161496a565b85606001356040516128f39493929190615c20565b60405180910390a1600080516020615f478339815191528461291b604085016020860161496a565b846080013585606001350360405161293593929190615bdc565b60405180910390a1600080516020615f478339815191528361295a602085018561496a565b8460a0013585604001350360405161297493929190615ba6565b60405180910390a15060015b9392505050565b6000806060739e3d5c6ffaca00caf136609680b536dc0eb20c666001600160a01b03166000366040516129bb929190615ac9565b600060405180830381855af49150503d80600081146129f6576040519150601f19603f3d011682016040523d82523d6000602084013e6129fb565b606091505b509150915081612a0a57600080fd5b80806020019051612a1e9190810190615336565b925050505b95945050505050565b336000908152600e602052604090205460ff16612a4857600080fd5b600081815260066020908152604080832080546001600160a01b039096166001600160a01b0319968716811790915580845260079092528220929092556008805460018101825591527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3018054909216179055565b600080808080805b600c54811015612ba357600c8181548110612adc57fe5b60009182526020909120015460405163cabfc90360e01b81526001600160a01b039091169063cabfc90390612b19908c908c908c90600401615bf8565b60206040518083038186803b158015612b3157600080fd5b505afa158015612b45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612b699190810190615336565b915082821115612b9b57819250600c8181548110612b8357fe5b6000918252602090912001546001600160a01b031693505b600101612ac5565b509197909650945050505050565b6001600160a01b031660009081526007602052604090205490565b600d546001600160a01b03163314612be357600080fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b612c166145e2565b6040820151600160fc1b9060101a60f81b6001600160f81b0319161415612ca5575060408051610100810182528251608090811c825283516001600160801b039081166020808501919091528086018051841c858701525190911660608401529284018051821c91830191909152600060a0830152600160c08301525190911c62ffffff1660e08201526115c1565b50604080516101008101825282516001600160801b0390811682528351608090811c6020808501919091528086018051909316848601529151811c60608401526000818401819052938501805190911c60a084015260c0830193909352915190911c62ffffff1660e08201526115c1565b600d546001600160a01b03163314612d2d57600080fd5b600f805460ff60a81b1916600160a81b179055565b6000333014612d5057600080fd5b6001600160a01b038616612df2576040516305d9cd4b60e51b81526001600160a01b0383169063bb39a960908790612d92908a9083908a908a90600401615c20565b6020604051808303818588803b158015612dab57600080fd5b505af1158015612dbf573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250612de491908101906150f9565b612ded57600080fd5b612f03565b60405163a9059cbb60e01b81526001600160a01b0387169063a9059cbb90612e209085908990600401615bea565b600060405180830381600087803b158015612e3a57600080fd5b505af1158015612e4e573d6000803e3d6000fd5b50505050612e5a61439d565b612e765760405162461bcd60e51b8152600401610d5890615dcf565b6040516305d9cd4b60e51b81526001600160a01b0383169063bb39a96090612ea8908990899089908990600401615c20565b602060405180830381600087803b158015612ec257600080fd5b505af1158015612ed6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612efa91908101906150f9565b612f0357600080fd5b6001600160a01b0380851660009081526020818152604080832093861683529290522054831115612f3357600080fd5b50600195945050505050565b6000806060739e3d5c6ffaca00caf136609680b536dc0eb20c666001600160a01b0316600036604051612f73929190615ac9565b600060405180830381855af49150503d8060008114612fae576040519150601f19603f3d011682016040523d82523d6000602084013e612fb3565b606091505b509150915081612fc257600080fd5b80806020019051612fd69190810190615336565b9998505050505050505050565b6001600160a01b031660009081526002602052604090205490565b600e600060018787604051602001613017929190615abc565b6040516020818303038152906040528051906020012060405160200161303d9190615ad6565b60405160208183030381529060405280519060200120868686604051600081526020016040526040516130739493929190615d67565b6020604051602081039080840390855afa158015613095573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff1615611b23578360005b8181101561314a57600019600460008989858181106130e057fe5b905060200201358152602001908152602001600020819055507f0bcf9a26b9d4a9d57f0b8d74aecbc259a2b4d2344fd2ff794de7c69e1e3da15f87878381811061312657fe5b9050602002013560405161313a9190615cc8565b60405180910390a16001016130c5565b50506112bf565b336000908152600e602052604090205460ff1680156131725750600f5460ff165b61317b57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c66906131a2906000903690615ac9565b600060405180830381855af49150503d80600081146131dd576040519150601f19603f3d011682016040523d82523d6000602084013e6131e2565b606091505b5050506001600160f81b03196040840135601c1a60f81b161561320e5761320e6040840135601c6112b9565b50505050565b61321c614629565b506040805160e081018252828201805160481c61ffff908116600090815260066020818152868320546001600160a01b039081168752855160381c90941683529081529085902054909116818401528451608090811c9484019490945284516001600160801b0390811660608501529481018051851c94840194909452925190931660a08201529151901c62ffffff1660c082015290565b6001600160a01b03821660008181526001602090815260408083203380855290835281842054948452838352818420908452909152902054038111611b23576001600160a01b03821660009081526001602090815260408083203380855290835281842080548601905560029092529182902042905590517f82281e29ca97a96d0c1319ac203e949a694cd6187c769761b2fe013bce25ea439161335b9185908590615ba6565b60405180910390a1611524565b6040516323b872dd60e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906323b872dd906133a390339030908690600401615b56565b600060405180830381600087803b1580156133bd57600080fd5b505af11580156133d1573d6000803e3d6000fd5b505050506133dd61439d565b6133f95760405162461bcd60e51b8152600401610d5890615dbf565b604051632e1a7d4d60e01b815230319073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90613433908590600401615cc8565b600060405180830381600087803b15801561344d57600080fd5b505af1158015613461573d6000803e3d6000fd5b5050505080820130311461347457600080fd5b3360008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604080822080548601905551600080516020615f67833981519152926116e99290918690615b56565b6000908152600660205260409020546001600160a01b031690565b60f083901c600090815260066020526040812054608086901c916001600160801b038716916001600160a01b03169060b087901c6001600160401b031690600a88901a906001600160f81b0319600b8a901a60f81b1661359657838684306040516020016135539493929190615a74565b604051602081830303815290604052805190602001206040516020016135799190615ad6565b604051602081830303815290604052805190602001209050613600565b6011546040516135a590615b32565b6040519081900381206135c09187908a908890602001615d32565b604051602081830303815290604052805190602001206040516020016135e7929190615af6565b6040516020818303038152906040528051906020012090505b6000600182848b8b604051600081526020016040526040516136259493929190615d67565b6020604051602081039080840390855afa158015613647573d6000803e3d6000fd5b505060408051601f19015160008581526003602052919091205490925060ff1615905080156136855750336000908152600e602052604090205460ff165b80156136945750601487048611155b80156136c357506001600160a01b03808616600090815260208181526040808320938516835292905220548711155b15611b23576000828152600360209081526040808320805460ff191660011790556001600160a01b03888116808552848452828520868316865290935281842080548c90039055600f546101009004168352909120805488019055613769576040516001600160a01b0382169087890380156108fc02916000818181858888f193505050506137645760405162461bcd60e51b8152600401610d5890615d8f565b6137ef565b60405163a9059cbb60e01b81526001600160a01b0386169063a9059cbb906137999084908a8c0390600401615bc1565b600060405180830381600087803b1580156137b357600080fd5b505af11580156137c7573d6000803e3d6000fd5b505050506137d361439d565b6137ef5760405162461bcd60e51b8152600401610d5890615dcf565b6001600160a01b038086166000908152600160209081526040808320938516835292905281812055517f0ec497a8ae5b1ba29c60470ef651def995fac3deebbdcc56c47a4e5f51a4c2bd9061384990839088908b90615ba6565b60405180910390a16001600160f81b0319600c8b901a60f81b1615613873576138738a600c6112b9565b5050505050505050505050565b611f528686868686863361205c565b6001600160a01b038216600090815260208181526040808320338452909152902054811180159061390d57506001600160a01b0382166000908152600160209081526040808320338452909152902054811180159061390257506010543360009081526002602052604090205442910111155b8061390d5750601054155b15611b23576001600160a01b03821660008181526020818152604080832033808552908352818420805487900390559383526001825280832093835292905220548111613979576001600160a01b03821660009081526001602090815260408083203384529091528120555b6001600160a01b0382166139c457604051339082156108fc029083906000818181858888f193505050506139bf5760405162461bcd60e51b8152600401610d5890615d8f565b613a48565b60405163a9059cbb60e01b81526001600160a01b0383169063a9059cbb906139f29033908590600401615bc1565b600060405180830381600087803b158015613a0c57600080fd5b505af1158015613a20573d6000803e3d6000fd5b50505050613a2c61439d565b613a485760405162461bcd60e51b8152600401610d5890615dcf565b7fabc0c89be5a5927fb2b8384e5097fbae457df4a35c7e183919395cbec4c373cf33838360405161335b93929190615ba6565b336000908152600e602052604090205460ff168015613a9c5750600f5460ff165b613aa557600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613acc906000903690615ac9565b600060405180830381855af49150503d8060008114613b07576040519150601f19603f3d011682016040523d82523d6000602084013e613b0c565b606091505b50829150600090505b60001982019115611f4357838383818110613b2c57fe5b90506040020160200135601860208110613b4257fe5b1a01613b15565b6000908152600960205260409020546001600160a01b031690565b600d546001600160a01b03163314613b7b57600080fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b606060088054806020026020016040519081016040528092919081815260200182805480156113de576020028201919060005260206000209081546001600160a01b031681526001909101906020018083116113c0575050505050905090565b600d546001600160a01b031633148015613c1a5750620151808111155b613c2357600080fd5b601055565b613c30614678565b506040805160a0810182528251608090811c825283516001600160801b0390811660208085019190915285018051831c84860152511660608301529290910151821c9181019190915290565b336000908152600e602052604090205460ff16613c9857600080fd5b600082815260096020908152604080832080546001600160a01b0319166001600160a01b0388169081179091558352600a90915290208290558015613d3d576001600160a01b0383166000818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b03191690911790555b505050565b336000908152600e602052604090205460ff168015613d635750600f5460ff165b613d6c57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613d93906000903690615ac9565b600060405180830381855af49150503d8060008114613dce576040519150601f19603f3d011682016040523d82523d6000602084013e613dd3565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615613d3d57613d3d6040820135601c6112b9565b600080613e0d858585612abd565b9695505050505050565b60128054820190555b6000198101901561138357613e33614460565b50613e20565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205490565b6001600160a01b03166000908152600a602052604090205490565b336000908152600e602052604090205460ff168015613e9e5750600f5460ff165b613ea757600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690613ece906000903690615ac9565b600060405180830381855af49150503d8060008114613f09576040519150601f19603f3d011682016040523d82523d6000602084013e613f0e565b606091505b50849150600090505b60001982019115613f4b57858583818110613f2e57fe5b90506040020160200135601860208110613f4457fe5b1a01613f17565b8015611b2857611b28816143d1565b6013546012540390565b6000843330604051602001613f7b939291906159c2565b60405160208183030381529060405280519060200120604051602001613fa19190615ad6565b604051602081830303815290604052805190602001209050600e600060018387878760405160008152602001604052604051613fe09493929190615d67565b6020604051602081039080840390855afa158015614002573d6000803e3d6000fd5b505060408051601f1901516001600160a01b03168352602083019390935250016000205460ff166140455760405162461bcd60e51b8152600401610d5890615daf565b6001600160a01b03851660009081526005602052604080822080546001600160a01b0319166001179055517f62dd941162a19392928b6c40f397d22668655b1cca688e171c991a15b4d420519161409f9133918991615b7e565b60405180910390a15050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60003330146140e757600080fd5b6001600160a01b03881661418d576040516327a1aa8d60e21b81526001600160a01b03851690639e86aa3490899061412d908c9083908c908c908b908b90600401615c55565b6020604051808303818588803b15801561414657600080fd5b505af115801561415a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525061417f91908101906150f9565b61418857600080fd5b6142a2565b60405163a9059cbb60e01b81526001600160a01b0389169063a9059cbb906141bb9087908b90600401615bea565b600060405180830381600087803b1580156141d557600080fd5b505af11580156141e9573d6000803e3d6000fd5b505050506141f561439d565b6142115760405162461bcd60e51b8152600401610d5890615dcf565b6040516327a1aa8d60e21b81526001600160a01b03851690639e86aa3490614247908b908b908b908b908a908a90600401615c55565b602060405180830381600087803b15801561426157600080fd5b505af1158015614275573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061429991908101906150f9565b6142a257600080fd5b6001600160a01b03808716600090815260208181526040808320938816835292905220548511156142d257600080fd5b506001979650505050505050565b336000908152600e602052604090205460ff1680156143015750600f5460ff165b61430a57600080fd5b604051739e3d5c6ffaca00caf136609680b536dc0eb20c6690614331906000903690615ac9565b600060405180830381855af49150503d806000811461436c576040519150601f19603f3d011682016040523d82523d6000602084013e614371565b606091505b5050506001600160f81b03196040820135601c1a60f81b1615611524576115246040820135601c6112b9565b6000803d80156143b457602081146143bd576143c9565b600191506143c9565b60206000803e60005191505b501515905090565b601354601254819003821161152457600181015b8282018111614459576143f781614495565b6001600160a01b031660405161440c90615b3d565b6000604051808303816000865af19150503d8060008114614449576040519150601f19603f3d011682016040523d82523d6000602084013e61444e565b606091505b5050506001016143e5565b5001601355565b60006040517d746d541e251335090ac5b47176af4f7e3318585733ff6000526015600bf38152601e600282016000f091505090565b600068ffffffffffffffffff8211156144ad57600080fd5b60008060808410156144c9575050600160481b82026016614505565b60016101005b8086106144e65760019190910190610100026144cf565b50600160481b608082010260098290036101000a860201925060160190505b6040805160208101909152600160f81b60c0830102600160501b30020192909201602560f21b01825260010190209050919050565b815481835581811115613d3d57600083815260209020613d3d9181019083016146a7565b6040518060e001604052806000151581526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081525090565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b604051806101000160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081525090565b6040518060e0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6113e691905b808211156146c157600081556001016146ad565b5090565b803561187981615f0e565b60008083601f8401126146e257600080fd5b5081356001600160401b038111156146f957600080fd5b60208301915083602082028301111561471157600080fd5b9250929050565b60008083601f84011261472a57600080fd5b5081356001600160401b0381111561474157600080fd5b60208301915083608082028301111561471157600080fd5b60008083601f84011261476b57600080fd5b5081356001600160401b0381111561478257600080fd5b60208301915083604082028301111561471157600080fd5b60008083601f8401126147ac57600080fd5b5081356001600160401b038111156147c357600080fd5b60208301915083606082028301111561471157600080fd5b803561187981615f22565b805161187981615f22565b803561187981615f2b565b60006080828403121561480e57600080fd5b50919050565b60006080828403121561482657600080fd5b6148306080615e26565b9050600061483e84846147f1565b825250602061484f848483016147f1565b6020830152506040614863848285016147f1565b6040830152506060614877848285016147f1565b60608301525092915050565b600060e0828403121561480e57600080fd5b6000604082840312156148a757600080fd5b6148b16040615e26565b905060006148bf84846147f1565b82525060206148d0848483016147f1565b60208301525092915050565b60006060828403121561480e57600080fd5b60006060828403121561490057600080fd5b61490a6060615e26565b9050600061491884846147f1565b8252506020614929848483016147f1565b602083015250604061493d848285016147f1565b60408301525092915050565b805161187981615f2b565b803561187981615f34565b803561187981615f3d565b60006020828403121561497c57600080fd5b600061498884846146c5565b949350505050565b6000806000606084860312156149a557600080fd5b60006149b186866146c5565b93505060206149c2868287016147f1565b92505060406149d3868287016147db565b9150509250925092565b600080604083850312156149f057600080fd5b60006149fc85856146c5565b9250506020614a0d858286016146c5565b9150509250929050565b60008060006101208486031215614a2d57600080fd5b6000614a3986866146c5565b9350506020614a4a868287016146c5565b92505060406149d386828701614883565b6000806000806000806000610160888a031215614a7757600080fd5b6000614a838a8a6146c5565b9750506020614a948a828b016146c5565b9650506040614aa58a828b01614883565b9550506101208801356001600160401b03811115614ac257600080fd5b614ace8a828b016146d0565b94509450506101408801356001600160401b03811115614aed57600080fd5b614af98a828b016146d0565b925092505092959891949750929550565b60008060408385031215614b1d57600080fd5b6000614b2985856146c5565b9250506020614a0d858286016147db565b60008060408385031215614b4d57600080fd5b6000614b5985856146c5565b9250506020614a0d858286016147f1565b600080600060608486031215614b7f57600080fd5b6000614b8b86866146c5565b9350506020614b9c868287016147f1565b92505060406149d3868287016146c5565b600080600080600060a08688031215614bc557600080fd5b6000614bd188886146c5565b9550506020614be2888289016147f1565b9450506040614bf3888289016146c5565b9350506060614c04888289016147f1565b9250506080614c15888289016146c5565b9150509295509295909350565b600080600080600080600060c0888a031215614c3d57600080fd5b6000614c498a8a6146c5565b9750506020614c5a8a828b016147f1565b9650506040614c6b8a828b016146c5565b9550506060614c7c8a828b016147f1565b9450506080614c8d8a828b016146c5565b93505060a08801356001600160401b03811115614aed57600080fd5b60008060008060008060c08789031215614cc257600080fd5b6000614cce89896146c5565b9650506020614cdf89828a016147f1565b9550506040614cf089828a016146c5565b9450506060614d0189828a016147f1565b9350506080614d1289828a016146c5565b92505060a0614d2389828a016147f1565b9150509295509295509295565b600080600080600060a08688031215614d4857600080fd5b6000614d5488886146c5565b9550506020614d65888289016147f1565b9450506040614d76888289016146c5565b9350506060614d87888289016147f1565b9250506080614c15888289016147f1565b60008060008060008060c08789031215614db157600080fd5b6000614dbd89896146c5565b9650506020614dce89828a016147f1565b9550506040614ddf89828a01614954565b9450506060614df089828a0161495f565b9350506080614d1289828a016147f1565b600080600080600080600060e0888a031215614e1c57600080fd5b6000614e288a8a6146c5565b9750506020614e398a828b016147f1565b9650506040614e4a8a828b01614954565b9550506060614e5b8a828b0161495f565b9450506080614e6c8a828b016147f1565b93505060a0614e7d8a828b016147f1565b92505060c0614e8e8a828b016146c5565b91505092959891949750929550565b60008060008060808587031215614eb357600080fd5b6000614ebf87876146c5565b9450506020614ed08782880161495f565b9350506040614ee1878288016147f1565b9250506060614ef2878288016147f1565b91505092959194509250565b600080600080600060808688031215614f1657600080fd5b85356001600160401b03811115614f2c57600080fd5b614f38888289016146d0565b95509550506020614f4b8882890161495f565b9350506040614f5c888289016147f1565b9250506060614c15888289016147f1565b60008060008060408587031215614f8357600080fd5b84356001600160401b03811115614f9957600080fd5b614fa587828801614718565b945094505060208501356001600160401b03811115614fc357600080fd5b614fcf87828801614759565b95989497509550505050565b60008060008060008060608789031215614ff457600080fd5b86356001600160401b0381111561500a57600080fd5b61501689828a01614718565b965096505060208701356001600160401b0381111561503457600080fd5b61504089828a01614759565b945094505060408701356001600160401b0381111561505e57600080fd5b61506a89828a016146d0565b92509250509295509295509295565b6000806000806040858703121561508f57600080fd5b84356001600160401b038111156150a557600080fd5b6150b187828801614718565b945094505060208501356001600160401b038111156150cf57600080fd5b614fcf8782880161479a565b6000602082840312156150ed57600080fd5b600061498884846147db565b60006020828403121561510b57600080fd5b600061498884846147e6565b6000806000806080858703121561512d57600080fd5b600061513987876147f1565b9450506020614ed0878288016147f1565b6000806000610160848603121561516057600080fd5b600061516c86866147fc565b935050608061517d868287016147fc565b9250506101006149d3868287016148dc565b60008060e083850312156151a257600080fd5b60006151ae85856147fc565b9250506080614a0d858286016148dc565b60008060008061010085870312156151d657600080fd5b60006151e287876147fc565b94505060806151f3878288016148dc565b93505060e08501356001600160401b0381111561520f57600080fd5b614fcf878288016146d0565b60006080828403121561522d57600080fd5b60006149888484614814565b60006040828403121561524b57600080fd5b60006149888484614895565b60006060828403121561526957600080fd5b600061498884846148dc565b600080600080600060a0868803121561528d57600080fd5b600061529988886148dc565b95505060608601356001600160401b038111156152b557600080fd5b6152c1888289016146d0565b945094505060808601356001600160401b038111156152df57600080fd5b6152eb888289016146d0565b92509250509295509295909350565b60006060828403121561530c57600080fd5b600061498884846148ee565b60006020828403121561532a57600080fd5b600061498884846147f1565b60006020828403121561534857600080fd5b60006149888484614949565b60006153608383615388565b505060200190565b61537181615ea2565b82525050565b61537161538382615e5f565b615ebf565b61537181615e5f565b600061539c82615e52565b6153a68185615e56565b93506153b183615e4c565b8060005b838110156153df5781516153c98882615354565b97506153d483615e4c565b9250506001016153b5565b509495945050505050565b60006153f68385615e56565b93506001600160fb1b0383111561540c57600080fd5b60208302925061541d838584615eb3565b50500190565b60006153f683856115c1565b61537181615e6a565b615371816113e6565b61537161544d826113e6565b6113e6565b600061545e83856115c1565b935061541d838584615eb3565b6000615478601c836115c1565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c0192915050565b60006154b16002836115c1565b61190160f01b815260020192915050565b60006154cf601683615e56565b7529b2b73234b7339037b31022aa24103330b4b632b21760511b815260200192915050565b6000615501601d83615e56565b7f4164647265737320697320616c726561647920612064656c6567617465000000815260200192915050565b600061553a602283615e56565b7f4d756c7469536967206973206e6f742066726f6d206b6e6f776e20617262697481526132b960f11b602082015260400192915050565b600061557e6081836115c1565b7f4f7264657228616464726573732073656c6c546f6b656e416464726573732c7581527f696e743132382073656c6c546f6b656e416d6f756e742c61646472657373206260208201527f7579546f6b656e416464726573732c75696e7431323820627579546f6b656e4160408201527f6d6f756e742c75696e743332206578706972792c75696e743634206e6f6e63656060820152602960f81b608082015260810192915050565b6000615633601483615e56565b732ba2aa24103232b837b9b4ba103330b4b632b21760611b815260200192915050565b60006156636035836115c1565b7f5769746864726177616c286164647265737320746f6b656e2c75696e7432353681527420616d6f756e742c75696e743634206e6f6e63652960581b602082015260350192915050565b60006118796000836115c1565b60006156c7601c83615e56565b7f455243323020746f6b656e207472616e73666572206661696c65642e00000000815260200192915050565b805160e08301906157048482615388565b5060208201516157176020850182615438565b50604082015161572a6040850182615388565b50606082015161573d6060850182615438565b5060808201516157506080850182615438565b5060a082015161576360a0850182615438565b5060c082015161320e60c0850182615388565b805160e08301906157878482615388565b50602082015161579a6020850182615388565b5060408201516157ad6040850182615438565b5060608201516157c06060850182615438565b5060808201516157d36080850182615438565b5060a08201516157e660a0850182615438565b5060c082015161320e60c0850182615438565b805161010083019061580b8482615438565b50602082015161581e6020850182615438565b5060408201516158316040850182615438565b5060608201516158446060850182615438565b5060808201516158576080850182615438565b5060a082015161586a60a0850182615438565b5060c082015161587d60c085018261542f565b5060e082015161320e60e0850182615438565b805160e08301906158a1848261542f565b5060208201516158b46020850182615438565b5060408201516157ad6040850182615388565b805160a08301906158d88482615438565b5060208201516158eb6020850182615438565b5060408201516158fe6040850182615438565b5060608201516159116060850182615438565b50608082015161320e6080850182615438565b61537161593082615e6f565b615eca565b61537161594182615e87565b615ee0565b61537181615e90565b61537161595b82615e90565b615eeb565b61537181615e9c565b60006159758288615377565b6014820191506159858287615377565b6014820191506159958286615441565b6020820191506159a5828561594f565b6008820191506159b58284615377565b5060140195945050505050565b60006159ce8286615377565b6014820191506159de8285615377565b6014820191506159ee8284615377565b506014019392505050565b6000615a05828a615377565b601482019150615a158289615924565b601082019150615a258288615377565b601482019150615a358287615924565b601082019150615a458286615935565b600482019150615a55828561594f565b600882019150615a658284615377565b50601401979650505050505050565b6000615a808287615377565b601482019150615a908286615441565b602082019150615aa0828561594f565b600882019150615ab08284615377565b50601401949350505050565b6000614988828486615423565b6000614988828486615452565b6000615ae18261546b565b9150615aed8284615441565b50602001919050565b6000615b01826154a4565b9150615b0d8285615441565b602082019150615b1d8284615441565b5060200192915050565b600061187982615571565b600061187982615656565b6000611879826156ad565b602081016118798284615388565b60608101615b648286615368565b615b716020830185615368565b6149886040830184615438565b60608101615b8c8286615368565b615b996020830185615388565b614988604083018461542f565b60608101615bb48286615368565b615b716020830185615388565b60408101615bcf8285615368565b6129806020830184615438565b60608101615bb48286615388565b60408101615bcf8285615388565b60608101615c068286615388565b615c136020830185615438565b6149886040830184615388565b60808101615c2e8287615388565b615c3b6020830186615438565b615c486040830185615388565b612a236060830184615438565b60a08101615c638289615388565b615c706020830188615438565b615c7d6040830187615388565b615c8a6060830186615438565b8181036080830152615c9d8184866153ea565b98975050505050505050565b602080825281016129808184615391565b60208101611879828461542f565b602081016118798284615438565b60e08101615ce4828a615438565b615cf16020830189615388565b615cfe6040830188615438565b615d0b6060830187615388565b615d186080830186615438565b615d2560a0830185615438565b615c9d60c0830184615438565b60808101615d408287615438565b615d4d6020830186615388565b615d5a6040830185615438565b612a236060830184615946565b60808101615d758287615438565b615d826020830186615960565b615c486040830185615438565b60208082528101611879816154c2565b60208082528101611879816154f4565b602080825281016118798161552d565b6020808252810161187981615626565b60208082528101611879816156ba565b60e0810161187982846156f3565b60e081016118798284615776565b610100810161187982846157f9565b60e081016118798284615890565b60a0810161187982846158c7565b6040518181016001600160401b0381118282101715615e4457600080fd5b604052919050565b60200190565b5190565b90815260200190565b600061187982615e7b565b151590565b6001600160801b031690565b6001600160a01b031690565b63ffffffff1690565b6001600160401b031690565b60ff1690565b600061187982600061187982615e5f565b82818337506000910152565b600061187982615ed5565b600061187982615ef6565b600061187982615f08565b600061187982615f02565b600061187982615efc565b60801b90565b60c01b90565b60e01b90565b60601b90565b615f1781615e5f565b811461138357600080fd5b615f1781615e6a565b615f17816113e6565b615f1781615e90565b615f1781615e9c56fe2daf3810ba97a6604cd762f318b7511437c0148eb524edc0728ceb094acbc6455c8d1f77b6233deba47b516a690497af4c7f1be42a768e331832cb02b3400d6ba365627a7a72315820fd8b6f37389c02b72ea85b59a88c5fe3e5cabc58a34d4b06bae5467d5cd77de66c6578706572696d656e74616cf564736f6c634300050b0040
Deployed Bytecode Sourcemap
81636:62648:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82349:10;82815:42;82349:34;82346:249;;82485:14;:12;:14::i;:::-;81636:62648;141353:243;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;141353:243:0;;;;;;;;:::i;113267:5195::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;113267:5195:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;103839:568;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;103839:568:0;;;;;;;;:::i;103037:493::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;103037:493:0;;;;;;;;:::i;8413:104::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8413:104:0;;;:::i;:::-;;;;;;;;142489:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;142489:94:0;;;:::i;:::-;;;;;;;;138602:775;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;138602:775:0;;;;;;;;:::i;27031:1076::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;27031:1076:0;;;;;;;;:::i;:::-;;;;;;;;141756:302;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;141756:302:0;;;;;;;;:::i;84249:586::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;84249:586:0;;;;;;;;:::i;142870:1411::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;142870:1411:0;;;;;;;;:::i;89007:1760::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;89007:1760:0;;;;;;;;:::i;134649:288::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;134649:288:0;;;;;;;;:::i;13716:3058::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;13716:3058:0;;;;;;;;:::i;:::-;;;;;;;;104679:740;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;104679:740:0;;;;;;;;:::i;140024:644::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;140024:644:0;;;;;;;;:::i;86158:2235::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;86158:2235:0;;;;;;;;:::i;107728:5045::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;107728:5045:0;;;;;;;;:::i;127296:384::-;;;;;;;;;:::i;:::-;;;;;;;;139598:278;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;139598:278:0;;;;;;;;:::i;126081:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;126081:614:0;;;;;;;;:::i;:::-;;;;;;;;;7027:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7027:112:0;;;;;;;;:::i;140923:255::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;140923:255:0;;;;;;;;:::i;21374:1920::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;21374:1920:0;;;;;;;;:::i;:::-;;;;;;;;142145:232;;8:9:-1;5:2;;;30:1;27;20:12;5:2;142145:232:0;;;:::i;119027:2540::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;119027:2540:0;;;;;;;;:::i;128263:419::-;;;;;;;;;:::i;9262:129::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;9262:129:0;;;;;;;;:::i;129074:1066::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;129074:1066:0;;;;;;;;:::i;102307:561::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;102307:561:0;;;;;;;;:::i;23534:992::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;23534:992:0;;;;;;;;:::i;:::-;;;;;;;;97035:889;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;97035:889:0;;;;;;;;:::i;82958:1032::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;82958:1032:0;;;;;;;;:::i;81956:246::-;;;:::i;7308:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7308:109:0;;;;;;;;:::i;91677:4947::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;91677:4947:0;;;;;;;;:::i;85326:236::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;85326:236:0;;;;;;;;:::i;98196:2119::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;98196:2119:0;;;;;;;;:::i;105642:683::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;105642:683:0;;;;;;;;:::i;8120:113::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8120:113:0;;;;;;;;:::i;137489:132::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;137489:132:0;;;;;;;;:::i;7567:93::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7567:93:0;;;:::i;136998:338::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;136998:338:0;;;;;;;;:::i;20566:578::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;20566:578:0;;;;;;;;:::i;:::-;;;;;;;;137988:413;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;137988:413:0;;;;;;;;:::i;100657:558::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;100657:558:0;;;;;;;;:::i;125384:226::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;125384:226:0;;;;;;;;:::i;130976:172::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;130976:172:0;;;;;;;;:::i;6722:128::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;6722:128:0;;;;;;;;:::i;7825:120::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;7825:120:0;;;;;;;;:::i;106658:718::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;106658:718:0;;;;;;;;:::i;130723:138::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;130723:138:0;;;:::i;135178:805::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;135178:805:0;;;;;;;;:::i;8829:153::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;8829:153:0;;;;;;;;:::i;122161:2773::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;122161:2773:0;;;;;;;;:::i;101448:517::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;101448:517:0;;;;;;;;:::i;81956:246::-;82026:10;82005:8;:32;;;:20;;:32;:20;:32;;;:45;;82041:9;82005:45;;;;;;82120;;-1:-1:-1;;;;;;;;;;;82120:45:0;;;82026:10;;82005:8;;82120:45;;;;;;;;;;81956:246::o;141353:243::-;141437:5;;-1:-1:-1;;;;;141437:5:0;141423:10;:19;141415:28;;;;;;141508:12;:20;;-1:-1:-1;;141508:20:0;;;;;;;;;;141353:243::o;113267:5195::-;113546:4;113771:10;113793:4;113771:27;113763:36;;;;;;-1:-1:-1;;;;;113974:42:0;;;114056:16;;;;;;;;;;114167:17;;;;114273:16;;;;114167:5;114273:16;;;114401:5;:14;;;114381:5;:17;;;:34;114490:9;;113974:540;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;113974:540:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;113974:540:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;113974:540:0;;;;;;;;;:618;;;;-1:-1:-1;114575:17:0;;;;114531:8;;114540:16;;;;;;;;;;-1:-1:-1;;;;;114531:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;114531:26:0;;;:40;;;;;;;;;;:61;;113974:618;113952:714;;;;;;114731:17;;;;114687:8;;114696:16;;;;;;;;;;-1:-1:-1;;;;;114687:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;114687:26:0;;;:40;;;;;;;;;;;:61;;;;;;;;;114838:16;;;;;;;;;;;-1:-1:-1;;;;;114838:30:0;;114835:446;;114890:16;;;;;;;;;;-1:-1:-1;;;;;114884:32:0;;114917:12;114951:5;:14;;;114931:5;:17;;;:34;114884:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;114884:82:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;114884:82:0;;;;115178:27;:25;:27::i;:::-;115044:225;;;;-1:-1:-1;;;115044:225:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;115385:42:0;;;115528:1;115500:16;;;;;;;;;;-1:-1:-1;;;;;115500:30:0;;:186;;115685:1;115500:186;;;115575:5;:14;;;115555:5;:17;;;:34;115500:186;115720:16;;;;;;;;;;115851:14;;;;115831:17;;;;:34;115959:16;;;;115851:5;115959:16;;;116075:5;:17;;;116201:9;;115385:840;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115385:840:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115385:840:0;;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;115385:840:0;;;;;;;;;:918;;;;-1:-1:-1;116286:17:0;;;;116242:8;;116251:16;;;;116286:5;116251:16;;;-1:-1:-1;;;;;116242:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;116242:26:0;;;:40;;;;;;;;;;:61;;115385:918;115363:1012;;;;;;116432:17;;;;116388:8;;116397:16;;;;116432:5;116397:16;;;-1:-1:-1;;;;;116388:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;116388:26:0;;;:40;;;;;;;;;;;:61;;;;;;;;;116606:16;;;;:5;:16;;;-1:-1:-1;;;;;116606:30:0;;116603:703;;;116781:17;116763:53;;-1:-1:-1;;;;;116763:17:0;;;116801:14;;;;116781:17;;;;:34;116763:53;;;;;;;;;116781:34;116763:17;:53;;;;;;;116737:178;;;;-1:-1:-1;;;116737:178:0;;;;;;;;;116603:703;;;116952:16;;;;:5;:16;;;-1:-1:-1;;;;;116946:32:0;;116979:12;117013:5;:14;;;116993:5;:17;;;:34;116946:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116946:82:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;116946:82:0;;;;117203:27;:25;:27::i;:::-;117065:229;;;;-1:-1:-1;;;117065:229:0;;;;;;;;;-1:-1:-1;;;;;117378:42:0;;;117456:16;;;;;;;;;;117551:17;;;;117647:16;;;;117551:5;117647:16;;;117766:5;:14;;;117746:5;:17;;;:34;117378:465;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;117378:465:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;117945:14:0;;;;117901:8;;117910:16;;;;117945:14;117910:16;;;-1:-1:-1;;;;;117901:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;117901:26:0;;;117928:12;;;;;;;;117901:40;;;;;;;;:58;;;;;;;;118049:14;;;;;-1:-1:-1;;;118014:16:0;;;;;;;;;;;-1:-1:-1;;;;;118005:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;118005:26:0;;;118032:12;;;;;;;;118005:40;;;;;;:58;;;;;;;;118124:82;;118133:16;;;;:5;:16;;;118151:17;;;;;;118170:16;;;;;;;;118188:5;:17;;;118124:82;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;118252:12:0;118266:16;;;;;;;;;;118304:5;:14;;;118284:5;:17;;;:34;118232:87;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;118355:12:0;118369:16;;;;:5;:16;;;118407:5;:14;;;118387:5;:17;;;:34;118335:87;;;;;;;;;;;;;;;;;-1:-1:-1;118450:4:0;113267:5195;;;;;;;;;:::o;103839:568::-;104017:10;104008:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;104032:12:0;;;;104008:36;104000:45;;;;;;104133:46;;81810:42;;104133:46;;104170:8;;;;104133:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;;;;;;;104281:23:0;;;;104305:2;104281:27;;;:41;;104278:122;;104338:50;104359:23;;;;104383:2;104359:27;;104338:14;:50::i;:::-;103839:568;;;;;:::o;103037:493::-;103147:10;103138:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;103162:12:0;;;;103138:36;103130:45;;;;;;103259:46;;81810:42;;103259:46;;103296:8;;;;103259:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;;;;;;;103404:23:0;;;;103428:2;103404:27;;;:41;;103401:122;;103461:50;103482:23;;;;103506:2;103482:27;;103461:50;103037:493;:::o;8413:104::-;8456:16;8491:18;8484:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8484:25:0;;;;;;;;;;;;;;;;;;;;;;;8413:104;;:::o;142489:94::-;142563:12;;;;;-1:-1:-1;;;;;142563:12:0;;142489:94::o;138602:775::-;138692:10;138683:20;;;;:8;:20;;;;;;;;138675:29;;;;;;-1:-1:-1;;;;;138725:24:0;;138752:5;138725:24;;;:15;:24;;;;;:32;;-1:-1:-1;;138725:32:0;;;138770:600;138793:18;:25;138789:29;;138770:600;;;138867:7;-1:-1:-1;;;;;138842:32:0;:18;138861:1;138842:21;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;138842:21:0;:32;138839:520;;;138918:18;138937:25;;-1:-1:-1;;138937:29:0;;;138918:49;;;;;;;;;;;;;;;;138894:18;:21;;-1:-1:-1;;;;;138918:49:0;;;;138913:1;;138894:21;;;;;;;;;;;;;;;:73;;-1:-1:-1;;;;;;138894:73:0;-1:-1:-1;;;;;138894:73:0;;;;;;;;;;139119:18;139138:25;;-1:-1:-1;;139138:27:0;;;139119:47;;;;;;;;;;;;;;;139112:54;;-1:-1:-1;;;;;;139112:54:0;;;139244:18;:27;;;;;-1:-1:-1;;139244:27:0;;;:::i;:::-;;139337:7;;;138839:520;138820:3;;138770:600;;;;138602:775;:::o;27031:1076::-;27115:16;;:::i;:::-;-1:-1:-1;27150:949:0;;;;;;;;27192:19;;;;;;-1:-1:-1;;;27212:2:0;27192:23;;;;;;-1:-1:-1;;;;;;27192:39:0;;27150:949;;27279:19;;27372:3;27271:104;;;;;27150:949;;;;27423:19;;27516:2;27422:96;;-1:-1:-1;27407:113:0;;;:6;:113;;;;;;;;-1:-1:-1;;;;;27407:113:0;27150:949;;;;27567:19;;27660:3;27567:96;;;27150:949;;;;27711:19;;-1:-1:-1;;;;;27711:88:0;27150:949;;;;27847:19;;:96;;27150:949;;;;27991:19;27983:103;;;;;27150:949;;;;27031:1076;;;;:::o;141756:302::-;141855:5;;-1:-1:-1;;;;;141855:5:0;141841:10;:19;:42;;;;-1:-1:-1;141865:18:0;;-1:-1:-1;;;141865:18:0;;;;141864:19;141841:42;141833:51;;;;;;141965:12;:24;;-1:-1:-1;;;;;141965:24:0;;;;;-1:-1:-1;;;;;;141965:24:0;;;;;;;;;141756:302::o;84249:586::-;84322:60;;-1:-1:-1;;;84322:60:0;;-1:-1:-1;;;;;84322:25:0;;;;;:60;;84348:10;;84368:4;;84375:6;;84322:60;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84322:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;84322:60:0;;;;84435:27;:25;:27::i;:::-;84413:194;;;;-1:-1:-1;;;84413:194:0;;;;;;;;;-1:-1:-1;;;;;84618:15:0;;:8;:15;;;;;;;;;;;84634:10;84618:27;;;;;;;;;:37;;;;;;84744;;-1:-1:-1;;;;;;;;;;;84744:37:0;;;84627:5;;84649:6;;84744:37;;;;;;;;;;84249:586;;:::o;142870:1411::-;143011:12;;142944:4;;143011:12;;;-1:-1:-1;;;;;143011:12:0;142997:10;:26;;:133;;-1:-1:-1;143119:10:0;143110:20;;;;:8;:20;;;;;;;;142997:133;142978:284;;;;-1:-1:-1;;;;;;143225:15:0;;:8;:15;;;;;;;;;;;143241:10;143225:27;;;;;;;;:37;-1:-1:-1;143225:37:0;142978:284;142960:1314;;;-1:-1:-1;;;;;143353:15:0;;:8;:15;;;;;;;;;;;143369:10;143353:27;;;;;;;:37;;;;;;;143473:603;;143605:23;;:10;;:23;;;;;143621:6;;143605:23;;;;143621:6;143605:10;:23;;;;;;;143575:156;;;;-1:-1:-1;;;143575:156:0;;;;;;;;;143473:603;;;143770:41;;-1:-1:-1;;;143770:41:0;;-1:-1:-1;;;;;143770:21:0;;;;;:41;;143792:10;;143804:6;;143770:41;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;143770:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;143770:41:0;;;;143961:27;:25;:27::i;:::-;143855:205;;;;-1:-1:-1;;;143855:205:0;;;;;;;;;-1:-1:-1;;;;;;;;;;;144129:10:0;144141:5;144148:6;144109:46;;;;;;;;;;;;;;;;;-1:-1:-1;144215:4:0;144208:11;;142960:1314;-1:-1:-1;144257:5:0;142960:1314;142870:1411;;;;:::o;89007:1760::-;89156:12;89391:10;89420:5;89444:6;89469:5;89501:4;89356:165;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;89356:165:0;;;89346:176;;;;;;89181:352;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;89181:352:0;;;89171:363;;49:4:-1;89171:363:0;;;;89563:27;;;;:21;:27;;;;;;89171:363;;-1:-1:-1;89563:27:0;;89562:28;:156;;;;;89686:8;:32;89695:22;89705:4;89711:1;89713;89715;89695:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;89695:22:0;;;-1:-1:-1;;89695:22:0;;-1:-1:-1;;;;;89686:32:0;;;89695:22;89686:32;;;;;;-1:-1:-1;89686:32:0;-1:-1:-1;89686:32:0;;;;89562:156;:269;;;;-1:-1:-1;;;;;;89794:15:0;;:8;:15;;;;;;;;;;;89810:10;89794:27;;;;;;;;:37;-1:-1:-1;89794:37:0;89562:269;89545:1215;;;89962:4;89924:21;:27;89946:4;89924:27;;;;;;;;;;;;:42;;;;;;;;;;;;;;;;;;90072:6;90034:8;:15;90043:5;-1:-1:-1;;;;;90034:15:0;-1:-1:-1;;;;;90034:15:0;;;;;;;;;;;;:27;90050:10;-1:-1:-1;;;;;90034:27:0;-1:-1:-1;;;;;90034:27:0;;;;;;;;;;;;;:44;;;;;;;;;;;90199:6;90161:8;:15;90170:5;-1:-1:-1;;;;;90161:15:0;-1:-1:-1;;;;;90161:15:0;;;;;;;;;;;;:34;90177:17;-1:-1:-1;;;;;90161:34:0;-1:-1:-1;;;;;90161:34:0;;;;;;;;;;;;;:44;;;;;;;;;;;90347:1;90292:33;:40;90326:5;-1:-1:-1;;;;;90292:40:0;-1:-1:-1;;;;;90292:40:0;;;;;;;;;;;;:52;90333:10;-1:-1:-1;;;;;90292:52:0;-1:-1:-1;;;;;90292:52:0;;;;;;;;;;;;:56;;;;90439:38;90453:10;90464:5;90470:6;90439:38;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;90551:17:0;90569:5;90575:6;90540:42;;;;;;;;;;;;;;;;;89545:1215;;;90649:8;;;89545:1215;89007:1760;;;;;;;;:::o;134649:288::-;-1:-1:-1;;;;;134748:19:0;;;134779:1;134748:19;;;:9;:19;;;;;;;:33;134740:75;;;;-1:-1:-1;;;134740:75:0;;;;;;;;;-1:-1:-1;;;;;134826:19:0;;;;;;:9;:19;;;;;;;:32;;-1:-1:-1;;;;;;134826:32:0;134848:10;134826:32;;;;;;134884:45;;;;;;134836:8;;134826:32;;134884:45;;;;;;;;;;134649:288;:::o;13716:3058::-;13796:12;;:::i;:::-;13851:18;;:::i;:::-;-1:-1:-1;13872:645:0;;;;;;;;;13921:23;;;;;;13948:3;13921:30;-1:-1:-1;13906:47:0;;;:6;:47;;;;;;;-1:-1:-1;;;;;13906:47:0;;;13872:645;;13989:23;;14016:3;13989:30;;;13872:645;;;;14064:23;;14063:101;;;;;14048:118;;;;;;;;;;;13872:645;;;;;;;14202:23;;-1:-1:-1;;;;;14202:92:0;13872:645;;;;14332:23;;14429:3;14331:101;;;;;13872:645;;;;;;;;;;;;;;;;;14586:23;;14610:2;14586:27;;;-1:-1:-1;;;;;;14586:41:0;14569:1549;;14973:5;:15;;;15019:5;:16;;;15059:5;:14;;;15104:5;:15;;;15150:5;:12;;;15300:3;15203:10;:23;;;-1:-1:-1;;;15203:92:0;;;15202:101;;15194:110;;15350:4;14934:489;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;14934:489:0;;;14924:500;;;;;;14799:640;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;14799:640:0;;;14789:651;;49:4:-1;14789:651:0;;;;14776:10;;;:664;14569:1549;;;15631:23;;10762:142;;;;;;;;;;;;;;15760:5;:15;;;15798:5;:16;;;15837:5;:14;;;15874:5;:15;;;15912:5;:12;;;16054:3;15957:10;:23;;;-1:-1:-1;;;15957:92:0;;;15956:101;;15948:110;;15683:406;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;15683:406:0;;;15673:417;;;;;;15567:538;;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;15567:538:0;;;15557:549;;49:4:-1;15557:549:0;;;;15544:10;;;:562;14569:1549;16222:10;;;;16295:23;;;;;16357:12;;;;;16425;;;;16198:292;;;;;;;;;;;;;;;;16222:10;;16319:2;16295:27;;16198:292;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;16198:292:0;;-1:-1:-1;;16198:292:0;;-1:-1:-1;;;;;16183:307:0;:12;;;:307;-1:-1:-1;16198:292:0;16600:23;;;-1:-1:-1;;;16631:10:0;16624:2;16600:27;;;-1:-1:-1;;;;;16600:41:0;;;16583:151;;;16709:12;;;;;-1:-1:-1;;;;;16699:23:0;;;;;;;:9;:23;;;;;;;16684:38;;16761:5;13716:3058;-1:-1:-1;;13716:3058:0:o;104679:740::-;104823:10;104814:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;104838:12:0;;;;104814:36;104806:45;;;;;;104943:46;;81810:42;;104943:46;;104980:8;;;;104943:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;105131:10:0;;-1:-1:-1;105119:9:0;;-1:-1:-1;105197:94:0;-1:-1:-1;;105203:3:0;;;:8;105197:94;;105248:10;;105259:1;105248:13;;;;;;;;;;;;:26;;;105275:2;105248:30;;;;;;;;105227:52;105197:94;;;105342:15;;105339:73;;105373:27;105388:11;105373:14;:27::i;:::-;104679:740;;;;;;:::o;140024:644::-;140111:10;140102:20;;;;:8;:20;;;;;;;;140094:29;;;;;;140148:9;140144:517;140167:9;:16;140163:20;;140144:517;;;140223:5;-1:-1:-1;;;;;140207:21:0;:9;140217:1;140207:12;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;140207:12:0;:21;140204:446;;;140263:9;140273:16;;-1:-1:-1;;140273:20:0;;;140263:31;;;;;;;;;;;;;;;;140248:9;:12;;-1:-1:-1;;;;;140263:31:0;;;;140258:1;;140248:12;;;;;;;;;;;;;;;:46;;-1:-1:-1;;;;;;140248:46:0;-1:-1:-1;;;;;140248:46:0;;;;;;;;;;140446:9;140456:16;;-1:-1:-1;;140456:18:0;;;140446:29;;;;;;;;;;;;;;;140439:36;;-1:-1:-1;;;;;;140439:36:0;;;140544:9;:18;;;;;-1:-1:-1;;140544:18:0;;;:::i;140204:446::-;140185:3;;140144:517;;86158:2235;86309:12;86535:10;86564:5;86588:6;86613:5;86645:4;86500:165;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;86500:165:0;;;86490:176;;;;;;86334:343;;;;;;;;;;;;;-1:-1:-1;;26:21;;;22:32;6:49;;86334:343:0;;;86324:354;;49:4:-1;86324:354:0;;;;86707:27;;;;:21;:27;;;;;;86324:354;;-1:-1:-1;86707:27:0;;86706:28;:156;;;;;86830:8;:32;86839:22;86849:4;86855:1;86857;86859;86839:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;86839:22:0;;;-1:-1:-1;;86839:22:0;;-1:-1:-1;;;;;86830:32:0;;;86839:22;86830:32;;;;;;-1:-1:-1;86830:32:0;-1:-1:-1;86830:32:0;;;;86706:156;:269;;;;-1:-1:-1;;;;;;86938:15:0;;:8;:15;;;;;;;;;;;86954:10;86938:27;;;;;;;;:37;-1:-1:-1;86938:37:0;86706:269;86689:1697;;;87068:27;;;;:21;:27;;;;;;;;:35;;-1:-1:-1;;87068:35:0;87099:4;87068:35;;;-1:-1:-1;;;;;87178:15:0;;;;;;;;;;;87194:10;87178:27;;;;;;;;:37;;;;;;;87323:677;;87459:30;;-1:-1:-1;;;;;87459:22:0;;;:30;;;;;87482:6;;87459:30;;;;87482:6;87459:22;:30;;;;;;;87429:126;;;;-1:-1:-1;;;87429:126:0;;;;;;;;;87323:677;;;87674:48;;-1:-1:-1;;;87674:48:0;;-1:-1:-1;;;;;87674:21:0;;;;;:48;;87696:17;;87715:6;;87674:48;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;87674:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;87674:48:0;;;;87805:27;:25;:27::i;:::-;87775:209;;;;-1:-1:-1;;;87775:209:0;;;;;;;;;-1:-1:-1;;;;;88016:40:0;;88071:1;88016:40;;;:33;:40;;;;;;;;88057:10;88016:52;;;;;;;;:56;;;;88163:38;;;;;;88050:5;;88194:6;;88163:38;;107728:5045;107919:4;108144:10;108166:4;108144:27;108136:36;;;;;;-1:-1:-1;;;;;108347:34:0;;;108421:16;;;;;;;;;;108532:17;;;;108638:16;;;;108532:5;108638:16;;;108766:5;:14;;;108746:5;:17;;;:34;108347:505;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108347:505:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108347:505:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;108347:505:0;;;;;;;;;:583;;;;-1:-1:-1;108913:17:0;;;;108869:8;;108878:16;;;;;;;;;;-1:-1:-1;;;;;108869:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;108869:26:0;;;:40;;;;;;;;;;:61;;108347:583;108325:679;;;;;;109069:17;;;;109025:8;;109034:16;;;;;;;;;;-1:-1:-1;;;;;109025:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;109025:26:0;;;:40;;;;;;;;;;;:61;;;;;;;;;109176:16;;;;;;;;;;;-1:-1:-1;;;;;109176:30:0;;109173:446;;109228:16;;;;;;;;;;-1:-1:-1;;;;;109222:32:0;;109255:12;109289:5;:14;;;109269:5;:17;;;:34;109222:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109222:82:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109222:82:0;;;;109516:27;:25;:27::i;:::-;109382:225;;;;-1:-1:-1;;;109382:225:0;;;;;;;;;-1:-1:-1;;;;;109723:34:0;;;109866:1;109838:16;;;;;;;;;;-1:-1:-1;;;;;109838:30:0;;:186;;110023:1;109838:186;;;109913:5;:14;;;109893:5;:17;;;:34;109838:186;110058:16;;;;;;;;;;110189:14;;;;110169:17;;;;:34;110297:16;;;;110189:5;110297:16;;;110413:5;:17;;;109723:813;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109723:813:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109723:813:0;;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;109723:813:0;;;;;;;;;:891;;;;-1:-1:-1;110597:17:0;;;;110553:8;;110562:16;;;;110597:5;110562:16;;;-1:-1:-1;;;;;110553:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;110553:26:0;;;:40;;;;;;;;;;:61;;109723:891;109701:985;;;;;;110743:17;;;;110699:8;;110708:16;;;;110743:5;110708:16;;;-1:-1:-1;;;;;110699:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;110699:26:0;;;:40;;;;;;;;;;;:61;;;;;;;;;110917:16;;;;:5;:16;;;-1:-1:-1;;;;;110917:30:0;;110914:703;;;111092:17;111074:53;;-1:-1:-1;;;;;111074:17:0;;;111112:14;;;;111092:17;;;;:34;111074:53;;;;;;;;;111092:34;111074:17;:53;;;;;;;111048:178;;;;-1:-1:-1;;;111048:178:0;;;;;;;;;110914:703;;;111263:16;;;;:5;:16;;;-1:-1:-1;;;;;111257:32:0;;111290:12;111324:5;:14;;;111304:5;:17;;;:34;111257:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;111257:82:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;111257:82:0;;;;111514:27;:25;:27::i;:::-;111376:229;;;;-1:-1:-1;;;111376:229:0;;;;;;;;;-1:-1:-1;;;;;111689:42:0;;;111767:16;;;;;;;;;;111862:17;;;;111958:16;;;;111862:5;111958:16;;;112077:5;:14;;;112057:5;:17;;;:34;111689:465;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;111689:465:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;112256:14:0;;;;112212:8;;112221:16;;;;112256:14;112221:16;;;-1:-1:-1;;;;;112212:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;112212:26:0;;;112239:12;;;;;;;;112212:40;;;;;;;;:58;;;;;;;;112360:14;;;;;-1:-1:-1;;;112325:16:0;;;;;;;;;;;-1:-1:-1;;;;;112316:26:0;;;;;;;;;;;;;;;;;-1:-1:-1;112316:26:0;;;112343:12;;;;;;;;112316:40;;;;;;:58;;;;;;;;112435:82;;112444:16;;;;:5;:16;;;112462:17;;;;;;112481:16;;;;;;;;112499:5;:17;;;112435:82;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;112563:12:0;112577:16;;;;;;;;;;112615:5;:14;;;112595:5;:17;;;:34;112543:87;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;112666:12:0;112680:16;;;;:5;:16;;;112718:5;:14;;;112698:5;:17;;;:34;112646:87;;;;;;;;;;;;;;;;;-1:-1:-1;112761:4:0;107728:5045;;;;;;:::o;127296:384::-;127434:7;127456:12;127470:23;81810:42;-1:-1:-1;;;;;127497:36:0;127534:8;;127497:46;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;127455:88:0;;;;127611:7;127603:16;;;;;;127650:10;127639:33;;;;;;;;;;;;;;127632:40;;;;127296:384;;;;;;;;:::o;139598:278::-;139692:10;139683:20;;;;:8;:20;;;;;;;;139675:29;;;;;;139725:13;;;;:6;:13;;;;;;;;:28;;-1:-1:-1;;;;;139725:28:0;;;-1:-1:-1;;;;;;139725:28:0;;;;;;;;139764:20;;;:13;:20;;;;;:28;;;;139813:9;27:10:-1;;139725:28:0;23:18:-1;;45:23;;139813:21:0;;;;;;;;;;;;139598:278::o;126081:614::-;126186:7;;;;;;126312:323;126335:18;:25;126331:29;;126312:323;;;126405:18;126424:1;126405:21;;;;;;;;;;;;;;;;;;126390:87;;-1:-1:-1;;;126390:87:0;;-1:-1:-1;;;;;126405:21:0;;;;126390:51;;:87;;126442:10;;126454:11;;126467:9;;126390:87;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;126390:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;126390:87:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;126390:87:0;;;;;;;;;126381:96;;126504:10;126495:6;:19;126492:132;;;126548:6;126534:20;;126587:18;126606:1;126587:21;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;126587:21:0;;-1:-1:-1;126492:132:0;126362:3;;126312:323;;;-1:-1:-1;126663:11:0;;126676:10;;-1:-1:-1;126081:614:0;-1:-1:-1;;;;;126081:614:0:o;7027:112::-;-1:-1:-1;;;;;7111:20:0;7085:7;7111:20;;;:13;:20;;;;;;;7027:112::o;140923:255::-;141020:5;;-1:-1:-1;;;;;141020:5:0;141006:10;:19;140998:28;;;;;;-1:-1:-1;;;;;141091:17:0;;;;;;;;:8;:17;;;;;:26;;-1:-1:-1;;141091:26:0;;;;;;;;;;140923:255::o;21374:1920::-;21458:19;;:::i;:::-;21492;;;;-1:-1:-1;;;21519:10:0;21524:4;21492:23;;;-1:-1:-1;;;;;21492:37:0;;;21489:1798;;;-1:-1:-1;21601:793:0;;;;;;;;21658:19;;21681:3;21658:26;;;21601:793;;21729:19;;-1:-1:-1;;;;;21729:88:0;;;21601:793;;;;;;;;21862:19;;;;;:26;;21601:793;;;;21933:19;:88;;;21601:793;;;;22066:19;;;;;22065:97;;21601:793;;;;;;;-1:-1:-1;21601:793:0;;;;22234:4;21601:793;;;;22282:19;22281:96;;;;;21601:793;;;;21594:800;;21489:1798;-1:-1:-1;22481:794:0;;;;;;;;22538:19;;-1:-1:-1;;;;;22538:88:0;;;22481:794;;22671:19;;22694:3;22671:26;;;22481:794;;;;;;;;22742:19;;;;;:88;;;22481:794;;;;22875:19;;:26;;22481:794;;;;-1:-1:-1;22481:794:0;;;;;;22982:19;;;;;22981:97;;;22481:794;;;;;;;;;;;23163:19;;23162:96;;;;;22481:794;;;;22474:801;;142145:232;142215:5;;-1:-1:-1;;;;;142215:5:0;142201:10;:19;142193:28;;;;;;142286:18;:25;;-1:-1:-1;;;;142286:25:0;-1:-1:-1;;;142286:25:0;;;142145:232::o;119027:2540::-;119233:4;119458:10;119480:4;119458:27;119450:36;;;;;;-1:-1:-1;;;;;119576:23:0;;119573:1695;;119623:769;;-1:-1:-1;;;119623:769:0;;-1:-1:-1;;;;;119623:29:0;;;;;119868:10;;119623:769;;119979:9;;119868:10;;120185:8;;120282:9;;119623:769;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;119623:769:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;119623:769:0;;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;119623:769:0;;;;;;;;;119615:778;;;;;;119573:1695;;;120424:46;;-1:-1:-1;;;120424:46:0;;-1:-1:-1;;;;;120424:25:0;;;;;:46;;120450:7;;120459:10;;120424:46;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;120424:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;120424:46:0;;;;120617:27;:25;:27::i;:::-;120519:189;;;;-1:-1:-1;;;120519:189:0;;;;;;;;;120745:510;;-1:-1:-1;;;120745:510:0;;-1:-1:-1;;;;;120745:29:0;;;;;:510;;120842:9;;120936:10;;121048:8;;121145:9;;120745:510;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;120745:510:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;120745:510:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;120745:510:0;;;;;;;;;120737:519;;;;;;-1:-1:-1;;;;;121296:18:0;;;:8;:18;;;;;;;;;;;:27;;;;;;;;;;:40;-1:-1:-1;121296:40:0;121288:49;;;;;;-1:-1:-1;121432:4:0;119027:2540;;;;;;;:::o;128263:419::-;128428:7;128458:12;128472:23;81810:42;-1:-1:-1;;;;;128499:36:0;128536:8;;128499:46;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;128457:88:0;;;;128613:7;128605:16;;;;;;128652:10;128641:33;;;;;;;;;;;;;;128634:40;128263:419;-1:-1:-1;;;;;;;;;128263:419:0:o;9262:129::-;-1:-1:-1;;;;;9355:28:0;9329:7;9355:28;;;:22;:28;;;;;;;9262:129::o;129074:1066::-;129208:8;:530;129318:405;129637:11;;129620:29;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;129620:29:0;;;129610:40;;;;;;129432:241;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;129432:241:0;;;129422:252;;;;;;129697:1;129700;129703;129318:405;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;129318:405:0;;;-1:-1:-1;;129318:405:0;;-1:-1:-1;;;;;129208:530:0;;;129318:405;129208:530;;;;;;-1:-1:-1;129208:530:0;-1:-1:-1;129208:530:0;;;;129191:942;;;129778:11;129764;129811:272;129834:3;129830:1;:7;129811:272;;;-1:-1:-1;;129862:7:0;:23;129870:11;;129882:1;129870:14;;;;;;;;;;;;;129862:23;;;;;;;;;;;:36;;;;129991:32;130008:11;;130020:1;130008:14;;;;;;;;;;;;;129991:32;;;;;;;;;;;;;;;129839:3;;129811:272;;;;129191:942;;;102307:561;102481:10;102472:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;102496:12:0;;;;102472:36;102464:45;;;;;;102597:46;;81810:42;;102597:46;;102634:8;;;;102597:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;;;;;;;102742:23:0;;;;102766:2;102742:27;;;:41;;102739:122;;102799:50;102820:23;;;;102844:2;102820:27;;102799:50;102307:561;;;;:::o;23534:992::-;23625:26;;:::i;:::-;-1:-1:-1;23670:848:0;;;;;;;;23737:19;;;;;23830:2;23736:96;;;;;-1:-1:-1;23721:113:0;;;:6;:113;;;;;;;;-1:-1:-1;;;;;23721:113:0;;;23670:848;;23881:19;;23974:2;23880:96;;;;23865:113;;;;;;;;;;;;;23670:848;;;;24018:19;;24041:3;24018:26;;;23670:848;;;;;;;24085:19;;-1:-1:-1;;;;;24085:88:0;;;23670:848;;;;24214:19;;;;;:26;;23670:848;;;;;;;24281:19;;:88;;;23670:848;;;;24410:19;;24409:96;;;;23670:848;;;;;23534:992::o;97035:889::-;-1:-1:-1;;;;;97162:40:0;;;;;;:33;:40;;;;;;;;97203:10;97162:52;;;;;;;;;;97132:15;;;;;;;;;:27;;;;;;;;;:82;:92;-1:-1:-1;97128:789:0;;-1:-1:-1;;;;;97287:40:0;;;;;;:33;:40;;;;;;;;97328:10;97287:52;;;;;;;;;:62;;;;;;97433:22;:34;;;;;;;97470:15;97433:52;;97571:59;;;;;;97321:5;;97343:6;;97571:59;;;;;;;;;;97128:789;;82958:1032;83033:75;;-1:-1:-1;;;83033:75:0;;82815:42;;83033:40;;:75;;83074:10;;83094:4;;83101:6;;83033:75;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83033:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83033:75:0;;;;83188:27;:25;:27::i;:::-;83166:193;;;;-1:-1:-1;;;83166:193:0;;;;;;;;;83511:43;;-1:-1:-1;;;83511:43:0;;83409:4;83401:21;;82815:42;;83511:35;;:43;;83547:6;;83511:43;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83511:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;83629:22:0;;;83663:4;83655:21;83629:47;83621:56;;;;;;83772:10;83751:8;:32;;;:20;;:32;:20;:32;;;:42;;;;;;83892;-1:-1:-1;;;;;;;;;;;83892:42:0;;;83772:10;;83787:6;;83892:42;;7308:109;7370:7;7396:13;;;:6;:13;;;;;;-1:-1:-1;;;;;7396:13:0;;7308:109::o;91677:4947::-;93341:3;93325:19;;;93119:14;93310:36;;;:6;:36;;;;;;93160:3;93144:19;;;;-1:-1:-1;;;;;93200:81:0;;;-1:-1:-1;;;;;93310:36:0;;93476:3;93389:90;;;-1:-1:-1;;;;;93389:90:0;;93528:2;93515:16;;;;-1:-1:-1;;;;;;93584:2:0;93571:16;;;;;:30;93568:950;;93895:5;93923:6;93952:5;93988:4;93856:156;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;93856:156:0;;;93846:167;;;;;;93707:321;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;93707:321:0;;;93697:332;;;;;;93690:339;;93568:950;;;94274:23;;10985:66;;;;;;;;;;;;;;;94326:163;;94408:5;;94436:6;;94465:5;;94326:163;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;94326:163:0;;;94316:174;;;;;;94159:346;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;94159:346:0;;;94149:357;;;;;;94142:364;;93568:950;94530:23;94572:24;94582:4;94588:1;94591;94594;94572:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;94572:24:0;;;-1:-1:-1;;94572:24:0;;94666:27;;;;:21;94572:24;94666:27;;;;;;94572:24;;-1:-1:-1;94666:27:0;;94665:28;;-1:-1:-1;94665:144:0;;;;-1:-1:-1;94798:10:0;94789:20;;;;:8;:20;;;;;;;;94665:144;:258;;;;-1:-1:-1;94921:2:0;94912:6;:11;94905:3;:18;;94665:258;:378;;;;-1:-1:-1;;;;;;95009:15:0;;;:8;:15;;;;;;;;;;;:24;;;;;;;;;;:34;-1:-1:-1;95009:34:0;94665:378;94648:1969;;;95138:27;;;;:21;:27;;;;;;;;:37;;-1:-1:-1;;95138:37:0;95171:4;95138:37;;;-1:-1:-1;;;;;95247:15:0;;;;;;;;;;;;:24;;;;;;;;;;;:39;;;;;;;95390:12;;95138:37;95390:12;;;95374:29;;;;;:36;;;;;;95506:549;;95625:26;;-1:-1:-1;;;;;95625:12:0;;;95638;;;95625:26;;;;;;;;;95638:12;95625;:26;;;;;;;95595:122;;;;-1:-1:-1;;;95595:122:0;;;;;;;;;95506:549;;;95756:44;;-1:-1:-1;;;95756:44:0;;-1:-1:-1;;;;;95756:21:0;;;;;:44;;95778:7;;95787:12;;;;95756:44;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95756:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;95756:44:0;;;;95877:27;:25;:27::i;:::-;95847:192;;;;-1:-1:-1;;;95847:192:0;;;;;;;;;-1:-1:-1;;;;;96079:40:0;;;96131:1;96079:40;;;:33;:40;;;;;;;;:49;;;;;;;;;;;:53;96226:35;;;;;96120:7;;96113:5;;96254:6;;96226:35;;;;;;;;;;-1:-1:-1;;;;;;96384:2:0;96371:16;;;;;:30;;96368:108;;96421:39;96442:12;96455:2;96442:16;;96421:39;91677:4947;;;;;;;;;;;:::o;85326:236::-;85450:55;85463:5;85470:6;85478:5;85485:1;85488;85491;85494:10;85450:12;:55::i;98196:2119::-;-1:-1:-1;;;;;98302:15:0;;:8;:15;;;;;;;;;;;98318:10;98302:27;;;;;;;;:37;-1:-1:-1;98302:37:0;;;:621;;-1:-1:-1;;;;;;98469:40:0;;;;;;:33;:40;;;;;;;;98510:10;98469:52;;;;;;;;:62;-1:-1:-1;98469:62:0;;;:229;;-1:-1:-1;98654:25:0;;98640:10;98617:34;;;;:22;:34;;;;;;98683:15;98617:62;;:81;;98469:229;98446:367;;;-1:-1:-1;98783:25:0;;:30;98446:367;98284:2024;;;-1:-1:-1;;;;;98949:15:0;;:8;:15;;;;;;;;;;;98965:10;98949:27;;;;;;;;;:37;;;;;;;99082:40;;;-1:-1:-1;99082:40:0;;;;;:52;;;;;;;;:62;-1:-1:-1;99079:212:0;;-1:-1:-1;;;;;99164:40:0;;99219:1;99164:40;;;:33;:40;;;;;;;;99205:10;99164:52;;;;;;;:56;99079:212;-1:-1:-1;;;;;99322:19:0;;99319:687;;99454:23;;:10;;:23;;;;;99470:6;;99454:23;;;;99470:6;99454:10;:23;;;;;;;99424:119;;;;-1:-1:-1;;;99424:119:0;;;;;;;;;99319:687;;;99672:41;;-1:-1:-1;;;99672:41:0;;-1:-1:-1;;;;;99672:21:0;;;;;:41;;99694:10;;99706:6;;99672:41;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;99672:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;99672:41:0;;;;99816:27;:25;:27::i;:::-;99786:204;;;;-1:-1:-1;;;99786:204:0;;;;;;;;;100039:49;100062:10;100074:5;100081:6;100039:49;;;;;;;;;105642:683;105788:10;105779:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;105803:12:0;;;;105779:36;105771:45;;;;;;105896:46;;81810:42;;105896:46;;105933:8;;;;105896:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;106037:10:0;;-1:-1:-1;106025:9:0;;-1:-1:-1;106103:94:0;-1:-1:-1;;106109:3:0;;;:8;106103:94;;106154:10;;106165:1;106154:13;;;;;;;;;;;;:26;;;106181:2;106154:30;;;;;;;;106133:52;106103:94;;8120:113;8184:7;8210:15;;;:8;:15;;;;;;-1:-1:-1;;;;;8210:15:0;;8120:113::o;137489:132::-;137579:5;;-1:-1:-1;;;;;137579:5:0;137565:10;:19;137557:28;;;;;;137596:5;:17;;-1:-1:-1;;;;;;137596:17:0;-1:-1:-1;;;;;137596:17:0;;;;;;;;;;137489:132::o;7567:93::-;7608:16;7643:9;7636:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7636:16:0;;;;;;;;;;;;;;;;;;;;;;7567:93;:::o;136998:338::-;137116:5;;-1:-1:-1;;;;;137116:5:0;137102:10;:19;:108;;;;;137205:5;137187:14;:23;;137102:108;137080:185;;;;;;137286:25;:42;136998:338::o;20566:578::-;20643:12;;:::i;:::-;-1:-1:-1;20674:462:0;;;;;;;;20717:19;;20740:3;20717:26;;;20674:462;;20781:19;;-1:-1:-1;;;;;20781:88:0;;;20674:462;;;;;;;;20907:19;;;;:26;;20674:462;;;;20971:19;:88;20674:462;;;;21097:19;;;;;:26;;20674:462;;;;;;;;20566:578::o;137988:413::-;138110:10;138101:20;;;;:8;:20;;;;;;;;138093:29;;;;;;138143:15;;;;:8;:15;;;;;;;;:25;;-1:-1:-1;;;;;;138143:25:0;-1:-1:-1;;;;;138143:25:0;;;;;;;;138179:24;;:15;:24;;;;;:32;;;138232:162;;;;-1:-1:-1;;;;;138260:24:0;;;;;;:15;:24;;;;;:31;;-1:-1:-1;;138260:31:0;138287:4;138260:31;;;;;;138306:18;27:10:-1;;23:18;;;45:23;;138306:32:0;;;;;;;-1:-1:-1;;;;;;138306:32:0;;;;;;138232:162;137988:413;;;:::o;100657:558::-;100839:10;100830:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;100854:12:0;;;;100830:36;100822:45;;;;;;100944:46;;81810:42;;100944:46;;100981:8;;;;100944:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;;;;;;;101089:23:0;;;;101113:2;101089:27;;;:41;;101086:122;;101146:50;101167:23;;;;101191:2;101167:27;;125384:226;125488:7;125510:14;125528:50;125543:10;125555:11;125568:9;125528:14;:50::i;:::-;125507:71;125384:226;-1:-1:-1;;;;;;125384:226:0:o;130976:172::-;131030:20;:30;;;;;;131071:70;-1:-1:-1;;131077:8:0;;;:12;131071:70;;131105:21;:19;:21::i;:::-;;131071:70;;6722:128;-1:-1:-1;;;;;6819:15:0;;;6793:7;6819:15;;;;;;;;;;;:23;;;;;;;;;;;;;6722:128::o;7825:120::-;-1:-1:-1;;;;;7913:24:0;7887:7;7913:24;;;:15;:24;;;;;;;7825:120::o;106658:718::-;106839:10;106830:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;106854:12:0;;;;106830:36;106822:45;;;;;;106947:46;;81810:42;;106947:46;;106984:8;;;;106947:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;107088:10:0;;-1:-1:-1;107076:9:0;;-1:-1:-1;107154:94:0;-1:-1:-1;;107160:3:0;;;:8;107154:94;;107205:10;;107216:1;107205:13;;;;;;;;;;;;:26;;;107232:2;107205:30;;;;;;;;107184:52;107154:94;;;107299:15;;107296:73;;107330:27;107345:11;107330:14;:27::i;130723:138::-;130833:20;;130810;;:43;130723:138;:::o;135178:805::-;135273:12;135464:8;135491:10;135528:4;135429:119;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;135429:119:0;;;135419:130;;;;;;135298:262;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;135298:262:0;;;135288:273;;;;;;135273:288;;135596:8;:34;135605:24;135615:4;135621:1;135624;135627;135605:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;135605:24:0;;;-1:-1:-1;;135605:24:0;;-1:-1:-1;;;;;135596:34:0;;;135605:24;135596:34;;;;;;-1:-1:-1;135596:34:0;-1:-1:-1;135596:34:0;;;;135574:155;;;;-1:-1:-1;;;135574:155:0;;;;;;;;;-1:-1:-1;;;;;135750:19:0;;;;;;:9;:19;;;;;;:32;;-1:-1:-1;;;;;;135750:32:0;135780:1;135750:32;;;135929:46;;;;;135947:10;;135760:8;;135929:46;;;;;;;;;;135178:805;;;;;:::o;8829:153::-;-1:-1:-1;;;;;8926:40:0;;;8900:7;8926:40;;;:33;:40;;;;;;;;:48;;;;;;;;;;;;;8829:153::o;122161:2773::-;122410:4;122635:10;122657:4;122635:27;122627:36;;;;;;-1:-1:-1;;;;;122753:23:0;;122750:1885;;122800:871;;-1:-1:-1;;;122800:871:0;;-1:-1:-1;;;;;122800:37:0;;;;;123045:10;;122800:871;;123156:9;;123045:10;;123362:8;;123459:9;;123572:4;;;;122800:871;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;122800:871:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122800:871:0;;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;122800:871:0;;;;;;;;;122792:880;;;;;;122750:1885;;;123703:46;;-1:-1:-1;;;123703:46:0;;-1:-1:-1;;;;;123703:25:0;;;;;:46;;123729:7;;123738:10;;123703:46;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;123703:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;123703:46:0;;;;123896:27;:25;:27::i;:::-;123798:189;;;;-1:-1:-1;;;123798:189:0;;;;;;;;;124010:612;;-1:-1:-1;;;124010:612:0;;-1:-1:-1;;;;;124010:37:0;;;;;:612;;124107:9;;124201:10;;124313:8;;124410:9;;124523:4;;;;124010:612;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;124010:612:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;124010:612:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;124010:612:0;;;;;;;;;124002:621;;;;;;-1:-1:-1;;;;;124663:18:0;;;:8;:18;;;;;;;;;;;:27;;;;;;;;;;:40;-1:-1:-1;124663:40:0;124655:49;;;;;;-1:-1:-1;124799:4:0;122161:2773;;;;;;;;;:::o;101448:517::-;101589:10;101580:20;;;;:8;:20;;;;;;;;:36;;;;-1:-1:-1;101604:12:0;;;;101580:36;101572:45;;;;;;101694:46;;81810:42;;101694:46;;101731:8;;;;101694:46;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;;;;;;;101839:23:0;;;;101863:2;101839:27;;;:41;;101836:122;;101896:50;101917:23;;;;101941:2;101917:27;;9622:660;9681:4;;9760:14;9863:164;;;;10050:2;10045:187;;;;9753:479;;9863:164;10007:1;9996:12;;9863:164;;10045:187;10169:2;10166:1;10163;10148:24;10211:1;10205:8;10194:19;;9753:479;-1:-1:-1;10262:12:0;;;-1:-1:-1;9622:660:0;:::o;131280:461::-;131355:20;;131409;;:27;;;131399:37;;131396:338;;131564:1;131557:8;;131540:126;131579:6;131572:4;:13;131567:1;:18;131540:126;;131611:30;131639:1;131611:27;:30::i;:::-;-1:-1:-1;;;;;131611:35:0;:39;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;;;131587:3:0;;131540:126;;;-1:-1:-1;131709:13:0;131686:20;:36;131280:461::o;131885:433::-;131934:12;132018:4;132012:11;132067:62;132044:21;132037:93;132231:2;132227:1;132204:21;132200:29;132197:1;132190:44;132182:52;;131968:343;;:::o;132551:1906::-;132626:7;132663:10;132654:5;:19;;132646:28;;;;;;132687:15;132713:17;132755:3;132747:5;:11;132743:916;;;-1:-1:-1;;;;;132878:14:0;;133006:2;132743:916;;;133116:1;133178:3;133196:110;133212:4;133203:5;:13;133196:110;;133252:1;133237:16;;;;;133287:3;133272:18;133196:110;;;-1:-1:-1;;;;133396:3:0;:17;;133395:28;133482:1;:15;;;133476:3;:22;133468:30;;133394:105;;-1:-1:-1;133631:2:0;:16;;-1:-1:-1;132743:916:0;134031:4;134025:11;;134117:4;134102:20;;134089:34;;;-1:-1:-1;;;133751:3:0;:15;;133750:27;-1:-1:-1;;;133912:4:0;133896:32;133749:180;133738:191;;;;-1:-1:-1;;;133738:191:0;134162:26;;134307:1;134292:17;134245:65;;;-1:-1:-1;132551:1906:0;;;:::o;81636:62648::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81636:62648:0;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;-1:-1:-1;81636:62648:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;;;;;81636:62648:0;;;;;;-1:-1:-1;;;;;81636:62648:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;5:130:-1;72:20;;97:33;72:20;97:33;;315:375;;;468:3;461:4;453:6;449:17;445:27;435:2;;486:1;483;476:12;435:2;-1:-1;506:20;;-1:-1;;;;;535:30;;532:2;;;578:1;575;568:12;532:2;612:4;604:6;600:17;588:29;;663:3;655:4;647:6;643:17;633:8;629:32;626:41;623:2;;;680:1;677;670:12;623:2;428:262;;;;;;1125:383;;;1286:3;1279:4;1271:6;1267:17;1263:27;1253:2;;1304:1;1301;1294:12;1253:2;-1:-1;1324:20;;-1:-1;;;;;1353:30;;1350:2;;;1396:1;1393;1386:12;1350:2;1430:4;1422:6;1418:17;1406:29;;1481:3;1473:4;1465:6;1461:17;1451:8;1447:32;1444:41;1441:2;;;1498:1;1495;1488:12;1569:387;;;1734:3;1727:4;1719:6;1715:17;1711:27;1701:2;;1752:1;1749;1742:12;1701:2;-1:-1;1772:20;;-1:-1;;;;;1801:30;;1798:2;;;1844:1;1841;1834:12;1798:2;1878:4;1870:6;1866:17;1854:29;;1929:3;1921:4;1913:6;1909:17;1899:8;1895:32;1892:41;1889:2;;;1946:1;1943;1936:12;2013:383;;;2174:3;2167:4;2159:6;2155:17;2151:27;2141:2;;2192:1;2189;2182:12;2141:2;-1:-1;2212:20;;-1:-1;;;;;2241:30;;2238:2;;;2284:1;2281;2274:12;2238:2;2318:4;2310:6;2306:17;2294:29;;2369:3;2361:4;2353:6;2349:17;2339:8;2335:32;2332:41;2329:2;;;2386:1;2383;2376:12;2404:124;2468:20;;2493:30;2468:20;2493:30;;2535:128;2610:13;;2628:30;2610:13;2628:30;;2670:130;2737:20;;2762:33;2737:20;2762:33;;2854:167;;2973:3;2964:6;2959:3;2955:16;2951:26;2948:2;;;2990:1;2987;2980:12;2948:2;-1:-1;3009:6;2941:80;-1:-1;2941:80;3073:772;;3195:4;3183:9;3178:3;3174:19;3170:30;3167:2;;;3213:1;3210;3203:12;3167:2;3231:20;3246:4;3231:20;;;3222:29;-1:-1;3309:1;3340:49;3385:3;3365:9;3340:49;;;3316:74;;-1:-1;3459:2;3492:49;3537:3;3513:22;;;3492:49;;;3485:4;3478:5;3474:16;3467:75;3411:142;3600:2;3633:49;3678:3;3669:6;3658:9;3654:22;3633:49;;;3626:4;3619:5;3615:16;3608:75;3563:131;3741:2;3774:49;3819:3;3810:6;3799:9;3795:22;3774:49;;;3767:4;3760:5;3756:16;3749:75;3704:131;3161:684;;;;;3902:170;;4024:3;4015:6;4010:3;4006:16;4002:26;3999:2;;;4041:1;4038;4031:12;4128:494;;4254:4;4242:9;4237:3;4233:19;4229:30;4226:2;;;4272:1;4269;4262:12;4226:2;4290:20;4305:4;4290:20;;;4281:29;-1:-1;4368:1;4399:49;4444:3;4424:9;4399:49;;;4375:74;;-1:-1;4518:2;4551:49;4596:3;4572:22;;;4551:49;;;4544:4;4537:5;4533:16;4526:75;4470:142;4220:402;;;;;4676:166;;4795:2;4786:6;4781:3;4777:16;4773:25;4770:2;;;4811:1;4808;4801:12;4894:642;;5016:4;5004:9;4999:3;4995:19;4991:30;4988:2;;;5034:1;5031;5024:12;4988:2;5052:20;5067:4;5052:20;;;5043:29;-1:-1;5130:1;5161:49;5206:3;5186:9;5161:49;;;5137:74;;-1:-1;5280:2;5313:49;5358:3;5334:22;;;5313:49;;;5306:4;5299:5;5295:16;5288:75;5232:142;5432:2;5465:49;5510:3;5501:6;5490:9;5486:22;5465:49;;;5458:4;5451:5;5447:16;5440:75;5384:142;4982:554;;;;;5680:134;5758:13;;5776:33;5758:13;5776:33;;5821:128;5887:20;;5912:32;5887:20;5912:32;;5956:126;6021:20;;6046:31;6021:20;6046:31;;6089:241;;6193:2;6181:9;6172:7;6168:23;6164:32;6161:2;;;6209:1;6206;6199:12;6161:2;6244:1;6261:53;6306:7;6286:9;6261:53;;;6251:63;6155:175;-1:-1;;;;6155:175;6601:501;;;;6744:2;6732:9;6723:7;6719:23;6715:32;6712:2;;;6760:1;6757;6750:12;6712:2;6795:1;6812:61;6865:7;6845:9;6812:61;;;6802:71;;6774:105;6910:2;6928:53;6973:7;6964:6;6953:9;6949:22;6928:53;;;6918:63;;6889:98;7018:2;7036:50;7078:7;7069:6;7058:9;7054:22;7036:50;;;7026:60;;6997:95;6706:396;;;;;;7109:366;;;7230:2;7218:9;7209:7;7205:23;7201:32;7198:2;;;7246:1;7243;7236:12;7198:2;7281:1;7298:53;7343:7;7323:9;7298:53;;;7288:63;;7260:97;7388:2;7406:53;7451:7;7442:6;7431:9;7427:22;7406:53;;;7396:63;;7367:98;7192:283;;;;;;7482:584;;;;7666:3;7654:9;7645:7;7641:23;7637:33;7634:2;;;7683:1;7680;7673:12;7634:2;7718:1;7735:53;7780:7;7760:9;7735:53;;;7725:63;;7697:97;7825:2;7843:61;7896:7;7887:6;7876:9;7872:22;7843:61;;;7833:71;;7804:106;7941:2;7959:91;8042:7;8033:6;8022:9;8018:22;7959:91;;8073:1148;;;;;;;;8361:3;8349:9;8340:7;8336:23;8332:33;8329:2;;;8378:1;8375;8368:12;8329:2;8413:1;8430:53;8475:7;8455:9;8430:53;;;8420:63;;8392:97;8520:2;8538:61;8591:7;8582:6;8571:9;8567:22;8538:61;;;8528:71;;8499:106;8636:2;8654:91;8737:7;8728:6;8717:9;8713:22;8654:91;;;8644:101;;8615:136;8810:3;8799:9;8795:19;8782:33;-1:-1;;;;;8827:6;8824:30;8821:2;;;8867:1;8864;8857:12;8821:2;8895:80;8967:7;8958:6;8947:9;8943:22;8895:80;;;8885:90;;;;8761:220;9040:3;9029:9;9025:19;9012:33;-1:-1;;;;;9057:6;9054:30;9051:2;;;9097:1;9094;9087:12;9051:2;9125:80;9197:7;9188:6;9177:9;9173:22;9125:80;;;9115:90;;;;8991:220;8323:898;;;;;;;;;;;9228:360;;;9346:2;9334:9;9325:7;9321:23;9317:32;9314:2;;;9362:1;9359;9352:12;9314:2;9397:1;9414:53;9459:7;9439:9;9414:53;;;9404:63;;9376:97;9504:2;9522:50;9564:7;9555:6;9544:9;9540:22;9522:50;;9595:366;;;9716:2;9704:9;9695:7;9691:23;9687:32;9684:2;;;9732:1;9729;9722:12;9684:2;9767:1;9784:53;9829:7;9809:9;9784:53;;;9774:63;;9746:97;9874:2;9892:53;9937:7;9928:6;9917:9;9913:22;9892:53;;9968:491;;;;10106:2;10094:9;10085:7;10081:23;10077:32;10074:2;;;10122:1;10119;10112:12;10074:2;10157:1;10174:53;10219:7;10199:9;10174:53;;;10164:63;;10136:97;10264:2;10282:53;10327:7;10318:6;10307:9;10303:22;10282:53;;;10272:63;;10243:98;10372:2;10390:53;10435:7;10426:6;10415:9;10411:22;10390:53;;10466:743;;;;;;10638:3;10626:9;10617:7;10613:23;10609:33;10606:2;;;10655:1;10652;10645:12;10606:2;10690:1;10707:53;10752:7;10732:9;10707:53;;;10697:63;;10669:97;10797:2;10815:53;10860:7;10851:6;10840:9;10836:22;10815:53;;;10805:63;;10776:98;10905:2;10923:53;10968:7;10959:6;10948:9;10944:22;10923:53;;;10913:63;;10884:98;11013:2;11031:53;11076:7;11067:6;11056:9;11052:22;11031:53;;;11021:63;;10992:98;11121:3;11140:53;11185:7;11176:6;11165:9;11161:22;11140:53;;;11130:63;;11100:99;10600:609;;;;;;;;;11216:1025;;;;;;;;11440:3;11428:9;11419:7;11415:23;11411:33;11408:2;;;11457:1;11454;11447:12;11408:2;11492:1;11509:53;11554:7;11534:9;11509:53;;;11499:63;;11471:97;11599:2;11617:53;11662:7;11653:6;11642:9;11638:22;11617:53;;;11607:63;;11578:98;11707:2;11725:53;11770:7;11761:6;11750:9;11746:22;11725:53;;;11715:63;;11686:98;11815:2;11833:53;11878:7;11869:6;11858:9;11854:22;11833:53;;;11823:63;;11794:98;11923:3;11942:53;11987:7;11978:6;11967:9;11963:22;11942:53;;;11932:63;;11902:99;12060:3;12049:9;12045:19;12032:33;-1:-1;;;;;12077:6;12074:30;12071:2;;;12117:1;12114;12107:12;12248:869;;;;;;;12437:3;12425:9;12416:7;12412:23;12408:33;12405:2;;;12454:1;12451;12444:12;12405:2;12489:1;12506:53;12551:7;12531:9;12506:53;;;12496:63;;12468:97;12596:2;12614:53;12659:7;12650:6;12639:9;12635:22;12614:53;;;12604:63;;12575:98;12704:2;12722:53;12767:7;12758:6;12747:9;12743:22;12722:53;;;12712:63;;12683:98;12812:2;12830:53;12875:7;12866:6;12855:9;12851:22;12830:53;;;12820:63;;12791:98;12920:3;12939:53;12984:7;12975:6;12964:9;12960:22;12939:53;;;12929:63;;12899:99;13029:3;13048:53;13093:7;13084:6;13073:9;13069:22;13048:53;;;13038:63;;13008:99;12399:718;;;;;;;;;13124:743;;;;;;13296:3;13284:9;13275:7;13271:23;13267:33;13264:2;;;13313:1;13310;13303:12;13264:2;13348:1;13365:53;13410:7;13390:9;13365:53;;;13355:63;;13327:97;13455:2;13473:53;13518:7;13509:6;13498:9;13494:22;13473:53;;;13463:63;;13434:98;13563:2;13581:53;13626:7;13617:6;13606:9;13602:22;13581:53;;;13571:63;;13542:98;13671:2;13689:53;13734:7;13725:6;13714:9;13710:22;13689:53;;;13679:63;;13650:98;13779:3;13798:53;13843:7;13834:6;13823:9;13819:22;13798:53;;13874:863;;;;;;;14060:3;14048:9;14039:7;14035:23;14031:33;14028:2;;;14077:1;14074;14067:12;14028:2;14112:1;14129:53;14174:7;14154:9;14129:53;;;14119:63;;14091:97;14219:2;14237:53;14282:7;14273:6;14262:9;14258:22;14237:53;;;14227:63;;14198:98;14327:2;14345:52;14389:7;14380:6;14369:9;14365:22;14345:52;;;14335:62;;14306:97;14434:2;14452:51;14495:7;14486:6;14475:9;14471:22;14452:51;;;14442:61;;14413:96;14540:3;14559:53;14604:7;14595:6;14584:9;14580:22;14559:53;;14744:989;;;;;;;;14947:3;14935:9;14926:7;14922:23;14918:33;14915:2;;;14964:1;14961;14954:12;14915:2;14999:1;15016:53;15061:7;15041:9;15016:53;;;15006:63;;14978:97;15106:2;15124:53;15169:7;15160:6;15149:9;15145:22;15124:53;;;15114:63;;15085:98;15214:2;15232:52;15276:7;15267:6;15256:9;15252:22;15232:52;;;15222:62;;15193:97;15321:2;15339:51;15382:7;15373:6;15362:9;15358:22;15339:51;;;15329:61;;15300:96;15427:3;15446:53;15491:7;15482:6;15471:9;15467:22;15446:53;;;15436:63;;15406:99;15536:3;15555:53;15600:7;15591:6;15580:9;15576:22;15555:53;;;15545:63;;15515:99;15645:3;15664:53;15709:7;15700:6;15689:9;15685:22;15664:53;;;15654:63;;15624:99;14909:824;;;;;;;;;;;16752:613;;;;;16905:3;16893:9;16884:7;16880:23;16876:33;16873:2;;;16922:1;16919;16912:12;16873:2;16957:1;16974:53;17019:7;16999:9;16974:53;;;16964:63;;16936:97;17064:2;17082:51;17125:7;17116:6;17105:9;17101:22;17082:51;;;17072:61;;17043:96;17170:2;17188:53;17233:7;17224:6;17213:9;17209:22;17188:53;;;17178:63;;17149:98;17278:2;17296:53;17341:7;17332:6;17321:9;17317:22;17296:53;;;17286:63;;17257:98;16867:498;;;;;;;;17372:769;;;;;;17560:3;17548:9;17539:7;17535:23;17531:33;17528:2;;;17577:1;17574;17567:12;17528:2;17612:31;;-1:-1;;;;;17652:30;;17649:2;;;17695:1;17692;17685:12;17649:2;17723:80;17795:7;17786:6;17775:9;17771:22;17723:80;;;17713:90;;;;17591:218;17840:2;17858:51;17901:7;17892:6;17881:9;17877:22;17858:51;;;17848:61;;17819:96;17946:2;17964:53;18009:7;18000:6;17989:9;17985:22;17964:53;;;17954:63;;17925:98;18054:2;18072:53;18117:7;18108:6;18097:9;18093:22;18072:53;;18148:810;;;;;18405:2;18393:9;18384:7;18380:23;18376:32;18373:2;;;18421:1;18418;18411:12;18373:2;18456:31;;-1:-1;;;;;18496:30;;18493:2;;;18539:1;18536;18529:12;18493:2;18567:111;18670:7;18661:6;18650:9;18646:22;18567:111;;;18557:121;;;;18435:249;18743:2;18732:9;18728:18;18715:32;-1:-1;;;;;18759:6;18756:30;18753:2;;;18799:1;18796;18789:12;18753:2;18827:115;18934:7;18925:6;18914:9;18910:22;18827:115;;;18367:591;;;;-1:-1;18817:125;-1:-1;;;;18367:591;18965:1137;;;;;;;19297:2;19285:9;19276:7;19272:23;19268:32;19265:2;;;19313:1;19310;19303:12;19265:2;19348:31;;-1:-1;;;;;19388:30;;19385:2;;;19431:1;19428;19421:12;19385:2;19459:111;19562:7;19553:6;19542:9;19538:22;19459:111;;;19449:121;;;;19327:249;19635:2;19624:9;19620:18;19607:32;-1:-1;;;;;19651:6;19648:30;19645:2;;;19691:1;19688;19681:12;19645:2;19719:115;19826:7;19817:6;19806:9;19802:22;19719:115;;;19709:125;;;;19586:254;19899:2;19888:9;19884:18;19871:32;-1:-1;;;;;19915:6;19912:30;19909:2;;;19955:1;19952;19945:12;19909:2;19983:103;20078:7;20069:6;20058:9;20054:22;19983:103;;;19973:113;;;;19850:242;19259:843;;;;;;;;;20109:802;;;;;20362:2;20350:9;20341:7;20337:23;20333:32;20330:2;;;20378:1;20375;20368:12;20330:2;20413:31;;-1:-1;;;;;20453:30;;20450:2;;;20496:1;20493;20486:12;20450:2;20524:111;20627:7;20618:6;20607:9;20603:22;20524:111;;;20514:121;;;;20392:249;20700:2;20689:9;20685:18;20672:32;-1:-1;;;;;20716:6;20713:30;20710:2;;;20756:1;20753;20746:12;20710:2;20784:111;20887:7;20878:6;20867:9;20863:22;20784:111;;20918:235;;21019:2;21007:9;20998:7;20994:23;20990:32;20987:2;;;21035:1;21032;21025:12;20987:2;21070:1;21087:50;21129:7;21109:9;21087:50;;21160:257;;21272:2;21260:9;21251:7;21247:23;21243:32;21240:2;;;21288:1;21285;21278:12;21240:2;21323:1;21340:61;21393:7;21373:9;21340:61;;21424:617;;;;;21579:3;21567:9;21558:7;21554:23;21550:33;21547:2;;;21596:1;21593;21586:12;21547:2;21631:1;21648:53;21693:7;21673:9;21648:53;;;21638:63;;21610:97;21738:2;21756:53;21801:7;21792:6;21781:9;21777:22;21756:53;;22048:704;;;;22291:3;22279:9;22270:7;22266:23;22262:33;22259:2;;;22308:1;22305;22298:12;22259:2;22343:1;22360:88;22440:7;22420:9;22360:88;;;22350:98;;22322:132;22485:3;22504:88;22584:7;22575:6;22564:9;22560:22;22504:88;;;22494:98;;22464:134;22629:3;22648:88;22728:7;22719:6;22708:9;22704:22;22648:88;;22759:508;;;22950:3;22938:9;22929:7;22925:23;22921:33;22918:2;;;22967:1;22964;22957:12;22918:2;23002:1;23019:88;23099:7;23079:9;23019:88;;;23009:98;;22981:132;23144:3;23163:88;23243:7;23234:6;23223:9;23219:22;23163:88;;23274:790;;;;;23517:3;23505:9;23496:7;23492:23;23488:33;23485:2;;;23534:1;23531;23524:12;23485:2;23569:1;23586:88;23666:7;23646:9;23586:88;;;23576:98;;23548:132;23711:3;23730:88;23810:7;23801:6;23790:9;23786:22;23730:88;;;23720:98;;23690:134;23883:3;23872:9;23868:19;23855:33;-1:-1;;;;;23900:6;23897:30;23894:2;;;23940:1;23937;23930:12;23894:2;23968:80;24040:7;24031:6;24020:9;24016:22;23968:80;;24071:308;;24208:3;24196:9;24187:7;24183:23;24179:33;24176:2;;;24225:1;24222;24215:12;24176:2;24260:1;24277:86;24355:7;24335:9;24277:86;;24386:315;;24527:2;24515:9;24506:7;24502:23;24498:32;24495:2;;;24543:1;24540;24533:12;24495:2;24578:1;24595:90;24677:7;24657:9;24595:90;;24708:311;;24847:2;24835:9;24826:7;24822:23;24818:32;24815:2;;;24863:1;24860;24853:12;24815:2;24898:1;24915:88;24995:7;24975:9;24915:88;;25026:875;;;;;;25269:3;25257:9;25248:7;25244:23;25240:33;25237:2;;;25286:1;25283;25276:12;25237:2;25321:1;25338:88;25418:7;25398:9;25338:88;;;25328:98;;25300:132;25491:2;25480:9;25476:18;25463:32;-1:-1;;;;;25507:6;25504:30;25501:2;;;25547:1;25544;25537:12;25501:2;25575:80;25647:7;25638:6;25627:9;25623:22;25575:80;;;25565:90;;;;25442:219;25720:3;25709:9;25705:19;25692:33;-1:-1;;;;;25737:6;25734:30;25731:2;;;25777:1;25774;25767:12;25731:2;25805:80;25877:7;25868:6;25857:9;25853:22;25805:80;;;25795:90;;;;25671:220;25231:670;;;;;;;;;25908:307;;26045:2;26033:9;26024:7;26020:23;26016:32;26013:2;;;26061:1;26058;26051:12;26013:2;26096:1;26113:86;26191:7;26171:9;26113:86;;26222:241;;26326:2;26314:9;26305:7;26301:23;26297:32;26294:2;;;26342:1;26339;26332:12;26294:2;26377:1;26394:53;26439:7;26419:9;26394:53;;26470:263;;26585:2;26573:9;26564:7;26560:23;26556:32;26553:2;;;26601:1;26598;26591:12;26553:2;26636:1;26653:64;26709:7;26689:9;26653:64;;26741:173;;26828:46;26870:3;26862:6;26828:46;;;-1:-1;;26903:4;26894:14;;26821:93;26922:142;27013:45;27052:5;27013:45;;;27008:3;27001:58;26995:69;;;27071:184;27188:61;27216:32;27242:5;27216:32;;;27188:61;;27262:103;27335:24;27353:5;27335:24;;27682:690;;27827:54;27875:5;27827:54;;;27894:86;27973:6;27968:3;27894:86;;;27887:93;;28001:56;28051:5;28001:56;;;28077:7;28105:1;28090:260;28115:6;28112:1;28109:13;28090:260;;;28182:6;28176:13;28203:63;28262:3;28247:13;28203:63;;;28196:70;;28283:60;28336:6;28283:60;;;28273:70;-1:-1;;28137:1;28130:9;28090:260;;;-1:-1;28363:3;;27806:566;-1:-1;;;;;27806:566;28411:466;;28557:86;28636:6;28631:3;28557:86;;;28550:93;;-1:-1;;;;;28662:6;28659:77;28656:2;;;28749:1;28746;28739:12;28656:2;28782:4;28774:6;28770:17;28760:27;;28799:43;28835:6;28830:3;28823:5;28799:43;;;-1:-1;;28855:16;;28543:334;28916:502;;29080:104;29177:6;29172:3;29080:104;;29426:94;29493:21;29508:5;29493:21;;29638:103;29711:24;29729:5;29711:24;;29868:152;29969:45;29989:24;30007:5;29989:24;;;29969:45;;30050:310;;30182:88;30263:6;30258:3;30182:88;;;30175:95;;30282:43;30318:6;30313:3;30306:5;30282:43;;30369:400;;30547:85;30629:2;30624:3;30547:85;;;30665:66;30645:87;;30760:2;30751:12;;30533:236;-1:-1;;30533:236;30778:398;;30956:84;31038:1;31033:3;30956:84;;;-1:-1;;;31053:87;;31168:1;31159:11;;30942:234;-1:-1;;30942:234;31185:364;;31345:67;31409:2;31404:3;31345:67;;;-1:-1;;;31425:87;;31540:2;31531:12;;31331:218;-1:-1;;31331:218;31558:364;;31718:67;31782:2;31777:3;31718:67;;;31818:66;31798:87;;31913:2;31904:12;;31704:218;-1:-1;;31704:218;31931:465;;32091:67;32155:2;32150:3;32091:67;;;32191:66;32171:87;;-1:-1;;;32287:2;32278:12;;32271:88;32387:2;32378:12;;32077:319;-1:-1;;32077:319;32405:807;;32583:86;32665:3;32660;32583:86;;;32702:66;32682:87;;32803:66;32798:2;32789:12;;32782:88;32904:66;32899:2;32890:12;;32883:88;33005:66;33000:2;32991:12;;32984:88;-1:-1;;;33101:3;33092:13;;33085:89;33202:3;33193:13;;32569:643;-1:-1;;32569:643;33221:364;;33381:67;33445:2;33440:3;33381:67;;;-1:-1;;;33461:87;;33576:2;33567:12;;33367:218;-1:-1;;33367:218;33594:501;;33772:85;33854:2;33849:3;33772:85;;;33890:66;33870:87;;-1:-1;;;33986:2;33977:12;;33970:88;34086:2;34077:12;;33758:337;-1:-1;;33758:337;34104:296;;34281:83;34362:1;34357:3;34281:83;;34409:364;;34569:67;34633:2;34628:3;34569:67;;;34669:66;34649:87;;34764:2;34755:12;;34555:218;-1:-1;;34555:218;34846:1262;35054:22;;34983:4;34974:14;;;35082:62;34978:3;35054:22;35082:62;;;35003:147;35229:4;35222:5;35218:16;35212:23;35241:63;35298:4;35293:3;35289:14;35275:12;35241:63;;;35160:150;35387:4;35380:5;35376:16;35370:23;35399:63;35456:4;35451:3;35447:14;35433:12;35399:63;;;35320:148;35546:4;35539:5;35535:16;35529:23;35558:63;35615:4;35610:3;35606:14;35592:12;35558:63;;;35478:149;35702:4;35695:5;35691:16;35685:23;35714:63;35771:4;35766:3;35762:14;35748:12;35714:63;;;35637:146;35856:4;35849:5;35845:16;35839:23;35868:63;35925:4;35920:3;35916:14;35902:12;35868:63;;;35793:144;36012:4;36005:5;36001:16;35995:23;36024:63;36081:4;36076:3;36072:14;36058:12;36024:63;;36208:1304;36445:22;;36373:4;36364:14;;;36473:62;36368:3;36445:22;36473:62;;;36393:148;36620:4;36613:5;36609:16;36603:23;36632:63;36689:4;36684:3;36680:14;36666:12;36632:63;;;36551:150;36781:4;36774:5;36770:16;36764:23;36793:63;36850:4;36845:3;36841:14;36827:12;36793:63;;;36711:151;36942:4;36935:5;36931:16;36925:23;36954:63;37011:4;37006:3;37002:14;36988:12;36954:63;;;36872:151;37100:4;37093:5;37089:16;37083:23;37112:63;37169:4;37164:3;37160:14;37146:12;37112:63;;;37033:148;37258:4;37251:5;37247:16;37241:23;37270:63;37327:4;37322:3;37318:14;37304:12;37270:63;;;37191:148;37416:4;37409:5;37405:16;37399:23;37428:63;37485:4;37480:3;37476:14;37462:12;37428:63;;37598:1455;37823:22;;37749:5;37740:15;;;37851:62;37744:3;37823:22;37851:62;;;37770:149;38001:4;37994:5;37990:16;37984:23;38013:63;38070:4;38065:3;38061:14;38047:12;38013:63;;;37929:153;38159:4;38152:5;38148:16;38142:23;38171:63;38228:4;38223:3;38219:14;38205:12;38171:63;;;38092:148;38319:4;38312:5;38308:16;38302:23;38331:63;38388:4;38383:3;38379:14;38365:12;38331:63;;;38250:150;38480:4;38473:5;38469:16;38463:23;38492:63;38549:4;38544:3;38540:14;38526:12;38492:63;;;38410:151;38643:4;38636:5;38632:16;38626:23;38655:63;38712:4;38707:3;38703:14;38689:12;38655:63;;;38571:153;38805:4;38798:5;38794:16;38788:23;38817:57;38868:4;38863:3;38859:14;38845:12;38817:57;;;38734:146;38957:4;38950:5;38946:16;38940:23;38969:63;39026:4;39021:3;39017:14;39003:12;38969:63;;39133:1267;39349:22;;39278:4;39269:14;;;39377:56;39273:3;39349:22;39377:56;;;39298:141;39518:4;39511:5;39507:16;39501:23;39530:63;39587:4;39582:3;39578:14;39564:12;39530:63;;;39449:150;39677:4;39670:5;39666:16;39660:23;39689:63;39746:4;39741:3;39737:14;39723:12;39689:63;;40472:959;40682:22;;40609:4;40600:14;;;40710:62;40604:3;40682:22;40710:62;;;40629:149;40858:4;40851:5;40847:16;40841:23;40870:63;40927:4;40922:3;40918:14;40904:12;40870:63;;;40788:151;41016:4;41009:5;41005:16;40999:23;41028:63;41085:4;41080:3;41076:14;41062:12;41028:63;;;40949:148;41174:4;41167:5;41163:16;41157:23;41186:63;41243:4;41238:3;41234:14;41220:12;41186:63;;;41107:148;41335:4;41328:5;41324:16;41318:23;41347:63;41404:4;41399:3;41395:14;41381:12;41347:63;;41438:152;41539:45;41559:24;41577:5;41559:24;;;41539:45;;41986:148;42085:43;42104:23;42121:5;42104:23;;;42085:43;;42141:110;42222:23;42239:5;42222:23;;42258:148;42357:43;42376:23;42393:5;42376:23;;;42357:43;;42413:107;42492:22;42508:5;42492:22;;42527:859;;42788:91;42875:3;42866:6;42788:91;;;42901:2;42896:3;42892:12;42885:19;;42915:75;42986:3;42977:6;42915:75;;;43012:2;43007:3;43003:12;42996:19;;43026:75;43097:3;43088:6;43026:75;;;43123:2;43118:3;43114:12;43107:19;;43137:73;43206:3;43197:6;43137:73;;;43232:1;43227:3;43223:11;43216:18;;43245:91;43332:3;43323:6;43245:91;;;-1:-1;43358:2;43349:12;;42776:610;-1:-1;;;;;42776:610;43393:586;;43600:75;43671:3;43662:6;43600:75;;;43697:2;43692:3;43688:12;43681:19;;43711:91;43798:3;43789:6;43711:91;;;43824:2;43819:3;43815:12;43808:19;;43838:91;43925:3;43916:6;43838:91;;;-1:-1;43951:2;43942:12;;43588:391;-1:-1;;;43588:391;43986:1068;;44269:75;44340:3;44331:6;44269:75;;;44366:2;44361:3;44357:12;44350:19;;44380:75;44451:3;44442:6;44380:75;;;44477:2;44472:3;44468:12;44461:19;;44491:75;44562:3;44553:6;44491:75;;;44588:2;44583:3;44579:12;44572:19;;44602:75;44673:3;44664:6;44602:75;;;44699:2;44694:3;44690:12;44683:19;;44713:73;44782:3;44773:6;44713:73;;;44808:1;44803:3;44799:11;44792:18;;44821:73;44890:3;44881:6;44821:73;;;44916:1;44911:3;44907:11;44900:18;;44929:75;45000:3;44991:6;44929:75;;;-1:-1;45026:2;45017:12;;44257:797;-1:-1;;;;;;;44257:797;45061:688;;45278:75;45349:3;45340:6;45278:75;;;45375:2;45370:3;45366:12;45359:19;;45389:75;45460:3;45451:6;45389:75;;;45486:2;45481:3;45477:12;45470:19;;45500:73;45569:3;45560:6;45500:73;;;45595:1;45590:3;45586:11;45579:18;;45608:91;45695:3;45686:6;45608:91;;;-1:-1;45721:2;45712:12;;45266:483;-1:-1;;;;45266:483;45756:346;;45942:135;46073:3;46064:6;46056;45942:135;;46109:282;;46263:103;46362:3;46353:6;46345;46263:103;;46398:511;;46625:148;46769:3;46625:148;;;46618:155;;46784:75;46855:3;46846:6;46784:75;;;-1:-1;46881:2;46872:12;;46606:303;-1:-1;46606:303;46916:650;;47171:148;47315:3;47171:148;;;47164:155;;47330:75;47401:3;47392:6;47330:75;;;47427:2;47422:3;47418:12;47411:19;;47441:75;47512:3;47503:6;47441:75;;;-1:-1;47538:2;47529:12;;47152:414;-1:-1;;47152:414;47573:372;;47772:148;47916:3;47772:148;;47952:372;;48151:148;48295:3;48151:148;;48331:370;;48529:147;48672:3;48529:147;;48708:213;48826:2;48811:18;;48840:71;48815:9;48884:6;48840:71;;48928:467;49118:2;49103:18;;49132:79;49107:9;49184:6;49132:79;;;49222:80;49298:2;49287:9;49283:18;49274:6;49222:80;;;49313:72;49381:2;49370:9;49366:18;49357:6;49313:72;;49402:439;49578:2;49563:18;;49592:79;49567:9;49644:6;49592:79;;;49682:72;49750:2;49739:9;49735:18;49726:6;49682:72;;;49765:66;49827:2;49816:9;49812:18;49803:6;49765:66;;49848:451;50030:2;50015:18;;50044:79;50019:9;50096:6;50044:79;;;50134:72;50202:2;50191:9;50187:18;50178:6;50134:72;;50306:340;50460:2;50445:18;;50474:79;50449:9;50526:6;50474:79;;;50564:72;50632:2;50621:9;50617:18;50608:6;50564:72;;50653:435;50827:2;50812:18;;50841:71;50816:9;50885:6;50841:71;;51095:324;51241:2;51226:18;;51255:71;51230:9;51299:6;51255:71;;51426:435;51600:2;51585:18;;51614:71;51589:9;51658:6;51614:71;;;51696:72;51764:2;51753:9;51749:18;51740:6;51696:72;;;51779;51847:2;51836:9;51832:18;51823:6;51779:72;;51868:547;52070:3;52055:19;;52085:71;52059:9;52129:6;52085:71;;;52167:72;52235:2;52224:9;52220:18;52211:6;52167:72;;;52250;52318:2;52307:9;52303:18;52294:6;52250:72;;;52333;52401:2;52390:9;52386:18;52377:6;52333:72;;52422:827;52712:3;52697:19;;52727:71;52701:9;52771:6;52727:71;;;52809:72;52877:2;52866:9;52862:18;52853:6;52809:72;;;52892;52960:2;52949:9;52945:18;52936:6;52892:72;;;52975;53043:2;53032:9;53028:18;53019:6;52975:72;;;53096:9;53090:4;53086:20;53080:3;53069:9;53065:19;53058:49;53121:118;53234:4;53225:6;53217;53121:118;;;53113:126;52683:566;-1:-1;;;;;;;;52683:566;53256:361;53424:2;53438:47;;;53409:18;;53499:108;53409:18;53593:6;53499:108;;53624:201;53736:2;53721:18;;53750:65;53725:9;53788:6;53750:65;;53832:213;53950:2;53935:18;;53964:71;53939:9;54008:6;53964:71;;54052:883;54338:3;54323:19;;54353:71;54327:9;54397:6;54353:71;;;54435:72;54503:2;54492:9;54488:18;54479:6;54435:72;;;54518;54586:2;54575:9;54571:18;54562:6;54518:72;;;54601;54669:2;54658:9;54654:18;54645:6;54601:72;;;54684:73;54752:3;54741:9;54737:19;54728:6;54684:73;;;54768;54836:3;54825:9;54821:19;54812:6;54768:73;;;54852;54920:3;54909:9;54905:19;54896:6;54852:73;;54942:543;55142:3;55127:19;;55157:71;55131:9;55201:6;55157:71;;;55239:72;55307:2;55296:9;55292:18;55283:6;55239:72;;;55322;55390:2;55379:9;55375:18;55366:6;55322:72;;;55405:70;55471:2;55460:9;55456:18;55447:6;55405:70;;55492:539;55690:3;55675:19;;55705:71;55679:9;55749:6;55705:71;;;55787:68;55851:2;55840:9;55836:18;55827:6;55787:68;;;55866:72;55934:2;55923:9;55919:18;55910:6;55866:72;;56038:407;56229:2;56243:47;;;56214:18;;56304:131;56214:18;56304:131;;56452:407;56643:2;56657:47;;;56628:18;;56718:131;56628:18;56718:131;;56866:407;57057:2;57071:47;;;57042:18;;57132:131;57042:18;57132:131;;57280:407;57471:2;57485:47;;;57456:18;;57546:131;57456:18;57546:131;;57694:407;57885:2;57899:47;;;57870:18;;57960:131;57870:18;57960:131;;58108:302;58270:3;58255:19;;58285:115;58259:9;58373:6;58285:115;;58417:358;58607:3;58592:19;;58622:143;58596:9;58738:6;58622:143;;58782:330;58958:3;58943:19;;58973:129;58947:9;59075:6;58973:129;;59119:318;59289:3;59274:19;;59304:123;59278:9;59400:6;59304:123;;59444:302;59606:3;59591:19;;59621:115;59595:9;59709:6;59621:115;;59973:256;60035:2;60029:9;60061:17;;;-1:-1;;;;;60121:34;;60157:22;;;60118:62;60115:2;;;60193:1;60190;60183:12;60115:2;60209;60202:22;60013:216;;-1:-1;60013:216;60236:151;60360:4;60351:14;;60308:79;60394:137;60497:12;;60468:63;60654:178;60772:19;;;60821:4;60812:14;;60765:67;61675:91;;61737:24;61755:5;61737:24;;61879:85;61945:13;61938:21;;61921:43;62050:113;-1:-1;;;;;62112:46;;62095:68;62170:121;-1:-1;;;;;62232:54;;62215:76;62377:88;62449:10;62438:22;;62421:44;62472:96;-1:-1;;;;;62533:30;;62516:52;62575:81;62646:4;62635:16;;62618:38;62663:129;;62750:37;62781:5;62799:121;62878:37;62909:5;62878:37;;63043:145;63124:6;63119:3;63114;63101:30;-1:-1;63180:1;63162:16;;63155:27;63094:94;63196:95;;63260:26;63280:5;63260:26;;63489:90;;63553:21;63568:5;63553:21;;63586:89;;63650:20;63664:5;63650:20;;63763:89;;63826:21;63841:5;63826:21;;63859:89;;63922:21;63937:5;63922:21;;63955:96;64030:3;64026:15;;63998:53;64059:96;64134:3;64130:15;;64102:53;64163:96;64238:3;64234:15;;64206:53;64267:94;64341:2;64337:14;;64309:52;64369:117;64438:24;64456:5;64438:24;;;64431:5;64428:35;64418:2;;64477:1;64474;64467:12;64633:111;64699:21;64714:5;64699:21;;64751:117;64820:24;64838:5;64820:24;;64999:115;65067:23;65084:5;65067:23;;65121:113;65188:22;65204:5;65188:22;
Swarm Source
bzzr://fd8b6f37389c02b72ea85b59a88c5fe3e5cabc58a34d4b06bae5467d5cd77de6
Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 30 Chains
Chain Token Portfolio % Price Amount Value ETH Ether (ETH)66.85% $3,240.47 10.1621 $32,929.85 ETH 8.92% $1 4,382.8473 $4,391.61 ETH 8.69% $0.01567 273,232.6666 $4,281.42 ETH 4.17% $1.03 2,003.0826 $2,053.16 ETH 3.89% $1,561.25 1.2287 $1,918.25 ETH 2.11% $16.94 61.4949 $1,041.72 ETH 1.62% $6,331.09 0.1263 $799.75 ETH 1.31% $48.23 13.3479 $643.77 ETH 0.75% $88,987 0.00417729 $371.72 ETH 0.73% $0.36236 996.4636 $361.08 ETH 0.35% $3,221.57 0.0541 $174.14 ETH 0.14% $0.005622 11,853.2346 $66.64 ETH 0.10% $1.56 33.0241 $51.52 ETH 0.08% $2.16 18.7345 $40.47 ETH 0.07% $2.47 14.4799 $35.77 ETH 0.06% $0.188371 162.3799 $30.59 ETH 0.06% $259.33 0.105 $27.23 ETH 0.05% $0.029229 891.9286 $26.07 ETH 0.01% $0.038371 171.5355 $6.58 ETH <0.01% $0.011494 332.1217 $3.82 ETH <0.01% $0.813596 3.0657 $2.49 ETH <0.01% $13.89 0.0489 $0.6798 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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), ABIDecodeTwoDimensionalArrayMemory (very low-severity), KeccakCaching (medium-severity), EmptyByteArrayCopy (medium-severity), DynamicArrayCleanup (medium-severity), ImplicitConstructorCallvalueCheck (very low-severity), TupleAssignmentMultiStackSlotComponents (very low-severity), MemoryArrayCreationOverflow (low-severity), privateCanBeOverridden (low-severity), YulOptimizerRedundantAssignmentBreakContinue0.5 (low-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.