![ads](/images/gen/moonpay_20.png)
15M+ users trust MoonPay. Checkout with your preferred payment method.
![ads](/images/gen/cons_20.png)
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
![ads](/images/gen/nexo.png)
Collect points for eligible actions and use multipliers to win big.
![ads](/images/gen/cons_20.png)
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Opt-in, make your first trade on Exchange Plus & receive random crypto rewards from 10,000 SHIB, to 0.01 BTC.
![ads](/images/gen/zeedex_20.png?v2)
You will earn $Zdex as rewards by any trade or stake on ZeeDex exchange.
![ads](/images/gen/coinsgame_20a.png)
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
![ads](/images/gen/megadice_20.png)
Play all your favorite Slots & Live Games, including Plinko, Aviator and Crash! Truly anonymous casino.
![ads](/images/gen/bcgames_20.png)
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
![ads](/images/gen/bcgames_20.png)
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
![ads](/images/gen/cw_20.png)
Play 100s of games anonymously with all major cryptos. Join CryptoWins & start winning!
![ads](/images/gen/cryptoslots.png)
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (>100)1.19331943 ACHAlchemy (ACH)$0.03@0.02310.07815525 ALPHAAlphaToken (ALPHA)$0.01@0.079443,735.65555554 AMPAmp (AMP)$211.87@0.0048647.02202101 ANKRAnkr Network (ANKR)$19.39@0.0312.0268 MATTERAntimatter.F... (MATTER)$0.40@0.0330.0023231 BADGERBadger (BADGER)$0.01@3.19380.18565009 BIRDBird.Money (BIRD)$2.56@13.80388.71699913 BITBitDAO (BIT)$308.33@0.793254.9316947 CVXConvex Token (CVX)$169.74@3.09354.48265648 CRVCurve DAO To... (CRV)$100.96@0.28480.20975168 DPIDefiPulse In... (DPI)$20.97@99.98788.32557048 DERCDeRace Token (DERC)$1.43@0.17151,116.50424425 ENJEnjinCoin (ENJ)$217.11@0.194553.33912588 FXSFrax Share (FXS)$156.28@2.9375.37698133 HEZHermez Netwo... (HEZ)$298.49@3.960.54575997 INDEXIndex (INDEX)$1.80@3.301,052.24442578 LRCLoopringCoin... (LRC)$186.07@0.1768389.13511689 PONDMarlin POND (POND)$7.80@0.020121.31792364 MTAMeta (MTA)$0.66@0.03110.00000025 MVIMetaverse In... (MVI)$0.00@31.73721.18765287 NFTXNFTX (NFTX)$31.07@26.160.00104198 NFYNon-Fungible... (NFY)$0.00@0.65680.00006407 NMRNumeraire (NMR)$0.00@16.510.02721296 OCEANOcean Token (OCEAN)$0.02@0.5733580.98211671 PNKPinakion (PNK)$15.43@0.0266177.24308822 PNTpNetwork Tok... (PNT)$1.62@0.00910.02979709 POLSPolkastarter... (POLS)$0.01@0.4831495.25400184 RAMPRAMP DEFI (RAMP)$56.76@0.11460.27538681 RGTRari Governa... (RGT)$0.07@0.25240.12814946 RENRepublic (REN)$0.01@0.04850.37069001 REPv2Reputation (REPv2)$0.31@0.8255998.34828199 RFOXRFOX (RFOX)$3.53@0.00351,792.46429619 SANDSAND (SAND)$592.48@0.33053,431.81 SHRShareToken (SHR)$7.93@0.0023368.61341227 SUKUSUKU (SUKU)$29.61@0.0803200.90170872 SNXSynthetix Ne... (SNX)$401.80@2.00308.60802488 TVKTerra Virtua... (TVK)$15.97@0.0517126.4546269 UFTUniLend Fina... (UFT)$41.30@0.32662.41114499 WAXEWAX Economic... (WAXE)$95.75@39.710.02601395 MIRWrapped MIR ... (MIR)$0.00@0.02750.01043425 1INCH1INCH Token (1INCH)$0.00@0.39212.50729945 AAVEAave Token (AAVE)$1,227.15@98.1144505.02232427 BATBAT (BAT)$96.15@0.1904358.10402886 CTSICartesi Toke... (CTSI)$58.09@0.1622436.70149095 LINKChainLink To... (LINK)$6,310.34@14.456.30584688 COMPCompound (COMP)$311.89@49.462.45039762 DAIDai Stableco... (DAI)$2.45@0.99971,913.5826298 MANADecentraland (MANA)$660.91@0.34545,718.59276866 GRTGraph Token (GRT)$1,193.95@0.2088152.85291136 LDOLido DAO Tok... (LDO)$307.23@2.010.8516241 MKRMaker (MKR)$2,197.97@2,580.925.45739584 RARIRarible (RARI)$11.52@2.11100.36294364 SUSHISushiToken (SUSHI)$83.49@0.8319425.10640222 UNIUniswap (UNI)$3,893.97@9.16131.747929 USDCUSDC (USDC)$131.71@0.99970.00598225 WBTCWrapped BTC (WBTC)$376.87@62,998.000.11241902 WETHWrapped Ethe... (WETH)$387.88@3,450.327944.73822216 ZRXZRX (ZRX)$16.04@0.35860 ALBTAllianceBlock Token12.02680686 MATTERAntimatter.Finance Governance Token1 Otherside Beta Access (ApeWL.io)ApeWL.io (Ot... (Others...)410.01641167 AUDIOAudius$63.19@0.15410.00000204 BAYCBored Ape Ya... (BAYC)0.00121279 PUNKCryptoPunks (PUNK)0.68308983 $DGdecentral.ga... ($DG)0.00000145 DGLDDigital Gold0.00056142 DOODLEDoodles (DOODLE)5,515.2111069 GALAGala668.70448576 MATICMatic Token$375.70@0.56180.07155835 MEMEMEME193.6506 MRPHMorpheus.Network2.67610122 MUSEMuse$29.33@10.960940.20681737 AXSOld Axie Infinity Shard0.01 QDeFiQ DeFi Rating & Governance token v2.048.31769755 RADRadicle$62.33@1.290 RSRReserve Rights63.45769963 REVVREVV$0.45@0.00710.02921747 ROOKROOK$0.02@0.6986767.6719074 AGISingularityNET0.01137662 RUNETHORChain ETH.RUNE100 UNIHUNI HODL (UNIH)7.2037 WHALEWHALE$4.30@0.59760.00105612 WOWWorld of Wom... (WOW)0.00001502 wDGLDwrapped-DGLD0.00533222 ⚗️Alchemist$0.00@0.93235,515.2111069 GALAGala$149.82@0.027297.61348911 GEOGeoDB Coin$0.18@0.00180.0091299 LYXeLUKSO$0.02@2.69830 TokenERC-20 TOKEN*[Suspicious]30 TokenERC-20 TOKEN*[Suspicious]48,970.84 TokenERC-20 TOKEN*[Suspicious]35,000 TokenERC-20 TOKEN*[Suspicious]1.5 TokenERC-20 TOKEN*[Suspicious]4,999 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]245.44 TokenERC-20 TOKEN*[Suspicious]9,000 TokenERC-20 TOKEN*[Suspicious]35,000 TokenERC-20 TOKEN*[Suspicious]1,500 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (40)aave-token.netAave Mysterybox NFTERC-1155Airdropaavenetwork.orgERC-1155Airdropaaveprotocol.netERC-1155Airdropclink.giftERC-1155Airdropget-usd.orgERC-1155nft-lido.comLDO Mysterybox NFTERC-1155claim rewards on linkprotocol.netlinkprotocol.netERC-1155Airdropmanagift.orgERC-1155Airdropoceangift.orgERC-1155token-sandbox.comSAND Mysterybox NFTERC-1155Airdropwrappedbtc.orgERC-1155
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]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*
[Spam]ERC-1155 TOKEN*
[Spam]ERC-1155 TOKEN*
[Spam]ERC-1155 TOKEN*
[Spam]ERC-1155 TOKEN*
[Spam]ERC-1155 TOKEN*
[Spam]- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 2,437 transactions
Transaction Hash MethodBlockFromToValue Issue Exact Set ... 19433144 2024-03-14 12:07:23 109 days ago 1710418043 IN 0.01 ETH 0.02154207 47.87958781 Issue Exact Set ... 19433118 2024-03-14 12:02:11 109 days ago 1710417731 IN 0.01 ETH 0.03038641 61.45150447 Approve Set Toke... 19433110 2024-03-14 12:00:35 109 days ago 1710417635 IN 0 ETH 0.00597981 61.83689685 Approve Set Toke... 18728777 2023-12-06 17:30:23 208 days ago 1701883823 IN 0 ETH 0.022035 67.35937762 Issue Set For Ex... 18727853 2023-12-06 14:22:11 208 days ago 1701872531 IN 0.01 ETH 0.03751897 70.8755789 Redeem Exact Set... 16698170 2023-02-24 12:23:35 493 days ago 1677241415 IN 0 ETH 0.01043853 24.96390931 Approve Set Toke... 16698164 2023-02-24 12:22:23 493 days ago 1677241343 IN 0 ETH 0.00500892 28.02182258 Redeem Exact Set... 16355203 2023-01-07 13:28:23 541 days ago 1673098103 IN 0 ETH 0.00948941 15.17039872 Approve Set Toke... 16355191 2023-01-07 13:25:59 541 days ago 1673097959 IN 0 ETH 0.0022563 14.41359226 Redeem Exact Set... 16355181 2023-01-07 13:23:59 541 days ago 1673097839 IN 0 ETH 0.00242218 14.64883013 Redeem Exact Set... 16355152 2023-01-07 13:18:11 541 days ago 1673097491 IN 0 ETH 0.00188849 14.43150629 Issue Set For Ex... 15014753 2022-06-23 20:43:53 739 days ago 1656017033 IN 0 ETH 0.02708374 67.58063115 Issue Set For Ex... 15014714 2022-06-23 20:32:05 739 days ago 1656016325 IN 0 ETH 0.02470288 66.62517751 Issue Set For Ex... 14949073 2022-06-12 8:06:43 750 days ago 1655021203 IN 0 ETH 0.01290633 36.36662237 Issue Set For Ex... 14949067 2022-06-12 8:04:15 750 days ago 1655021055 IN 0 ETH 0.02130506 27.22462637 Issue Set For Ex... 14948771 2022-06-12 6:42:04 750 days ago 1655016124 IN 0 ETH 0.02581486 33.34266898 Issue Set For Ex... 14948767 2022-06-12 6:41:19 750 days ago 1655016079 IN 0 ETH 0.03351635 41.53950343 Issue Set For Ex... 14893433 2022-06-02 22:03:36 760 days ago 1654207416 IN 0 ETH 0.01816217 50.3986898 Issue Set For Ex... 14893428 2022-06-02 22:02:25 760 days ago 1654207345 IN 0 ETH 0.04154572 52.61609516 Issue Set For Ex... 14893123 2022-06-02 20:51:54 760 days ago 1654203114 IN 0 ETH 0.03483436 87.78800817 Approve Token 14816992 2022-05-21 11:26:13 772 days ago 1653132373 IN 0 ETH 0.00192865 50 Approve Token 14816992 2022-05-21 11:26:13 772 days ago 1653132373 IN 0 ETH 0.00192865 50 Issue Set For Ex... 14796982 2022-05-18 5:23:16 775 days ago 1652851396 IN 0 ETH 0.00617574 16.65582409 Issue Set For Ex... 14796853 2022-05-18 4:53:03 776 days ago 1652849583 IN 0 ETH 0.01567977 20.24030328 Issue Set For Ex... 14600650 2022-04-17 4:17:35 807 days ago 1650169055 IN 0.2 ETH 0.01347626 20.59721022 Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To Value 19433144 2024-03-14 12:07:23 109 days ago 1710418043 0.00000143 ETH 19433144 2024-03-14 12:07:23 109 days ago 1710418043 0.00000143 ETH 19433144 2024-03-14 12:07:23 109 days ago 1710418043 0.01 ETH 19433118 2024-03-14 12:02:11 109 days ago 1710417731 0.00999999 ETH 19433118 2024-03-14 12:02:11 109 days ago 1710417731 0.00999999 ETH 19433118 2024-03-14 12:02:11 109 days ago 1710417731 0.01 ETH 18727853 2023-12-06 14:22:11 208 days ago 1701872531 0.01 ETH 16698170 2023-02-24 12:23:35 493 days ago 1677241415 0.2095384 ETH 16698170 2023-02-24 12:23:35 493 days ago 1677241415 0.2095384 ETH 16355203 2023-01-07 13:28:23 541 days ago 1673098103 0.03797163 ETH 16355203 2023-01-07 13:28:23 541 days ago 1673098103 0.03797163 ETH 14928570 2022-06-08 20:00:27 754 days ago 1654718427 15 ETH 14928570 2022-06-08 20:00:27 754 days ago 1654718427 15 ETH 14769010 2022-05-13 18:36:39 780 days ago 1652466999 15.15003526 ETH 14769010 2022-05-13 18:36:39 780 days ago 1652466999 15.15003526 ETH 14600650 2022-04-17 4:17:35 807 days ago 1650169055 0.2 ETH 14566030 2022-04-11 18:39:02 812 days ago 1649702342 20 ETH 14366629 2022-03-11 16:38:39 843 days ago 1647016719 0.0250517 ETH 14366629 2022-03-11 16:38:39 843 days ago 1647016719 0.0250517 ETH 14366629 2022-03-11 16:38:39 843 days ago 1647016719 5.03539243 ETH 14352608 2022-03-09 12:36:43 845 days ago 1646829403 0.44966366 ETH 14352608 2022-03-09 12:36:43 845 days ago 1646829403 0.44966366 ETH 14351192 2022-03-09 7:07:08 845 days ago 1646809628 0.44201592 ETH 14351192 2022-03-09 7:07:08 845 days ago 1646809628 0.44201592 ETH 14346407 2022-03-08 13:16:31 846 days ago 1646745391 0.00125997 ETH Loading...LoadingContract Name:ExchangeIssuance
Compiler Versionv0.6.10+commit.00c0fcaf
Contract Source Code (Solidity)
- library Address
- - function isContract(address account)
- - function sendValue(address payable re ...
- - function functionCall(address target, ...
- - function functionCall(address target, ...
- - function functionCallWithValue(addres ...
- - function functionCallWithValue(addres ...
- - function functionStaticCall(address t ...
- - function functionStaticCall(address t ...
- - function _verifyCallResult(bool succe ...
- interface IERC20
- - function totalSupply()
- - function balanceOf(address account)
- - function transfer(address recipient, ...
- - function allowance(address owner, add ...
- - function approve(address spender, uin ...
- - function transferFrom(address sender, ...
- interface IUniswapV2Factory
- - function feeTo()
- - function feeToSetter()
- - function getPair(address tokenA, addr ...
- - function allPairs(uint)
- - function allPairsLength()
- - function createPair(address tokenA, a ...
- - function setFeeTo(address)
- - function setFeeToSetter(address)
- interface IUniswapV2Router01
- - function factory()
- - function WETH()
- - function addLiquidity(
- - function addLiquidityETH(
- - function removeLiquidity(
- - function removeLiquidityETH(
- - function removeLiquidityWithPermit(
- - function removeLiquidityETHWithPermit ...
- - function swapExactTokensForTokens(
- - function swapTokensForExactTokens(
- - function swapExactETHForTokens(uint a ...
- - function swapTokensForExactETH(uint a ...
- - function swapExactTokensForETH(uint a ...
- - function swapETHForExactTokens(uint a ...
- - function quote(uint amountA, uint res ...
- - function getAmountOut(uint amountIn, ...
- - function getAmountIn(uint amountOut, ...
- - function getAmountsOut(uint amountIn, ...
- - function getAmountsIn(uint amountOut, ...
- interface IUniswapV2Router02 is IUnis ...
- - function removeLiquidityETHSupporting ...
- - function removeLiquidityETHWithPermit ...
- - function swapExactTokensForTokensSupp ...
- - function swapExactETHForTokensSupport ...
- - function swapExactTokensForETHSupport ...
- library Math
- - function max(uint256 a, uint256 b)
- - function min(uint256 a, uint256 b)
- - function average(uint256 a, uint256 b ...
- library SafeMath
- - function add(uint256 a, uint256 b)
- - function sub(uint256 a, uint256 b)
- - function sub(uint256 a, uint256 b, st ...
- - function mul(uint256 a, uint256 b)
- - function div(uint256 a, uint256 b)
- - function div(uint256 a, uint256 b, st ...
- - function mod(uint256 a, uint256 b)
- - function mod(uint256 a, uint256 b, st ...
- library SafeERC20
- - function safeTransfer(IERC20 token, a ...
- - function safeTransferFrom(IERC20 toke ...
- - function safeApprove(IERC20 token, ad ...
- - function safeIncreaseAllowance(IERC20 ...
- - function safeDecreaseAllowance(IERC20 ...
- - function _callOptionalReturn(IERC20 t ...
- interface ISetToken is IERC20
- - function addComponent(address _compon ...
- - function removeComponent(address _com ...
- - function editDefaultPositionUnit(addr ...
- - function addExternalPositionModule(ad ...
- - function removeExternalPositionModule ...
- - function editExternalPositionUnit(add ...
- - function editExternalPositionData(add ...
- - function invoke(address _target, uint ...
- - function editPositionMultiplier(int25 ...
- - function mint(address _account, uint2 ...
- - function burn(address _account, uint2 ...
- - function lock()
- - function unlock()
- - function addModule(address _module)
- - function removeModule(address _module ...
- - function initializeModule()
- - function setManager(address _manager)
- - function manager()
- - function moduleStates(address _module ...
- - function getModules()
- - function getDefaultPositionRealUnit(a ...
- - function getExternalPositionRealUnit( ...
- - function getComponents()
- - function getExternalPositionModules(a ...
- - function getExternalPositionData(addr ...
- - function isExternalPositionModule(add ...
- - function isComponent(address _compone ...
- - function positionMultiplier()
- - function getPositions()
- - function getTotalComponentRealUnits(a ...
- - function isInitializedModule(address ...
- - function isPendingModule(address _mod ...
- - function isLocked()
- interface IBasicIssuanceModule
- - function getRequiredComponentUnitsFor ...
- - function issue(ISetToken _setToken, u ...
- - function redeem(ISetToken _token, uin ...
- interface IController
- - function addSet(address _setToken)
- - function feeRecipient()
- - function getModuleFee(address _module ...
- - function isModule(address _module)
- - function isSet(address _setToken)
- - function isSystemContract(address _co ...
- - function resourceId(uint256 _id)
- interface IWETH
- - function deposit()
- - function transfer(address to, uint va ...
- - function withdraw(uint)
- library SignedSafeMath
- - function mul(int256 a, int256 b)
- - function div(int256 a, int256 b)
- - function sub(int256 a, int256 b)
- - function add(int256 a, int256 b)
- library PreciseUnitMath
- - function preciseUnit()
- - function preciseUnitInt()
- - function maxUint256()
- - function maxInt256()
- - function minInt256()
- - function preciseMul(uint256 a, uint25 ...
- - function preciseMul(int256 a, int256 ...
- - function preciseMulCeil(uint256 a, ui ...
- - function preciseDiv(uint256 a, uint25 ...
- - function preciseDiv(int256 a, int256 ...
- - function preciseDivCeil(uint256 a, ui ...
- - function divDown(int256 a, int256 b)
- - function conservativePreciseMul(int25 ...
- - function conservativePreciseDiv(int25 ...
- - function safePower(
- interface IUniswapV2Pair
- - function name()
- - function symbol()
- - function decimals()
- - function totalSupply()
- - function balanceOf(address owner)
- - function allowance(address owner, add ...
- - function approve(address spender, uin ...
- - function transfer(address to, uint va ...
- - function transferFrom(address from, a ...
- - function DOMAIN_SEPARATOR()
- - function PERMIT_TYPEHASH()
- - function nonces(address owner)
- - function permit(address owner, addres ...
- - function MINIMUM_LIQUIDITY()
- - function factory()
- - function token0()
- - function token1()
- - function getReserves()
- - function price0CumulativeLast()
- - function price1CumulativeLast()
- - function kLast()
- - function mint(address to)
- - function burn(address to)
- - function swap(uint amount0Out, uint a ...
- - function skim(address to)
- - function sync()
- - function initialize(address, address)
- library UniSushiV2Library
- - function sortTokens(address tokenA, a ...
- - function getReserves(address pair, ad ...
- - function quote(uint amountA, uint res ...
- - function getAmountOut(uint amountIn, ...
- - function getAmountIn(uint amountOut, ...
- - function getAmountsOut(address factor ...
- - function getAmountsIn(address factory ...
- contract ExchangeIssuance is Reent ... *
- - function approveToken(IERC20 _token)
- - function approveTokens(IERC20[] calld ...
- - function approveSetToken(ISetToken _s ...
- - function issueSetForExactToken(
- - function issueSetForExactETH(
- - function issueExactSetFromToken(
- - function issueExactSetFromETH(
- - function redeemExactSetForToken(
- - function redeemExactSetForETH(
- - function getEstimatedIssueSetAmount(
- - function getAmountInToIssueExactSet(
- - function getAmountOutOnRedeemSet(
- - function _safeApprove(IERC20 _token, ...
- - function _issueSetForExactWETH(ISetTo ...
- - function _issueExactSetFromWETH(ISetT ...
- - function _redeemExactSet(ISetToken _s ...
- - function _liquidateComponentsForWETH( ...
- - function _getAmountETHForIssuance(ISe ...
- - function _getAmountETHForRedemption(I ...
- - function _getSetIssueAmountForETH(ISe ...
- - function _swapTokenForWETH(IERC20 _to ...
- - function _swapExactTokensForTokens(Ex ...
- - function _swapTokensForExactTokens(Ex ...
- - function _getMinTokenForExactToken(ui ...
- - function _getMaxTokenForExactToken(ui ...
- - function _getPair(address _factory, a ...
- - function _getRouter(Exchange _exchang ...
/** *Submitted for verification at Etherscan.io on 2021-03-24 */ // Dependency file: @openzeppelin/contracts/utils/Address.sol // SPDX-License-Identifier: MIT // pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [// importANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * // importANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * // importANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Dependency file: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol // pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // Dependency file: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol // pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // Dependency file: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol // pragma solidity >=0.6.2; // import '/Users/alexsoong/Source/set-protocol/index-coop-contracts/node_modules/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // Dependency file: @openzeppelin/contracts/math/Math.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // Dependency file: @openzeppelin/contracts/math/SafeMath.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Dependency file: @openzeppelin/contracts/utils/ReentrancyGuard.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // Dependency file: contracts/interfaces/ISetToken.sol // pragma solidity 0.6.10; pragma experimental "ABIEncoderV2"; // import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title ISetToken * @author Set Protocol * * Interface for operating with SetTokens. */ interface ISetToken is IERC20 { /* ============ Enums ============ */ enum ModuleState { NONE, PENDING, INITIALIZED } /* ============ Structs ============ */ /** * The base definition of a SetToken Position * * @param component Address of token in the Position * @param module If not in default state, the address of associated module * @param unit Each unit is the # of components per 10^18 of a SetToken * @param positionState Position ENUM. Default is 0; External is 1 * @param data Arbitrary data */ struct Position { address component; address module; int256 unit; uint8 positionState; bytes data; } /** * A struct that stores a component's cash position details and external positions * This data structure allows O(1) access to a component's cash position units and * virtual units. * * @param virtualUnit Virtual value of a component's DEFAULT position. Stored as virtual for efficiency * updating all units at once via the position multiplier. Virtual units are achieved * by dividing a "real" value by the "positionMultiplier" * @param componentIndex * @param externalPositionModules List of external modules attached to each external position. Each module * maps to an external position * @param externalPositions Mapping of module => ExternalPosition struct for a given component */ struct ComponentPosition { int256 virtualUnit; address[] externalPositionModules; mapping(address => ExternalPosition) externalPositions; } /** * A struct that stores a component's external position details including virtual unit and any * auxiliary data. * * @param virtualUnit Virtual value of a component's EXTERNAL position. * @param data Arbitrary data */ struct ExternalPosition { int256 virtualUnit; bytes data; } /* ============ Functions ============ */ function addComponent(address _component) external; function removeComponent(address _component) external; function editDefaultPositionUnit(address _component, int256 _realUnit) external; function addExternalPositionModule(address _component, address _positionModule) external; function removeExternalPositionModule(address _component, address _positionModule) external; function editExternalPositionUnit(address _component, address _positionModule, int256 _realUnit) external; function editExternalPositionData(address _component, address _positionModule, bytes calldata _data) external; function invoke(address _target, uint256 _value, bytes calldata _data) external returns(bytes memory); function editPositionMultiplier(int256 _newMultiplier) external; function mint(address _account, uint256 _quantity) external; function burn(address _account, uint256 _quantity) external; function lock() external; function unlock() external; function addModule(address _module) external; function removeModule(address _module) external; function initializeModule() external; function setManager(address _manager) external; function manager() external view returns (address); function moduleStates(address _module) external view returns (ModuleState); function getModules() external view returns (address[] memory); function getDefaultPositionRealUnit(address _component) external view returns(int256); function getExternalPositionRealUnit(address _component, address _positionModule) external view returns(int256); function getComponents() external view returns(address[] memory); function getExternalPositionModules(address _component) external view returns(address[] memory); function getExternalPositionData(address _component, address _positionModule) external view returns(bytes memory); function isExternalPositionModule(address _component, address _module) external view returns(bool); function isComponent(address _component) external view returns(bool); function positionMultiplier() external view returns (int256); function getPositions() external view returns (Position[] memory); function getTotalComponentRealUnits(address _component) external view returns(int256); function isInitializedModule(address _module) external view returns(bool); function isPendingModule(address _module) external view returns(bool); function isLocked() external view returns (bool); } // Dependency file: contracts/interfaces/IBasicIssuanceModule.sol /* Copyright 2020 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // pragma solidity >=0.6.10; // import { ISetToken } from "contracts/interfaces/ISetToken.sol"; interface IBasicIssuanceModule { function getRequiredComponentUnitsForIssue( ISetToken _setToken, uint256 _quantity ) external returns(address[] memory, uint256[] memory); function issue(ISetToken _setToken, uint256 _quantity, address _to) external; function redeem(ISetToken _token, uint256 _quantity, address _to) external; } // Dependency file: contracts/interfaces/IController.sol /* Copyright 2020 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // pragma solidity 0.6.10; interface IController { function addSet(address _setToken) external; function feeRecipient() external view returns(address); function getModuleFee(address _module, uint256 _feeType) external view returns(uint256); function isModule(address _module) external view returns(bool); function isSet(address _setToken) external view returns(bool); function isSystemContract(address _contractAddress) external view returns (bool); function resourceId(uint256 _id) external view returns(address); } // Dependency file: contracts/interfaces/IWETH.sol // pragma solidity >=0.6.10; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; } // Dependency file: @openzeppelin/contracts/math/SignedSafeMath.sol // pragma solidity >=0.6.0 <0.8.0; /** * @title SignedSafeMath * @dev Signed math operations with safety checks that revert on error. */ library SignedSafeMath { int256 constant private _INT256_MIN = -2**255; /** * @dev Returns the multiplication of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow"); int256 c = a * b; require(c / a == b, "SignedSafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two signed integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(int256 a, int256 b) internal pure returns (int256) { require(b != 0, "SignedSafeMath: division by zero"); require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow"); int256 c = a / b; return c; } /** * @dev Returns the subtraction of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow"); return c; } /** * @dev Returns the addition of two signed integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow"); return c; } } // Dependency file: contracts/lib/PreciseUnitMath.sol /* Copyright 2020 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // pragma solidity 0.6.10; // import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; // import { SignedSafeMath } from "@openzeppelin/contracts/math/SignedSafeMath.sol"; /** * @title PreciseUnitMath * @author Set Protocol * * Arithmetic for fixed-point numbers with 18 decimals of precision. Some functions taken from * dYdX's BaseMath library. * * CHANGELOG: * - 9/21/20: Added safePower function */ library PreciseUnitMath { using SafeMath for uint256; using SignedSafeMath for int256; // The number One in precise units. uint256 constant internal PRECISE_UNIT = 10 ** 18; int256 constant internal PRECISE_UNIT_INT = 10 ** 18; // Max unsigned integer value uint256 constant internal MAX_UINT_256 = type(uint256).max; // Max and min signed integer value int256 constant internal MAX_INT_256 = type(int256).max; int256 constant internal MIN_INT_256 = type(int256).min; /** * @dev Getter function since constants can't be read directly from libraries. */ function preciseUnit() internal pure returns (uint256) { return PRECISE_UNIT; } /** * @dev Getter function since constants can't be read directly from libraries. */ function preciseUnitInt() internal pure returns (int256) { return PRECISE_UNIT_INT; } /** * @dev Getter function since constants can't be read directly from libraries. */ function maxUint256() internal pure returns (uint256) { return MAX_UINT_256; } /** * @dev Getter function since constants can't be read directly from libraries. */ function maxInt256() internal pure returns (int256) { return MAX_INT_256; } /** * @dev Getter function since constants can't be read directly from libraries. */ function minInt256() internal pure returns (int256) { return MIN_INT_256; } /** * @dev Multiplies value a by value b (result is rounded down). It's assumed that the value b is the significand * of a number with 18 decimals precision. */ function preciseMul(uint256 a, uint256 b) internal pure returns (uint256) { return a.mul(b).div(PRECISE_UNIT); } /** * @dev Multiplies value a by value b (result is rounded towards zero). It's assumed that the value b is the * significand of a number with 18 decimals precision. */ function preciseMul(int256 a, int256 b) internal pure returns (int256) { return a.mul(b).div(PRECISE_UNIT_INT); } /** * @dev Multiplies value a by value b (result is rounded up). It's assumed that the value b is the significand * of a number with 18 decimals precision. */ function preciseMulCeil(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0 || b == 0) { return 0; } return a.mul(b).sub(1).div(PRECISE_UNIT).add(1); } /** * @dev Divides value a by value b (result is rounded down). */ function preciseDiv(uint256 a, uint256 b) internal pure returns (uint256) { return a.mul(PRECISE_UNIT).div(b); } /** * @dev Divides value a by value b (result is rounded towards 0). */ function preciseDiv(int256 a, int256 b) internal pure returns (int256) { return a.mul(PRECISE_UNIT_INT).div(b); } /** * @dev Divides value a by value b (result is rounded up or away from 0). */ function preciseDivCeil(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "Cant divide by 0"); return a > 0 ? a.mul(PRECISE_UNIT).sub(1).div(b).add(1) : 0; } /** * @dev Divides value a by value b (result is rounded down - positive numbers toward 0 and negative away from 0). */ function divDown(int256 a, int256 b) internal pure returns (int256) { require(b != 0, "Cant divide by 0"); require(a != MIN_INT_256 || b != -1, "Invalid input"); int256 result = a.div(b); if (a ^ b < 0 && a % b != 0) { result -= 1; } return result; } /** * @dev Multiplies value a by value b where rounding is towards the lesser number. * (positive values are rounded towards zero and negative values are rounded away from 0). */ function conservativePreciseMul(int256 a, int256 b) internal pure returns (int256) { return divDown(a.mul(b), PRECISE_UNIT_INT); } /** * @dev Divides value a by value b where rounding is towards the lesser number. * (positive values are rounded towards zero and negative values are rounded away from 0). */ function conservativePreciseDiv(int256 a, int256 b) internal pure returns (int256) { return divDown(a.mul(PRECISE_UNIT_INT), b); } /** * @dev Performs the power on a specified value, reverts on overflow. */ function safePower( uint256 a, uint256 pow ) internal pure returns (uint256) { require(a > 0, "Value must be positive"); uint256 result = 1; for (uint256 i = 0; i < pow; i++){ uint256 previousResult = result; // Using safemath multiplication prevents overflows result = previousResult.mul(a); } return result; } } // Dependency file: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol // pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // Dependency file: external/contracts/UniSushiV2Library.sol // pragma solidity >=0.5.0; // import '/Users/alexsoong/Source/set-protocol/index-coop-contracts/node_modules/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol'; // import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; library UniSushiV2Library { using SafeMath for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // fetches and sorts the reserves for a pair function getReserves(address pair, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pair).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } } // Root file: contracts/exchangeIssuance/ExchangeIssuance.sol /* Copyright 2021 Index Cooperative Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.6.10; // import { Address } from "@openzeppelin/contracts/utils/Address.sol"; // import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import { IUniswapV2Factory } from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; // import { IUniswapV2Router02 } from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; // import { Math } from "@openzeppelin/contracts/math/Math.sol"; // import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; // import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; // import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; // import { IBasicIssuanceModule } from "contracts/interfaces/IBasicIssuanceModule.sol"; // import { IController } from "contracts/interfaces/IController.sol"; // import { ISetToken } from "contracts/interfaces/ISetToken.sol"; // import { IWETH } from "contracts/interfaces/IWETH.sol"; // import { PreciseUnitMath } from "contracts/lib/PreciseUnitMath.sol"; // import { UniSushiV2Library } from "external/contracts/UniSushiV2Library.sol"; /** * @title ExchangeIssuance * @author Index Coop * * Contract for issuing and redeeming any SetToken using ETH or an ERC20 as the paying/receiving currency. * All swaps are done using the best price found on Uniswap or Sushiswap. * */ contract ExchangeIssuance is ReentrancyGuard { using Address for address payable; using SafeMath for uint256; using PreciseUnitMath for uint256; using SafeERC20 for IERC20; using SafeERC20 for ISetToken; /* ============ Enums ============ */ enum Exchange { Uniswap, Sushiswap, None } /* ============ Constants ============= */ uint256 constant private MAX_UINT96 = 2**96 - 1; address constant public ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /* ============ State Variables ============ */ address public WETH; IUniswapV2Router02 public uniRouter; IUniswapV2Router02 public sushiRouter; address public immutable uniFactory; address public immutable sushiFactory; IController public immutable setController; IBasicIssuanceModule public immutable basicIssuanceModule; /* ============ Events ============ */ event ExchangeIssue( address indexed _recipient, // The recipient address of the issued SetTokens ISetToken indexed _setToken, // The issued SetToken IERC20 indexed _inputToken, // The address of the input asset(ERC20/ETH) used to issue the SetTokens uint256 _amountInputToken, // The amount of input tokens used for issuance uint256 _amountSetIssued // The amount of SetTokens received by the recipient ); event ExchangeRedeem( address indexed _recipient, // The recipient address which redeemed the SetTokens ISetToken indexed _setToken, // The redeemed SetToken IERC20 indexed _outputToken, // The address of output asset(ERC20/ETH) received by the recipient uint256 _amountSetRedeemed, // The amount of SetTokens redeemed for output tokens uint256 _amountOutputToken // The amount of output tokens received by the recipient ); event Refund( address indexed _recipient, // The recipient address which redeemed the SetTokens uint256 _refundAmount // The amount of ETH redunded to the recipient ); /* ============ Modifiers ============ */ modifier isSetToken(ISetToken _setToken) { require(setController.isSet(address(_setToken)), "ExchangeIssuance: INVALID SET"); _; } /* ============ Constructor ============ */ constructor( address _weth, address _uniFactory, IUniswapV2Router02 _uniRouter, address _sushiFactory, IUniswapV2Router02 _sushiRouter, IController _setController, IBasicIssuanceModule _basicIssuanceModule ) public { uniFactory = _uniFactory; uniRouter = _uniRouter; sushiFactory = _sushiFactory; sushiRouter = _sushiRouter; setController = _setController; basicIssuanceModule = _basicIssuanceModule; WETH = _weth; IERC20(WETH).safeApprove(address(uniRouter), PreciseUnitMath.maxUint256()); IERC20(WETH).safeApprove(address(sushiRouter), PreciseUnitMath.maxUint256()); } /* ============ Public Functions ============ */ /** * Runs all the necessary approval functions required for a given ERC20 token. * This function can be called when a new token is added to a SetToken during a * rebalance. * * @param _token Address of the token which needs approval */ function approveToken(IERC20 _token) public { _safeApprove(_token, address(uniRouter), MAX_UINT96); _safeApprove(_token, address(sushiRouter), MAX_UINT96); _safeApprove(_token, address(basicIssuanceModule), MAX_UINT96); } /* ============ External Functions ============ */ receive() external payable { // required for weth.withdraw() to work properly require(msg.sender == WETH, "ExchangeIssuance: Direct deposits not allowed"); } /** * Runs all the necessary approval functions required for a list of ERC20 tokens. * * @param _tokens Addresses of the tokens which need approval */ function approveTokens(IERC20[] calldata _tokens) external { for (uint256 i = 0; i < _tokens.length; i++) { approveToken(_tokens[i]); } } /** * Runs all the necessary approval functions required before issuing * or redeeming a SetToken. This function need to be called only once before the first time * this smart contract is used on any particular SetToken. * * @param _setToken Address of the SetToken being initialized */ function approveSetToken(ISetToken _setToken) isSetToken(_setToken) external { address[] memory components = _setToken.getComponents(); for (uint256 i = 0; i < components.length; i++) { // Check that the component does not have external positions require( _setToken.getExternalPositionModules(components[i]).length == 0, "ExchangeIssuance: EXTERNAL_POSITIONS_NOT_ALLOWED" ); approveToken(IERC20(components[i])); } } /** * Issues SetTokens for an exact amount of input ERC20 tokens. * The ERC20 token must be approved by the sender to this contract. * * @param _setToken Address of the SetToken being issued * @param _inputToken Address of input token * @param _amountInput Amount of the input token / ether to spend * @param _minSetReceive Minimum amount of SetTokens to receive. Prevents unnecessary slippage. * * @return setTokenAmount Amount of SetTokens issued to the caller */ function issueSetForExactToken( ISetToken _setToken, IERC20 _inputToken, uint256 _amountInput, uint256 _minSetReceive ) isSetToken(_setToken) external nonReentrant returns (uint256) { require(_amountInput > 0, "ExchangeIssuance: INVALID INPUTS"); _inputToken.safeTransferFrom(msg.sender, address(this), _amountInput); uint256 amountEth = address(_inputToken) == WETH ? _amountInput : _swapTokenForWETH(_inputToken, _amountInput); uint256 setTokenAmount = _issueSetForExactWETH(_setToken, _minSetReceive, amountEth); emit ExchangeIssue(msg.sender, _setToken, _inputToken, _amountInput, setTokenAmount); return setTokenAmount; } /** * Issues SetTokens for an exact amount of input ether. * * @param _setToken Address of the SetToken to be issued * @param _minSetReceive Minimum amount of SetTokens to receive. Prevents unnecessary slippage. * * @return setTokenAmount Amount of SetTokens issued to the caller */ function issueSetForExactETH( ISetToken _setToken, uint256 _minSetReceive ) isSetToken(_setToken) external payable nonReentrant returns(uint256) { require(msg.value > 0, "ExchangeIssuance: INVALID INPUTS"); IWETH(WETH).deposit{value: msg.value}(); uint256 setTokenAmount = _issueSetForExactWETH(_setToken, _minSetReceive, msg.value); emit ExchangeIssue(msg.sender, _setToken, IERC20(ETH_ADDRESS), msg.value, setTokenAmount); return setTokenAmount; } /** * Issues an exact amount of SetTokens for given amount of input ERC20 tokens. * The excess amount of tokens is returned in an equivalent amount of ether. * * @param _setToken Address of the SetToken to be issued * @param _inputToken Address of the input token * @param _amountSetToken Amount of SetTokens to issue * @param _maxAmountInputToken Maximum amount of input tokens to be used to issue SetTokens. The unused * input tokens are returned as ether. * * @return amountEthReturn Amount of ether returned to the caller */ function issueExactSetFromToken( ISetToken _setToken, IERC20 _inputToken, uint256 _amountSetToken, uint256 _maxAmountInputToken ) isSetToken(_setToken) external nonReentrant returns (uint256) { require(_amountSetToken > 0 && _maxAmountInputToken > 0, "ExchangeIssuance: INVALID INPUTS"); _inputToken.safeTransferFrom(msg.sender, address(this), _maxAmountInputToken); uint256 initETHAmount = address(_inputToken) == WETH ? _maxAmountInputToken : _swapTokenForWETH(_inputToken, _maxAmountInputToken); uint256 amountEthSpent = _issueExactSetFromWETH(_setToken, _amountSetToken, initETHAmount); uint256 amountEthReturn = initETHAmount.sub(amountEthSpent); if (amountEthReturn > 0) { IWETH(WETH).withdraw(amountEthReturn); (payable(msg.sender)).sendValue(amountEthReturn); } emit Refund(msg.sender, amountEthReturn); emit ExchangeIssue(msg.sender, _setToken, _inputToken, _maxAmountInputToken, _amountSetToken); return amountEthReturn; } /** * Issues an exact amount of SetTokens using a given amount of ether. * The excess ether is returned back. * * @param _setToken Address of the SetToken being issued * @param _amountSetToken Amount of SetTokens to issue * * @return amountEthReturn Amount of ether returned to the caller */ function issueExactSetFromETH( ISetToken _setToken, uint256 _amountSetToken ) isSetToken(_setToken) external payable nonReentrant returns (uint256) { require(msg.value > 0 && _amountSetToken > 0, "ExchangeIssuance: INVALID INPUTS"); IWETH(WETH).deposit{value: msg.value}(); uint256 amountEth = _issueExactSetFromWETH(_setToken, _amountSetToken, msg.value); uint256 amountEthReturn = msg.value.sub(amountEth); if (amountEthReturn > 0) { IWETH(WETH).withdraw(amountEthReturn); (payable(msg.sender)).sendValue(amountEthReturn); } emit Refund(msg.sender, amountEthReturn); emit ExchangeIssue(msg.sender, _setToken, IERC20(ETH_ADDRESS), amountEth, _amountSetToken); return amountEthReturn; } /** * Redeems an exact amount of SetTokens for an ERC20 token. * The SetToken must be approved by the sender to this contract. * * @param _setToken Address of the SetToken being redeemed * @param _outputToken Address of output token * @param _amountSetToken Amount SetTokens to redeem * @param _minOutputReceive Minimum amount of output token to receive * * @return outputAmount Amount of output tokens sent to the caller */ function redeemExactSetForToken( ISetToken _setToken, IERC20 _outputToken, uint256 _amountSetToken, uint256 _minOutputReceive ) isSetToken(_setToken) external nonReentrant returns (uint256) { require(_amountSetToken > 0, "ExchangeIssuance: INVALID INPUTS"); address[] memory components = _setToken.getComponents(); ( uint256 totalEth, uint256[] memory amountComponents, Exchange[] memory exchanges ) = _getAmountETHForRedemption(_setToken, components, _amountSetToken); uint256 outputAmount; if (address(_outputToken) == WETH) { require(totalEth > _minOutputReceive, "ExchangeIssuance: INSUFFICIENT_OUTPUT_AMOUNT"); _redeemExactSet(_setToken, _amountSetToken); outputAmount = _liquidateComponentsForWETH(components, amountComponents, exchanges); } else { (uint256 totalOutput, Exchange outTokenExchange, ) = _getMaxTokenForExactToken(totalEth, address(WETH), address(_outputToken)); require(totalOutput > _minOutputReceive, "ExchangeIssuance: INSUFFICIENT_OUTPUT_AMOUNT"); _redeemExactSet(_setToken, _amountSetToken); uint256 outputEth = _liquidateComponentsForWETH(components, amountComponents, exchanges); outputAmount = _swapExactTokensForTokens(outTokenExchange, WETH, address(_outputToken), outputEth); } _outputToken.safeTransfer(msg.sender, outputAmount); emit ExchangeRedeem(msg.sender, _setToken, _outputToken, _amountSetToken, outputAmount); return outputAmount; } /** * Redeems an exact amount of SetTokens for ETH. * The SetToken must be approved by the sender to this contract. * * @param _setToken Address of the SetToken to be redeemed * @param _amountSetToken Amount of SetTokens to redeem * @param _minEthOut Minimum amount of ETH to receive * * @return amountEthOut Amount of ether sent to the caller */ function redeemExactSetForETH( ISetToken _setToken, uint256 _amountSetToken, uint256 _minEthOut ) isSetToken(_setToken) external nonReentrant returns (uint256) { require(_amountSetToken > 0, "ExchangeIssuance: INVALID INPUTS"); address[] memory components = _setToken.getComponents(); ( uint256 totalEth, uint256[] memory amountComponents, Exchange[] memory exchanges ) = _getAmountETHForRedemption(_setToken, components, _amountSetToken); require(totalEth > _minEthOut, "ExchangeIssuance: INSUFFICIENT_OUTPUT_AMOUNT"); _redeemExactSet(_setToken, _amountSetToken); uint256 amountEthOut = _liquidateComponentsForWETH(components, amountComponents, exchanges); IWETH(WETH).withdraw(amountEthOut); (payable(msg.sender)).sendValue(amountEthOut); emit ExchangeRedeem(msg.sender, _setToken, IERC20(ETH_ADDRESS), _amountSetToken, amountEthOut); return amountEthOut; } /** * Returns an estimated amount of SetToken that can be issued given an amount of input ERC20 token. * * @param _setToken Address of the SetToken being issued * @param _amountInput Amount of the input token to spend * @param _inputToken Address of input token. * * @return Estimated amount of SetTokens that will be received */ function getEstimatedIssueSetAmount( ISetToken _setToken, IERC20 _inputToken, uint256 _amountInput ) isSetToken(_setToken) external view returns (uint256) { require(_amountInput > 0, "ExchangeIssuance: INVALID INPUTS"); uint256 amountEth; if (address(_inputToken) != WETH) { // get max amount of WETH for the `_amountInput` amount of input tokens (amountEth, , ) = _getMaxTokenForExactToken(_amountInput, address(_inputToken), WETH); } else { amountEth = _amountInput; } address[] memory components = _setToken.getComponents(); (uint256 setIssueAmount, , ) = _getSetIssueAmountForETH(_setToken, components, amountEth); return setIssueAmount; } /** * Returns the amount of input ERC20 tokens required to issue an exact amount of SetTokens. * * @param _setToken Address of the SetToken being issued * @param _amountSetToken Amount of SetTokens to issue * * @return Amount of tokens needed to issue specified amount of SetTokens */ function getAmountInToIssueExactSet( ISetToken _setToken, IERC20 _inputToken, uint256 _amountSetToken ) isSetToken(_setToken) external view returns(uint256) { require(_amountSetToken > 0, "ExchangeIssuance: INVALID INPUTS"); address[] memory components = _setToken.getComponents(); (uint256 totalEth, , , , ) = _getAmountETHForIssuance(_setToken, components, _amountSetToken); if (address(_inputToken) == WETH) { return totalEth; } (uint256 tokenAmount, , ) = _getMinTokenForExactToken(totalEth, address(_inputToken), address(WETH)); return tokenAmount; } /** * Returns amount of output ERC20 tokens received upon redeeming a given amount of SetToken. * * @param _setToken Address of SetToken to be redeemed * @param _amountSetToken Amount of SetToken to be redeemed * @param _outputToken Address of output token * * @return Estimated amount of ether/erc20 that will be received */ function getAmountOutOnRedeemSet( ISetToken _setToken, address _outputToken, uint256 _amountSetToken ) isSetToken(_setToken) external view returns (uint256) { require(_amountSetToken > 0, "ExchangeIssuance: INVALID INPUTS"); address[] memory components = _setToken.getComponents(); (uint256 totalEth, , ) = _getAmountETHForRedemption(_setToken, components, _amountSetToken); if (_outputToken == WETH) { return totalEth; } // get maximum amount of tokens for totalEth amount of ETH (uint256 tokenAmount, , ) = _getMaxTokenForExactToken(totalEth, WETH, _outputToken); return tokenAmount; } /* ============ Internal Functions ============ */ /** * Sets a max approval limit for an ERC20 token, provided the current allowance * is less than the required allownce. * * @param _token Token to approve * @param _spender Spender address to approve */ function _safeApprove(IERC20 _token, address _spender, uint256 _requiredAllowance) internal { uint256 allowance = _token.allowance(address(this), _spender); if (allowance < _requiredAllowance) { _token.safeIncreaseAllowance(_spender, MAX_UINT96 - allowance); } } /** * Issues SetTokens for an exact amount of input WETH. * * @param _setToken Address of the SetToken being issued * @param _minSetReceive Minimum amount of index to receive * @param _totalEthAmount Total amount of WETH to be used to purchase the SetToken components * * @return setTokenAmount Amount of SetTokens issued */ function _issueSetForExactWETH(ISetToken _setToken, uint256 _minSetReceive, uint256 _totalEthAmount) internal returns (uint256) { address[] memory components = _setToken.getComponents(); ( uint256 setIssueAmount, uint256[] memory amountEthIn, Exchange[] memory exchanges ) = _getSetIssueAmountForETH(_setToken, components, _totalEthAmount); require(setIssueAmount > _minSetReceive, "ExchangeIssuance: INSUFFICIENT_OUTPUT_AMOUNT"); for (uint256 i = 0; i < components.length; i++) { _swapExactTokensForTokens(exchanges[i], WETH, components[i], amountEthIn[i]); } basicIssuanceModule.issue(_setToken, setIssueAmount, msg.sender); return setIssueAmount; } /** * Issues an exact amount of SetTokens using WETH. * Acquires SetToken components at the best price accross uniswap and sushiswap. * Uses the acquired components to issue the SetTokens. * * @param _setToken Address of the SetToken being issued * @param _amountSetToken Amount of SetTokens to be issued * @param _maxEther Max amount of ether that can be used to acquire the SetToken components * * @return totalEth Total amount of ether used to acquire the SetToken components */ function _issueExactSetFromWETH(ISetToken _setToken, uint256 _amountSetToken, uint256 _maxEther) internal returns (uint256) { address[] memory components = _setToken.getComponents(); ( uint256 sumEth, , Exchange[] memory exchanges, uint256[] memory amountComponents, ) = _getAmountETHForIssuance(_setToken, components, _amountSetToken); require(sumEth <= _maxEther, "ExchangeIssuance: INSUFFICIENT_INPUT_AMOUNT"); uint256 totalEth = 0; for (uint256 i = 0; i < components.length; i++) { uint256 amountEth = _swapTokensForExactTokens(exchanges[i], WETH, components[i], amountComponents[i]); totalEth = totalEth.add(amountEth); } basicIssuanceModule.issue(_setToken, _amountSetToken, msg.sender); return totalEth; } /** * Redeems a given amount of SetToken. * * @param _setToken Address of the SetToken to be redeemed * @param _amount Amount of SetToken to be redeemed */ function _redeemExactSet(ISetToken _setToken, uint256 _amount) internal returns (uint256) { _setToken.safeTransferFrom(msg.sender, address(this), _amount); basicIssuanceModule.redeem(_setToken, _amount, address(this)); } /** * Liquidates a given list of SetToken components for WETH. * * @param _components An array containing the address of SetToken components * @param _amountComponents An array containing the amount of each SetToken component * @param _exchanges An array containing the exchange on which to liquidate the SetToken component * * @return Total amount of WETH received after liquidating all SetToken components */ function _liquidateComponentsForWETH(address[] memory _components, uint256[] memory _amountComponents, Exchange[] memory _exchanges) internal returns (uint256) { uint256 sumEth = 0; for (uint256 i = 0; i < _components.length; i++) { sumEth = _exchanges[i] == Exchange.None ? sumEth.add(_amountComponents[i]) : sumEth.add(_swapExactTokensForTokens(_exchanges[i], _components[i], WETH, _amountComponents[i])); } return sumEth; } /** * Gets the total amount of ether required for purchasing each component in a SetToken, * to enable the issuance of a given amount of SetTokens. * * @param _setToken Address of the SetToken to be issued * @param _components An array containing the addresses of the SetToken components * @param _amountSetToken Amount of SetToken to be issued * * @return sumEth The total amount of Ether reuired to issue the set * @return amountEthIn An array containing the amount of ether to purchase each component of the SetToken * @return exchanges An array containing the exchange on which to perform the purchase * @return amountComponents An array containing the amount of each SetToken component required for issuing the given * amount of SetToken * @return pairAddresses An array containing the pair addresses of ETH/component exchange pool */ function _getAmountETHForIssuance(ISetToken _setToken, address[] memory _components, uint256 _amountSetToken) internal view returns ( uint256 sumEth, uint256[] memory amountEthIn, Exchange[] memory exchanges, uint256[] memory amountComponents, address[] memory pairAddresses ) { sumEth = 0; amountEthIn = new uint256[](_components.length); amountComponents = new uint256[](_components.length); exchanges = new Exchange[](_components.length); pairAddresses = new address[](_components.length); for (uint256 i = 0; i < _components.length; i++) { // Check that the component does not have external positions require( _setToken.getExternalPositionModules(_components[i]).length == 0, "ExchangeIssuance: EXTERNAL_POSITIONS_NOT_ALLOWED" ); // Get minimum amount of ETH to be spent to acquire the required amount of SetToken component uint256 unit = uint256(_setToken.getDefaultPositionRealUnit(_components[i])); amountComponents[i] = uint256(unit).preciseMulCeil(_amountSetToken); (amountEthIn[i], exchanges[i], pairAddresses[i]) = _getMinTokenForExactToken(amountComponents[i], WETH, _components[i]); sumEth = sumEth.add(amountEthIn[i]); } return (sumEth, amountEthIn, exchanges, amountComponents, pairAddresses); } /** * Gets the total amount of ether returned from liquidating each component in a SetToken. * * @param _setToken Address of the SetToken to be redeemed * @param _components An array containing the addresses of the SetToken components * @param _amountSetToken Amount of SetToken to be redeemed * * @return sumEth The total amount of Ether that would be obtained from liquidating the SetTokens * @return amountComponents An array containing the amount of SetToken component to be liquidated * @return exchanges An array containing the exchange on which to liquidate the SetToken components */ function _getAmountETHForRedemption(ISetToken _setToken, address[] memory _components, uint256 _amountSetToken) internal view returns (uint256, uint256[] memory, Exchange[] memory) { uint256 sumEth = 0; uint256 amountEth = 0; uint256[] memory amountComponents = new uint256[](_components.length); Exchange[] memory exchanges = new Exchange[](_components.length); for (uint256 i = 0; i < _components.length; i++) { // Check that the component does not have external positions require( _setToken.getExternalPositionModules(_components[i]).length == 0, "ExchangeIssuance: EXTERNAL_POSITIONS_NOT_ALLOWED" ); uint256 unit = uint256(_setToken.getDefaultPositionRealUnit(_components[i])); amountComponents[i] = unit.preciseMul(_amountSetToken); // get maximum amount of ETH received for a given amount of SetToken component (amountEth, exchanges[i], ) = _getMaxTokenForExactToken(amountComponents[i], _components[i], WETH); sumEth = sumEth.add(amountEth); } return (sumEth, amountComponents, exchanges); } /** * Returns an estimated amount of SetToken that can be issued given an amount of input ERC20 token. * * @param _setToken Address of the SetToken to be issued * @param _components An array containing the addresses of the SetToken components * @param _amountEth Total amount of ether available for the purchase of SetToken components * * @return setIssueAmount The max amount of SetTokens that can be issued * @return amountEthIn An array containing the amount ether required to purchase each SetToken component * @return exchanges An array containing the exchange on which to purchase the SetToken components */ function _getSetIssueAmountForETH(ISetToken _setToken, address[] memory _components, uint256 _amountEth) internal view returns (uint256 setIssueAmount, uint256[] memory amountEthIn, Exchange[] memory exchanges) { uint256 sumEth; uint256[] memory unitAmountEthIn; uint256[] memory unitAmountComponents; address[] memory pairAddresses; ( sumEth, unitAmountEthIn, exchanges, unitAmountComponents, pairAddresses ) = _getAmountETHForIssuance(_setToken, _components, PreciseUnitMath.preciseUnit()); setIssueAmount = PreciseUnitMath.maxUint256(); amountEthIn = new uint256[](_components.length); for (uint256 i = 0; i < _components.length; i++) { amountEthIn[i] = unitAmountEthIn[i].mul(_amountEth).div(sumEth); uint256 amountComponent; if (exchanges[i] == Exchange.None) { amountComponent = amountEthIn[i]; } else { (uint256 reserveIn, uint256 reserveOut) = UniSushiV2Library.getReserves(pairAddresses[i], WETH, _components[i]); amountComponent = UniSushiV2Library.getAmountOut(amountEthIn[i], reserveIn, reserveOut); } setIssueAmount = Math.min(amountComponent.preciseDiv(unitAmountComponents[i]), setIssueAmount); } return (setIssueAmount, amountEthIn, exchanges); } /** * Swaps a given amount of an ERC20 token for WETH for the best price on Uniswap/Sushiswap. * * @param _token Address of the ERC20 token to be swapped for WETH * @param _amount Amount of ERC20 token to be swapped * * @return Amount of WETH received after the swap */ function _swapTokenForWETH(IERC20 _token, uint256 _amount) internal returns (uint256) { (, Exchange exchange, ) = _getMaxTokenForExactToken(_amount, address(_token), WETH); IUniswapV2Router02 router = _getRouter(exchange); _safeApprove(_token, address(router), _amount); return _swapExactTokensForTokens(exchange, address(_token), WETH, _amount); } /** * Swap exact tokens for another token on a given DEX. * * @param _exchange The exchange on which to peform the swap * @param _tokenIn The address of the input token * @param _tokenOut The address of the output token * @param _amountIn The amount of input token to be spent * * @return The amount of output tokens */ function _swapExactTokensForTokens(Exchange _exchange, address _tokenIn, address _tokenOut, uint256 _amountIn) internal returns (uint256) { if (_tokenIn == _tokenOut) { return _amountIn; } address[] memory path = new address[](2); path[0] = _tokenIn; path[1] = _tokenOut; return _getRouter(_exchange).swapExactTokensForTokens(_amountIn, 0, path, address(this), block.timestamp)[1]; } /** * Swap tokens for exact amount of output tokens on a given DEX. * * @param _exchange The exchange on which to peform the swap * @param _tokenIn The address of the input token * @param _tokenOut The address of the output token * @param _amountOut The amount of output token required * * @return The amount of input tokens spent */ function _swapTokensForExactTokens(Exchange _exchange, address _tokenIn, address _tokenOut, uint256 _amountOut) internal returns (uint256) { if (_tokenIn == _tokenOut) { return _amountOut; } address[] memory path = new address[](2); path[0] = _tokenIn; path[1] = _tokenOut; return _getRouter(_exchange).swapTokensForExactTokens(_amountOut, PreciseUnitMath.maxUint256(), path, address(this), block.timestamp)[0]; } /** * Compares the amount of token required for an exact amount of another token across both exchanges, * and returns the min amount. * * @param _amountOut The amount of output token * @param _tokenA The address of tokenA * @param _tokenB The address of tokenB * * @return The min amount of tokenA required across both exchanges * @return The Exchange on which minimum amount of tokenA is required * @return The pair address of the uniswap/sushiswap pool containing _tokenA and _tokenB */ function _getMinTokenForExactToken(uint256 _amountOut, address _tokenA, address _tokenB) internal view returns (uint256, Exchange, address) { if (_tokenA == _tokenB) { return (_amountOut, Exchange.None, ETH_ADDRESS); } uint256 maxIn = PreciseUnitMath.maxUint256() ; uint256 uniTokenIn = maxIn; uint256 sushiTokenIn = maxIn; address uniswapPair = _getPair(uniFactory, _tokenA, _tokenB); if (uniswapPair != address(0)) { (uint256 reserveIn, uint256 reserveOut) = UniSushiV2Library.getReserves(uniswapPair, _tokenA, _tokenB); // Prevent subtraction overflow by making sure pool reserves are greater than swap amount if (reserveOut > _amountOut) { uniTokenIn = UniSushiV2Library.getAmountIn(_amountOut, reserveIn, reserveOut); } } address sushiswapPair = _getPair(sushiFactory, _tokenA, _tokenB); if (sushiswapPair != address(0)) { (uint256 reserveIn, uint256 reserveOut) = UniSushiV2Library.getReserves(sushiswapPair, _tokenA, _tokenB); // Prevent subtraction overflow by making sure pool reserves are greater than swap amount if (reserveOut > _amountOut) { sushiTokenIn = UniSushiV2Library.getAmountIn(_amountOut, reserveIn, reserveOut); } } // Fails if both the values are maxIn require(!(uniTokenIn == maxIn && sushiTokenIn == maxIn), "ExchangeIssuance: ILLIQUID_SET_COMPONENT"); return (uniTokenIn <= sushiTokenIn) ? (uniTokenIn, Exchange.Uniswap, uniswapPair) : (sushiTokenIn, Exchange.Sushiswap, sushiswapPair); } /** * Compares the amount of token received for an exact amount of another token across both exchanges, * and returns the max amount. * * @param _amountIn The amount of input token * @param _tokenA The address of tokenA * @param _tokenB The address of tokenB * * @return The max amount of tokens that can be received across both exchanges * @return The Exchange on which maximum amount of token can be received * @return The pair address of the uniswap/sushiswap pool containing _tokenA and _tokenB */ function _getMaxTokenForExactToken(uint256 _amountIn, address _tokenA, address _tokenB) internal view returns (uint256, Exchange, address) { if (_tokenA == _tokenB) { return (_amountIn, Exchange.None, ETH_ADDRESS); } uint256 uniTokenOut = 0; uint256 sushiTokenOut = 0; address uniswapPair = _getPair(uniFactory, _tokenA, _tokenB); if(uniswapPair != address(0)) { (uint256 reserveIn, uint256 reserveOut) = UniSushiV2Library.getReserves(uniswapPair, _tokenA, _tokenB); uniTokenOut = UniSushiV2Library.getAmountOut(_amountIn, reserveIn, reserveOut); } address sushiswapPair = _getPair(sushiFactory, _tokenA, _tokenB); if(sushiswapPair != address(0)) { (uint256 reserveIn, uint256 reserveOut) = UniSushiV2Library.getReserves(sushiswapPair, _tokenA, _tokenB); sushiTokenOut = UniSushiV2Library.getAmountOut(_amountIn, reserveIn, reserveOut); } // Fails if both the values are 0 require(!(uniTokenOut == 0 && sushiTokenOut == 0), "ExchangeIssuance: ILLIQUID_SET_COMPONENT"); return (uniTokenOut >= sushiTokenOut) ? (uniTokenOut, Exchange.Uniswap, uniswapPair) : (sushiTokenOut, Exchange.Sushiswap, sushiswapPair); } /** * Returns the pair address for on a given DEX. * * @param _factory The factory to address * @param _tokenA The address of tokenA * @param _tokenB The address of tokenB * * @return The pair address (Note: address(0) is returned by default if the pair is not available on that DEX) */ function _getPair(address _factory, address _tokenA, address _tokenB) internal view returns (address) { return IUniswapV2Factory(_factory).getPair(_tokenA, _tokenB); } /** * Returns the router address of a given exchange. * * @param _exchange The Exchange whose router address is needed * * @return IUniswapV2Router02 router of the given exchange */ function _getRouter(Exchange _exchange) internal view returns(IUniswapV2Router02) { return (_exchange == Exchange.Uniswap) ? uniRouter : sushiRouter; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_uniFactory","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"_uniRouter","type":"address"},{"internalType":"address","name":"_sushiFactory","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"_sushiRouter","type":"address"},{"internalType":"contract IController","name":"_setController","type":"address"},{"internalType":"contract IBasicIssuanceModule","name":"_basicIssuanceModule","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_inputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountInputToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountSetIssued","type":"uint256"}],"name":"ExchangeIssue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"_outputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountSetRedeemed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOutputToken","type":"uint256"}],"name":"ExchangeRedeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_refundAmount","type":"uint256"}],"name":"Refund","type":"event"},{"inputs":[],"name":"ETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"}],"name":"approveSetToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"approveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20[]","name":"_tokens","type":"address[]"}],"name":"approveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basicIssuanceModule","outputs":[{"internalType":"contract IBasicIssuanceModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_inputToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"}],"name":"getAmountInToIssueExactSet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"address","name":"_outputToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"}],"name":"getAmountOutOnRedeemSet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_inputToken","type":"address"},{"internalType":"uint256","name":"_amountInput","type":"uint256"}],"name":"getEstimatedIssueSetAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"}],"name":"issueExactSetFromETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_inputToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"},{"internalType":"uint256","name":"_maxAmountInputToken","type":"uint256"}],"name":"issueExactSetFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"_minSetReceive","type":"uint256"}],"name":"issueSetForExactETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_inputToken","type":"address"},{"internalType":"uint256","name":"_amountInput","type":"uint256"},{"internalType":"uint256","name":"_minSetReceive","type":"uint256"}],"name":"issueSetForExactToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"},{"internalType":"uint256","name":"_minEthOut","type":"uint256"}],"name":"redeemExactSetForETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISetToken","name":"_setToken","type":"address"},{"internalType":"contract IERC20","name":"_outputToken","type":"address"},{"internalType":"uint256","name":"_amountSetToken","type":"uint256"},{"internalType":"uint256","name":"_minOutputReceive","type":"uint256"}],"name":"redeemExactSetForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setController","outputs":[{"internalType":"contract IController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162004a7038038062004a70833981016040819052620000359162000418565b60016000819055606087811b6001600160601b0319908116608052600280546001600160a01b03199081166001600160a01b038b8116919091179283905589851b841660a0526003805483168a831617905587851b841660c0529386901b90921660e05283549091168a831617909255620000e19116620000c162000115602090811b62001a9117901c565b6001546001600160a01b031691906200011b602090811b62001a9717901c565b60035462000108906001600160a01b0316620000c162000115602090811b62001a9117901c565b50505050505050620006f3565b60001990565b801580620001aa5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906200015490309086906004016200051b565b60206040518083038186803b1580156200016d57600080fd5b505afa15801562000182573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a89190620004e4565b155b620001d25760405162461bcd60e51b8152600401620001c9906200064a565b60405180910390fd5b6200022d8363095ea7b360e01b8484604051602401620001f492919062000535565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b03938416179052906200023216565b505050565b60606200028e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620002ce60201b62001b91179092919060201c565b8051909150156200022d5780806020019051810190620002af9190620004c2565b6200022d5760405162461bcd60e51b8152600401620001c99062000600565b6060620002e884846000856001600160e01b03620002f216565b90505b9392505050565b606082471015620003175760405162461bcd60e51b8152600401620001c99062000583565b6200032b856001600160e01b03620003d416565b6200034a5760405162461bcd60e51b8152600401620001c990620005c9565b60006060866001600160a01b03168587604051620003699190620004fd565b60006040518083038185875af1925050503d8060008114620003a8576040519150601f19603f3d011682016040523d82523d6000602084013e620003ad565b606091505b509092509050620003c98282866001600160e01b03620003da16565b979650505050505050565b3b151590565b60608315620003eb575081620002eb565b825115620003fc5782518084602001fd5b8160405162461bcd60e51b8152600401620001c991906200054e565b600080600080600080600060e0888a03121562000433578283fd5b87516200044081620006da565b60208901519097506200045381620006da565b60408901519096506200046681620006da565b60608901519095506200047981620006da565b60808901519094506200048c81620006da565b60a08901519093506200049f81620006da565b60c0890151909250620004b281620006da565b8091505092959891949750929550565b600060208284031215620004d4578081fd5b81518015158114620002eb578182fd5b600060208284031215620004f6578081fd5b5051919050565b6000825162000511818460208701620006a7565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b60006020825282518060208401526200056f816040850160208701620006a7565b601f01601f19169190910160400192915050565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60005b83811015620006c4578181015183820152602001620006aa565b83811115620006d4576000848401525b50505050565b6001600160a01b0381168114620006f057600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6142e16200078f600039806108fb52806109945280611e91528061224b5280612d04525080610398528061067552806109c552806109ec5280610ba05280610d40528061106f528061121952806113cd52806115d352806118b852508061064e52806127fe528061295f52508061092e528061279552806128ff52506142e16000f3fe6080604052600436106101235760003560e01c80639a9f2bbb116100a0578063b0a8acc011610064578063b0a8acc014610300578063b0fa416a14610320578063b7711c6314610340578063d7fa498414610360578063ee9709f6146103805761015d565b80639a9f2bbb1461028e578063a0e47bf6146102a1578063a734f06e146102b6578063ac43070b146102cb578063ad5c4648146102eb5761015d565b806376771d4b116100e757806376771d4b1461020457806380b2edd8146102195780638b2704ec146102395780638c54e4ec1461024e5780638da43bf71461026e5761015d565b806308334bf61461016257806322984b2414610198578063464bc34b146101ba57806350e2c07f146101da5780636d13582c146101ef5761015d565b3661015d576001546001600160a01b0316331461015b5760405162461bcd60e51b815260040161015290613c40565b60405180910390fd5b005b600080fd5b34801561016e57600080fd5b5061018261017d366004613a35565b610393565b60405161018f919061419b565b60405180910390f35b3480156101a457600080fd5b506101ad61064c565b60405161018f9190613b37565b3480156101c657600080fd5b506101826101d53660046139c5565b610670565b3480156101e657600080fd5b506101ad6108f9565b3480156101fb57600080fd5b506101ad61091d565b34801561021057600080fd5b506101ad61092c565b34801561022557600080fd5b5061015b610234366004613955565b610950565b34801561024557600080fd5b506101ad6109c3565b34801561025a57600080fd5b506101826102693660046139b1565b6109e7565b34801561027a57600080fd5b506101826102893660046139b1565b610b9b565b61018261029c366004613a0a565b610d3b565b3480156102ad57600080fd5b506101ad610ff8565b3480156102c257600080fd5b506101ad611007565b3480156102d757600080fd5b5061015b6102e6366004613842565b61101f565b3480156102f757600080fd5b506101ad61105b565b34801561030c57600080fd5b5061018261031b3660046139c5565b61106a565b34801561032c57600080fd5b5061018261033b366004613971565b611214565b34801561034c57600080fd5b5061015b61035b366004613955565b6113b4565b34801561036c57600080fd5b5061018261037b3660046139c5565b6115ce565b61018261038e366004613a0a565b6118b3565b6000837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016103e29190613b37565b60206040518083038186803b1580156103fa57600080fd5b505afa15801561040e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104329190613935565b61044e5760405162461bcd60e51b815260040161015290613d45565b600260005414156104715760405162461bcd60e51b8152600401610152906140c3565b6002600055836104935760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156104ce57600080fd5b505afa1580156104e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261050a91908101906137a1565b9050600060608061051c89858a611baa565b9250925092508683116105415760405162461bcd60e51b815260040161015290613ee6565b61054b8989611e5d565b506000610559858484611f02565b600154604051632e1a7d4d60e01b81529192506001600160a01b031690632e1a7d4d9061058a90849060040161419b565b600060405180830381600087803b1580156105a457600080fd5b505af11580156105b8573d6000803e3d6000fd5b506105cf925033915083905063ffffffff611fde16565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168a6001600160a01b0316336001600160a01b03167f9f8f1a845f52c0a7086f16f355a092a5acf0cca219c831409b9e5b1c39af9f9f8c856040516106329291906141e0565b60405180910390a460016000559998505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016106bf9190613b37565b60206040518083038186803b1580156106d757600080fd5b505afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190613935565b61072b5760405162461bcd60e51b815260040161015290613d45565b6002600054141561074e5760405162461bcd60e51b8152600401610152906140c3565b600260005583158015906107625750600083115b61077e5760405162461bcd60e51b815260040161015290613cc4565b6107996001600160a01b03861633308663ffffffff61207a16565b6001546000906001600160a01b038781169116146107c0576107bb868561209b565b6107c2565b835b905060006107d18887846120fa565b905060006107e5838363ffffffff6122c316565b9050801561086257600154604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d9061081d90849060040161419b565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b50610862925033915083905063ffffffff611fde16565b336001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d8260405161089b919061419b565b60405180910390a2876001600160a01b0316896001600160a01b0316336001600160a01b031660008051602061428c833981519152898b6040516108e09291906141e0565b60405180910390a4600160005598975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6003546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025461096f9082906001600160a01b03166001600160601b03612305565b60035461098e9082906001600160a01b03166001600160601b03612305565b6109c0817f00000000000000000000000000000000000000000000000000000000000000006001600160601b03612305565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610a369190613b37565b60206040518083038186803b158015610a4e57600080fd5b505afa158015610a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a869190613935565b610aa25760405162461bcd60e51b815260040161015290613d45565b60008311610ac25760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610afd57600080fd5b505afa158015610b11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b3991908101906137a1565b90506000610b488783876123b4565b505060015492935050506001600160a01b0387811691161415610b6e579250610b939050565b600154600090610b8a90839089906001600160a01b031661273f565b50909550505050505b509392505050565b6000837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610bea9190613b37565b60206040518083038186803b158015610c0257600080fd5b505afa158015610c16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a9190613935565b610c565760405162461bcd60e51b815260040161015290613d45565b60008311610c765760405162461bcd60e51b815260040161015290613cc4565b6001546000906001600160a01b03868116911614610cb257600154610ca790859087906001600160a01b03166128b5565b50909150610cb59050565b50825b6060866001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cf057600080fd5b505afa158015610d04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d2c91908101906137a1565b90506000610b8a888385612a0a565b6000827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610d8a9190613b37565b60206040518083038186803b158015610da257600080fd5b505afa158015610db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dda9190613935565b610df65760405162461bcd60e51b815260040161015290613d45565b60026000541415610e195760405162461bcd60e51b8152600401610152906140c3565b60026000553415801590610e2d5750600083115b610e495760405162461bcd60e51b815260040161015290613cc4565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610e9957600080fd5b505af1158015610ead573d6000803e3d6000fd5b50505050506000610ebf8585346120fa565b90506000610ed3348363ffffffff6122c316565b90508015610f5057600154604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d90610f0b90849060040161419b565b600060405180830381600087803b158015610f2557600080fd5b505af1158015610f39573d6000803e3d6000fd5b50610f50925033915083905063ffffffff611fde16565b336001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d82604051610f89919061419b565b60405180910390a273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316866001600160a01b0316336001600160a01b031660008051602061428c8339815191528589604051610fe29291906141e0565b60405180910390a4600160005595945050505050565b6002546001600160a01b031681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b60005b818110156110565761104e83838381811061103957fe5b90506020020160208101906102349190613955565b600101611022565b505050565b6001546001600160a01b031681565b6000847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016110b99190613b37565b60206040518083038186803b1580156110d157600080fd5b505afa1580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190613935565b6111255760405162461bcd60e51b815260040161015290613d45565b600260005414156111485760405162461bcd60e51b8152600401610152906140c3565b60026000558361116a5760405162461bcd60e51b815260040161015290613cc4565b6111856001600160a01b03861633308763ffffffff61207a16565b6001546000906001600160a01b038781169116146111ac576111a7868661209b565b6111ae565b845b905060006111bd888684612bda565b9050866001600160a01b0316886001600160a01b0316336001600160a01b031660008051602061428c83398151915289856040516111fc9291906141e0565b60405180910390a46001600055979650505050505050565b6000837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016112639190613b37565b60206040518083038186803b15801561127b57600080fd5b505afa15801561128f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b39190613935565b6112cf5760405162461bcd60e51b815260040161015290613d45565b600083116112ef5760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561132a57600080fd5b505afa15801561133e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136691908101906137a1565b90506000611375878387611baa565b50506001549091506001600160a01b0387811691161415611399579250610b939050565b600154600090610b8a9083906001600160a01b0316896128b5565b604051631d3af8fb60e21b815281906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906374ebe3ec90611402908490600401613b37565b60206040518083038186803b15801561141a57600080fd5b505afa15801561142e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114529190613935565b61146e5760405162461bcd60e51b815260040161015290613d45565b6060826001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114e591908101906137a1565b905060005b81518110156115c857836001600160a01b031663a7bdad0383838151811061150e57fe5b60200260200101516040518263ffffffff1660e01b81526004016115329190613b37565b60006040518083038186803b15801561154a57600080fd5b505afa15801561155e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261158691908101906137a1565b51156115a45760405162461bcd60e51b815260040161015290613f7a565b6115c08282815181106115b357fe5b6020026020010151610950565b6001016114ea565b50505050565b6000847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b815260040161161d9190613b37565b60206040518083038186803b15801561163557600080fd5b505afa158015611649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166d9190613935565b6116895760405162461bcd60e51b815260040161015290613d45565b600260005414156116ac5760405162461bcd60e51b8152600401610152906140c3565b6002600055836116ce5760405162461bcd60e51b815260040161015290613cc4565b6060866001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261174591908101906137a1565b905060006060806117578a858a611baa565b60015492955090935091506000906001600160a01b038b8116911614156117b4578784116117975760405162461bcd60e51b815260040161015290613ee6565b6117a18b8a611e5d565b506117ad858484611f02565b905061182f565b60015460009081906117d19087906001600160a01b03168e6128b5565b50915091508982116117f55760405162461bcd60e51b815260040161015290613ee6565b6117ff8d8c611e5d565b50600061180d888787611f02565b6001549091506118299083906001600160a01b03168f84612d7b565b93505050505b6118496001600160a01b038b16338363ffffffff612ecd16565b896001600160a01b03168b6001600160a01b0316336001600160a01b03167f9f8f1a845f52c0a7086f16f355a092a5acf0cca219c831409b9e5b1c39af9f9f8c856040516118989291906141e0565b60405180910390a460016000559a9950505050505050505050565b6000827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016119029190613b37565b60206040518083038186803b15801561191a57600080fd5b505afa15801561192e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119529190613935565b61196e5760405162461bcd60e51b815260040161015290613d45565b600260005414156119915760405162461bcd60e51b8152600401610152906140c3565b6002600055346119b35760405162461bcd60e51b815260040161015290613cc4565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b50505050506000611a29858534612bda565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316856001600160a01b0316336001600160a01b031660008051602061428c8339815191523485604051611a7c9291906141e0565b60405180910390a46001600055949350505050565b60001990565b801580611b1f5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611acd9030908690600401613b4b565b60206040518083038186803b158015611ae557600080fd5b505afa158015611af9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1d9190613a69565b155b611b3b5760405162461bcd60e51b815260040161015290614145565b6110568363095ea7b360e01b8484604051602401611b5a929190613b89565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612eec565b6060611ba08484600085612f7b565b90505b9392505050565b6000606080600080905060008090506060875167ffffffffffffffff81118015611bd357600080fd5b50604051908082528060200260200182016040528015611bfd578160200160208202803683370190505b5090506060885167ffffffffffffffff81118015611c1a57600080fd5b50604051908082528060200260200182016040528015611c44578160200160208202803683370190505b50905060005b8951811015611e49578a6001600160a01b031663a7bdad038b8381518110611c6e57fe5b60200260200101516040518263ffffffff1660e01b8152600401611c929190613b37565b60006040518083038186803b158015611caa57600080fd5b505afa158015611cbe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ce691908101906137a1565b5115611d045760405162461bcd60e51b815260040161015290613f7a565b60008b6001600160a01b03166366cb8d2f8c8481518110611d2157fe5b60200260200101516040518263ffffffff1660e01b8152600401611d459190613b37565b60206040518083038186803b158015611d5d57600080fd5b505afa158015611d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d959190613a69565b9050611da7818b63ffffffff61303c16565b848381518110611db357fe5b602002602001018181525050611dfe848381518110611dce57fe5b60200260200101518c8481518110611de257fe5b60209081029190910101516001546001600160a01b03166128b5565b50848481518110611e0b57fe5b60200260200101816002811115611e1e57fe5b6002811115611e2957fe5b9052509450611e3e868663ffffffff61305a16565b955050600101611c4a565b509295509350909150505b93509350939050565b6000611e7a6001600160a01b03841633308563ffffffff61207a16565b604051635c833bfd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635c833bfd90611eca90869086903090600401613ba2565b600060405180830381600087803b158015611ee457600080fd5b505af1158015611ef8573d6000803e3d6000fd5b5050505092915050565b600080805b8551811015611fd5576002848281518110611f1e57fe5b60200260200101516002811115611f3157fe5b14611fa557611fa0611f93858381518110611f4857fe5b6020026020010151888481518110611f5c57fe5b6020026020010151600160009054906101000a90046001600160a01b0316898681518110611f8657fe5b6020026020010151612d7b565b839063ffffffff61305a16565b611fcb565b611fcb858281518110611fb457fe5b60200260200101518361305a90919063ffffffff16565b9150600101611f07565b50949350505050565b80471015611ffe5760405162461bcd60e51b815260040161015290613e1e565b6000826001600160a01b03168260405161201790613b34565b60006040518083038185875af1925050503d8060008114612054576040519150601f19603f3d011682016040523d82523d6000602084013e612059565b606091505b50509050806110565760405162461bcd60e51b815260040161015290613dc1565b6115c8846323b872dd60e01b858585604051602401611b5a93929190613b65565b60015460009081906120b990849086906001600160a01b03166128b5565b5091505060006120c88261307f565b90506120d5858286612305565b6001546120ef90839087906001600160a01b031687612d7b565b925050505b92915050565b60006060846001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561213757600080fd5b505afa15801561214b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261217391908101906137a1565b905060006060806121858885896123b4565b5093509350509250858311156121ad5760405162461bcd60e51b815260040161015290613e9b565b6000805b85518110156122335760006122168583815181106121cb57fe5b6020026020010151600160009054906101000a90046001600160a01b03168985815181106121f557fe5b602002602001015187868151811061220957fe5b60200260200101516130b5565b9050612228838263ffffffff61305a16565b9250506001016121b1565b506040516336bc7a3d60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636d78f47a90612284908c908c903390600401613ba2565b600060405180830381600087803b15801561229e57600080fd5b505af11580156122b2573d6000803e3d6000fd5b50929b9a5050505050505050505050565b6000611ba383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131f9565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e906123369030908790600401613b4b565b60206040518083038186803b15801561234e57600080fd5b505afa158015612362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123869190613a69565b9050818110156115c8576115c86001600160a01b038516846001600160601b0384900363ffffffff61322516565b600060608060608060009450865167ffffffffffffffff811180156123d857600080fd5b50604051908082528060200260200182016040528015612402578160200160208202803683370190505b509350865167ffffffffffffffff8111801561241d57600080fd5b50604051908082528060200260200182016040528015612447578160200160208202803683370190505b509150865167ffffffffffffffff8111801561246257600080fd5b5060405190808252806020026020018201604052801561248c578160200160208202803683370190505b509250865167ffffffffffffffff811180156124a757600080fd5b506040519080825280602002602001820160405280156124d1578160200160208202803683370190505b50905060005b875181101561273357886001600160a01b031663a7bdad038983815181106124fb57fe5b60200260200101516040518263ffffffff1660e01b815260040161251f9190613b37565b60006040518083038186803b15801561253757600080fd5b505afa15801561254b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261257391908101906137a1565b51156125915760405162461bcd60e51b815260040161015290613f7a565b6000896001600160a01b03166366cb8d2f8a84815181106125ae57fe5b60200260200101516040518263ffffffff1660e01b81526004016125d29190613b37565b60206040518083038186803b1580156125ea57600080fd5b505afa1580156125fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126229190613a69565b9050612634818963ffffffff6132d616565b84838151811061264057fe5b60200260200101818152505061269284838151811061265b57fe5b6020026020010151600160009054906101000a90046001600160a01b03168b858151811061268557fe5b602002602001015161273f565b88858151811061269e57fe5b602002602001018886815181106126b157fe5b602002602001018787815181106126c457fe5b60200260200101836001600160a01b03166001600160a01b03168152508360028111156126ed57fe5b60028111156126f857fe5b8152508381525050505061272886838151811061271157fe5b60200260200101518861305a90919063ffffffff16565b9650506001016124d7565b50939792965093509350565b6000806000836001600160a01b0316856001600160a01b0316141561278057508491506002905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee611e54565b600061278a611a91565b9050808060006127bb7f00000000000000000000000000000000000000000000000000000000000000008a8a613321565b90506001600160a01b038116156127f7576000806127da838c8c6133a2565b915091508b8111156127f4576127f18c8383613471565b94505b50505b60006128247f00000000000000000000000000000000000000000000000000000000000000008b8b613321565b90506001600160a01b0381161561286057600080612843838d8d6133a2565b915091508c81111561285d5761285a8d8383613471565b94505b50505b848414801561286e57508483145b1561288b5760405162461bcd60e51b815260040161015290613bf8565b8284111561289c57826001826128a1565b836000835b975097509750505050505093509350939050565b6000806000836001600160a01b0316856001600160a01b031614156128f657508491506002905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee611e54565b600080806129257f00000000000000000000000000000000000000000000000000000000000000008989613321565b90506001600160a01b0381161561295857600080612944838b8b6133a2565b915091506129538b8383613523565b945050505b60006129857f00000000000000000000000000000000000000000000000000000000000000008a8a613321565b90506001600160a01b038116156129b8576000806129a4838c8c6133a2565b915091506129b38c8383613523565b945050505b831580156129c4575082155b156129e15760405162461bcd60e51b815260040161015290613bf8565b828410156129f257826001826129f7565b836000835b9650965096505050505093509350939050565b600060608060006060806060612a288a8a612a236135c9565b6123b4565b9198509296509094509092509050612a3e611a91565b9650885167ffffffffffffffff81118015612a5857600080fd5b50604051908082528060200260200182016040528015612a82578160200160208202803683370190505b50955060005b8951811015612bcc57612ac785612abb8b878581518110612aa557fe5b60200260200101516135d590919063ffffffff16565b9063ffffffff61360f16565b878281518110612ad357fe5b602090810291909101015260006002878381518110612aee57fe5b60200260200101516002811115612b0157fe5b1415612b2257878281518110612b1357fe5b60200260200101519050612b92565b600080612b6b858581518110612b3457fe5b6020026020010151600160009054906101000a90046001600160a01b03168f8781518110612b5e57fe5b60200260200101516133a2565b91509150612b8d8a8581518110612b7e57fe5b60200260200101518383613523565b925050505b612bc1612bbb858481518110612ba457fe5b60200260200101518361365190919063ffffffff16565b8a61366f565b985050600101612a88565b505050505093509350939050565b60006060846001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c5391908101906137a1565b90506000606080612c65888588612a0a565b925092509250868311612c8a5760405162461bcd60e51b815260040161015290613ee6565b60005b8451811015612cec57612ce3828281518110612ca557fe5b6020026020010151600160009054906101000a90046001600160a01b0316878481518110612ccf57fe5b6020026020010151868581518110611f8657fe5b50600101612c8d565b506040516336bc7a3d60e11b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636d78f47a90612d3d908b9087903390600401613ba2565b600060405180830381600087803b158015612d5757600080fd5b505af1158015612d6b573d6000803e3d6000fd5b50949a9950505050505050505050565b6000826001600160a01b0316846001600160a01b03161415612d9e575080612ec5565b60408051600280825260608083018452926020830190803683370190505090508481600081518110612dcc57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508381600181518110612dfa57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612e238661307f565b6001600160a01b03166338ed17398460008430426040518663ffffffff1660e01b8152600401612e579594939291906141a4565b600060405180830381600087803b158015612e7157600080fd5b505af1158015612e85573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ead91908101906138ae565b600181518110612eb957fe5b60200260200101519150505b949350505050565b6110568363a9059cbb60e01b8484604051602401611b5a929190613b89565b6060612f41826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b919092919063ffffffff16565b8051909150156110565780806020019051810190612f5f9190613935565b6110565760405162461bcd60e51b815260040161015290614079565b606082471015612f9d5760405162461bcd60e51b815260040161015290613e55565b612fa685613685565b612fc25760405162461bcd60e51b81526004016101529061400b565b60006060866001600160a01b03168587604051612fdf9190613b18565b60006040518083038185875af1925050503d806000811461301c576040519150601f19603f3d011682016040523d82523d6000602084013e613021565b606091505b509150915061303182828661368b565b979650505050505050565b6000611ba3670de0b6b3a7640000612abb858563ffffffff6135d516565b600082820183811015611ba35760405162461bcd60e51b815260040161015290613c8d565b60008082600281111561308e57fe5b146130a4576003546001600160a01b03166120f4565b50506002546001600160a01b031690565b6000826001600160a01b0316846001600160a01b031614156130d8575080612ec5565b6040805160028082526060808301845292602083019080368337019050509050848160008151811061310657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061313457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061315d8661307f565b6001600160a01b0316638803dbee84613174611a91565b8430426040518663ffffffff1660e01b81526004016131979594939291906141a4565b600060405180830381600087803b1580156131b157600080fd5b505af11580156131c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131ed91908101906138ae565b600081518110612eb957fe5b6000818484111561321d5760405162461bcd60e51b81526004016101529190613bc5565b505050900390565b60006132b582856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401613259929190613b4b565b60206040518083038186803b15801561327157600080fd5b505afa158015613285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132a99190613a69565b9063ffffffff61305a16565b90506115c88463095ea7b360e01b8584604051602401611b5a929190613b89565b60008215806132e3575081155b156132f0575060006120f4565b611ba360016132a9670de0b6b3a7640000612abb83613315898963ffffffff6135d516565b9063ffffffff6122c316565b60405163e6a4390560e01b81526000906001600160a01b0385169063e6a43905906133529086908690600401613b4b565b60206040518083038186803b15801561336a57600080fd5b505afa15801561337e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba09190613785565b60008060006133b185856136c4565b509050600080876001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156133f057600080fd5b505afa158015613404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134289190613a81565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b03161461345f578082613462565b81815b90999098509650505050505050565b60008084116134925760405162461bcd60e51b815260040161015290613cf9565b6000831180156134a25750600082115b6134be5760405162461bcd60e51b815260040161015290613f32565b60006134e26103e86134d6868863ffffffff6135d516565b9063ffffffff6135d516565b905060006134fc6103e56134d6868963ffffffff6122c316565b9050613519600182848161350c57fe5b049063ffffffff61305a16565b9695505050505050565b60008084116135445760405162461bcd60e51b8152600401610152906140fa565b6000831180156135545750600082115b6135705760405162461bcd60e51b815260040161015290613f32565b6000613584856103e563ffffffff6135d516565b90506000613598828563ffffffff6135d516565b905060006135b2836132a9886103e863ffffffff6135d516565b90508082816135bd57fe5b04979650505050505050565b670de0b6b3a764000090565b6000826135e4575060006120f4565b828202828482816135f157fe5b0414611ba35760405162461bcd60e51b815260040161015290613fca565b6000611ba383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061374e565b6000611ba382612abb85670de0b6b3a764000063ffffffff6135d516565b600081831061367e5781611ba3565b5090919050565b3b151590565b6060831561369a575081611ba3565b8251156136aa5782518084602001fd5b8160405162461bcd60e51b81526004016101529190613bc5565b600080826001600160a01b0316846001600160a01b031614156136f95760405162461bcd60e51b815260040161015290613d7c565b826001600160a01b0316846001600160a01b03161061371957828461371c565b83835b90925090506001600160a01b0382166137475760405162461bcd60e51b815260040161015290614042565b9250929050565b6000818361376f5760405162461bcd60e51b81526004016101529190613bc5565b50600083858161377b57fe5b0495945050505050565b600060208284031215613796578081fd5b8151611ba381614261565b600060208083850312156137b3578182fd5b825167ffffffffffffffff8111156137c9578283fd5b80840185601f8201126137da578384fd5b805191506137ef6137ea83614215565b6141ee565b828152838101908285018585028401860189101561380b578687fd5b8693505b8484101561383657805161382281614261565b83526001939093019291850191850161380f565b50979650505050505050565b60008060208385031215613854578081fd5b823567ffffffffffffffff8082111561386b578283fd5b81850186601f82011261387c578384fd5b803592508183111561388c578384fd5b866020808502830101111561389f578384fd5b60200196919550909350505050565b600060208083850312156138c0578182fd5b825167ffffffffffffffff8111156138d6578283fd5b80840185601f8201126138e7578384fd5b805191506138f76137ea83614215565b8281528381019082850185850284018601891015613913578687fd5b8693505b84841015613836578051835260019390930192918501918501613917565b600060208284031215613946578081fd5b81518015158114611ba3578182fd5b600060208284031215613966578081fd5b8135611ba381614261565b600080600060608486031215613985578081fd5b833561399081614261565b925060208401356139a081614261565b929592945050506040919091013590565b600080600060608486031215613985578283fd5b600080600080608085870312156139da578081fd5b84356139e581614261565b935060208501356139f581614261565b93969395505050506040820135916060013590565b60008060408385031215613a1c578182fd5b8235613a2781614261565b946020939093013593505050565b600080600060608486031215613a49578081fd5b8335613a5481614261565b95602085013595506040909401359392505050565b600060208284031215613a7a578081fd5b5051919050565b600080600060608486031215613a95578081fd5b8351613aa081614276565b6020850151909350613ab181614276565b604085015190925063ffffffff81168114613aca578182fd5b809150509250925092565b6000815180845260208085019450808401835b83811015613b0d5781516001600160a01b031687529582019590820190600101613ae8565b509495945050505050565b60008251613b2a818460208701614235565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6000602082528251806020840152613be4816040850160208701614235565b601f01601f19169190910160400192915050565b60208082526028908201527f45786368616e676549737375616e63653a20494c4c49515549445f5345545f4360408201526713d35413d391539560c21b606082015260800190565b6020808252602d908201527f45786368616e676549737375616e63653a20446972656374206465706f73697460408201526c1cc81b9bdd08185b1b1bddd959609a1b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f45786368616e676549737375616e63653a20494e56414c494420494e50555453604082015260600190565b6020808252602c908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4f60408201526b155514155517d05353d5539560a21b606082015260800190565b6020808252601d908201527f45786368616e676549737375616e63653a20494e56414c494420534554000000604082015260600190565b60208082526025908201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604082015264455353455360d81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602b908201527f45786368616e676549737375616e63653a20494e53554646494349454e545f4960408201526a1394155517d05353d5539560aa1b606082015260800190565b6020808252602c908201527f45786368616e676549737375616e63653a20494e53554646494349454e545f4f60408201526b155514155517d05353d5539560a21b606082015260800190565b60208082526028908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c604082015267495155494449545960c01b606082015260800190565b60208082526030908201527f45786368616e676549737375616e63653a2045585445524e414c5f504f53495460408201526f1253d394d7d393d517d0531313d5d15160821b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601e908201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602b908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960408201526a1394155517d05353d5539560aa1b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b600086825285602083015260a060408301526141c360a0830186613ad5565b6001600160a01b0394909416606083015250608001529392505050565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561420d57600080fd5b604052919050565b600067ffffffffffffffff82111561422b578081fd5b5060209081020190565b60005b83811015614250578181015183820152602001614238565b838111156115c85750506000910152565b6001600160a01b03811681146109c057600080fd5b6001600160701b03811681146109c057600080fdfe44b3b16472a909f781f712646232271ffd156fff642d4895b700146a40462601a2646970667358221220ffff6e48cf35ef642ea96ce61bca2da5eb59481b11dc3cb857414c16f5288f0364736f6c634300060a0033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a349000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94dDeployed Bytecode
0x6080604052600436106101235760003560e01c80639a9f2bbb116100a0578063b0a8acc011610064578063b0a8acc014610300578063b0fa416a14610320578063b7711c6314610340578063d7fa498414610360578063ee9709f6146103805761015d565b80639a9f2bbb1461028e578063a0e47bf6146102a1578063a734f06e146102b6578063ac43070b146102cb578063ad5c4648146102eb5761015d565b806376771d4b116100e757806376771d4b1461020457806380b2edd8146102195780638b2704ec146102395780638c54e4ec1461024e5780638da43bf71461026e5761015d565b806308334bf61461016257806322984b2414610198578063464bc34b146101ba57806350e2c07f146101da5780636d13582c146101ef5761015d565b3661015d576001546001600160a01b0316331461015b5760405162461bcd60e51b815260040161015290613c40565b60405180910390fd5b005b600080fd5b34801561016e57600080fd5b5061018261017d366004613a35565b610393565b60405161018f919061419b565b60405180910390f35b3480156101a457600080fd5b506101ad61064c565b60405161018f9190613b37565b3480156101c657600080fd5b506101826101d53660046139c5565b610670565b3480156101e657600080fd5b506101ad6108f9565b3480156101fb57600080fd5b506101ad61091d565b34801561021057600080fd5b506101ad61092c565b34801561022557600080fd5b5061015b610234366004613955565b610950565b34801561024557600080fd5b506101ad6109c3565b34801561025a57600080fd5b506101826102693660046139b1565b6109e7565b34801561027a57600080fd5b506101826102893660046139b1565b610b9b565b61018261029c366004613a0a565b610d3b565b3480156102ad57600080fd5b506101ad610ff8565b3480156102c257600080fd5b506101ad611007565b3480156102d757600080fd5b5061015b6102e6366004613842565b61101f565b3480156102f757600080fd5b506101ad61105b565b34801561030c57600080fd5b5061018261031b3660046139c5565b61106a565b34801561032c57600080fd5b5061018261033b366004613971565b611214565b34801561034c57600080fd5b5061015b61035b366004613955565b6113b4565b34801561036c57600080fd5b5061018261037b3660046139c5565b6115ce565b61018261038e366004613a0a565b6118b3565b6000837f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016103e29190613b37565b60206040518083038186803b1580156103fa57600080fd5b505afa15801561040e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104329190613935565b61044e5760405162461bcd60e51b815260040161015290613d45565b600260005414156104715760405162461bcd60e51b8152600401610152906140c3565b6002600055836104935760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156104ce57600080fd5b505afa1580156104e2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261050a91908101906137a1565b9050600060608061051c89858a611baa565b9250925092508683116105415760405162461bcd60e51b815260040161015290613ee6565b61054b8989611e5d565b506000610559858484611f02565b600154604051632e1a7d4d60e01b81529192506001600160a01b031690632e1a7d4d9061058a90849060040161419b565b600060405180830381600087803b1580156105a457600080fd5b505af11580156105b8573d6000803e3d6000fd5b506105cf925033915083905063ffffffff611fde16565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b03168a6001600160a01b0316336001600160a01b03167f9f8f1a845f52c0a7086f16f355a092a5acf0cca219c831409b9e5b1c39af9f9f8c856040516106329291906141e0565b60405180910390a460016000559998505050505050505050565b7f000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac81565b6000847f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016106bf9190613b37565b60206040518083038186803b1580156106d757600080fd5b505afa1580156106eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070f9190613935565b61072b5760405162461bcd60e51b815260040161015290613d45565b6002600054141561074e5760405162461bcd60e51b8152600401610152906140c3565b600260005583158015906107625750600083115b61077e5760405162461bcd60e51b815260040161015290613cc4565b6107996001600160a01b03861633308663ffffffff61207a16565b6001546000906001600160a01b038781169116146107c0576107bb868561209b565b6107c2565b835b905060006107d18887846120fa565b905060006107e5838363ffffffff6122c316565b9050801561086257600154604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d9061081d90849060040161419b565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b50610862925033915083905063ffffffff611fde16565b336001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d8260405161089b919061419b565b60405180910390a2876001600160a01b0316896001600160a01b0316336001600160a01b031660008051602061428c833981519152898b6040516108e09291906141e0565b60405180910390a4600160005598975050505050505050565b7f000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d81565b6003546001600160a01b031681565b7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b60025461096f9082906001600160a01b03166001600160601b03612305565b60035461098e9082906001600160a01b03166001600160601b03612305565b6109c0817f000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d6001600160601b03612305565b50565b7f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a34981565b6000837f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610a369190613b37565b60206040518083038186803b158015610a4e57600080fd5b505afa158015610a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a869190613935565b610aa25760405162461bcd60e51b815260040161015290613d45565b60008311610ac25760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610afd57600080fd5b505afa158015610b11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b3991908101906137a1565b90506000610b488783876123b4565b505060015492935050506001600160a01b0387811691161415610b6e579250610b939050565b600154600090610b8a90839089906001600160a01b031661273f565b50909550505050505b509392505050565b6000837f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610bea9190613b37565b60206040518083038186803b158015610c0257600080fd5b505afa158015610c16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3a9190613935565b610c565760405162461bcd60e51b815260040161015290613d45565b60008311610c765760405162461bcd60e51b815260040161015290613cc4565b6001546000906001600160a01b03868116911614610cb257600154610ca790859087906001600160a01b03166128b5565b50909150610cb59050565b50825b6060866001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cf057600080fd5b505afa158015610d04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d2c91908101906137a1565b90506000610b8a888385612a0a565b6000827f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b8152600401610d8a9190613b37565b60206040518083038186803b158015610da257600080fd5b505afa158015610db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dda9190613935565b610df65760405162461bcd60e51b815260040161015290613d45565b60026000541415610e195760405162461bcd60e51b8152600401610152906140c3565b60026000553415801590610e2d5750600083115b610e495760405162461bcd60e51b815260040161015290613cc4565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610e9957600080fd5b505af1158015610ead573d6000803e3d6000fd5b50505050506000610ebf8585346120fa565b90506000610ed3348363ffffffff6122c316565b90508015610f5057600154604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d90610f0b90849060040161419b565b600060405180830381600087803b158015610f2557600080fd5b505af1158015610f39573d6000803e3d6000fd5b50610f50925033915083905063ffffffff611fde16565b336001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d82604051610f89919061419b565b60405180910390a273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316866001600160a01b0316336001600160a01b031660008051602061428c8339815191528589604051610fe29291906141e0565b60405180910390a4600160005595945050505050565b6002546001600160a01b031681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b60005b818110156110565761104e83838381811061103957fe5b90506020020160208101906102349190613955565b600101611022565b505050565b6001546001600160a01b031681565b6000847f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016110b99190613b37565b60206040518083038186803b1580156110d157600080fd5b505afa1580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190613935565b6111255760405162461bcd60e51b815260040161015290613d45565b600260005414156111485760405162461bcd60e51b8152600401610152906140c3565b60026000558361116a5760405162461bcd60e51b815260040161015290613cc4565b6111856001600160a01b03861633308763ffffffff61207a16565b6001546000906001600160a01b038781169116146111ac576111a7868661209b565b6111ae565b845b905060006111bd888684612bda565b9050866001600160a01b0316886001600160a01b0316336001600160a01b031660008051602061428c83398151915289856040516111fc9291906141e0565b60405180910390a46001600055979650505050505050565b6000837f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016112639190613b37565b60206040518083038186803b15801561127b57600080fd5b505afa15801561128f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b39190613935565b6112cf5760405162461bcd60e51b815260040161015290613d45565b600083116112ef5760405162461bcd60e51b815260040161015290613cc4565b6060856001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561132a57600080fd5b505afa15801561133e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136691908101906137a1565b90506000611375878387611baa565b50506001549091506001600160a01b0387811691161415611399579250610b939050565b600154600090610b8a9083906001600160a01b0316896128b5565b604051631d3af8fb60e21b815281906001600160a01b037f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a34916906374ebe3ec90611402908490600401613b37565b60206040518083038186803b15801561141a57600080fd5b505afa15801561142e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114529190613935565b61146e5760405162461bcd60e51b815260040161015290613d45565b6060826001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114e591908101906137a1565b905060005b81518110156115c857836001600160a01b031663a7bdad0383838151811061150e57fe5b60200260200101516040518263ffffffff1660e01b81526004016115329190613b37565b60006040518083038186803b15801561154a57600080fd5b505afa15801561155e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261158691908101906137a1565b51156115a45760405162461bcd60e51b815260040161015290613f7a565b6115c08282815181106115b357fe5b6020026020010151610950565b6001016114ea565b50505050565b6000847f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b815260040161161d9190613b37565b60206040518083038186803b15801561163557600080fd5b505afa158015611649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166d9190613935565b6116895760405162461bcd60e51b815260040161015290613d45565b600260005414156116ac5760405162461bcd60e51b8152600401610152906140c3565b6002600055836116ce5760405162461bcd60e51b815260040161015290613cc4565b6060866001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261174591908101906137a1565b905060006060806117578a858a611baa565b60015492955090935091506000906001600160a01b038b8116911614156117b4578784116117975760405162461bcd60e51b815260040161015290613ee6565b6117a18b8a611e5d565b506117ad858484611f02565b905061182f565b60015460009081906117d19087906001600160a01b03168e6128b5565b50915091508982116117f55760405162461bcd60e51b815260040161015290613ee6565b6117ff8d8c611e5d565b50600061180d888787611f02565b6001549091506118299083906001600160a01b03168f84612d7b565b93505050505b6118496001600160a01b038b16338363ffffffff612ecd16565b896001600160a01b03168b6001600160a01b0316336001600160a01b03167f9f8f1a845f52c0a7086f16f355a092a5acf0cca219c831409b9e5b1c39af9f9f8c856040516118989291906141e0565b60405180910390a460016000559a9950505050505050505050565b6000827f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a3496001600160a01b03166374ebe3ec826040518263ffffffff1660e01b81526004016119029190613b37565b60206040518083038186803b15801561191a57600080fd5b505afa15801561192e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119529190613935565b61196e5760405162461bcd60e51b815260040161015290613d45565b600260005414156119915760405162461bcd60e51b8152600401610152906140c3565b6002600055346119b35760405162461bcd60e51b815260040161015290613cc4565b600160009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a0357600080fd5b505af1158015611a17573d6000803e3d6000fd5b50505050506000611a29858534612bda565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316856001600160a01b0316336001600160a01b031660008051602061428c8339815191523485604051611a7c9291906141e0565b60405180910390a46001600055949350505050565b60001990565b801580611b1f5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611acd9030908690600401613b4b565b60206040518083038186803b158015611ae557600080fd5b505afa158015611af9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1d9190613a69565b155b611b3b5760405162461bcd60e51b815260040161015290614145565b6110568363095ea7b360e01b8484604051602401611b5a929190613b89565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612eec565b6060611ba08484600085612f7b565b90505b9392505050565b6000606080600080905060008090506060875167ffffffffffffffff81118015611bd357600080fd5b50604051908082528060200260200182016040528015611bfd578160200160208202803683370190505b5090506060885167ffffffffffffffff81118015611c1a57600080fd5b50604051908082528060200260200182016040528015611c44578160200160208202803683370190505b50905060005b8951811015611e49578a6001600160a01b031663a7bdad038b8381518110611c6e57fe5b60200260200101516040518263ffffffff1660e01b8152600401611c929190613b37565b60006040518083038186803b158015611caa57600080fd5b505afa158015611cbe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ce691908101906137a1565b5115611d045760405162461bcd60e51b815260040161015290613f7a565b60008b6001600160a01b03166366cb8d2f8c8481518110611d2157fe5b60200260200101516040518263ffffffff1660e01b8152600401611d459190613b37565b60206040518083038186803b158015611d5d57600080fd5b505afa158015611d71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d959190613a69565b9050611da7818b63ffffffff61303c16565b848381518110611db357fe5b602002602001018181525050611dfe848381518110611dce57fe5b60200260200101518c8481518110611de257fe5b60209081029190910101516001546001600160a01b03166128b5565b50848481518110611e0b57fe5b60200260200101816002811115611e1e57fe5b6002811115611e2957fe5b9052509450611e3e868663ffffffff61305a16565b955050600101611c4a565b509295509350909150505b93509350939050565b6000611e7a6001600160a01b03841633308563ffffffff61207a16565b604051635c833bfd60e01b81526001600160a01b037f000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d1690635c833bfd90611eca90869086903090600401613ba2565b600060405180830381600087803b158015611ee457600080fd5b505af1158015611ef8573d6000803e3d6000fd5b5050505092915050565b600080805b8551811015611fd5576002848281518110611f1e57fe5b60200260200101516002811115611f3157fe5b14611fa557611fa0611f93858381518110611f4857fe5b6020026020010151888481518110611f5c57fe5b6020026020010151600160009054906101000a90046001600160a01b0316898681518110611f8657fe5b6020026020010151612d7b565b839063ffffffff61305a16565b611fcb565b611fcb858281518110611fb457fe5b60200260200101518361305a90919063ffffffff16565b9150600101611f07565b50949350505050565b80471015611ffe5760405162461bcd60e51b815260040161015290613e1e565b6000826001600160a01b03168260405161201790613b34565b60006040518083038185875af1925050503d8060008114612054576040519150601f19603f3d011682016040523d82523d6000602084013e612059565b606091505b50509050806110565760405162461bcd60e51b815260040161015290613dc1565b6115c8846323b872dd60e01b858585604051602401611b5a93929190613b65565b60015460009081906120b990849086906001600160a01b03166128b5565b5091505060006120c88261307f565b90506120d5858286612305565b6001546120ef90839087906001600160a01b031687612d7b565b925050505b92915050565b60006060846001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b15801561213757600080fd5b505afa15801561214b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261217391908101906137a1565b905060006060806121858885896123b4565b5093509350509250858311156121ad5760405162461bcd60e51b815260040161015290613e9b565b6000805b85518110156122335760006122168583815181106121cb57fe5b6020026020010151600160009054906101000a90046001600160a01b03168985815181106121f557fe5b602002602001015187868151811061220957fe5b60200260200101516130b5565b9050612228838263ffffffff61305a16565b9250506001016121b1565b506040516336bc7a3d60e11b81526001600160a01b037f000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d1690636d78f47a90612284908c908c903390600401613ba2565b600060405180830381600087803b15801561229e57600080fd5b505af11580156122b2573d6000803e3d6000fd5b50929b9a5050505050505050505050565b6000611ba383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131f9565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e906123369030908790600401613b4b565b60206040518083038186803b15801561234e57600080fd5b505afa158015612362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123869190613a69565b9050818110156115c8576115c86001600160a01b038516846001600160601b0384900363ffffffff61322516565b600060608060608060009450865167ffffffffffffffff811180156123d857600080fd5b50604051908082528060200260200182016040528015612402578160200160208202803683370190505b509350865167ffffffffffffffff8111801561241d57600080fd5b50604051908082528060200260200182016040528015612447578160200160208202803683370190505b509150865167ffffffffffffffff8111801561246257600080fd5b5060405190808252806020026020018201604052801561248c578160200160208202803683370190505b509250865167ffffffffffffffff811180156124a757600080fd5b506040519080825280602002602001820160405280156124d1578160200160208202803683370190505b50905060005b875181101561273357886001600160a01b031663a7bdad038983815181106124fb57fe5b60200260200101516040518263ffffffff1660e01b815260040161251f9190613b37565b60006040518083038186803b15801561253757600080fd5b505afa15801561254b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261257391908101906137a1565b51156125915760405162461bcd60e51b815260040161015290613f7a565b6000896001600160a01b03166366cb8d2f8a84815181106125ae57fe5b60200260200101516040518263ffffffff1660e01b81526004016125d29190613b37565b60206040518083038186803b1580156125ea57600080fd5b505afa1580156125fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126229190613a69565b9050612634818963ffffffff6132d616565b84838151811061264057fe5b60200260200101818152505061269284838151811061265b57fe5b6020026020010151600160009054906101000a90046001600160a01b03168b858151811061268557fe5b602002602001015161273f565b88858151811061269e57fe5b602002602001018886815181106126b157fe5b602002602001018787815181106126c457fe5b60200260200101836001600160a01b03166001600160a01b03168152508360028111156126ed57fe5b60028111156126f857fe5b8152508381525050505061272886838151811061271157fe5b60200260200101518861305a90919063ffffffff16565b9650506001016124d7565b50939792965093509350565b6000806000836001600160a01b0316856001600160a01b0316141561278057508491506002905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee611e54565b600061278a611a91565b9050808060006127bb7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8a8a613321565b90506001600160a01b038116156127f7576000806127da838c8c6133a2565b915091508b8111156127f4576127f18c8383613471565b94505b50505b60006128247f000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac8b8b613321565b90506001600160a01b0381161561286057600080612843838d8d6133a2565b915091508c81111561285d5761285a8d8383613471565b94505b50505b848414801561286e57508483145b1561288b5760405162461bcd60e51b815260040161015290613bf8565b8284111561289c57826001826128a1565b836000835b975097509750505050505093509350939050565b6000806000836001600160a01b0316856001600160a01b031614156128f657508491506002905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee611e54565b600080806129257f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f8989613321565b90506001600160a01b0381161561295857600080612944838b8b6133a2565b915091506129538b8383613523565b945050505b60006129857f000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac8a8a613321565b90506001600160a01b038116156129b8576000806129a4838c8c6133a2565b915091506129b38c8383613523565b945050505b831580156129c4575082155b156129e15760405162461bcd60e51b815260040161015290613bf8565b828410156129f257826001826129f7565b836000835b9650965096505050505093509350939050565b600060608060006060806060612a288a8a612a236135c9565b6123b4565b9198509296509094509092509050612a3e611a91565b9650885167ffffffffffffffff81118015612a5857600080fd5b50604051908082528060200260200182016040528015612a82578160200160208202803683370190505b50955060005b8951811015612bcc57612ac785612abb8b878581518110612aa557fe5b60200260200101516135d590919063ffffffff16565b9063ffffffff61360f16565b878281518110612ad357fe5b602090810291909101015260006002878381518110612aee57fe5b60200260200101516002811115612b0157fe5b1415612b2257878281518110612b1357fe5b60200260200101519050612b92565b600080612b6b858581518110612b3457fe5b6020026020010151600160009054906101000a90046001600160a01b03168f8781518110612b5e57fe5b60200260200101516133a2565b91509150612b8d8a8581518110612b7e57fe5b60200260200101518383613523565b925050505b612bc1612bbb858481518110612ba457fe5b60200260200101518361365190919063ffffffff16565b8a61366f565b985050600101612a88565b505050505093509350939050565b60006060846001600160a01b03166399d50d5d6040518163ffffffff1660e01b815260040160006040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612c5391908101906137a1565b90506000606080612c65888588612a0a565b925092509250868311612c8a5760405162461bcd60e51b815260040161015290613ee6565b60005b8451811015612cec57612ce3828281518110612ca557fe5b6020026020010151600160009054906101000a90046001600160a01b0316878481518110612ccf57fe5b6020026020010151868581518110611f8657fe5b50600101612c8d565b506040516336bc7a3d60e11b81526001600160a01b037f000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d1690636d78f47a90612d3d908b9087903390600401613ba2565b600060405180830381600087803b158015612d5757600080fd5b505af1158015612d6b573d6000803e3d6000fd5b50949a9950505050505050505050565b6000826001600160a01b0316846001600160a01b03161415612d9e575080612ec5565b60408051600280825260608083018452926020830190803683370190505090508481600081518110612dcc57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508381600181518110612dfa57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612e238661307f565b6001600160a01b03166338ed17398460008430426040518663ffffffff1660e01b8152600401612e579594939291906141a4565b600060405180830381600087803b158015612e7157600080fd5b505af1158015612e85573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612ead91908101906138ae565b600181518110612eb957fe5b60200260200101519150505b949350505050565b6110568363a9059cbb60e01b8484604051602401611b5a929190613b89565b6060612f41826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b919092919063ffffffff16565b8051909150156110565780806020019051810190612f5f9190613935565b6110565760405162461bcd60e51b815260040161015290614079565b606082471015612f9d5760405162461bcd60e51b815260040161015290613e55565b612fa685613685565b612fc25760405162461bcd60e51b81526004016101529061400b565b60006060866001600160a01b03168587604051612fdf9190613b18565b60006040518083038185875af1925050503d806000811461301c576040519150601f19603f3d011682016040523d82523d6000602084013e613021565b606091505b509150915061303182828661368b565b979650505050505050565b6000611ba3670de0b6b3a7640000612abb858563ffffffff6135d516565b600082820183811015611ba35760405162461bcd60e51b815260040161015290613c8d565b60008082600281111561308e57fe5b146130a4576003546001600160a01b03166120f4565b50506002546001600160a01b031690565b6000826001600160a01b0316846001600160a01b031614156130d8575080612ec5565b6040805160028082526060808301845292602083019080368337019050509050848160008151811061310657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061313457fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061315d8661307f565b6001600160a01b0316638803dbee84613174611a91565b8430426040518663ffffffff1660e01b81526004016131979594939291906141a4565b600060405180830381600087803b1580156131b157600080fd5b505af11580156131c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131ed91908101906138ae565b600081518110612eb957fe5b6000818484111561321d5760405162461bcd60e51b81526004016101529190613bc5565b505050900390565b60006132b582856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401613259929190613b4b565b60206040518083038186803b15801561327157600080fd5b505afa158015613285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132a99190613a69565b9063ffffffff61305a16565b90506115c88463095ea7b360e01b8584604051602401611b5a929190613b89565b60008215806132e3575081155b156132f0575060006120f4565b611ba360016132a9670de0b6b3a7640000612abb83613315898963ffffffff6135d516565b9063ffffffff6122c316565b60405163e6a4390560e01b81526000906001600160a01b0385169063e6a43905906133529086908690600401613b4b565b60206040518083038186803b15801561336a57600080fd5b505afa15801561337e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba09190613785565b60008060006133b185856136c4565b509050600080876001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156133f057600080fd5b505afa158015613404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134289190613a81565b506001600160701b031691506001600160701b03169150826001600160a01b0316876001600160a01b03161461345f578082613462565b81815b90999098509650505050505050565b60008084116134925760405162461bcd60e51b815260040161015290613cf9565b6000831180156134a25750600082115b6134be5760405162461bcd60e51b815260040161015290613f32565b60006134e26103e86134d6868863ffffffff6135d516565b9063ffffffff6135d516565b905060006134fc6103e56134d6868963ffffffff6122c316565b9050613519600182848161350c57fe5b049063ffffffff61305a16565b9695505050505050565b60008084116135445760405162461bcd60e51b8152600401610152906140fa565b6000831180156135545750600082115b6135705760405162461bcd60e51b815260040161015290613f32565b6000613584856103e563ffffffff6135d516565b90506000613598828563ffffffff6135d516565b905060006135b2836132a9886103e863ffffffff6135d516565b90508082816135bd57fe5b04979650505050505050565b670de0b6b3a764000090565b6000826135e4575060006120f4565b828202828482816135f157fe5b0414611ba35760405162461bcd60e51b815260040161015290613fca565b6000611ba383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061374e565b6000611ba382612abb85670de0b6b3a764000063ffffffff6135d516565b600081831061367e5781611ba3565b5090919050565b3b151590565b6060831561369a575081611ba3565b8251156136aa5782518084602001fd5b8160405162461bcd60e51b81526004016101529190613bc5565b600080826001600160a01b0316846001600160a01b031614156136f95760405162461bcd60e51b815260040161015290613d7c565b826001600160a01b0316846001600160a01b03161061371957828461371c565b83835b90925090506001600160a01b0382166137475760405162461bcd60e51b815260040161015290614042565b9250929050565b6000818361376f5760405162461bcd60e51b81526004016101529190613bc5565b50600083858161377b57fe5b0495945050505050565b600060208284031215613796578081fd5b8151611ba381614261565b600060208083850312156137b3578182fd5b825167ffffffffffffffff8111156137c9578283fd5b80840185601f8201126137da578384fd5b805191506137ef6137ea83614215565b6141ee565b828152838101908285018585028401860189101561380b578687fd5b8693505b8484101561383657805161382281614261565b83526001939093019291850191850161380f565b50979650505050505050565b60008060208385031215613854578081fd5b823567ffffffffffffffff8082111561386b578283fd5b81850186601f82011261387c578384fd5b803592508183111561388c578384fd5b866020808502830101111561389f578384fd5b60200196919550909350505050565b600060208083850312156138c0578182fd5b825167ffffffffffffffff8111156138d6578283fd5b80840185601f8201126138e7578384fd5b805191506138f76137ea83614215565b8281528381019082850185850284018601891015613913578687fd5b8693505b84841015613836578051835260019390930192918501918501613917565b600060208284031215613946578081fd5b81518015158114611ba3578182fd5b600060208284031215613966578081fd5b8135611ba381614261565b600080600060608486031215613985578081fd5b833561399081614261565b925060208401356139a081614261565b929592945050506040919091013590565b600080600060608486031215613985578283fd5b600080600080608085870312156139da578081fd5b84356139e581614261565b935060208501356139f581614261565b93969395505050506040820135916060013590565b60008060408385031215613a1c578182fd5b8235613a2781614261565b946020939093013593505050565b600080600060608486031215613a49578081fd5b8335613a5481614261565b95602085013595506040909401359392505050565b600060208284031215613a7a578081fd5b5051919050565b600080600060608486031215613a95578081fd5b8351613aa081614276565b6020850151909350613ab181614276565b604085015190925063ffffffff81168114613aca578182fd5b809150509250925092565b6000815180845260208085019450808401835b83811015613b0d5781516001600160a01b031687529582019590820190600101613ae8565b509495945050505050565b60008251613b2a818460208701614235565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6000602082528251806020840152613be4816040850160208701614235565b601f01601f19169190910160400192915050565b60208082526028908201527f45786368616e676549737375616e63653a20494c4c49515549445f5345545f4360408201526713d35413d391539560c21b606082015260800190565b6020808252602d908201527f45786368616e676549737375616e63653a20446972656374206465706f73697460408201526c1cc81b9bdd08185b1b1bddd959609a1b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252818101527f45786368616e676549737375616e63653a20494e56414c494420494e50555453604082015260600190565b6020808252602c908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4f60408201526b155514155517d05353d5539560a21b606082015260800190565b6020808252601d908201527f45786368616e676549737375616e63653a20494e56414c494420534554000000604082015260600190565b60208082526025908201527f556e697377617056324c6962726172793a204944454e544943414c5f41444452604082015264455353455360d81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602b908201527f45786368616e676549737375616e63653a20494e53554646494349454e545f4960408201526a1394155517d05353d5539560aa1b606082015260800190565b6020808252602c908201527f45786368616e676549737375616e63653a20494e53554646494349454e545f4f60408201526b155514155517d05353d5539560a21b606082015260800190565b60208082526028908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c604082015267495155494449545960c01b606082015260800190565b60208082526030908201527f45786368616e676549737375616e63653a2045585445524e414c5f504f53495460408201526f1253d394d7d393d517d0531313d5d15160821b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601e908201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602b908201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960408201526a1394155517d05353d5539560aa1b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b600086825285602083015260a060408301526141c360a0830186613ad5565b6001600160a01b0394909416606083015250608001529392505050565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561420d57600080fd5b604052919050565b600067ffffffffffffffff82111561422b578081fd5b5060209081020190565b60005b83811015614250578181015183820152602001614238565b838111156115c85750506000910152565b6001600160a01b03811681146109c057600080fd5b6001600160701b03811681146109c057600080fdfe44b3b16472a909f781f712646232271ffd156fff642d4895b700146a40462601a2646970667358221220ffff6e48cf35ef642ea96ce61bca2da5eb59481b11dc3cb857414c16f5288f0364736f6c634300060a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a349000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94d
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _uniFactory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [2] : _uniRouter (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : _sushiFactory (address): 0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac
Arg [4] : _sushiRouter (address): 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F
Arg [5] : _setController (address): 0xa4c8d221d8BB851f83aadd0223a8900A6921A349
Arg [6] : _basicIssuanceModule (address): 0xd8EF3cACe8b4907117a45B0b125c68560532F94D
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 000000000000000000000000c0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac
Arg [4] : 000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Arg [5] : 000000000000000000000000a4c8d221d8bb851f83aadd0223a8900a6921a349
Arg [6] : 000000000000000000000000d8ef3cace8b4907117a45b0b125c68560532f94dDeployed Bytecode Sourcemap
54460:37949:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58460:4;;-1:-1:-1;;;;;58460:4:0;58446:10;:18;58438:76;;;;-1:-1:-1;;;58438:76:0;;;;;;;;;;;;;;;;;54460:37949;;;;;68014:1130;;;;;;;;;;-1:-1:-1;68014:1130:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;55217:37;;;;;;;;;;;;;:::i;:::-;;;;;;;;62786:1211;;;;;;;;;;-1:-1:-1;62786:1211:0;;;;;;;;:::i;55316:57::-;;;;;;;;;;;;;:::i;55125:37::-;;;;;;;;;;;;;:::i;55175:35::-;;;;;;;;;;;;;:::i;58019:253::-;;;;;;;;;;-1:-1:-1;58019:253:0;;;;;;;;:::i;55267:42::-;;;;;;;;;;;;;:::i;70790:739::-;;;;;;;;;;-1:-1:-1;70790:739:0;;;;;;;;:::i;69571:852::-;;;;;;;;;;-1:-1:-1;69571:852:0;;;;;;;;:::i;64361:921::-;;;;;;;;;:::i;55083:35::-;;;;;;;;;;;;;:::i;54909:80::-;;;;;;;;;;;;;:::i;58717:173::-;;;;;;;;;;-1:-1:-1;58717:173:0;;;;;;;;:::i;55057:19::-;;;;;;;;;;;;;:::i;60326:831::-;;;;;;;;;;-1:-1:-1;60326:831:0;;;;;;;;:::i;71968:781::-;;;;;;;;;;-1:-1:-1;71968:781:0;;;;;;;;:::i;59229:533::-;;;;;;;;;;-1:-1:-1;59229:533:0;;;;;;;;:::i;65823:1736::-;;;;;;;;;;-1:-1:-1;65823:1736:0;;;;;;;;:::i;61513:602::-;;;;;;;;;:::i;68014:1130::-;68233:7;68164:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;68266:19;68258:64:::2;;;;-1:-1:-1::0;;;68258:64:0::2;;;;;;;;;68343:27;68373:9;-1:-1:-1::0;;;;;68373:23:0::2;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;68373:25:0::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;;;68343:55;;68424:16;68456:33;68505:27:::0;68547:66:::2;68574:9;68585:10;68597:15;68547:26;:66::i;:::-;68409:204;;;;;;68653:10;68642:8;:21;68634:78;;;;-1:-1:-1::0;;;68634:78:0::2;;;;;;;;;68733:43;68749:9;68760:15;68733;:43::i;:::-;;68797:20;68820:68;68848:10;68860:16;68878:9;68820:27;:68::i;:::-;68915:4;::::0;68909:34:::2;::::0;-1:-1:-1;;;68909:34:0;;68797:91;;-1:-1:-1;;;;;;68915:4:0::2;::::0;68909:20:::2;::::0;:34:::2;::::0;68797:91;;68909:34:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;68954:45:0::2;::::0;-1:-1:-1;68963:10:0::2;::::0;-1:-1:-1;68986:12:0;;-1:-1:-1;68954:45:0::2;:31;:45;:::i;:::-;54947:42;-1:-1:-1::0;;;;;69017:89:0::2;69044:9;-1:-1:-1::0;;;;;69017:89:0::2;69032:10;-1:-1:-1::0;;;;;69017:89:0::2;;69076:15;69093:12;69017:89;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;69124:12;68014:1130;-1:-1:-1;;;;;;;;;68014:1130:0:o;55217:37::-;;;:::o;62786:1211::-;63046:7;62977:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;63079:19;;;;;:47:::2;;;63125:1;63102:20;:24;63079:47;63071:92;;;;-1:-1:-1::0;;;63071:92:0::2;;;;;;;;;63184:77;-1:-1:-1::0;;;;;63184:28:0;::::2;63213:10;63233:4;63240:20:::0;63184:77:::2;:28;:77;:::i;:::-;63330:4;::::0;63282:21:::2;::::0;-1:-1:-1;;;;;63306:28:0;;::::2;63330:4:::0;::::2;63306:28;:132;;63386:52;63404:11;63417:20;63386:17;:52::i;:::-;63306:132;;;63350:20;63306:132;63282:156;;63459:22;63484:65;63507:9;63518:15;63535:13;63484:22;:65::i;:::-;63459:90:::0;-1:-1:-1;63570:23:0::2;63596:33;:13:::0;63459:90;63596:33:::2;:17;:33;:::i;:::-;63570:59:::0;-1:-1:-1;63644:19:0;;63640:152:::2;;63686:4;::::0;63680:37:::2;::::0;-1:-1:-1;;;63680:37:0;;-1:-1:-1;;;;;63686:4:0;;::::2;::::0;63680:20:::2;::::0;:37:::2;::::0;63701:15;;63680:37:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;63732:48:0::2;::::0;-1:-1:-1;63741:10:0::2;::::0;-1:-1:-1;63764:15:0;;-1:-1:-1;63732:48:0::2;:31;:48;:::i;:::-;63824:10;-1:-1:-1::0;;;;;63817:35:0::2;;63836:15;63817:35;;;;;;;;;;;;;;;63905:11;-1:-1:-1::0;;;;;63868:88:0::2;63894:9;-1:-1:-1::0;;;;;63868:88:0::2;63882:10;-1:-1:-1::0;;;;;63868:88:0::2;-1:-1:-1::0;;;;;;;;;;;63918:20:0::2;63940:15;63868:88;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;63974:15;62786:1211;-1:-1:-1;;;;;;;;62786:1211:0:o;55316:57::-;;;:::o;55125:37::-;;;-1:-1:-1;;;;;55125:37:0;;:::o;55175:35::-;;;:::o;58019:253::-;58103:9;;58074:52;;58087:6;;-1:-1:-1;;;;;58103:9:0;-1:-1:-1;;;;;58074:12:0;:52::i;:::-;58166:11;;58137:54;;58150:6;;-1:-1:-1;;;;;58166:11:0;-1:-1:-1;;;;;58137:12:0;:54::i;:::-;58202:62;58215:6;58231:19;-1:-1:-1;;;;;58202:12:0;:62::i;:::-;58019:253;:::o;55267:42::-;;;:::o;70790:739::-;71006:7;70946:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;71057:1:::1;71039:15;:19;71031:64;;;;-1:-1:-1::0;;;71031:64:0::1;;;;;;;;;71116:27;71146:9;-1:-1:-1::0;;;;;71146:23:0::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;71146:25:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;71116:55;;71183:16;71211:64;71236:9;71247:10;71259:15;71211:24;:64::i;:::-;-1:-1:-1::0;;71324:4:0::1;::::0;71182:93;;-1:-1:-1;;;;;;;;71300:28:0;;::::1;71324:4:::0;::::1;71300:28;71296:76;;;71352:8:::0;-1:-1:-1;71345:15:0::1;::::0;-1:-1:-1;71345:15:0::1;71296:76;71486:4;::::0;71393:19:::1;::::0;71420:72:::1;::::0;71446:8;;71464:11;;-1:-1:-1;;;;;71486:4:0::1;71420:25;:72::i;:::-;-1:-1:-1::0;71392:100:0;;-1:-1:-1;;;;;56830:1:0::1;70790:739:::0;;;;;;:::o;69571:852::-;69785:7;69724:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;69833:1:::1;69818:12;:16;69810:61;;;;-1:-1:-1::0;;;69810:61:0::1;;;;;;;;;69948:4;::::0;69892:17:::1;::::0;-1:-1:-1;;;;;69924:28:0;;::::1;69948:4:::0;::::1;69924:28;69920:288;;70134:4;::::0;70072:67:::1;::::0;70098:12;;70120:11;;-1:-1:-1;;;;;70134:4:0::1;70072:25;:67::i;:::-;-1:-1:-1::0;70054:85:0;;-1:-1:-1;69920:288:0::1;::::0;-1:-1:-1;69920:288:0::1;;-1:-1:-1::0;70184:12:0;69920:288:::1;70228:27;70258:9;-1:-1:-1::0;;;;;70258:23:0::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;70258:25:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;70228:55;;70295:22;70325:58;70350:9;70361:10;70373:9;70325:24;:58::i;64361:921::-:0;64568:7;64482:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;64601:9:::2;:13:::0;;;;:36:::2;;;64636:1;64618:15;:19;64601:36;64593:81;;;;-1:-1:-1::0;;;64593:81:0::2;;;;;;;;;64701:4;;;;;;;;;-1:-1:-1::0;;;;;64701:4:0::2;-1:-1:-1::0;;;;;64695:19:0::2;;64722:9;64695:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;64755:17;64775:61;64798:9;64809:15;64826:9;64775:22;:61::i;:::-;64755:81:::0;-1:-1:-1;64857:23:0::2;64883:24;:9;64755:81:::0;64883:24:::2;:13;:24;:::i;:::-;64857:50:::0;-1:-1:-1;64932:19:0;;64928:152:::2;;64974:4;::::0;64968:37:::2;::::0;-1:-1:-1;;;64968:37:0;;-1:-1:-1;;;;;64974:4:0;;::::2;::::0;64968:20:::2;::::0;:37:::2;::::0;64989:15;;64968:37:::2;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;65020:48:0::2;::::0;-1:-1:-1;65029:10:0::2;::::0;-1:-1:-1;65052:15:0;;-1:-1:-1;65020:48:0::2;:31;:48;:::i;:::-;65112:10;-1:-1:-1::0;;;;;65105:35:0::2;;65124:15;65105:35;;;;;;;;;;;;;;;54947:42;-1:-1:-1::0;;;;;65156:85:0::2;65182:9;-1:-1:-1::0;;;;;65156:85:0::2;65170:10;-1:-1:-1::0;;;;;65156:85:0::2;-1:-1:-1::0;;;;;;;;;;;65214:9:0::2;65225:15;65156:85;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;65259:15;64361:921;-1:-1:-1;;;;;64361:921:0:o;55083:35::-;;;-1:-1:-1;;;;;55083:35:0;;:::o;54909:80::-;54947:42;54909:80;:::o;58717:173::-;58792:9;58787:96;58807:18;;;58787:96;;;58847:24;58860:7;;58868:1;58860:10;;;;;;;;;;;;;;;;;;;;;58847:24;58827:3;;58787:96;;;;58717:173;;:::o;55057:19::-;;;-1:-1:-1;;;;;55057:19:0;;:::o;60326:831::-;60579:7;60510:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;60615:16;60607:61:::2;;;;-1:-1:-1::0;;;60607:61:0::2;;;;;;;;;60689:69;-1:-1:-1::0;;;;;60689:28:0;::::2;60718:10;60738:4;60745:12:::0;60689:69:::2;:28;:69;:::i;:::-;60823:4;::::0;60779:17:::2;::::0;-1:-1:-1;;;;;60799:28:0;;::::2;60823:4:::0;::::2;60799:28;:116;;60871:44;60889:11;60902:12;60871:17;:44::i;:::-;60799:116;;;60843:12;60799:116;60779:136;;60928:22;60953:59;60975:9;60986:14;61002:9;60953:21;:59::i;:::-;60928:84;;61075:11;-1:-1:-1::0;;;;;61038:79:0::2;61064:9;-1:-1:-1::0;;;;;61038:79:0::2;61052:10;-1:-1:-1::0;;;;;61038:79:0::2;-1:-1:-1::0;;;;;;;;;;;61088:12:0::2;61102:14;61038:79;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;61135:14;60326:831;-1:-1:-1;;;;;;;60326:831:0:o;71968:781::-;72185:7;72124:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;72236:1:::1;72218:15;:19;72210:64;;;;-1:-1:-1::0;;;72210:64:0::1;;;;;;;;;72295:27;72325:9;-1:-1:-1::0;;;;;72325:23:0::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;72325:25:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;72295:55;;72362:16;72386:66;72413:9;72424:10;72436:15;72386:26;:66::i;:::-;-1:-1:-1::0;;72493:4:0::1;::::0;72361:91;;-1:-1:-1;;;;;;72477:20:0;;::::1;72493:4:::0;::::1;72477:20;72473:68;;;72521:8:::0;-1:-1:-1;72514:15:0::1;::::0;-1:-1:-1;72514:15:0::1;72473:68;72693:4;::::0;72630:19:::1;::::0;72657:55:::1;::::0;72683:8;;-1:-1:-1;;;;;72693:4:0::1;72699:12:::0;72657:25:::1;:55::i;59229:533::-:0;56745:39;;-1:-1:-1;;;56745:39:0;;59286:9;;-1:-1:-1;;;;;56745:13:0;:19;;;;:39;;59286:9;;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;59317:27:::1;59347:9;-1:-1:-1::0;;;;;59347:23:0::1;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;59347:25:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;59317:55:::0;-1:-1:-1;59388:9:0::1;59383:372;59407:10;:17;59403:1;:21;59383:372;;;59546:9;-1:-1:-1::0;;;;;59546:36:0::1;;59583:10;59594:1;59583:13;;;;;;;;;;;;;;59546:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;::::0;;::::1;-1:-1:-1::0;;59546:51:0::1;::::0;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;;;:58:::0;:63;59520:173:::1;;;;-1:-1:-1::0;;;59520:173:0::1;;;;;;;;;59708:35;59728:10;59739:1;59728:13;;;;;;;;;;;;;;59708:12;:35::i;:::-;59426:3;;59383:372;;;;56830:1;59229:533:::0;;:::o;65823:1736::-;66081:7;66012:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;66114:19;66106:64:::2;;;;-1:-1:-1::0;;;66106:64:0::2;;;;;;;;;66191:27;66221:9;-1:-1:-1::0;;;;;66221:23:0::2;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;::::0;;::::2;-1:-1:-1::0;;66221:25:0::2;::::0;::::2;;::::0;::::2;::::0;;;::::2;::::0;::::2;;;66191:55;;66272:16;66304:33;66353:27:::0;66395:66:::2;66422:9;66433:10;66445:15;66395:26;:66::i;:::-;66542:4;::::0;66257:204;;-1:-1:-1;66257:204:0;;-1:-1:-1;66257:204:0;-1:-1:-1;66482:20:0::2;::::0;-1:-1:-1;;;;;66517:29:0;;::::2;66542:4:::0;::::2;66517:29;66513:839;;;66582:17;66571:8;:28;66563:85;;;;-1:-1:-1::0;;;66563:85:0::2;;;;;;;;;66663:43;66679:9;66690:15;66663;:43::i;:::-;;66736:68;66764:10;66776:16;66794:9;66736:27;:68::i;:::-;66721:83;;66513:839;;;66934:4;::::0;66838:19:::2;::::0;;;66890:73:::2;::::0;66916:8;;-1:-1:-1;;;;;66934:4:0::2;66949:12:::0;66890:25:::2;:73::i;:::-;66837:126;;;;;67000:17;66986:11;:31;66978:88;;;;-1:-1:-1::0;;;66978:88:0::2;;;;;;;;;67081:43;67097:9;67108:15;67081;:43::i;:::-;;67139:17;67159:68;67187:10;67199:16;67217:9;67159:27;:68::i;:::-;67301:4;::::0;67139:88;;-1:-1:-1;67257:83:0::2;::::0;67283:16;;-1:-1:-1;;;;;67301:4:0::2;67315:12:::0;67139:88;67257:25:::2;:83::i;:::-;67242:98;;66513:839;;;;67372:51;-1:-1:-1::0;;;;;67372:25:0;::::2;67398:10;67410:12:::0;67372:51:::2;:25;:51;:::i;:::-;67477:12;-1:-1:-1::0;;;;;67439:82:0::2;67466:9;-1:-1:-1::0;;;;;67439:82:0::2;67454:10;-1:-1:-1::0;;;;;67439:82:0::2;;67491:15;67508:12;67439:82;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;67539:12;65823:1736;-1:-1:-1;;;;;;;;;;65823:1736:0:o;61513:602::-;61717:7;61632:9;56745:13;-1:-1:-1;;;;;56745:19:0;;56773:9;56745:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56737:81;;;;-1:-1:-1;;;56737:81:0;;;;;;;;;27904:1:::1;28510:7;;:19;;28502:63;;;;-1:-1:-1::0;;;28502:63:0::1;;;;;;;;;27904:1;28643:7;:18:::0;61750:9:::2;61742:58;;;;-1:-1:-1::0;;;61742:58:0::2;;;;;;;;;61827:4;;;;;;;;;-1:-1:-1::0;;;;;61827:4:0::2;-1:-1:-1::0;;;;;61821:19:0::2;;61848:9;61821:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;61881:22;61906:59;61928:9;61939:14;61955:9;61906:21;:59::i;:::-;61881:84;;54947:42;-1:-1:-1::0;;;;;61991:84:0::2;62017:9;-1:-1:-1::0;;;;;61991:84:0::2;62005:10;-1:-1:-1::0;;;;;61991:84:0::2;-1:-1:-1::0;;;;;;;;;;;62049:9:0::2;62060:14;61991:84;;;;;;;;;;;;;;;;27860:1:::1;28822:7;:22:::0;62093:14;61513:602;-1:-1:-1;;;;61513:602:0:o;41657:92::-;-1:-1:-1;;41657:92:0;:::o;23724:622::-;24094:10;;;24093:62;;-1:-1:-1;24110:39:0;;-1:-1:-1;;;24110:39:0;;-1:-1:-1;;;;;24110:15:0;;;;;:39;;24134:4;;24141:7;;24110:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:44;24093:62;24085:152;;;;-1:-1:-1;;;24085:152:0;;;;;;;;;24248:90;24268:5;24298:22;;;24322:7;24331:5;24275:62;;;;;;;;;;;;;;-1:-1:-1;;24275:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24275:62:0;-1:-1:-1;;;;;;24275:62:0;;;;;;;;;;24248:19;:90::i;3743:195::-;3846:12;3878:52;3900:6;3908:4;3914:1;3917:12;3878:21;:52::i;:::-;3871:59;;3743:195;;;;;;:::o;80963:1298::-;81125:7;81134:16;81152:17;81187:14;81204:1;81187:18;;81216:17;81236:1;81216:21;;81258:33;81308:11;:18;81294:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81294:33:0;;81258:69;;81338:27;81383:11;:18;81368:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81368:34:0;-1:-1:-1;81338:64:0;-1:-1:-1;81428:9:0;81423:776;81447:11;:18;81443:1;:22;81423:776;;;81601:9;-1:-1:-1;;;;;81601:36:0;;81638:11;81650:1;81638:14;;;;;;;;;;;;;;81601:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;81601:52:0;;;;;;;;;;;;;;:59;:64;81575:174;;;;-1:-1:-1;;;81575:174:0;;;;;;;;;81778:12;81801:9;-1:-1:-1;;;;;81801:36:0;;81838:11;81850:1;81838:14;;;;;;;;;;;;;;81801:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81778:76;-1:-1:-1;81891:32:0;81778:76;81907:15;81891:32;:15;:32;:::i;:::-;81869:16;81886:1;81869:19;;;;;;;;;;;;;:54;;;;;82074:68;82100:16;82117:1;82100:19;;;;;;;;;;;;;;82121:11;82133:1;82121:14;;;;;;;;;;;;;;;;;;82137:4;;-1:-1:-1;;;;;82137:4:0;82074:25;:68::i;:::-;82044:98;82056:9;82066:1;82056:12;;;;;;;;;;;;;82044:98;;;;;;;;;;;;;;;;;;;-1:-1:-1;82044:98:0;-1:-1:-1;82166:21:0;:6;82044:98;82166:21;:10;:21;:::i;:::-;82157:30;-1:-1:-1;;81467:3:0;;81423:776;;;-1:-1:-1;82217:6:0;;-1:-1:-1;82225:16:0;-1:-1:-1;82243:9:0;;-1:-1:-1;;80963:1298:0;;;;;;;;:::o;76325:243::-;76406:7;76426:62;-1:-1:-1;;;;;76426:26:0;;76453:10;76473:4;76480:7;76426:62;:26;:62;:::i;:::-;76499:61;;-1:-1:-1;;;76499:61:0;;-1:-1:-1;;;;;76499:19:0;:26;;;;:61;;76526:9;;76537:7;;76554:4;;76499:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76325:243;;;;:::o;77091:538::-;77260:7;;;77314:284;77338:11;:18;77334:1;:22;77314:284;;;77404:13;77387:10;77398:1;77387:13;;;;;;;;;;;;;;:30;;;;;;;;;:199;;77490:96;77501:84;77527:10;77538:1;77527:13;;;;;;;;;;;;;;77542:11;77554:1;77542:14;;;;;;;;;;;;;;77558:4;;;;;;;;;-1:-1:-1;;;;;77558:4:0;77564:17;77582:1;77564:20;;;;;;;;;;;;;;77501:25;:84::i;:::-;77490:6;;:96;:10;:96;:::i;:::-;77387:199;;;77437:32;77448:17;77466:1;77448:20;;;;;;;;;;;;;;77437:6;:10;;:32;;;;:::i;:::-;77378:208;-1:-1:-1;77358:3:0;;77314:284;;;-1:-1:-1;77615:6:0;77091:538;-1:-1:-1;;;;77091:538:0:o;2182:397::-;2297:6;2272:21;:31;;2264:73;;;;-1:-1:-1;;;2264:73:0;;;;;;;;;2429:12;2447:9;-1:-1:-1;;;;;2447:14:0;2470:6;2447:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2428:54;;;2501:7;2493:78;;;;-1:-1:-1;;;2493:78:0;;;;;;;;23250:205;23351:96;23371:5;23401:27;;;23430:4;23436:2;23440:5;23378:68;;;;;;;;;;;84905:389;85080:4;;84982:7;;;;85028:57;;85054:7;;85071:6;;-1:-1:-1;;;;;85080:4:0;85028:25;:57::i;:::-;85002:83;;;;85096:25;85124:20;85135:8;85124:10;:20::i;:::-;85096:48;;85155:46;85168:6;85184;85193:7;85155:12;:46::i;:::-;85272:4;;85219:67;;85245:8;;85263:6;;-1:-1:-1;;;;;85272:4:0;85278:7;85219:25;:67::i;:::-;85212:74;;;;84905:389;;;;;:::o;75203:908::-;75318:7;75348:27;75378:9;-1:-1:-1;;;;;75378:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;75378:25:0;;;;;;;;;;;;;;75348:55;;75429:14;75474:27;75517:33;75565:64;75590:9;75601:10;75613:15;75565:24;:64::i;:::-;75414:215;;;;;;;;75668:9;75658:6;:19;;75650:75;;;;-1:-1:-1;;;75650:75:0;;;;;;;;;75746:16;;75777:225;75801:10;:17;75797:1;:21;75777:225;;;75840:17;75860:81;75886:9;75896:1;75886:12;;;;;;;;;;;;;;75900:4;;;;;;;;;-1:-1:-1;;;;;75900:4:0;75906:10;75917:1;75906:13;;;;;;;;;;;;;;75921:16;75938:1;75921:19;;;;;;;;;;;;;;75860:25;:81::i;:::-;75840:101;-1:-1:-1;75967:23:0;:8;75840:101;75967:23;:12;:23;:::i;:::-;75956:34;-1:-1:-1;;75820:3:0;;75777:225;;;-1:-1:-1;76012:65:0;;-1:-1:-1;;;76012:65:0;;-1:-1:-1;;;;;76012:19:0;:25;;;;:65;;76038:9;;76049:15;;76066:10;;76012:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76095:8:0;;75203:908;-1:-1:-1;;;;;;;;;;;75203:908:0:o;18220:136::-;18278:7;18305:43;18309:1;18312;18305:43;;;;;;;;;;;;;;;;;:3;:43::i;73077:307::-;73200:41;;-1:-1:-1;;;73200:41:0;;73180:17;;-1:-1:-1;;;;;73200:16:0;;;;;:41;;73225:4;;73232:8;;73200:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73180:61;;73268:18;73256:9;:30;73252:125;;;73303:62;-1:-1:-1;;;;;73303:28:0;;73332:8;-1:-1:-1;;;;;73342:22:0;;;73303:62;:28;:62;:::i;78673:1563::-;78847:14;78877:28;78921:27;78964:33;79013:30;79080:1;79071:10;;79120:11;:18;79106:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79106:33:0;;79092:47;;79183:11;:18;79169:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79169:33:0;;79150:52;;79240:11;:18;79225:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79225:34:0;;79213:46;;79300:11;:18;79286:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79286:33:0;-1:-1:-1;79270:49:0;-1:-1:-1;79345:9:0;79340:806;79364:11;:18;79360:1;:22;79340:806;;;79506:9;-1:-1:-1;;;;;79506:36:0;;79543:11;79555:1;79543:14;;;;;;;;;;;;;;79506:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;79506:52:0;;;;;;;;;;;;;;:59;:64;79480:174;;;;-1:-1:-1;;;79480:174:0;;;;;;;;;79778:12;79801:9;-1:-1:-1;;;;;79801:36:0;;79838:11;79850:1;79838:14;;;;;;;;;;;;;;79801:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79778:76;-1:-1:-1;79891:45:0;79778:76;79920:15;79891:45;:28;:45;:::i;:::-;79869:16;79886:1;79869:19;;;;;;;;;;;;;:67;;;;;80016:68;80042:16;80059:1;80042:19;;;;;;;;;;;;;;80063:4;;;;;;;;;-1:-1:-1;;;;;80063:4:0;80069:11;80081:1;80069:14;;;;;;;;;;;;;;80016:25;:68::i;:::-;79966:11;79978:1;79966:14;;;;;;;;;;;;;79982:9;79992:1;79982:12;;;;;;;;;;;;;79996:13;80010:1;79996:16;;;;;;;;;;;;;79965:119;-1:-1:-1;;;;;79965:119:0;-1:-1:-1;;;;;79965:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80108:26;80119:11;80131:1;80119:14;;;;;;;;;;;;;;80108:6;:10;;:26;;;;:::i;:::-;80099:35;-1:-1:-1;;79384:3:0;;79340:806;;;-1:-1:-1;78673:1563:0;;;;;;;;;:::o;87712:1739::-;87824:7;87833:8;87843:7;87878;-1:-1:-1;;;;;87867:18:0;:7;-1:-1:-1;;;;;87867:18:0;;87863:98;;;-1:-1:-1;87910:10:0;;-1:-1:-1;87922:13:0;;-1:-1:-1;54947:42:0;87902:47;;87863:98;87981:13;87997:28;:26;:28::i;:::-;87981:44;-1:-1:-1;87981:44:0;;88038:18;88146:38;88155:10;88167:7;88176;88146:8;:38::i;:::-;88124:60;-1:-1:-1;;;;;;88199:25:0;;;88195:418;;88242:17;88261:18;88283:60;88313:11;88326:7;88335;88283:29;:60::i;:::-;88241:102;;;;88478:10;88465;:23;88461:141;;;88522:64;88552:10;88564:9;88575:10;88522:29;:64::i;:::-;88509:77;;88461:141;88195:418;;;88633:21;88657:40;88666:12;88680:7;88689;88657:8;:40::i;:::-;88633:64;-1:-1:-1;;;;;;88712:27:0;;;88708:424;;88757:17;88776:18;88798:62;88828:13;88843:7;88852;88798:29;:62::i;:::-;88756:104;;;;88995:10;88982;:23;88978:143;;;89041:64;89071:10;89083:9;89094:10;89041:29;:64::i;:::-;89026:79;;88978:143;88708:424;;;89223:5;89209:10;:19;:44;;;;;89248:5;89232:12;:21;89209:44;89207:47;89199:100;;;;-1:-1:-1;;;89199:100:0;;;;;;;;;89332:12;89318:10;:26;;89317:126;;89395:12;89409:18;89429:13;89317:126;;;89349:10;89361:16;89379:11;89317:126;89310:133;;;;;;;;;;;87712:1739;;;;;;;:::o;90091:1337::-;90202:7;90211:8;90221:7;90256;-1:-1:-1;;;;;90245:18:0;:7;-1:-1:-1;;;;;90245:18:0;;90241:97;;;-1:-1:-1;90288:9:0;;-1:-1:-1;90299:13:0;;-1:-1:-1;54947:42:0;90280:46;;90241:97;90358:19;;;90460:38;90469:10;90481:7;90490;90460:8;:38::i;:::-;90438:60;-1:-1:-1;;;;;;90512:25:0;;;90509:252;;90555:17;90574:18;90596:60;90626:11;90639:7;90648;90596:29;:60::i;:::-;90554:102;;;;90685:64;90716:9;90727;90738:10;90685:30;:64::i;:::-;90671:78;;90509:252;;;90781:21;90805:40;90814:12;90828:7;90837;90805:8;:40::i;:::-;90781:64;-1:-1:-1;;;;;;90859:27:0;;;90856:258;;90904:17;90923:18;90945:62;90975:13;90990:7;90999;90945:29;:62::i;:::-;90903:104;;;;91038:64;91069:9;91080;91091:10;91038:30;:64::i;:::-;91022:80;;90856:258;;;91187:16;;:38;;;;-1:-1:-1;91207:18:0;;91187:38;91185:41;91177:94;;;;-1:-1:-1;;;91177:94:0;;;;;;;;;91305:13;91290:11;:28;;91289:130;;91370:13;91385:18;91405:13;91289:130;;;91323:11;91336:16;91354:11;91289:130;91282:137;;;;;;;;;;90091:1337;;;;;;;:::o;83019:1542::-;83175:22;83199:28;83229:27;83274:14;83299:32;83342:37;83390:30;83584:79;83609:9;83620:11;83633:29;:27;:29::i;:::-;83584:24;:79::i;:::-;83431:232;;-1:-1:-1;83431:232:0;;-1:-1:-1;83431:232:0;;-1:-1:-1;83431:232:0;;-1:-1:-1;83431:232:0;-1:-1:-1;83701:28:0;:26;:28::i;:::-;83684:45;;83768:11;:18;83754:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83754:33:0;-1:-1:-1;83740:47:0;-1:-1:-1;83813:9:0;83808:688;83832:11;:18;83828:1;:22;83808:688;;;83903:46;83942:6;83903:34;83926:10;83903:15;83919:1;83903:18;;;;;;;;;;;;;;:22;;:34;;;;:::i;:::-;:38;:46;:38;:46;:::i;:::-;83886:11;83898:1;83886:14;;;;;;;;;;;;;;;;;:63;83978:23;84036:13;84020:9;84030:1;84020:12;;;;;;;;;;;;;;:29;;;;;;;;;84016:360;;;84088:11;84100:1;84088:14;;;;;;;;;;;;;;84070:32;;84016:360;;;84144:17;84163:18;84185:69;84215:13;84229:1;84215:16;;;;;;;;;;;;;;84233:4;;;;;;;;;-1:-1:-1;;;;;84233:4:0;84239:11;84251:1;84239:14;;;;;;;;;;;;;;84185:29;:69::i;:::-;84143:111;;;;84291:69;84322:11;84334:1;84322:14;;;;;;;;;;;;;;84338:9;84349:10;84291:30;:69::i;:::-;84273:87;;84016:360;;;84407:77;84416:51;84443:20;84464:1;84443:23;;;;;;;;;;;;;;84416:15;:26;;:51;;;;:::i;:::-;84469:14;84407:8;:77::i;:::-;84390:94;-1:-1:-1;;83852:3:0;;83808:688;;;-1:-1:-1;;;;;83019:1542:0;;;;;;;:::o;73790:822::-;73909:7;73939:27;73969:9;-1:-1:-1;;;;;73969:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;73969:25:0;;;;;;;;;;;;;;73939:55;;74020:22;74058:28;74102:27;74143:64;74168:9;74179:10;74191:15;74143:24;:64::i;:::-;74005:202;;;;;;74253:14;74236;:31;74228:88;;;;-1:-1:-1;;;74228:88:0;;;;;;;;;74342:9;74337:151;74361:10;:17;74357:1;:21;74337:151;;;74400:76;74426:9;74436:1;74426:12;;;;;;;;;;;;;;74440:4;;;;;;;;;-1:-1:-1;;;;;74440:4:0;74446:10;74457:1;74446:13;;;;;;;;;;;;;;74461:11;74473:1;74461:14;;;;;;;74400:76;-1:-1:-1;74380:3:0;;74337:151;;;-1:-1:-1;74508:64:0;;-1:-1:-1;;;74508:64:0;;-1:-1:-1;;;;;74508:19:0;:25;;;;:64;;74534:9;;74545:14;;74561:10;;74508:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74590:14:0;;73790:822;-1:-1:-1;;;;;;;;;;73790:822:0:o;85715:455::-;85844:7;85880:9;-1:-1:-1;;;;;85868:21:0;:8;-1:-1:-1;;;;;85868:21:0;;85864:70;;;-1:-1:-1;85913:9:0;85906:16;;85864:70;85968:16;;;85982:1;85968:16;;;85944:21;85968:16;;;;;85944:21;85968:16;;;;;;;;;;-1:-1:-1;85968:16:0;85944:40;;86005:8;85995:4;86000:1;85995:7;;;;;;;;;;;;;:18;-1:-1:-1;;;;;85995:18:0;;;-1:-1:-1;;;;;85995:18:0;;;;;86034:9;86024:4;86029:1;86024:7;;;;;;;;;;;;;:19;-1:-1:-1;;;;;86024:19:0;;;-1:-1:-1;;;;;86024:19:0;;;;;86061:21;86072:9;86061:10;:21::i;:::-;-1:-1:-1;;;;;86061:46:0;;86108:9;86119:1;86122:4;86136;86143:15;86061:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86061:98:0;;;;;;;;;;;;;;86160:1;86061:101;;;;;;;;;;;;;;86054:108;;;85715:455;;;;;;;:::o;23065:177::-;23148:86;23168:5;23198:23;;;23223:2;23227:5;23175:58;;;;;;;;;;25370:761;25794:23;25820:69;25848:4;25820:69;;;;;;;;;;;;;;;;;25828:5;-1:-1:-1;;;;;25820:27:0;;;:69;;;;;:::i;:::-;25904:17;;25794:95;;-1:-1:-1;25904:21:0;25900:224;;26046:10;26035:30;;;;;;;;;;;;;;26027:85;;;;-1:-1:-1;;;26027:85:0;;;;;;;;4795:530;4922:12;4980:5;4955:21;:30;;4947:81;;;;-1:-1:-1;;;4947:81:0;;;;;;;;;5047:18;5058:6;5047:10;:18::i;:::-;5039:60;;;;-1:-1:-1;;;5039:60:0;;;;;;;;;5173:12;5187:23;5214:6;-1:-1:-1;;;;;5214:11:0;5234:5;5242:4;5214:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5172:75;;;;5265:52;5283:7;5292:10;5304:12;5265:17;:52::i;:::-;5258:59;4795:530;-1:-1:-1;;;;;;;4795:530:0:o;42339:126::-;42404:7;42431:26;40800:8;42431;:1;42437;42431:8;:5;:8;:::i;17756:181::-;17814:7;17846:5;;;17870:6;;;;17862:46;;;;-1:-1:-1;;;17862:46:0;;;;;;;;92233:167;92295:18;;92335:9;:29;;;;;;;;;92334:57;;92380:11;;-1:-1:-1;;;;;92380:11:0;92334:57;;;-1:-1:-1;;92368:9:0;;-1:-1:-1;;;;;92368:9:0;;92233:167::o;86604:485::-;86734:7;86770:9;-1:-1:-1;;;;;86758:21:0;:8;-1:-1:-1;;;;;86758:21:0;;86754:71;;;-1:-1:-1;86803:10:0;86796:17;;86754:71;86859:16;;;86873:1;86859:16;;;86835:21;86859:16;;;;;86835:21;86859:16;;;;;;;;;;-1:-1:-1;86859:16:0;86835:40;;86896:8;86886:4;86891:1;86886:7;;;;;;;;;;;;;:18;-1:-1:-1;;;;;86886:18:0;;;-1:-1:-1;;;;;86886:18:0;;;;;86925:9;86915:4;86920:1;86915:7;;;;;;;;;;;;;:19;-1:-1:-1;;;;;86915:19:0;;;-1:-1:-1;;;;;86915:19:0;;;;;86952:21;86963:9;86952:10;:21::i;:::-;-1:-1:-1;;;;;86952:46:0;;86999:10;87011:28;:26;:28::i;:::-;87041:4;87055;87062:15;86952:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86952:126:0;;;;;;;;;;;;;;87079:1;86952:129;;;;;;;18659:192;18745:7;18781:12;18773:6;;;;18765:29;;;;-1:-1:-1;;;18765:29:0;;;;;;;;;;-1:-1:-1;;;18817:5:0;;;18659:192::o;24354:286::-;24451:20;24474:50;24518:5;24474;-1:-1:-1;;;;;24474:15:0;;24498:4;24505:7;24474:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:43;:50;:43;:50;:::i;:::-;24451:73;;24535:97;24555:5;24585:22;;;24609:7;24618:12;24562:69;;;;;;;;;;42982:211;43051:7;43075:6;;;:16;;-1:-1:-1;43085:6:0;;43075:16;43071:57;;;-1:-1:-1;43115:1:0;43108:8;;43071:57;43145:40;43183:1;43145:33;40800:8;43145:15;43183:1;43145:8;:1;43151;43145:8;:5;:8;:::i;:::-;:12;:15;:12;:15;:::i;91798:181::-;91918:53;;-1:-1:-1;;;91918:53:0;;91891:7;;-1:-1:-1;;;;;91918:35:0;;;;;:53;;91954:7;;91963;;91918:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49146:360;49236:13;49251;49278:14;49297:26;49308:6;49316;49297:10;:26::i;:::-;49277:46;;;49335:13;49350;49383:4;-1:-1:-1;;;;;49368:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49334:68;-1:-1:-1;;;;;49334:68:0;;;-1:-1:-1;;;;;49334:68:0;;;49446:6;-1:-1:-1;;;;;49436:16:0;:6;-1:-1:-1;;;;;49436:16:0;;:62;;49479:8;49489;49436:62;;;49456:8;49466;49436:62;49413:85;;;;-1:-1:-1;49146:360:0;-1:-1:-1;;;;;;;49146:360:0:o;50700:472::-;50793:13;50839:1;50827:9;:13;50819:70;;;;-1:-1:-1;;;50819:70:0;;;;;;;;;50920:1;50908:9;:13;:31;;;;;50938:1;50925:10;:14;50908:31;50900:84;;;;-1:-1:-1;;;50900:84:0;;;;;;;;;50995:14;51012:34;51041:4;51012:24;:9;51026;51012:24;:13;:24;:::i;:::-;:28;:34;:28;:34;:::i;:::-;50995:51;-1:-1:-1;51057:16:0;51076:34;51106:3;51076:25;:10;51091:9;51076:25;:14;:25;:::i;:34::-;51057:53;;51132:32;51162:1;51145:11;51133:9;:23;;;;;;;51132:32;:29;:32;:::i;:::-;51121:43;50700:472;-1:-1:-1;;;;;;50700:472:0:o;50062:517::-;50155:14;50201:1;50190:8;:12;50182:68;;;;-1:-1:-1;;;50182:68:0;;;;;;;;;50281:1;50269:9;:13;:31;;;;;50299:1;50286:10;:14;50269:31;50261:84;;;;-1:-1:-1;;;50261:84:0;;;;;;;;;50356:20;50379:17;:8;50392:3;50379:17;:12;:17;:::i;:::-;50356:40;-1:-1:-1;50407:14:0;50424:31;50356:40;50444:10;50424:31;:19;:31;:::i;:::-;50407:48;-1:-1:-1;50466:16:0;50485:40;50509:15;50485:19;:9;50499:4;50485:19;:13;:19;:::i;:40::-;50466:59;;50560:11;50548:9;:23;;;;;;;50062:517;-1:-1:-1;;;;;;;50062:517:0:o;41245:93::-;40800:8;41245:93;:::o;19110:471::-;19168:7;19413:6;19409:47;;-1:-1:-1;19443:1:0;19436:8;;19409:47;19480:5;;;19484:1;19480;:5;:1;19504:5;;;;;:10;19496:56;;;;-1:-1:-1;;;19496:56:0;;;;;;;;20057:132;20115:7;20142:39;20146:1;20149;20142:39;;;;;;;;;;;;;;;;;:3;:39::i;43285:126::-;43350:7;43377:26;43401:1;43377:19;:1;40800:8;43377:19;:5;:19;:::i;16384:106::-;16442:7;16473:1;16469;:5;:13;;16481:1;16469:13;;;-1:-1:-1;16477:1:0;;16384:106;-1:-1:-1;16384:106:0:o;822:422::-;1189:20;1228:8;;;822:422::o;6331:742::-;6446:12;6475:7;6471:595;;;-1:-1:-1;6506:10:0;6499:17;;6471:595;6620:17;;:21;6616:439;;6883:10;6877:17;6944:15;6931:10;6927:2;6923:19;6916:44;6831:148;7026:12;7019:20;;-1:-1:-1;;;7019:20:0;;;;;;;;;48739:349;48814:14;48830;48875:6;-1:-1:-1;;;;;48865:16:0;:6;-1:-1:-1;;;;;48865:16:0;;;48857:66;;;;-1:-1:-1;;;48857:66:0;;;;;;;;;48962:6;-1:-1:-1;;;;;48953:15:0;:6;-1:-1:-1;;;;;48953:15:0;;:53;;48991:6;48999;48953:53;;;48972:6;48980;48953:53;48934:72;;-1:-1:-1;48934:72:0;-1:-1:-1;;;;;;49025:20:0;;49017:63;;;;-1:-1:-1;;;49017:63:0;;;;;;;;;48739:349;;;;;:::o;20685:278::-;20771:7;20806:12;20799:5;20791:28;;;;-1:-1:-1;;;20791:28:0;;;;;;;;;;;20830:9;20846:1;20842;:5;;;;;;;20685:278;-1:-1:-1;;;;;20685:278:0:o;3349:263:-1:-;;3464:2;3452:9;3443:7;3439:23;3435:32;3432:2;;;-1:-1;;3470:12;3432:2;226:6;220:13;238:33;265:5;238:33;;3619:392;;3759:2;;3747:9;3738:7;3734:23;3730:32;3727:2;;;-1:-1;;3765:12;3727:2;3816:17;3810:24;3854:18;3846:6;3843:30;3840:2;;;-1:-1;;3876:12;3840:2;3978:6;3967:9;3963:22;429:3;422:4;414:6;410:17;406:27;396:2;;-1:-1;;437:12;396:2;477:6;471:13;457:27;;499:80;514:64;571:6;514:64;;;499:80;;;607:21;;;664:14;;;;639:17;;;753;;;744:27;;;;741:36;-1:-1;738:2;;;-1:-1;;780:12;738:2;-1:-1;806:10;;800:217;825:6;822:1;819:13;800:217;;;226:6;220:13;238:33;265:5;238:33;;;893:61;;847:1;840:9;;;;;968:14;;;;996;;800:217;;;-1:-1;3896:99;3721:290;-1:-1;;;;;;;3721:290;4018:425;;;4171:2;4159:9;4150:7;4146:23;4142:32;4139:2;;;-1:-1;;4177:12;4139:2;4235:17;4222:31;4273:18;;4265:6;4262:30;4259:2;;;-1:-1;;4295:12;4259:2;4410:6;4399:9;4395:22;1201:3;1194:4;1186:6;1182:17;1178:27;1168:2;;-1:-1;;1209:12;1168:2;1252:6;1239:20;1229:30;;4273:18;1271:6;1268:30;1265:2;;;-1:-1;;1301:12;1265:2;1396:3;4171:2;;1380:6;1376:17;1337:6;1362:32;;1359:41;1356:2;;;-1:-1;;1403:12;1356:2;4171;1333:17;;4323:104;;-1:-1;4133:310;;-1:-1;;;;4133:310;4450:392;;4590:2;;4578:9;4569:7;4565:23;4561:32;4558:2;;;-1:-1;;4596:12;4558:2;4647:17;4641:24;4685:18;4677:6;4674:30;4671:2;;;-1:-1;;4707:12;4671:2;4809:6;4798:9;4794:22;1577:3;1570:4;1562:6;1558:17;1554:27;1544:2;;-1:-1;;1585:12;1544:2;1625:6;1619:13;1605:27;;1647:80;1662:64;1719:6;1662:64;;1647:80;1755:21;;;1812:14;;;;1787:17;;;1901;;;1892:27;;;;1889:36;-1:-1;1886:2;;;-1:-1;;1928:12;1886:2;-1:-1;1954:10;;1948:217;1973:6;1970:1;1967:13;1948:217;;;3147:13;;2041:61;;1995:1;1988:9;;;;;2116:14;;;;2144;;1948:217;;4849:257;;4961:2;4949:9;4940:7;4936:23;4932:32;4929:2;;;-1:-1;;4967:12;4929:2;2260:6;2254:13;41108:5;38018:13;38011:21;41086:5;41083:32;41073:2;;-1:-1;;41119:12;5113:269;;5231:2;5219:9;5210:7;5206:23;5202:32;5199:2;;;-1:-1;;5237:12;5199:2;2408:6;2395:20;2420:47;2461:5;2420:47;;5673:527;;;;5829:2;5817:9;5808:7;5804:23;5800:32;5797:2;;;-1:-1;;5835:12;5797:2;2577:6;2564:20;2589:51;2634:5;2589:51;;;5887:81;-1:-1;6005:2;6044:22;;72:20;97:33;72:20;97:33;;;5791:409;;6013:63;;-1:-1;;;6113:2;6152:22;;;;2999:20;;5791:409;6207:555;;;;6377:2;6365:9;6356:7;6352:23;6348:32;6345:2;;;-1:-1;;6383:12;6769:681;;;;;6956:3;6944:9;6935:7;6931:23;6927:33;6924:2;;;-1:-1;;6963:12;6924:2;2577:6;2564:20;2589:51;2634:5;2589:51;;;7015:81;-1:-1;7133:2;7186:22;;2395:20;2420:47;2395:20;2420:47;;;6918:532;;7141:77;;-1:-1;;;;7255:2;7294:22;;2999:20;;7363:2;7402:22;2999:20;;6918:532;7457:402;;;7596:2;7584:9;7575:7;7571:23;7567:32;7564:2;;;-1:-1;;7602:12;7564:2;2577:6;2564:20;2589:51;2634:5;2589:51;;;7654:81;7772:2;7811:22;;;;2999:20;;-1:-1;;;7558:301;7866:527;;;;8022:2;8010:9;8001:7;7997:23;7993:32;7990:2;;;-1:-1;;8028:12;7990:2;2577:6;2564:20;2589:51;2634:5;2589:51;;;8080:81;8198:2;8237:22;;2999:20;;-1:-1;8306:2;8345:22;;;2999:20;;7984:409;-1:-1;;;7984:409;8400:261;;8514:2;8502:9;8493:7;8489:23;8485:32;8482:2;;;-1:-1;;8520:12;8482:2;-1:-1;2729:13;;8476:185;-1:-1;8476:185;8668:533;;;;8816:2;8804:9;8795:7;8791:23;8787:32;8784:2;;;-1:-1;;8822:12;8784:2;2875:6;2869:13;2887:33;2914:5;2887:33;;;8985:2;9035:22;;2869:13;8874:74;;-1:-1;2887:33;2869:13;2887:33;;;9104:2;9153:22;;3287:13;8993:74;;-1:-1;38745:10;38734:22;;41885:34;;41875:2;;-1:-1;;41923:12;41875:2;9112:73;;;;8778:423;;;;;;10070:690;;10263:5;36929:12;37473:6;37468:3;37461:19;37510:4;;37505:3;37501:14;10275:93;;37510:4;10439:5;36783:14;-1:-1;10478:260;10503:6;10500:1;10497:13;10478:260;;;10564:13;;-1:-1;;;;;38528:54;9870:37;;9632:14;;;;37316;;;;3854:18;10518:9;10478:260;;;-1:-1;10744:10;;10194:566;-1:-1;;;;;10194:566;20600:271;;10928:5;36929:12;11039:52;11084:6;11079:3;11072:4;11065:5;11061:16;11039:52;;;11103:16;;;;;20734:137;-1:-1;;20734:137;20878:379;21242:10;21066:191;21264:222;-1:-1;;;;;38528:54;;;;9870:37;;21391:2;21376:18;;21362:124;21493:349;-1:-1;;;;;38528:54;;;9739:58;;38528:54;;21828:2;21813:18;;9870:37;21656:2;21641:18;;21627:215;22189:444;-1:-1;;;;;38528:54;;;9870:37;;38528:54;;;;22536:2;22521:18;;9870:37;22619:2;22604:18;;20551:37;;;;22372:2;22357:18;;22343:290;22640:333;-1:-1;;;;;38528:54;;;;9870:37;;22959:2;22944:18;;20551:37;22795:2;22780:18;;22766:207;23536:496;-1:-1;;;;;38528:54;;;11231:79;;23927:2;23912:18;;20551:37;;;;38528:54;;;24018:2;24003:18;;9739:58;23745:2;23730:18;;23716:316;24320:310;;24467:2;24488:17;24481:47;12143:5;36929:12;37473:6;24467:2;24456:9;24452:18;37461:19;12237:52;12282:6;37501:14;24456:9;37501:14;24467:2;12263:5;12259:16;12237:52;;;40882:7;40866:14;-1:-1;;40862:28;12301:39;;;;37501:14;12301:39;;24438:192;-1:-1;;24438:192;24637:416;24837:2;24851:47;;;12577:2;24822:18;;;37461:19;12613:34;37501:14;;;12593:55;-1:-1;;;12668:12;;;12661:32;12712:12;;;24808:245;25060:416;25260:2;25274:47;;;12963:2;25245:18;;;37461:19;12999:34;37501:14;;;12979:55;-1:-1;;;13054:12;;;13047:37;13103:12;;;25231:245;25483:416;25683:2;25697:47;;;13354:2;25668:18;;;37461:19;13390:29;37501:14;;;13370:50;13439:12;;;25654:245;25906:416;26106:2;26120:47;;;26091:18;;;37461:19;13726:34;37501:14;;;13706:55;13780:12;;;26077:245;26329:416;26529:2;26543:47;;;14031:2;26514:18;;;37461:19;14067:34;37501:14;;;14047:55;-1:-1;;;14122:12;;;14115:36;14170:12;;;26500:245;26752:416;26952:2;26966:47;;;14421:2;26937:18;;;37461:19;14457:31;37501:14;;;14437:52;14508:12;;;26923:245;27175:416;27375:2;27389:47;;;14759:2;27360:18;;;37461:19;14795:34;37501:14;;;14775:55;-1:-1;;;14850:12;;;14843:29;14891:12;;;27346:245;27598:416;27798:2;27812:47;;;15142:2;27783:18;;;37461:19;15178:34;37501:14;;;15158:55;15247:28;15233:12;;;15226:50;15295:12;;;27769:245;28021:416;28221:2;28235:47;;;15546:2;28206:18;;;37461:19;15582:31;37501:14;;;15562:52;15633:12;;;28192:245;28444:416;28644:2;28658:47;;;15884:2;28629:18;;;37461:19;15920:34;37501:14;;;15900:55;-1:-1;;;15975:12;;;15968:30;16017:12;;;28615:245;28867:416;29067:2;29081:47;;;16268:2;29052:18;;;37461:19;16304:34;37501:14;;;16284:55;-1:-1;;;16359:12;;;16352:35;16406:12;;;29038:245;29290:416;29490:2;29504:47;;;16657:2;29475:18;;;37461:19;16693:34;37501:14;;;16673:55;-1:-1;;;16748:12;;;16741:36;16796:12;;;29461:245;29713:416;29913:2;29927:47;;;17047:2;29898:18;;;37461:19;17083:34;37501:14;;;17063:55;-1:-1;;;17138:12;;;17131:32;17182:12;;;29884:245;30136:416;30336:2;30350:47;;;17433:2;30321:18;;;37461:19;17469:34;37501:14;;;17449:55;-1:-1;;;17524:12;;;17517:40;17576:12;;;30307:245;30559:416;30759:2;30773:47;;;17827:2;30744:18;;;37461:19;17863:34;37501:14;;;17843:55;-1:-1;;;17918:12;;;17911:25;17955:12;;;30730:245;30982:416;31182:2;31196:47;;;18511:2;31167:18;;;37461:19;18547:31;37501:14;;;18527:52;18598:12;;;31153:245;31405:416;31605:2;31619:47;;;18849:2;31590:18;;;37461:19;18885:32;37501:14;;;18865:53;18937:12;;;31576:245;31828:416;32028:2;32042:47;;;19188:2;32013:18;;;37461:19;19224:34;37501:14;;;19204:55;-1:-1;;;19279:12;;;19272:34;19325:12;;;31999:245;32251:416;32451:2;32465:47;;;19576:2;32436:18;;;37461:19;19612:33;37501:14;;;19592:54;19665:12;;;32422:245;32674:416;32874:2;32888:47;;;19916:2;32859:18;;;37461:19;19952:34;37501:14;;;19932:55;-1:-1;;;20007:12;;;20000:35;20054:12;;;32845:245;33097:416;33297:2;33311:47;;;20305:2;33282:18;;;37461:19;20341:34;37501:14;;;20321:55;-1:-1;;;20396:12;;;20389:46;20454:12;;;33268:245;33520:222;20551:37;;;33647:2;33632:18;;33618:124;33749:848;;20581:5;20558:3;20551:37;40242:24;34227:2;34216:9;34212:18;11928:58;34054:3;34264:2;34253:9;34249:18;34242:48;34304:108;34054:3;34043:9;34039:19;34398:6;34304:108;;;-1:-1;;;;;38528:54;;;;34499:2;34484:18;;9739:58;-1:-1;34582:3;34567:19;20551:37;34296:116;34025:572;-1:-1;;;34025:572;34604:333;20551:37;;;34923:2;34908:18;;20551:37;34759:2;34744:18;;34730:207;35783:256;35845:2;35839:9;35871:17;;;35946:18;35931:34;;35967:22;;;35928:62;35925:2;;;36003:1;;35993:12;35925:2;35845;36012:22;35823:216;;-1:-1;35823:216;36046:304;;36205:18;36197:6;36194:30;36191:2;;;-1:-1;;36227:12;36191:2;-1:-1;36272:4;36260:17;;;36325:15;;36128:222;40522:268;40587:1;40594:101;40608:6;40605:1;40602:13;40594:101;;;40675:11;;;40669:18;40656:11;;;40649:39;40630:2;40623:10;40594:101;;;40710:6;40707:1;40704:13;40701:2;;;-1:-1;;40587:1;40757:16;;40750:27;40571:219;40903:117;-1:-1;;;;;38528:54;;40962:35;;40952:2;;41011:1;;41001:12;41579:117;-1:-1;;;;;41666:5;38412:42;41641:5;41638:35;41628:2;;41687:1;;41677:12
Swarm Source
ipfs://ffff6e48cf35ef642ea96ce61bca2da5eb59481b11dc3cb857414c16f5288f03
Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 26 Chains
Chain Token Portfolio % Price Amount Value ETH 30.12% $14.45 436.7015 $6,310.34 ETH 18.59% $9.16 425.1064 $3,893.97 ETH 10.49% $2,580.92 0.8516 $2,197.97 ETH 5.86% $98.11 12.5073 $1,227.15 ETH 5.70% $0.208784 5,718.5928 $1,193.95 ETH 3.15% $0.345377 1,913.5826 $660.91 ETH 2.83% $0.330538 1,792.4643 $592.48 ETH 1.92% $2 200.9017 $401.8 ETH 1.85% $3,450.33 0.1124 $387.88 ETH 1.80% $62,998 0.00598225 $376.87 ETH 1.79% $0.561829 668.7045 $375.7 ETH 1.49% $49.46 6.3058 $311.89 ETH 1.47% $0.793197 388.717 $308.33 ETH 1.47% $2.01 152.8529 $307.23 ETH 1.42% $3.96 75.377 $298.49 ETH 1.04% $0.194455 1,116.5042 $217.11 ETH 1.01% $0.004844 43,735.6556 $211.87 ETH 0.89% $0.176832 1,052.2444 $186.07 ETH 0.81% $3.09 54.9317 $169.74 ETH 0.75% $2.93 53.3391 $156.28 ETH 0.72% $0.027165 5,515.2111 $149.82 ETH 0.63% $0.999699 131.7479 $131.71 ETH 0.48% $0.284803 354.4827 $100.96 ETH 0.46% $0.190392 505.0223 $96.15 ETH 0.46% $39.71 2.4111 $95.75 ETH 0.40% $0.831877 100.3629 $83.49 ETH 0.30% $0.154115 410.0164 $63.19 ETH 0.30% $1.29 48.3177 $62.33 ETH 0.28% $0.162204 358.104 $58.09 ETH 0.27% $0.114608 495.254 $56.76 ETH 0.20% $0.326624 126.4546 $41.3 ETH 0.15% $26.16 1.1877 $31.07 ETH 0.14% $0.080333 368.6134 $29.61 ETH 0.14% $10.96 2.6761 $29.33 ETH 0.10% $99.99 0.2098 $20.97 ETH 0.09% $0.029973 647.022 $19.39 ETH 0.08% $0.358622 44.7382 $16.04 ETH 0.08% $0.051733 308.608 $15.97 ETH 0.07% $0.026563 580.9821 $15.43 ETH 0.05% $2.11 5.4574 $11.52 ETH 0.04% $0.002311 3,431.81 $7.93 ETH 0.04% $0.020052 389.1351 $7.8 ETH 0.02% $0.597569 7.2037 $4.3 ETH 0.02% $0.003534 998.3483 $3.53 ETH 0.01% $13.8 0.1857 $2.56 ETH 0.01% $0.999672 2.4504 $2.45 ETH <0.01% $3.3 0.5458 $1.8 ETH <0.01% $0.009145 177.2431 $1.62 ETH <0.01% $0.171536 8.3256 $1.43 ETH <0.01% $0.031054 21.3179 $0.662 ETH <0.01% $0.007072 63.4577 $0.4488 ETH <0.01% $0.033003 12.0268 $0.3969 ETH <0.01% $0.825467 0.3707 $0.3059 ETH <0.01% $0.001832 97.6135 $0.1788 BSC <0.01% $0.023077 10 $0.2307 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 FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity), ABIDecodeTwoDimensionalArrayMemory (very low-severity), KeccakCaching (medium-severity), EmptyByteArrayCopy (medium-severity), DynamicArrayCleanup (medium-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.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.