![ads](/images/gen/moonpay_20.png)
20M+ users trust MoonPay worldwide. 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)
Get up to 0.5% cashback per purchase and receive daily interest.
![ads](/images/gen/cons_20.png)
Ready to simplify your web3 experience? Try the all-in-one web3 app trusted by millions worldwide.
Purchase 100+ cryptocurrencies instantly, with Visa/Mastercard, Google/Apple Pay, and a variety of other funding methods.
![ads](/images/gen/coinsgame_20a.png)
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
![ads](/images/gen/celsiuscasino_20.png)
9 years old Licensed Crypto Casino, Instant Withdraw 24/7, 6000+ Slots available, Paypal Deposit, Instant Live Support 24/7, 30% Rakeback.
![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 (70)0.01595766 alETHAlchemix ETH (alETH)$38.76@2,429.203.15353027 wUSKWrapped USK (wUSK)$2.65@0.8393132.71031192 1INCH1INCH Token (1INCH)$34.26@0.25820.09714214 AMKTAlongside Cr... (AMKT)$15.18@156.22226.70564887 AURAAura (AURA)$123.03@0.54271,323.41877297 BADGERBadger (BADGER)$4,076.13@3.0810.11362761 XCHFCryptoFranc (XCHF)$11.73@1.160.52047939 DUSDDavos.xyz US... (DUSD)$0.52@0.9938251.12512568 DCHFDefi Franc (DCHF)$245.72@0.9785490.6098461 DOLADola USD Sta... (DOLA)$487.37@0.99341,395.73255836 DOPDrops Owners... (DOP)$22.01@0.0158237.81888742 FRAXFrax (FRAX)$237.02@0.99670.4163126 frxETHFrax Ether (frxETH)$1,117.00@2,683.0755447,858.06307398 IZEGalvan (IZE)$105.63@0.000242.67942637 GHOGho Token (GHO)$42.67@0.9998611.09911424 GRAIGravita Debt... (GRAI)$604.97@0.9936.79857821 IDLEIdle (IDLE)$9.65@0.26236.29259651 INVInverse DAO (INV)$178.77@28.4195.66447996 JARVISJARVIS (JARVIS)$5.63@0.0588102.79002148 LDOLido DAO Tok... (LDO)$122.32@1.19307.60085504 LQTYLQTY (LQTY)$301.66@0.98070.09982488 MATICMatic Token (MATIC)$0.05@0.505572.63162137 EUReMonerium EUR... (EURe)$81.10@1.11662,428.11119838 MONMoneta (MON)1.24868043 paUSDpaUSD Stable... (paUSD)$1.26@1.0090.07805601 pxETHPirex Ether (pxETH)$208.69@2,673.540.2782297 rETHRocket Pool ... (rETH)$831.74@2,989.410.06558996 rswETHrswETH (rswETH)$179.14@2,731.27361,173.82703832 SGTSharedstake.... (SGT)$41.65@0.03551.84231909 SUDOSUDO GOVERNA... (SUDO)$0.17@0.09320.68113647 swETHswETH (swETH)$1,950.75@2,863.96180.00009142 tBTCtBTC v2 (tBTC)$5.75@62,893.0015.8671411 UNIUniswap (UNI)$99.96@6.307.57022775 USDeUSDe (USDe)$7.56@0.99930.00130087 weETHWrapped eETH (weETH)$3.65@2,803.1060.60214422 DAIDai Stableco... (DAI)$60.59@0.99990.15750093 RPLRocket Pool (RPL)$1.99@12.6665.8309 USDTTether USD (USDT)$65.90@1.0011,044.433008 USDCUSDC (USDC)$1,044.43@1.000.09755405 WBTCWrapped BTC (WBTC)$6,131.47@62,852.001.86112196 WETHWrapped Ethe... (WETH)$4,975.66@2,673.47290.00005056 wstETHWrapped liqu... (wstETH)$0.16@3,149.9812.5 Earn rewards at https://reth.farm$ reth.farm (Earn r...)4.75ERC20 ***2.41189416 ABIAbachi$2.11@0.87650.13654514 ABIAbachi (ABI)22,338.56489372 BSNBlockswap Ne... (BSN)117.85217783 bLUSDbLUSD$155.56@1.320.07027279 boxETHCat-in-a-Box Ether$178.96@2,546.680.01 ETXEthereum Dex (ETX)65,241,751.9307148 KCKabosucoin (KC)60,789.46616711 LITLiquidity Incentive Token$1,065.07@0.01756,608.03814735 LIQLiquis$38.74@0.00590.81271703 liqLITLiquis LIT (liqLIT)603.58357534 PALPaladin Token$31.51@0.0522551.35514854 TAITAI reflex i... (TAI)0.03225563 ∞-wlstETH-NYTTimeless ERC... (∞-wlst...)0.01610947 ∞-stETH-xPYTTimeless Lid... (∞-stET...)10.498289ERC20 ***14.164213ERC20 ***0.02565923 ∞-yvWETH-NYTTimeless WET... (∞-yvWE...)0.01988575 ∞-yvWETH-xPYTTimeless Yea... (∞-yvWE...)11.90308443 MPH88mph.app$5.67@0.47614.0493501 alUSDAlchemix USD$13.65@0.9719310.68750738 LUSDLUSD Stablecoin$310.21@0.99851.2 TokenERC-20 TOKEN*[Suspicious]2,382.23 TokenERC-20 TOKEN*[Suspicious]1.7 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]9,000 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (22)Distribute NFT originethers.comDistribute NFT originethers.comERC-1155Official Authorize credentialFRAX: Airdrop NFT VoucherERC-1155Puffer Mystery Box NFT pufether.orgPuffer Mystery Box NFT pufether.orgERC-1155Withdraw Request puffereth.comWithdraw Request puffereth.comERC-1155ether-origin.comWithdrawal NFT ether-origin.comERC-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]More Info
Private Name Tags
ContractCreator
Multichain Info
2 addresses found via- 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 3,272 transactions
Transaction Hash MethodBlockFromToMulticall 20615556 2024-08-26 21:49:11 5 hrs ago 1724708951 IN 0 ETH$0.00 0.00023352 1.38562467 Multicall 20607556 2024-08-25 19:01:11 32 hrs ago 1724612471 IN 0 ETH$0.00 0.00010644 0.74404799 Multicall 20605352 2024-08-25 11:37:11 39 hrs ago 1724585831 IN 0 ETH$0.00 0.00022409 1.19145598 Multicall 20584673 2024-08-22 14:14:35 4 days ago 1724336075 IN 0 ETH$0.00 0.00067077 3.54525343 Multicall 20578111 2024-08-21 16:12:35 5 days ago 1724256755 IN 0 ETH$0.00 0.00033907 2.24544278 Multicall 20568112 2024-08-20 6:41:23 6 days ago 1724136083 IN 0 ETH$0.00 0.00015572 0.9318416 Multicall 20544988 2024-08-17 1:12:59 10 days ago 1723857179 IN 0 ETH$0.00 0.00018372 0.95580748 Multicall 20543150 2024-08-16 19:02:11 10 days ago 1723834931 IN 0 ETH$0.00 0.00031528 2.03474457 Multicall 20536343 2024-08-15 20:14:11 11 days ago 1723752851 IN 0 ETH$0.00 0.00245304 8.5 Multicall 20534369 2024-08-15 13:36:23 11 days ago 1723728983 IN 0 ETH$0.00 0.00139415 5.4 Multicall 20520665 2024-08-13 15:41:47 13 days ago 1723563707 IN 0 ETH$0.00 0.00059283 3.54798372 Multicall 20518203 2024-08-13 7:26:23 13 days ago 1723533983 IN 0 ETH$0.00 0.0002495 1.48363136 Multicall 20516985 2024-08-13 3:22:11 13 days ago 1723519331 IN 0 ETH$0.00 0.00037499 2.19331351 Multicall 20511692 2024-08-12 9:38:47 14 days ago 1723455527 IN 0 ETH$0.00 0.00087721 5.13114229 Multicall 20498838 2024-08-10 14:34:47 16 days ago 1723300487 IN 0 ETH$0.00 0.00032796 1.73316538 Multicall 20496756 2024-08-10 7:35:59 16 days ago 1723275359 IN 0 ETH$0.00 0.00018851 1.02360285 Multicall 20496004 2024-08-10 5:04:59 16 days ago 1723266299 IN 0 ETH$0.00 0.00012611 0.83 Multicall 20481642 2024-08-08 5:01:47 18 days ago 1723093307 IN 0 ETH$0.00 0.0002062 1.09 Multicall 20475308 2024-08-07 7:49:35 19 days ago 1723016975 IN 0 ETH$0.00 0.00024932 1.84536046 Multicall 20475307 2024-08-07 7:49:23 19 days ago 1723016963 IN 0 ETH$0.00 0.0003027 1.79284696 Multicall 20475306 2024-08-07 7:49:11 19 days ago 1723016951 IN 0 ETH$0.00 0.00024176 1.79056993 Multicall 20474758 2024-08-07 5:59:23 19 days ago 1723010363 IN 0 ETH$0.00 0.00029522 1.62810979 Multicall 20464383 2024-08-05 19:13:59 21 days ago 1722885239 IN 0 ETH$0.00 0.00088346 7.01288129 Multicall 20456394 2024-08-04 16:30:11 22 days ago 1722789011 IN 0 ETH$0.00 0.00201287 11.01938513 Multicall 20449594 2024-08-03 17:45:11 23 days ago 1722707111 IN 0 ETH$0.00 0.00087861 4.2593297 Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 20616751 2024-08-27 1:50:23 1 hr ago 1724723423 0 ETH$0.00 Loading...LoadingThis contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.Contract Name:BunniHub
Compiler Versionv0.8.15+commit.e14f2714
Contract Source Code (Solidity)
- library TickMath
- - function getSqrtRatioAtTick(int24 tic ...
- - function getTickAtSqrtRatio(uint160 s ...
- library FullMath
- - function mulDiv(
- - function mulDivRoundingUp(
- interface IUniswapV3Factory
- - function owner()
- - function feeAmountTickSpacing(uint24 ...
- - function getPool(
- - function createPool(
- - function setOwner(address _owner)
- - function enableFeeAmount(uint24 fee, ...
- interface IMulticall
- - function multicall(bytes[] calldata d ...
- - function multicall(bytes[] calldata d ...
- interface IERC20Permit
- - function permit(
- - function nonces(address owner)
- - function DOMAIN_SEPARATOR()
- interface ISelfPermit
- - function selfPermit(
- - function selfPermitIfNecessary(
- - function selfPermitAllowed(
- - function selfPermitAllowedIfNecessary ...
- interface IERC20PermitAllowed
- - function permit(
- - function selfPermit(
- - function selfPermitIfNecessary(
- - function selfPermitAllowed(
- - function selfPermitAllowedIfNecessary ...
- library FixedPoint96
- library LiquidityAmounts
- - function toUint128(uint256 x)
- - function getLiquidityForAmount0(
- - function getLiquidityForAmount1(
- - function getLiquidityForAmounts(
- - function getAmount0ForLiquidity(
- - function getAmount1ForLiquidity(
- - function getAmountsForLiquidity(
- - function setOwner(address newOwner)
- library Bytes32AddressLib
- - function fromLast20Bytes(bytes32 byte ...
- - function fillLast12Bytes(address addr ...
- library CREATE3
- - function deploy(
- - function getDeployed(bytes32 salt)
- interface IUniswapV3PoolImmutables
- - function factory()
- - function token0()
- - function token1()
- - function fee()
- - function tickSpacing()
- - function maxLiquidityPerTick()
- interface IUniswapV3PoolState
- - function slot0()
- - function feeGrowthGlobal0X128()
- - function feeGrowthGlobal1X128()
- - function protocolFees()
- - function liquidity()
- - function ticks(int24 tick)
- - function tickBitmap(int16 wordPositio ...
- - function positions(bytes32 key)
- - function observations(uint256 index)
- interface IUniswapV3PoolDerivedState
- - function observe(uint32[] calldata se ...
- - function snapshotCumulativesInside(in ...
- interface IUniswapV3PoolActions
- - function initialize(uint160 sqrtPrice ...
- - function mint(
- - function collect(
- - function burn(
- - function swap(
- - function flash(
- - function increaseObservationCardinali ...
- interface IUniswapV3PoolOwnerActions
- - function setFeeProtocol(uint8 feeProt ...
- - function collectProtocol(
- interface IUniswapV3PoolErrors
- interface IUniswapV3PoolEvents
- interface IUniswapV3Pool is
- interface IERC20
- - function totalSupply()
- - function balanceOf(address account)
- - function transfer(address recipient, ...
- - function allowance(address owner, add ...
- - function approve(address spender, uin ...
- - function transferFrom(
- - function name()
- - function symbol()
- - function decimals()
- - function nonces(address account)
- - function permit(
- - function DOMAIN_SEPARATOR()
- - function approve(address spender, uin ...
- - function transfer(address to, uint256 ...
- - function transferFrom(
- - function permit(
- - function DOMAIN_SEPARATOR()
- - function computeDomainSeparator()
- - function _mint(address to, uint256 am ...
- - function _burn(address from, uint256 ...
- interface IBunniToken is IERC20
- - function pool()
- - function tickLower()
- - function tickUpper()
- - function hub()
- - function mint(address to, uint256 amo ...
- - function burn(address from, uint256 a ...
- interface IUniswapV3MintCallback
- - function uniswapV3MintCallback(
- interface ILiquidityManagement is IUn ...
- - function factory()
- interface IBunniHub is IMulticall, IS ...
- - function deposit(DepositParams callda ...
- - function withdraw(WithdrawParams call ...
- - function compound(BunniKey calldata k ...
- - function deployBunniToken(BunniKey ca ...
- - function getBunniToken(BunniKey calld ...
- - function sweepTokens(IERC20[] calldat ...
- - function setProtocolFee(uint256 value ...
- - function protocolFee()
- contract BunniToken is IBunniToken ...
- - function mint(address to, uint256 amo ...
- - function burn(address from, uint256 a ...
- library SafeTransferLib
- - function safeTransferETH(address to, ...
- - function safeTransferFrom(
- - function safeTransfer(
- - function safeApprove(
- - function uniswapV3MintCallback(
- - function _addLiquidity(AddLiquidityPa ...
- - function pay(
- contract BunniHub is *
- - function deposit(DepositParams callda ...
- - function withdraw(WithdrawParams call ...
- - function compound(BunniKey calldata k ...
- - function deployBunniToken(BunniKey ca ...
- - function getBunniToken(BunniKey calld ...
- - function sweepTokens(IERC20[] calldat ...
- - function setProtocolFee(uint256 value ...
- - function _mintShares(
/** *Submitted for verification at Etherscan.io on 2022-10-14 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.15; /// @title Math library for computing sqrt prices from ticks and vice versa /// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports /// prices between 2**-128 and 2**128 library TickMath { error T(); error R(); /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128 int24 internal constant MIN_TICK = -887272; /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128 int24 internal constant MAX_TICK = -MIN_TICK; /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK) uint160 internal constant MIN_SQRT_RATIO = 4295128739; /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK) uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342; /// @notice Calculates sqrt(1.0001^tick) * 2^96 /// @dev Throws if |tick| > max tick /// @param tick The input tick for the above formula /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0) /// at the given tick function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) { unchecked { uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick)); if (absTick > uint256(int256(MAX_TICK))) revert T(); uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000; if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128; if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128; if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128; if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128; if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128; if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128; if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128; if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128; if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128; if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128; if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128; if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128; if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128; if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128; if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128; if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128; if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128; if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128; if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128; if (tick > 0) ratio = type(uint256).max / ratio; // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96. // we then downcast because we know the result always fits within 160 bits due to our tick input constraint // we round up in the division so getTickAtSqrtRatio of the output price is always consistent sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)); } } /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may /// ever return. /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96 /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) { unchecked { // second inequality must be < because the price can never reach the price at the max tick if (!(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO)) revert R(); uint256 ratio = uint256(sqrtPriceX96) << 32; uint256 r = ratio; uint256 msb = 0; assembly { let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(5, gt(r, 0xFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(4, gt(r, 0xFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(3, gt(r, 0xFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(2, gt(r, 0xF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(1, gt(r, 0x3)) msb := or(msb, f) r := shr(f, r) } assembly { let f := gt(r, 0x1) msb := or(msb, f) } if (msb >= 128) r = ratio >> (msb - 127); else r = ratio << (127 - msb); int256 log_2 = (int256(msb) - 128) << 64; assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(63, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(62, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(61, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(60, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(59, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(58, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(57, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(56, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(55, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(54, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(53, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(52, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(51, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(50, f)) } int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128); int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128); tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow; } } } /// @title Contains 512-bit math functions /// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision /// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits library FullMath { /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 /// @param a The multiplicand /// @param b The multiplier /// @param denominator The divisor /// @return result The 256-bit result /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv function mulDiv( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = a * b // Compute the product mod 2**256 and mod 2**256 - 1 // then use the Chinese Remainder Theorem to reconstruct // the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2**256 + prod0 uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(a, b, not(0)) prod0 := mul(a, b) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division if (prod1 == 0) { require(denominator > 0); assembly { result := div(prod0, denominator) } return result; } // Make sure the result is less than 2**256. // Also prevents denominator == 0 require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0] // Compute remainder using mulmod uint256 remainder; assembly { remainder := mulmod(a, b, denominator) } // Subtract 256 bit number from 512 bit number assembly { prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator // Compute largest power of two divisor of denominator. // Always >= 1. uint256 twos = (0 - denominator) & denominator; // Divide denominator by power of two assembly { denominator := div(denominator, twos) } // Divide [prod1 prod0] by the factors of two assembly { prod0 := div(prod0, twos) } // Shift in bits from prod1 into prod0. For this we need // to flip `twos` such that it is 2**256 / twos. // If twos is zero, then it becomes one assembly { twos := add(div(sub(0, twos), twos), 1) } prod0 |= prod1 * twos; // Invert denominator mod 2**256 // Now that denominator is an odd number, it has an inverse // modulo 2**256 such that denominator * inv = 1 mod 2**256. // Compute the inverse by starting with a seed that is correct // correct for four bits. That is, denominator * inv = 1 mod 2**4 uint256 inv = (3 * denominator) ^ 2; // Now use Newton-Raphson iteration to improve the precision. // Thanks to Hensel's lifting lemma, this also works in modular // arithmetic, doubling the correct bits in each step. inv *= 2 - denominator * inv; // inverse mod 2**8 inv *= 2 - denominator * inv; // inverse mod 2**16 inv *= 2 - denominator * inv; // inverse mod 2**32 inv *= 2 - denominator * inv; // inverse mod 2**64 inv *= 2 - denominator * inv; // inverse mod 2**128 inv *= 2 - denominator * inv; // inverse mod 2**256 // Because the division is now exact we can divide by multiplying // with the modular inverse of denominator. This will give us the // correct result modulo 2**256. Since the precoditions guarantee // that the outcome is less than 2**256, this is the final result. // We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inv; return result; } } /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 /// @param a The multiplicand /// @param b The multiplier /// @param denominator The divisor /// @return result The 256-bit result function mulDivRoundingUp( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { unchecked { result = mulDiv(a, b, denominator); if (mulmod(a, b, denominator) > 0) { require(result < type(uint256).max); result++; } } } } /// @title The interface for the Uniswap V3 Factory /// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees interface IUniswapV3Factory { /// @notice Emitted when the owner of the factory is changed /// @param oldOwner The owner before the owner was changed /// @param newOwner The owner after the owner was changed event OwnerChanged(address indexed oldOwner, address indexed newOwner); /// @notice Emitted when a pool is created /// @param token0 The first token of the pool by address sort order /// @param token1 The second token of the pool by address sort order /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks /// @param pool The address of the created pool event PoolCreated( address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool ); /// @notice Emitted when a new fee amount is enabled for pool creation via the factory /// @param fee The enabled fee, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing); /// @notice Returns the current owner of the factory /// @dev Can be changed by the current owner via setOwner /// @return The address of the factory owner function owner() external view returns (address); /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee /// @return The tick spacing function feeAmountTickSpacing(uint24 fee) external view returns (int24); /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order /// @param tokenA The contract address of either token0 or token1 /// @param tokenB The contract address of the other token /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @return pool The pool address function getPool( address tokenA, address tokenB, uint24 fee ) external view returns (address pool); /// @notice Creates a pool for the given two tokens and fee /// @param tokenA One of the two tokens in the desired pool /// @param tokenB The other of the two tokens in the desired pool /// @param fee The desired fee for the pool /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments /// are invalid. /// @return pool The address of the newly created pool function createPool( address tokenA, address tokenB, uint24 fee ) external returns (address pool); /// @notice Updates the owner of the factory /// @dev Must be called by the current owner /// @param _owner The new owner of the factory function setOwner(address _owner) external; /// @notice Enables a fee amount with the given tickSpacing /// @dev Fee amounts may never be removed once enabled /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6) /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount function enableFeeAmount(uint24 fee, int24 tickSpacing) external; } pragma abicoder v2; /// @title Multicall interface /// @notice Enables calling multiple methods in a single call to the contract interface IMulticall { /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed /// @dev The `msg.value` should not be trusted for any method callable from multicall. /// @param data The encoded function data for each of the calls to make to this contract /// @return results The results from each of the calls passed in via data function multicall(bytes[] calldata data) external payable returns (bytes[] memory results); } /// @title Multicall /// @notice Enables calling multiple methods in a single call to the contract abstract contract Multicall is IMulticall { /// @inheritdoc IMulticall function multicall(bytes[] calldata data) public payable override returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall(data[i]); if (!success) { // Next 5 lines from https://ethereum.stackexchange.com/a/83577 if (result.length < 68) revert(); assembly { result := add(result, 0x04) } revert(abi.decode(result, (string))); } results[i] = result; } } } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } /// @title Self Permit /// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route interface ISelfPermit { /// @notice Permits this contract to spend a given token from `msg.sender` /// @dev The `owner` is always msg.sender and the `spender` is always address(this). /// @param token The address of the token spent /// @param value The amount that can be spent of token /// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function selfPermit( address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external payable; /// @notice Permits this contract to spend a given token from `msg.sender` /// @dev The `owner` is always msg.sender and the `spender` is always address(this). /// Can be used instead of #selfPermit to prevent calls from failing due to a frontrun of a call to #selfPermit /// @param token The address of the token spent /// @param value The amount that can be spent of token /// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function selfPermitIfNecessary( address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external payable; /// @notice Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter /// @dev The `owner` is always msg.sender and the `spender` is always address(this) /// @param token The address of the token spent /// @param nonce The current nonce of the owner /// @param expiry The timestamp at which the permit is no longer valid /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function selfPermitAllowed( address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external payable; /// @notice Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter /// @dev The `owner` is always msg.sender and the `spender` is always address(this) /// Can be used instead of #selfPermitAllowed to prevent calls from failing due to a frontrun of a call to #selfPermitAllowed. /// @param token The address of the token spent /// @param nonce The current nonce of the owner /// @param expiry The timestamp at which the permit is no longer valid /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function selfPermitAllowedIfNecessary( address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external payable; } /// @title Interface for permit /// @notice Interface used by DAI/CHAI for permit interface IERC20PermitAllowed { /// @notice Approve the spender to spend some tokens via the holder signature /// @dev This is the permit interface used by DAI and CHAI /// @param holder The address of the token holder, the token owner /// @param spender The address of the token spender /// @param nonce The holder's nonce, increases at each call to permit /// @param expiry The timestamp at which the permit is no longer valid /// @param allowed Boolean that sets approval amount, true for type(uint256).max and false for 0 /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function permit( address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s ) external; } /// @title Self Permit /// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route /// @dev These functions are expected to be embedded in multicalls to allow EOAs to approve a contract and call a function /// that requires an approval in a single transaction. abstract contract SelfPermit is ISelfPermit { /// @inheritdoc ISelfPermit function selfPermit( address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public payable override { IERC20Permit(token).permit(msg.sender, address(this), value, deadline, v, r, s); } /// @inheritdoc ISelfPermit function selfPermitIfNecessary( address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external payable override { if (IERC20(token).allowance(msg.sender, address(this)) < value) selfPermit(token, value, deadline, v, r, s); } /// @inheritdoc ISelfPermit function selfPermitAllowed( address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public payable override { IERC20PermitAllowed(token).permit(msg.sender, address(this), nonce, expiry, true, v, r, s); } /// @inheritdoc ISelfPermit function selfPermitAllowedIfNecessary( address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external payable override { if (IERC20(token).allowance(msg.sender, address(this)) < type(uint256).max) selfPermitAllowed(token, nonce, expiry, v, r, s); } } /// @title FixedPoint96 /// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format) /// @dev Used in SqrtPriceMath.sol library FixedPoint96 { uint8 internal constant RESOLUTION = 96; uint256 internal constant Q96 = 0x1000000000000000000000000; } /// @title Liquidity amount functions /// @notice Provides functions for computing liquidity amounts from token amounts and prices library LiquidityAmounts { /// @notice Downcasts uint256 to uint128 /// @param x The uint258 to be downcasted /// @return y The passed value, downcasted to uint128 function toUint128(uint256 x) private pure returns (uint128 y) { require((y = uint128(x)) == x); } /// @notice Computes the amount of liquidity received for a given amount of token0 and price range /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower)) /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param amount0 The amount0 being sent in /// @return liquidity The amount of returned liquidity function getLiquidityForAmount0( uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint256 amount0 ) internal pure returns (uint128 liquidity) { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); uint256 intermediate = FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96); unchecked { return toUint128(FullMath.mulDiv(amount0, intermediate, sqrtRatioBX96 - sqrtRatioAX96)); } } /// @notice Computes the amount of liquidity received for a given amount of token1 and price range /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)). /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param amount1 The amount1 being sent in /// @return liquidity The amount of returned liquidity function getLiquidityForAmount1( uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint256 amount1 ) internal pure returns (uint128 liquidity) { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); unchecked { return toUint128(FullMath.mulDiv(amount1, FixedPoint96.Q96, sqrtRatioBX96 - sqrtRatioAX96)); } } /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current /// pool prices and the prices at the tick boundaries /// @param sqrtRatioX96 A sqrt price representing the current pool prices /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param amount0 The amount of token0 being sent in /// @param amount1 The amount of token1 being sent in /// @return liquidity The maximum amount of liquidity received function getLiquidityForAmounts( uint160 sqrtRatioX96, uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint256 amount0, uint256 amount1 ) internal pure returns (uint128 liquidity) { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); if (sqrtRatioX96 <= sqrtRatioAX96) { liquidity = getLiquidityForAmount0(sqrtRatioAX96, sqrtRatioBX96, amount0); } else if (sqrtRatioX96 < sqrtRatioBX96) { uint128 liquidity0 = getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0); uint128 liquidity1 = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1); liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1; } else { liquidity = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioBX96, amount1); } } /// @notice Computes the amount of token0 for a given amount of liquidity and a price range /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param liquidity The liquidity being valued /// @return amount0 The amount of token0 function getAmount0ForLiquidity( uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint128 liquidity ) internal pure returns (uint256 amount0) { unchecked { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); return FullMath.mulDiv( uint256(liquidity) << FixedPoint96.RESOLUTION, sqrtRatioBX96 - sqrtRatioAX96, sqrtRatioBX96 ) / sqrtRatioAX96; } } /// @notice Computes the amount of token1 for a given amount of liquidity and a price range /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param liquidity The liquidity being valued /// @return amount1 The amount of token1 function getAmount1ForLiquidity( uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint128 liquidity ) internal pure returns (uint256 amount1) { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); unchecked { return FullMath.mulDiv(liquidity, sqrtRatioBX96 - sqrtRatioAX96, FixedPoint96.Q96); } } /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current /// pool prices and the prices at the tick boundaries /// @param sqrtRatioX96 A sqrt price representing the current pool prices /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary /// @param liquidity The liquidity being valued /// @return amount0 The amount of token0 /// @return amount1 The amount of token1 function getAmountsForLiquidity( uint160 sqrtRatioX96, uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint128 liquidity ) internal pure returns (uint256 amount0, uint256 amount1) { if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96); if (sqrtRatioX96 <= sqrtRatioAX96) { amount0 = getAmount0ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity); } else if (sqrtRatioX96 < sqrtRatioBX96) { amount0 = getAmount0ForLiquidity(sqrtRatioX96, sqrtRatioBX96, liquidity); amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioX96, liquidity); } else { amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity); } } } /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } } /// @notice Library for converting between addresses and bytes32 values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Bytes32AddressLib.sol) library Bytes32AddressLib { function fromLast20Bytes(bytes32 bytesValue) internal pure returns (address) { return address(uint160(uint256(bytesValue))); } function fillLast12Bytes(address addressValue) internal pure returns (bytes32) { return bytes32(bytes20(addressValue)); } } /// @notice Deploy to deterministic addresses without an initcode factor. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/CREATE3.sol) /// @author Modified from 0xSequence (https://github.com/0xSequence/create3/blob/master/contracts/Create3.sol) library CREATE3 { using Bytes32AddressLib for bytes32; //--------------------------------------------------------------------------------// // Opcode | Opcode + Arguments | Description | Stack View // //--------------------------------------------------------------------------------// // 0x36 | 0x36 | CALLDATASIZE | size // // 0x3d | 0x3d | RETURNDATASIZE | 0 size // // 0x3d | 0x3d | RETURNDATASIZE | 0 0 size // // 0x37 | 0x37 | CALLDATACOPY | // // 0x36 | 0x36 | CALLDATASIZE | size // // 0x3d | 0x3d | RETURNDATASIZE | 0 size // // 0x34 | 0x34 | CALLVALUE | value 0 size // // 0xf0 | 0xf0 | CREATE | newContract // //--------------------------------------------------------------------------------// // Opcode | Opcode + Arguments | Description | Stack View // //--------------------------------------------------------------------------------// // 0x67 | 0x67XXXXXXXXXXXXXXXX | PUSH8 bytecode | bytecode // // 0x3d | 0x3d | RETURNDATASIZE | 0 bytecode // // 0x52 | 0x52 | MSTORE | // // 0x60 | 0x6008 | PUSH1 08 | 8 // // 0x60 | 0x6018 | PUSH1 18 | 24 8 // // 0xf3 | 0xf3 | RETURN | // //--------------------------------------------------------------------------------// bytes internal constant PROXY_BYTECODE = hex"67_36_3d_3d_37_36_3d_34_f0_3d_52_60_08_60_18_f3"; bytes32 internal constant PROXY_BYTECODE_HASH = keccak256(PROXY_BYTECODE); function deploy( bytes32 salt, bytes memory creationCode, uint256 value ) internal returns (address deployed) { bytes memory proxyChildBytecode = PROXY_BYTECODE; address proxy; assembly { // Deploy a new contract with our pre-made bytecode via CREATE2. // We start 32 bytes into the code to avoid copying the byte length. proxy := create2(0, add(proxyChildBytecode, 32), mload(proxyChildBytecode), salt) } require(proxy != address(0), "DEPLOYMENT_FAILED"); deployed = getDeployed(salt); (bool success, ) = proxy.call{value: value}(creationCode); require(success && deployed.code.length != 0, "INITIALIZATION_FAILED"); } function getDeployed(bytes32 salt) internal view returns (address) { address proxy = keccak256( abi.encodePacked( // Prefix: bytes1(0xFF), // Creator: address(this), // Salt: salt, // Bytecode hash: PROXY_BYTECODE_HASH ) ).fromLast20Bytes(); return keccak256( abi.encodePacked( // 0xd6 = 0xc0 (short RLP prefix) + 0x16 (length of: 0x94 ++ proxy ++ 0x01) // 0x94 = 0x80 + 0x14 (0x14 = the length of an address, 20 bytes, in hex) hex"d6_94", proxy, hex"01" // Nonce of the proxy contract (1) ) ).fromLast20Bytes(); } } /// @title Pool state that never changes /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values interface IUniswapV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function fee() external view returns (uint24); /// @notice The pool tick spacing /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... /// This value is an int24 to avoid casting even though it is always positive. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); } /// @title Pool state that can change /// @notice These methods compose the pool's state, and can change with any frequency including multiple times /// per transaction interface IUniswapV3PoolState { /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas /// when accessed externally. /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value /// @return tick The current tick of the pool, i.e. according to the last tick transition that was run. /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick /// boundary. /// @return observationIndex The index of the last oracle observation that was written, /// @return observationCardinality The current maximum number of observations stored in the pool, /// @return observationCardinalityNext The next maximum number of observations, to be updated when the observation. /// @return feeProtocol The protocol fee for both tokens of the pool. /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0 /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee. /// unlocked Whether the pool is currently locked to reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks /// @return The liquidity at the current price of the pool function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper /// @return liquidityNet how much liquidity changes when the pool price crosses the tick, /// @return feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// @return feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// @return tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// @return secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// @return secondsOutside the seconds spent on the other side of the tick from the current tick, /// @return initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks(int24 tick) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return liquidity The amount of liquidity in the position, /// @return feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// @return feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// @return tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// @return tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions(bytes32 key) external view returns ( uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// @return tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// @return secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// @return initialized whether the observation has been initialized and the values are safe to use function observations(uint256 index) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); } /// @title Pool state that is not stored /// @notice Contains view functions to provide information about the pool that is computed rather than stored on the /// blockchain. The functions here may have variable gas costs. interface IUniswapV3PoolDerivedState { /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, /// you must call it with secondsAgos = [3600, 0]. /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio. /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block /// timestamp function observe(uint32[] calldata secondsAgos) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s); /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed. /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first /// snapshot is taken and the second snapshot is taken. /// @param tickLower The lower tick of the range /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) external view returns ( int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside ); } /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface IUniswapV3PoolActions { /// @notice Sets the initial price for the pool /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96 function initialize(uint160 sqrtPriceX96) external; /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends /// on tickLower, tickUpper, the amount of liquidity, and the current price. /// @param recipient The address for which the liquidity will be created /// @param tickLower The lower tick of the position in which to add liquidity /// @param tickUpper The upper tick of the position in which to add liquidity /// @param amount The amount of liquidity to mint /// @param data Any data that should be passed through to the callback /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback function mint( address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; } /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IUniswapV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees /// @param feeProtocol0 new protocol fee for token0 of the pool /// @param feeProtocol1 new protocol fee for token1 of the pool function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external; /// @notice Collect the protocol fee accrued to the pool /// @param recipient The address to which collected protocol fees should be sent /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1 /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0 /// @return amount0 The protocol fee collected in token0 /// @return amount1 The protocol fee collected in token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); } /// @title Errors emitted by a pool /// @notice Contains all events emitted by the pool interface IUniswapV3PoolErrors { error LOK(); error TLU(); error TLM(); error TUM(); error AI(); error M0(); error M1(); error AS(); error IIA(); error L(); error F0(); error F1(); } /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface IUniswapV3PoolEvents { /// @notice Emitted exactly once by a pool when #initialize is first called on the pool /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96 /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool event Initialize(uint160 sqrtPriceX96, int24 tick); /// @notice Emitted when liquidity is minted for a given position /// @param sender The address that minted the liquidity /// @param owner The owner of the position and recipient of any minted liquidity /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity minted to the position range /// @param amount0 How much token0 was required for the minted liquidity /// @param amount1 How much token1 was required for the minted liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); } /// @title The interface for a Uniswap V3 Pool /// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform /// to the ERC20 specification /// @dev The pool interface is broken up into many smaller pieces interface IUniswapV3Pool is IUniswapV3PoolImmutables, IUniswapV3PoolState, IUniswapV3PoolDerivedState, IUniswapV3PoolActions, IUniswapV3PoolOwnerActions, IUniswapV3PoolErrors, IUniswapV3PoolEvents { } /// @param pool The Uniswap V3 pool /// @param tickLower The lower tick of the Bunni's UniV3 LP position /// @param tickUpper The upper tick of the Bunni's UniV3 LP position struct BunniKey { IUniswapV3Pool pool; int24 tickLower; int24 tickUpper; } /** * @dev Interface of the ERC20 standard as defined in the EIP. * Modified from OpenZeppelin's IERC20 contract */ 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); /** * @return The name of the token */ function name() external view returns (string memory); /** * @return The symbol of the token */ function symbol() external view returns (string memory); /** * @return The number of decimal places the token has */ function decimals() external view returns (uint8); function nonces(address account) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function DOMAIN_SEPARATOR() external view returns (bytes32); /** * @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 ); } /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 is IERC20 { /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public override name; string public override symbol; uint8 public immutable override decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public override totalSupply; mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public override nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual override returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual override returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require( recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER" ); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual override returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } } /// @title BunniToken /// @author zefram.eth /// @notice ERC20 token that represents a user's LP position interface IBunniToken is IERC20 { function pool() external view returns (IUniswapV3Pool); function tickLower() external view returns (int24); function tickUpper() external view returns (int24); function hub() external view returns (IBunniHub); function mint(address to, uint256 amount) external; function burn(address from, uint256 amount) external; } /// @title Callback for IUniswapV3PoolActions#mint /// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface interface IUniswapV3MintCallback { /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint. /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity. /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call function uniswapV3MintCallback( uint256 amount0Owed, uint256 amount1Owed, bytes calldata data ) external; } /// @title Liquidity management functions /// @notice Internal functions for safely managing liquidity in Uniswap V3 interface ILiquidityManagement is IUniswapV3MintCallback { function factory() external view returns (IUniswapV3Factory); } /// @title BunniHub /// @author zefram.eth /// @notice The main contract LPs interact with. Each BunniKey corresponds to a BunniToken, /// which is the ERC20 LP token for the Uniswap V3 position specified by the BunniKey. /// Use deposit()/withdraw() to mint/burn LP tokens, and use compound() to compound the swap fees /// back into the LP position. interface IBunniHub is IMulticall, ISelfPermit, ILiquidityManagement { /// @notice Emitted when liquidity is increased via deposit /// @param sender The msg.sender address /// @param recipient The address of the account that received the share tokens /// @param bunniKeyHash The hash of the Bunni position's key /// @param liquidity The amount by which liquidity was increased /// @param amount0 The amount of token0 that was paid for the increase in liquidity /// @param amount1 The amount of token1 that was paid for the increase in liquidity /// @param shares The amount of share tokens minted to the recipient event Deposit( address indexed sender, address indexed recipient, bytes32 indexed bunniKeyHash, uint128 liquidity, uint256 amount0, uint256 amount1, uint256 shares ); /// @notice Emitted when liquidity is decreased via withdrawal /// @param sender The msg.sender address /// @param recipient The address of the account that received the collected tokens /// @param bunniKeyHash The hash of the Bunni position's key /// @param liquidity The amount by which liquidity was decreased /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity /// @param shares The amount of share tokens burnt from the sender event Withdraw( address indexed sender, address indexed recipient, bytes32 indexed bunniKeyHash, uint128 liquidity, uint256 amount0, uint256 amount1, uint256 shares ); /// @notice Emitted when fees are compounded back into liquidity /// @param sender The msg.sender address /// @param bunniKeyHash The hash of the Bunni position's key /// @param liquidity The amount by which liquidity was increased /// @param amount0 The amount of token0 added to the liquidity position /// @param amount1 The amount of token1 added to the liquidity position event Compound( address indexed sender, bytes32 indexed bunniKeyHash, uint128 liquidity, uint256 amount0, uint256 amount1 ); /// @notice Emitted when a new IBunniToken is created /// @param bunniKeyHash The hash of the Bunni position's key /// @param pool The Uniswap V3 pool /// @param tickLower The lower tick of the Bunni's UniV3 LP position /// @param tickUpper The upper tick of the Bunni's UniV3 LP position event NewBunni( IBunniToken indexed token, bytes32 indexed bunniKeyHash, IUniswapV3Pool indexed pool, int24 tickLower, int24 tickUpper ); /// @notice Emitted when protocol fees are paid to the factory /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount1 The amount of token1 protocol fees that is withdrawn event PayProtocolFee(uint256 amount0, uint256 amount1); /// @notice Emitted when the protocol fee has been updated /// @param newProtocolFee The new protocol fee event SetProtocolFee(uint256 newProtocolFee); /// @param key The Bunni position's key /// @param amount0Desired The desired amount of token0 to be spent, /// @param amount1Desired The desired amount of token1 to be spent, /// @param amount0Min The minimum amount of token0 to spend, which serves as a slippage check, /// @param amount1Min The minimum amount of token1 to spend, which serves as a slippage check, /// @param deadline The time by which the transaction must be included to effect the change /// @param recipient The recipient of the minted share tokens struct DepositParams { BunniKey key; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; uint256 deadline; address recipient; } /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender` /// @dev Must be called after the corresponding BunniToken has been deployed via deployBunniToken() /// @param params The input parameters /// key The Bunni position's key /// amount0Desired The desired amount of token0 to be spent, /// amount1Desired The desired amount of token1 to be spent, /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check, /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check, /// deadline The time by which the transaction must be included to effect the change /// @return shares The new share tokens minted to the sender /// @return addedLiquidity The new liquidity amount as a result of the increase /// @return amount0 The amount of token0 to acheive resulting liquidity /// @return amount1 The amount of token1 to acheive resulting liquidity function deposit(DepositParams calldata params) external payable returns ( uint256 shares, uint128 addedLiquidity, uint256 amount0, uint256 amount1 ); /// @param key The Bunni position's key /// @param recipient The user if not withdrawing ETH, address(0) if withdrawing ETH /// @param shares The amount of ERC20 tokens (this) to burn, /// @param amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, /// @param amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, /// @param deadline The time by which the transaction must be included to effect the change struct WithdrawParams { BunniKey key; address recipient; uint256 shares; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } /// @notice Decreases the amount of liquidity in the position and sends the tokens to the sender. /// If withdrawing ETH, need to follow up with unwrapWETH9() and sweepToken() /// @dev Must be called after the corresponding BunniToken has been deployed via deployBunniToken() /// @param params The input parameters /// key The Bunni position's key /// recipient The user if not withdrawing ETH, address(0) if withdrawing ETH /// shares The amount of share tokens to burn, /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, /// deadline The time by which the transaction must be included to effect the change /// @return removedLiquidity The amount of liquidity decrease /// @return amount0 The amount of token0 withdrawn to the recipient /// @return amount1 The amount of token1 withdrawn to the recipient function withdraw(WithdrawParams calldata params) external returns ( uint128 removedLiquidity, uint256 amount0, uint256 amount1 ); /// @notice Claims the trading fees earned and uses it to add liquidity. /// @dev Must be called after the corresponding BunniToken has been deployed via deployBunniToken() /// @param key The Bunni position's key /// @return addedLiquidity The new liquidity amount as a result of the increase /// @return amount0 The amount of token0 added to the liquidity position /// @return amount1 The amount of token1 added to the liquidity position function compound(BunniKey calldata key) external returns ( uint128 addedLiquidity, uint256 amount0, uint256 amount1 ); /// @notice Deploys the BunniToken contract for a Bunni position. This token /// represents a user's share in the Uniswap V3 LP position. /// @param key The Bunni position's key /// @return token The deployed BunniToken function deployBunniToken(BunniKey calldata key) external returns (IBunniToken token); /// @notice Returns the BunniToken contract for a Bunni position. This token /// represents a user's share in the Uniswap V3 LP position. /// If the contract hasn't been created yet, returns 0. /// @param key The Bunni position's key /// @return token The BunniToken contract function getBunniToken(BunniKey calldata key) external view returns (IBunniToken token); /// @notice Sweeps ERC20 token balances to a recipient. Mainly used for extracting protocol fees. /// Only callable by the owner. /// @param tokenList The list of ERC20 tokens to sweep /// @param recipient The token recipient address function sweepTokens(IERC20[] calldata tokenList, address recipient) external; /// @notice Updates the protocol fee value. Scaled by 1e18. Only callable by the owner. /// @param value The new protocol fee value function setProtocolFee(uint256 value) external; /// @notice Returns the protocol fee value. Decimal value <1, scaled by 1e18. function protocolFee() external returns (uint256); } /// @title BunniToken /// @author zefram.eth /// @notice ERC20 token that represents a user's LP position contract BunniToken is IBunniToken, ERC20 { IUniswapV3Pool public immutable override pool; int24 public immutable override tickLower; int24 public immutable override tickUpper; IBunniHub public immutable override hub; constructor(IBunniHub hub_, BunniKey memory key_) ERC20( string( abi.encodePacked( "Bunni ", IERC20(key_.pool.token0()).symbol(), "/", IERC20(key_.pool.token1()).symbol(), " LP" ) ), "BUNNI-LP", 18 ) { pool = key_.pool; tickLower = key_.tickLower; tickUpper = key_.tickUpper; hub = hub_; } function mint(address to, uint256 amount) external override { require(msg.sender == address(hub), "WHO"); _mint(to, amount); } function burn(address from, uint256 amount) external override { require(msg.sender == address(hub), "WHO"); _burn(from, amount); } } /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( IERC20 token, address from, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore( freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000 ) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or( and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize()) ), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( IERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore( freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000 ) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or( and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize()) ), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( IERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore( freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000 ) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or( and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize()) ), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } } /// @title Liquidity management functions /// @notice Internal functions for safely managing liquidity in Uniswap V3 abstract contract LiquidityManagement is ILiquidityManagement { using SafeTransferLib for IERC20; /// @param token0 The token0 of the Uniswap pool /// @param token1 The token1 of the Uniswap pool /// @param fee The fee tier of the Uniswap pool /// @param payer The address to pay for the required tokens struct MintCallbackData { address token0; address token1; uint24 fee; address payer; } IUniswapV3Factory public immutable override factory; constructor(IUniswapV3Factory factory_) { factory = factory_; } /// @inheritdoc IUniswapV3MintCallback function uniswapV3MintCallback( uint256 amount0Owed, uint256 amount1Owed, bytes calldata data ) external override { MintCallbackData memory decodedData = abi.decode( data, (MintCallbackData) ); // verify caller address computedPool = factory.getPool( decodedData.token0, decodedData.token1, decodedData.fee ); require(msg.sender == computedPool, "WHO"); if (amount0Owed > 0) pay(decodedData.token0, decodedData.payer, msg.sender, amount0Owed); if (amount1Owed > 0) pay(decodedData.token1, decodedData.payer, msg.sender, amount1Owed); } /// @param key The Bunni position's key /// @param recipient The recipient of the liquidity position /// @param payer The address that will pay the tokens /// @param amount0Desired The token0 amount to use /// @param amount1Desired The token1 amount to use /// @param amount0Min The minimum token0 amount to use /// @param amount1Min The minimum token1 amount to use struct AddLiquidityParams { BunniKey key; address recipient; address payer; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; } /// @notice Add liquidity to an initialized pool function _addLiquidity(AddLiquidityParams memory params) internal returns ( uint128 liquidity, uint256 amount0, uint256 amount1 ) { if (params.amount0Desired == 0 && params.amount1Desired == 0) { return (0, 0, 0); } // compute the liquidity amount { (uint160 sqrtPriceX96, , , , , , ) = params.key.pool.slot0(); uint160 sqrtRatioAX96 = TickMath.getSqrtRatioAtTick( params.key.tickLower ); uint160 sqrtRatioBX96 = TickMath.getSqrtRatioAtTick( params.key.tickUpper ); liquidity = LiquidityAmounts.getLiquidityForAmounts( sqrtPriceX96, sqrtRatioAX96, sqrtRatioBX96, params.amount0Desired, params.amount1Desired ); } (amount0, amount1) = params.key.pool.mint( params.recipient, params.key.tickLower, params.key.tickUpper, liquidity, abi.encode( MintCallbackData({ token0: params.key.pool.token0(), token1: params.key.pool.token1(), fee: params.key.pool.fee(), payer: params.payer }) ) ); require( amount0 >= params.amount0Min && amount1 >= params.amount1Min, "SLIP" ); } /// @param token The token to pay /// @param payer The entity that must pay /// @param recipient The entity that will receive payment /// @param value The amount to pay function pay( address token, address payer, address recipient, uint256 value ) internal { if (payer == address(this)) { // pay with tokens already in the contract (for the exact input multihop case) IERC20(token).safeTransfer(recipient, value); } else { // pull payment IERC20(token).safeTransferFrom(payer, recipient, value); } } } /// @title BunniHub /// @author zefram.eth /// @notice The main contract LPs interact with. Each BunniKey corresponds to a BunniToken, /// which is the ERC20 LP token for the Uniswap V3 position specified by the BunniKey. /// Use deposit()/withdraw() to mint/burn LP tokens, and use compound() to compound the swap fees /// back into the LP position. contract BunniHub is IBunniHub, Owned, Multicall, SelfPermit, LiquidityManagement { uint256 internal constant WAD = 1e18; uint256 internal constant MAX_PROTOCOL_FEE = 5e17; uint256 internal constant MIN_INITIAL_SHARES = 1e9; /// ----------------------------------------------------------- /// Storage variables /// ----------------------------------------------------------- uint256 public override protocolFee; /// ----------------------------------------------------------- /// Modifiers /// ----------------------------------------------------------- modifier checkDeadline(uint256 deadline) { require(block.timestamp <= deadline, "OLD"); _; } /// ----------------------------------------------------------- /// Constructor /// ----------------------------------------------------------- constructor( IUniswapV3Factory factory_, address owner_, uint256 protocolFee_ ) Owned(owner_) LiquidityManagement(factory_) { protocolFee = protocolFee_; } /// ----------------------------------------------------------- /// External functions /// ----------------------------------------------------------- /// @inheritdoc IBunniHub function deposit(DepositParams calldata params) external payable virtual override checkDeadline(params.deadline) returns ( uint256 shares, uint128 addedLiquidity, uint256 amount0, uint256 amount1 ) { (uint128 existingLiquidity, , , , ) = params.key.pool.positions( keccak256( abi.encodePacked( address(this), params.key.tickLower, params.key.tickUpper ) ) ); (addedLiquidity, amount0, amount1) = _addLiquidity( LiquidityManagement.AddLiquidityParams({ key: params.key, recipient: address(this), payer: msg.sender, amount0Desired: params.amount0Desired, amount1Desired: params.amount1Desired, amount0Min: params.amount0Min, amount1Min: params.amount1Min }) ); shares = _mintShares( params.key, params.recipient, addedLiquidity, existingLiquidity ); emit Deposit( msg.sender, params.recipient, keccak256(abi.encode(params.key)), addedLiquidity, amount0, amount1, shares ); } /// @inheritdoc IBunniHub function withdraw(WithdrawParams calldata params) external virtual override checkDeadline(params.deadline) returns ( uint128 removedLiquidity, uint256 amount0, uint256 amount1 ) { IBunniToken shareToken = getBunniToken(params.key); require(address(shareToken) != address(0), "WHAT"); uint256 currentTotalSupply = shareToken.totalSupply(); (uint128 existingLiquidity, , , , ) = params.key.pool.positions( keccak256( abi.encodePacked( address(this), params.key.tickLower, params.key.tickUpper ) ) ); // burn shares require(params.shares > 0, "0"); shareToken.burn(msg.sender, params.shares); // at this point of execution we know param.shares <= currentTotalSupply // since otherwise the burn() call would've reverted // burn liquidity from pool // type cast is safe because we know removedLiquidity <= existingLiquidity removedLiquidity = uint128( FullMath.mulDiv( existingLiquidity, params.shares, currentTotalSupply ) ); // burn liquidity // tokens are now collectable in the pool (amount0, amount1) = params.key.pool.burn( params.key.tickLower, params.key.tickUpper, removedLiquidity ); // collect tokens and give to msg.sender (amount0, amount1) = params.key.pool.collect( params.recipient, params.key.tickLower, params.key.tickUpper, uint128(amount0), uint128(amount1) ); require( amount0 >= params.amount0Min && amount1 >= params.amount1Min, "SLIP" ); emit Withdraw( msg.sender, params.recipient, keccak256(abi.encode(params.key)), removedLiquidity, amount0, amount1, params.shares ); } /// @inheritdoc IBunniHub function compound(BunniKey calldata key) external virtual override returns ( uint128 addedLiquidity, uint256 amount0, uint256 amount1 ) { uint256 protocolFee_ = protocolFee; // trigger an update of the position fees owed snapshots if it has any liquidity key.pool.burn(key.tickLower, key.tickUpper, 0); (, , , uint128 cachedFeesOwed0, uint128 cachedFeesOwed1) = key .pool .positions( keccak256( abi.encodePacked( address(this), key.tickLower, key.tickUpper ) ) ); /// ----------------------------------------------------------- /// amount0, amount1 are multi-purposed, see comments below /// ----------------------------------------------------------- amount0 = cachedFeesOwed0; amount1 = cachedFeesOwed1; /// ----------------------------------------------------------- /// amount0, amount1 now store the updated amounts of fee owed /// ----------------------------------------------------------- // the fee is likely not balanced (i.e. tokens will be left over after adding liquidity) // so here we compute which token to fully claim and which token to partially claim // so that we only claim the amounts we need { (uint160 sqrtRatioX96, , , , , , ) = key.pool.slot0(); uint160 sqrtRatioAX96 = TickMath.getSqrtRatioAtTick(key.tickLower); uint160 sqrtRatioBX96 = TickMath.getSqrtRatioAtTick(key.tickUpper); // compute the maximum liquidity addable using the accrued fees uint128 maxAddLiquidity = LiquidityAmounts.getLiquidityForAmounts( sqrtRatioX96, sqrtRatioAX96, sqrtRatioBX96, amount0, amount1 ); // compute the token amounts corresponding to the max addable liquidity (amount0, amount1) = LiquidityAmounts.getAmountsForLiquidity( sqrtRatioX96, sqrtRatioAX96, sqrtRatioBX96, maxAddLiquidity ); } /// ----------------------------------------------------------- /// amount0, amount1 now store the amount of fees to claim /// ----------------------------------------------------------- // the actual amounts collected are returned // tokens are transferred to address(this) (amount0, amount1) = key.pool.collect( address(this), key.tickLower, key.tickUpper, uint128(amount0), uint128(amount1) ); /// ----------------------------------------------------------- /// amount0, amount1 now store the fees claimed /// ----------------------------------------------------------- if (protocolFee_ > 0) { // take fee from amount0 and amount1 and transfer to factory // amount0 uses 128 bits, protocolFee uses 60 bits // so amount0 * protocolFee can't overflow 256 bits uint256 fee0 = (amount0 * protocolFee_) / WAD; uint256 fee1 = (amount1 * protocolFee_) / WAD; // add fees (minus protocol fees) to Uniswap pool (addedLiquidity, amount0, amount1) = _addLiquidity( LiquidityManagement.AddLiquidityParams({ key: key, recipient: address(this), payer: address(this), amount0Desired: amount0 - fee0, amount1Desired: amount1 - fee1, amount0Min: 0, amount1Min: 0 }) ); // the protocol fees are now stored in the factory itself // and can be withdrawn by the owner via sweepTokens() // emit event emit PayProtocolFee(fee0, fee1); } else { // add fees to Uniswap pool (addedLiquidity, amount0, amount1) = _addLiquidity( LiquidityManagement.AddLiquidityParams({ key: key, recipient: address(this), payer: address(this), amount0Desired: amount0, amount1Desired: amount1, amount0Min: 0, amount1Min: 0 }) ); } /// ----------------------------------------------------------- /// amount0, amount1 now store the tokens added as liquidity /// ----------------------------------------------------------- emit Compound( msg.sender, keccak256(abi.encode(key)), addedLiquidity, amount0, amount1 ); } /// @inheritdoc IBunniHub function deployBunniToken(BunniKey calldata key) public override returns (IBunniToken token) { bytes32 bunniKeyHash = keccak256(abi.encode(key)); token = IBunniToken( CREATE3.deploy( bunniKeyHash, abi.encodePacked( type(BunniToken).creationCode, abi.encode(this, key) ), 0 ) ); emit NewBunni( token, bunniKeyHash, key.pool, key.tickLower, key.tickUpper ); } /// ----------------------------------------------------------------------- /// View functions /// ----------------------------------------------------------------------- /// @inheritdoc IBunniHub function getBunniToken(BunniKey calldata key) public view override returns (IBunniToken token) { token = IBunniToken(CREATE3.getDeployed(keccak256(abi.encode(key)))); uint256 tokenCodeLength; assembly { tokenCodeLength := extcodesize(token) } if (tokenCodeLength == 0) { return IBunniToken(address(0)); } } /// ----------------------------------------------------------------------- /// Owner functions /// ----------------------------------------------------------------------- /// @inheritdoc IBunniHub function sweepTokens(IERC20[] calldata tokenList, address recipient) external override onlyOwner { uint256 tokenListLength = tokenList.length; for (uint256 i; i < tokenListLength; ) { SafeTransferLib.safeTransfer( tokenList[i], recipient, tokenList[i].balanceOf(address(this)) ); unchecked { ++i; } } } /// @inheritdoc IBunniHub function setProtocolFee(uint256 value) external override onlyOwner { require(value <= MAX_PROTOCOL_FEE, "MAX"); protocolFee = value; emit SetProtocolFee(value); } /// ----------------------------------------------------------- /// Internal functions /// ----------------------------------------------------------- /// @notice Mints share tokens to the recipient based on the amount of liquidity added. /// @param key The Bunni position's key /// @param recipient The recipient of the share tokens /// @param addedLiquidity The amount of liquidity added /// @param existingLiquidity The amount of existing liquidity before the add /// @return shares The amount of share tokens minted to the sender. function _mintShares( BunniKey calldata key, address recipient, uint128 addedLiquidity, uint128 existingLiquidity ) internal virtual returns (uint256 shares) { IBunniToken shareToken = getBunniToken(key); require(address(shareToken) != address(0), "WHAT"); uint256 existingShareSupply = shareToken.totalSupply(); if (existingShareSupply == 0) { // no existing shares, bootstrap at rate 1:1 shares = addedLiquidity; // prevent first staker from stealing funds of subsequent stakers // see https://code4rena.com/reports/2022-01-sherlock/#h-01-first-user-can-steal-everyone-elses-tokens require(shares > MIN_INITIAL_SHARES, "SMOL"); } else { // shares = existingShareSupply * addedLiquidity / existingLiquidity; shares = FullMath.mulDiv( existingShareSupply, addedLiquidity, existingLiquidity ); require(shares != 0, "0"); } // mint shares to sender shareToken.mint(recipient, shares); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"contract IUniswapV3Factory","name":"factory_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"protocolFee_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"T","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"bytes32","name":"bunniKeyHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"bytes32","name":"bunniKeyHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IBunniToken","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"bunniKeyHash","type":"bytes32"},{"indexed":true,"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"indexed":false,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":false,"internalType":"int24","name":"tickUpper","type":"int24"}],"name":"NewBunni","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"PayProtocolFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newProtocolFee","type":"uint256"}],"name":"SetProtocolFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"bytes32","name":"bunniKeyHash","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct BunniKey","name":"key","type":"tuple"}],"name":"compound","outputs":[{"internalType":"uint128","name":"addedLiquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct BunniKey","name":"key","type":"tuple"}],"name":"deployBunniToken","outputs":[{"internalType":"contract IBunniToken","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct BunniKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct IBunniHub.DepositParams","name":"params","type":"tuple"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint128","name":"addedLiquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV3Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct BunniKey","name":"key","type":"tuple"}],"name":"getBunniToken","outputs":[{"internalType":"contract IBunniToken","name":"token","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setProtocolFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20[]","name":"tokenList","type":"address[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct BunniKey","name":"key","type":"tuple"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IBunniHub.WithdrawParams","name":"params","type":"tuple"}],"name":"withdraw","outputs":[{"internalType":"uint128","name":"removedLiquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162005a1838038062005a188339810160408190526200003491620000b0565b600080546001600160a01b0319166001600160a01b038416908117825560405185928592917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a3506001600160a01b031660805260015550620000f89050565b6001600160a01b0381168114620000ad57600080fd5b50565b600080600060608486031215620000c657600080fd5b8351620000d38162000097565b6020850151909350620000e68162000097565b80925050604084015190509250925092565b6080516158fd6200011b60003960008181610380015261173c01526158fd6000f3fe608060405260043610620001245760003560e01c8063a4a78f0c11620000b2578063c2e3140a116200007d578063d34879971162000060578063d348799714620003a2578063d59bd26314620003c7578063f3995c6714620003ec57600080fd5b8063c2e3140a1462000355578063c45a0155146200036c57600080fd5b8063a4a78f0c14620002a8578063ac9650d814620002bf578063b0e21e8a14620002e5578063b3165aaf146200030c57600080fd5b80634659a49411620000f35780634659a49414620002185780637071f0c4146200022f578063787dce3d14620002545780638da5cb5b146200027957600080fd5b8063056f6b2b14620001295780630b2b685e146200017857806313af4035146200019d578063227efac314620001c4575b600080fd5b3480156200013657600080fd5b506200014e62000148366004620035b8565b62000403565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156200018557600080fd5b506200014e62000197366004620035b8565b62000455565b348015620001aa57600080fd5b50620001c2620001bc366004620035f1565b620005de565b005b348015620001d157600080fd5b50620001e9620001e3366004620035b8565b620006d5565b604080516fffffffffffffffffffffffffffffffff90941684526020840192909252908201526060016200016f565b620001c26200022936600462003621565b62000d37565b3480156200023c57600080fd5b50620001c26200024e366004620036d1565b62000df4565b3480156200026157600080fd5b50620001c2620002733660046200372e565b62000f8a565b3480156200028657600080fd5b506000546200014e9073ffffffffffffffffffffffffffffffffffffffff1681565b620001c2620002b936600462003621565b620010bc565b620002d6620002d036600462003748565b62001194565b6040516200016f919062003809565b348015620002f257600080fd5b50620002fd60015481565b6040519081526020016200016f565b620003236200031d3660046200388d565b62001321565b604080519485526fffffffffffffffffffffffffffffffff90931660208501529183015260608201526080016200016f565b620001c26200036636600462003621565b62001613565b3480156200037957600080fd5b506200014e7f000000000000000000000000000000000000000000000000000000000000000081565b348015620003af57600080fd5b50620001c2620003c1366004620038a1565b620016c3565b348015620003d457600080fd5b50620001e9620003e636600462003926565b62001869565b620001c2620003fd36600462003621565b62001fa5565b600062000438826040516020016200041c9190620039a5565b6040516020818303038152906040528051906020012062002023565b9050803b60008190036200044f5750600092915050565b50919050565b600080826040516020016200046b9190620039a5565b6040516020818303038152906040528051906020012090506200053481604051806020016200049a90620035aa565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620004df9030908890602001620039bb565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526200051d9291602001620039e7565b604051602081830303815290604052600062002193565b9150620005456020840184620035f1565b73ffffffffffffffffffffffffffffffffffffffff16818373ffffffffffffffffffffffffffffffffffffffff167fa633a76553e9d8d77256f9284d85ae2eb5e5ef445d9e5686e3e6270e2e8fd4a8866020016020810190620005a9919062003a1a565b620005bb6060890160408a0162003a1a565b60408051600293840b81529190920b60208201520160405180910390a450919050565b60005473ffffffffffffffffffffffffffffffffffffffff16331462000665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b60015460009081908190620006ee6020860186620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663a34123a76200071b604088016020890162003a1a565b6200072d6060890160408a0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600292830b6004820152910b60248201526000604482015260640160408051808303816000875af115801562000793573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007b9919062003a3a565b506000905080620007ce6020880188620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf30620007fc60408b0160208c0162003a1a565b6200080e60608c0160408d0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016200088791815260200190565b60a060405180830381865afa158015620008a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008cb919062003a80565b6fffffffffffffffffffffffffffffffff8083169a5081169850909550935060009250620009009150506020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa1580156200094b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000971919062003af1565b505050505050905060006200099a89602001602081019062000994919062003a1a565b62002370565b90506000620009b46200099460608c0160408d0162003a1a565b90506000620009c78484848c8c620026f5565b9050620009d78484848462002828565b9099509750620009f19350505060208901905088620035f1565b73ffffffffffffffffffffffffffffffffffffffff16634f1eb3d83062000a1f60408b0160208c0162003a1a565b62000a3160608c0160408d0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9093166004840152600291820b6024840152900b60448201526fffffffffffffffffffffffffffffffff80891660648301528716608482015260a40160408051808303816000875af115801562000acd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000af3919062003b96565b6fffffffffffffffffffffffffffffffff9182169650169350821562000c0e576000670de0b6b3a764000062000b2a858862003bfd565b62000b36919062003c6c565b90506000670de0b6b3a764000062000b4f868862003bfd565b62000b5b919062003c6c565b905062000bc56040518060e001604052808b80360381019062000b7f919062003cd7565b81523060208201819052604082015260600162000b9d858b62003d53565b815260200162000bae848a62003d53565b81526020016000815260200160008152506200291f565b6040805186815260208101869052939b5091995097507f8ff06abbd47998d6c3049811caffedad7aecc341ef315e29f40b58f7a673ee02910160405180910390a1505062000c93565b62000c8b6040518060e001604052808980360381019062000c30919062003cd7565b81526020013073ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020016000815260200160008152506200291f565b919750955093505b8660405160200162000ca69190620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206fffffffffffffffffffffffffffffffff8a1684529083018890529082018690529033907fe8a0353df51d0f27feccd54ad6bb3dec20a5c6666ef44c3146550e1e54ba6a389060600160405180910390a35050509193909250565b6040517f8fcbaf0c00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101869052606481018590526001608482015260ff841660a482015260c4810183905260e4810182905273ffffffffffffffffffffffffffffffffffffffff871690638fcbaf0c90610104015b600060405180830381600087803b15801562000dd357600080fd5b505af115801562000de8573d6000803e3d6000fd5b50505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331462000e77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064016200065c565b8160005b8181101562000f835762000f7a85858381811062000e9d5762000e9d62003d6d565b905060200201602081019062000eb49190620035f1565b8487878581811062000eca5762000eca62003d6d565b905060200201602081019062000ee19190620035f1565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa15801562000f4e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f74919062003d9c565b62002d8a565b60010162000e7b565b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146200100d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064016200065c565b6706f05b59d3b2000081111562001081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4d4158000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b60018190556040518181527fdc0410a296e1e33943a772020d333d5f99319d7fcad932a484c53889f7aaa2b19060200160405180910390a150565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e90604401602060405180830381865afa1580156200114f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001175919062003d9c565b10156200118c576200118c86868686868662000d37565b505050505050565b60608167ffffffffffffffff811115620011b257620011b262003ca8565b604051908082528060200260200182016040528015620011e757816020015b6060815260200190600190039081620011d15790505b50905060005b828110156200131a57600080308686858181106200120f576200120f62003d6d565b905060200281019062001223919062003db6565b6040516200123392919062003e1e565b600060405180830381855af49150503d806000811462001270576040519150601f19603f3d011682016040523d82523d6000602084013e62001275565b606091505b509150915081620012e1576044815110156200129057600080fd5b60048101905080806020019051810190620012ac919062003e2e565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c919062003f05565b80848481518110620012f757620012f762003d6d565b602002602001018190525050508080620013119062003f1a565b915050620011ed565b5092915050565b6000806000808460e001358042111562001398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4f4c44000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6000620013a96020880188620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf30620013d760408b0160208c0162003a1a565b620013e960608c0160408d0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016200146291815260200190565b60a060405180830381865afa15801562001480573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620014a6919062003a80565b5050505090506200150c6040518060e0016040528089600001803603810190620014d1919062003cd7565b815230602082015233604082015260608a810135908201526080808b01359082015260a0808b01359082015260c0808b01359101526200291f565b9196509450925062001534876200152c61012082016101008301620035f1565b878462002e4b565b6040519096506200154a908890602001620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206200159461012089016101008a01620035f1565b604080516fffffffffffffffffffffffffffffffff89168152602081018890529081018690526060810189905273ffffffffffffffffffffffffffffffffffffffff919091169033907f099ba907192cf75889cdbe240a39ddfa9864b9c07b762c5a7ceab21056582ea69060800160405180910390a450509193509193565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152859073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e90604401602060405180830381865afa15801562001686573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620016ac919062003d9c565b10156200118c576200118c86868686868662001fa5565b6000620016d38284018462003f67565b8051602082015160408084015190517f1698ee8200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9384166004820152918316602483015262ffffff1660448201529192506000917f000000000000000000000000000000000000000000000000000000000000000090911690631698ee8290606401602060405180830381865afa15801562001786573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017ac919062003ff8565b90503373ffffffffffffffffffffffffffffffffffffffff8216146200182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b85156200184c576200184c8260000151836060015133896200311a565b84156200118c576200118c8260200151836060015133886200311a565b60008060008360e0013580421115620018df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4f4c44000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6000620018ec8662000403565b905073ffffffffffffffffffffffffffffffffffffffff81166200196f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f5748415400000000000000000000000000000000000000000000000000000000604082015260600190565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620019bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620019e3919062003d9c565b90506000620019f66020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf3062001a2460408c0160208d0162003a1a565b62001a3660608d0160408e0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040162001aaf91815260200190565b60a060405180830381865afa15801562001acd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001af3919062003a80565b505050509050600088608001351162001b69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f300000000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6040517f9dc29fac0000000000000000000000000000000000000000000000000000000081523360048201526080890135602482015273ffffffffffffffffffffffffffffffffffffffff841690639dc29fac90604401600060405180830381600087803b15801562001bdb57600080fd5b505af115801562001bf0573d6000803e3d6000fd5b5050505062001c17816fffffffffffffffffffffffffffffffff1689608001358462003185565b965062001c286020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663a34123a762001c5560408b0160208c0162003a1a565b62001c6760608c0160408d0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600292830b6004820152910b60248201526fffffffffffffffffffffffffffffffff8a16604482015260640160408051808303816000875af115801562001cde573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d04919062003a3a565b909650945062001d186020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff16634f1eb3d862001d4560808b0160608c01620035f1565b62001d5760408c0160208d0162003a1a565b62001d6960608d0160408e0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9093166004840152600291820b6024840152900b60448201526fffffffffffffffffffffffffffffffff808a1660648301528816608482015260a40160408051808303816000875af115801562001e05573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001e2b919062003b96565b6fffffffffffffffffffffffffffffffff918216975016945060a0880135861080159062001e5d57508760c001358510155b62001ec7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534c495000000000000000000000000000000000000000000000000000000000604082015260600190565b60405162001eda908990602001620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012062001f2260808a0160608b01620035f1565b604080516fffffffffffffffffffffffffffffffff8b168152602081018a90529081018890526080808c0135606083015273ffffffffffffffffffffffffffffffffffffffff929092169133917f39178cca1c18f66c7fcb2662a25ce89c78e21b6388eaff977a30b95a00ecf11d910160405180910390a4505050509193909250565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c4810182905273ffffffffffffffffffffffffffffffffffffffff87169063d505accf9060e40162000db8565b604080518082018252601081527f67363d3d37363d34f03d5260086018f30000000000000000000000000000000060209182015290517fff00000000000000000000000000000000000000000000000000000000000000918101919091527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003060601b166021820152603581018290527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6055820152600090819062002100906075015b6040516020818303038152906040528051906020012090565b6040517fd69400000000000000000000000000000000000000000000000000000000000060208201527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660228201527f010000000000000000000000000000000000000000000000000000000000000060368201529091506200218c90603701620020e7565b9392505050565b6000806040518060400160405280601081526020017f67363d3d37363d34f03d5260086018f30000000000000000000000000000000081525090506000858251602084016000f5905073ffffffffffffffffffffffffffffffffffffffff81166200225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4445504c4f594d454e545f4641494c454400000000000000000000000000000060448201526064016200065c565b620022668662002023565b925060008173ffffffffffffffffffffffffffffffffffffffff16858760405162002292919062004018565b60006040518083038185875af1925050503d8060008114620022d1576040519150601f19603f3d011682016040523d82523d6000602084013e620022d6565b606091505b50509050808015620022fe575073ffffffffffffffffffffffffffffffffffffffff84163b15155b62002366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f494e495449414c495a4154494f4e5f4641494c4544000000000000000000000060448201526064016200065c565b5050509392505050565b60008060008360020b1262002389578260020b62002391565b8260020b6000035b9050620d89e8811115620023d1576040517f2bc80f3a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600116600003620023f75770010000000000000000000000000000000062002409565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156200243e576ffff97272373d413259a46990580e213a0260801c5b60048216156200245e576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156200247e576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156200249e576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615620024be576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615620024de576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615620024fe576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156200251f576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b61020082161562002540576ff987a7253ac413176f2b074cf7815e540260801c5b61040082161562002561576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161562002582576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615620025a3576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615620025c4576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615620025e5576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161562002606576f31be135f97d08fd981231505542fcfa60260801c5b6201000082161562002628576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b6202000082161562002649576e5d6af8dedb81196699c329225ee6040260801c5b6204000082161562002669576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161562002687576b048a170391f7dc42444e8fa20260801c5b60008460020b1315620026ca57807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81620026c657620026c662003c3d565b0490505b640100000000810615620026e0576001620026e3565b60005b60ff16602082901c0192505050919050565b60008373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111562002730579293925b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161162002779576200277185858562003259565b90506200281f565b8373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1610156200280f576000620027bd87868662003259565b90506000620027ce8789866200330d565b9050806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161062002803578062002805565b815b925050506200281f565b6200281c8585846200330d565b90505b95945050505050565b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111562002864579293925b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1611620028ad57620028a585858562003386565b915062002916565b8373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1610156200290657620028ef86858562003386565b9150620028fe85878562003445565b905062002916565b6200291385858562003445565b90505b94509492505050565b6000806000836060015160001480156200293b57506080840151155b15620029505750600091508190508062002d83565b600084600001516000015173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015620029a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029cc919062003af1565b50505050505090506000620029e986600001516020015162002370565b9050600062002a0087600001516040015162002370565b905062002a198383838a606001518b60800151620026f5565b955050505083600001516000015173ffffffffffffffffffffffffffffffffffffffff16633c8a7d8d85602001518660000151602001518760000151604001518760405180608001604052808b600001516000015173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002ab9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002adf919062003ff8565b73ffffffffffffffffffffffffffffffffffffffff1681526020018b600001516000015173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002b4e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b74919062003ff8565b73ffffffffffffffffffffffffffffffffffffffff1681526020018b600001516000015173ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002be3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002c09919062004036565b62ffffff1681526040808d015173ffffffffffffffffffffffffffffffffffffffff166020928301525162002c85929101815173ffffffffffffffffffffffffffffffffffffffff908116825260208084015182169083015260408084015162ffffff1690830152606092830151169181019190915260800190565b6040516020818303038152906040526040518663ffffffff1660e01b815260040162002cb695949392919062004056565b60408051808303816000875af115801562002cd5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002cfb919062003a3a565b60a08601519193509150821080159062002d1957508360c001518110155b62002d83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534c495000000000000000000000000000000000000000000000000000000000604082015260600190565b9193909250565b60006040517fa9059cbb000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508062002e45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c4544000000000000000000000000000000000060448201526064016200065c565b50505050565b60008062002e598662000403565b905073ffffffffffffffffffffffffffffffffffffffff811662002edc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f5748415400000000000000000000000000000000000000000000000000000000604082015260600190565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002f2a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002f50919062003d9c565b90508060000362002fe757846fffffffffffffffffffffffffffffffff169250633b9aca00831162002fe1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534d4f4c00000000000000000000000000000000000000000000000000000000604082015260600190565b62003086565b6200301881866fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff1662003185565b92508260000362003086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f300000000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018590528316906340c10f1990604401600060405180830381600087803b158015620030f757600080fd5b505af11580156200310c573d6000803e3d6000fd5b505050505050949350505050565b3073ffffffffffffffffffffffffffffffffffffffff84160362003161576200315b73ffffffffffffffffffffffffffffffffffffffff8516838362002d8a565b62002e45565b62002e4573ffffffffffffffffffffffffffffffffffffffff8516848484620034c4565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85870985870292508281108382030391505080600003620031df5760008411620031d357600080fd5b5082900490506200218c565b808411620031ec57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003294579192915b6000620032dc8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000062003185565b90506200281f62003307848388880373ffffffffffffffffffffffffffffffffffffffff1662003185565b62003585565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003348579192915b6200337e62003307836c0100000000000000000000000087870373ffffffffffffffffffffffffffffffffffffffff1662003185565b949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161115620033c1579192915b8373ffffffffffffffffffffffffffffffffffffffff166200342c606060ff16846fffffffffffffffffffffffffffffffff16901b86860373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1662003185565b816200343c576200343c62003c3d565b04949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003480579192915b6200337e826fffffffffffffffffffffffffffffffff1685850373ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000062003185565b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081528460048201528360248201528260448201526020600060648360008a5af13d15601f3d116001600051141617169150508062000f83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c454400000000000000000000000060448201526064016200065c565b806fffffffffffffffffffffffffffffffff81168114620035a557600080fd5b919050565b61181680620040b283390190565b6000606082840312156200044f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114620035ee57600080fd5b50565b6000602082840312156200360457600080fd5b81356200218c81620035cb565b60ff81168114620035ee57600080fd5b60008060008060008060c087890312156200363b57600080fd5b86356200364881620035cb565b955060208701359450604087013593506060870135620036688162003611565b9598949750929560808101359460a0909101359350915050565b60008083601f8401126200369557600080fd5b50813567ffffffffffffffff811115620036ae57600080fd5b6020830191508360208260051b8501011115620036ca57600080fd5b9250929050565b600080600060408486031215620036e757600080fd5b833567ffffffffffffffff811115620036ff57600080fd5b6200370d8682870162003682565b90945092505060208401356200372381620035cb565b809150509250925092565b6000602082840312156200374157600080fd5b5035919050565b600080602083850312156200375c57600080fd5b823567ffffffffffffffff8111156200377457600080fd5b620037828582860162003682565b90969095509350505050565b60005b83811015620037ab57818101518382015260200162003791565b8381111562002e455750506000910152565b60008151808452620037d78160208601602086016200378e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101562003880577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526200386d858351620037bd565b9450928501929085019060010162003830565b5092979650505050505050565b600061012082840312156200044f57600080fd5b60008060008060608587031215620038b857600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115620038df57600080fd5b818701915087601f830112620038f457600080fd5b8135818111156200390457600080fd5b8860208285010111156200391757600080fd5b95989497505060200194505050565b600061010082840312156200044f57600080fd5b8060020b8114620035ee57600080fd5b80356200395781620035cb565b73ffffffffffffffffffffffffffffffffffffffff16825260208101356200397f816200393a565b60020b6020830152604081013562003997816200393a565b8060020b6040840152505050565b60608101620039b582846200394a565b92915050565b73ffffffffffffffffffffffffffffffffffffffff83168152608081016200218c60208301846200394a565b60008351620039fb8184602088016200378e565b83519083019062003a118183602088016200378e565b01949350505050565b60006020828403121562003a2d57600080fd5b81356200218c816200393a565b6000806040838503121562003a4e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff81168114620035a557600080fd5b600080600080600060a0868803121562003a9957600080fd5b62003aa48662003a5f565b9450602086015193506040860151925062003ac26060870162003a5f565b915062003ad26080870162003a5f565b90509295509295909350565b805161ffff81168114620035a557600080fd5b600080600080600080600060e0888a03121562003b0d57600080fd5b875162003b1a81620035cb565b602089015190975062003b2d816200393a565b955062003b3d6040890162003ade565b945062003b4d6060890162003ade565b935062003b5d6080890162003ade565b925060a088015162003b6f8162003611565b60c0890151909250801515811462003b8657600080fd5b8091505092959891949750929550565b6000806040838503121562003baa57600080fd5b62003bb58362003a5f565b915062003bc56020840162003a5f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562003c385762003c3862003bce565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008262003ca3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006060828403121562003cea57600080fd5b6040516060810181811067ffffffffffffffff8211171562003d105762003d1062003ca8565b604052823562003d2081620035cb565b8152602083013562003d32816200393a565b6020820152604083013562003d47816200393a565b60408201529392505050565b60008282101562003d685762003d6862003bce565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121562003daf57600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811262003dec57600080fd5b83018035915067ffffffffffffffff82111562003e0857600080fd5b602001915036819003821315620036ca57600080fd5b8183823760009101908152919050565b60006020828403121562003e4157600080fd5b815167ffffffffffffffff8082111562003e5a57600080fd5b818401915084601f83011262003e6f57600080fd5b81518181111562003e845762003e8462003ca8565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171562003ecd5762003ecd62003ca8565b8160405282815287602084870101111562003ee757600080fd5b62003efa8360208301602088016200378e565b979650505050505050565b6020815260006200218c6020830184620037bd565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362003f4e5762003f4e62003bce565b5060010190565b62ffffff81168114620035ee57600080fd5b60006080828403121562003f7a57600080fd5b6040516080810181811067ffffffffffffffff8211171562003fa05762003fa062003ca8565b604052823562003fb081620035cb565b8152602083013562003fc281620035cb565b6020820152604083013562003fd78162003f55565b6040820152606083013562003fec81620035cb565b60608201529392505050565b6000602082840312156200400b57600080fd5b81516200218c81620035cb565b600082516200402c8184602087016200378e565b9190910192915050565b6000602082840312156200404957600080fd5b81516200218c8162003f55565b73ffffffffffffffffffffffffffffffffffffffff861681528460020b60208201528360020b60408201526fffffffffffffffffffffffffffffffff8316606082015260a06080820152600062003efa60a0830184620037bd56fe6101606040523480156200001257600080fd5b506040516200181638038062001816833981016040819052620000359162000367565b80600001516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000078573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200009e91906200040a565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620000dc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000106919081019062000464565b81600001516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000149573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016f91906200040a565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620001ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620001d7919081019062000464565b604051602001620001ea9291906200051c565b60408051601f198184030181528282019091526008825267042554e4e492d4c560c41b602083015290601260006200022384826200060d565b5060016200023283826200060d565b5060ff81166080524660a0526200024862000284565b60c052505081516001600160a01b0390811660e0526020830151600290810b6101005260409093015190920b6101205250166101405262000757565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620002b89190620006d9565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b03811681146200033657600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b8051600281900b81146200036257600080fd5b919050565b60008082840360808112156200037c57600080fd5b8351620003898162000320565b92506060601f19820112156200039e57600080fd5b50604051606081016001600160401b0381118282101715620003c457620003c462000339565b6040526020840151620003d78162000320565b8152620003e7604085016200034f565b6020820152620003fa606085016200034f565b6040820152809150509250929050565b6000602082840312156200041d57600080fd5b81516200042a8162000320565b9392505050565b60005b838110156200044e57818101518382015260200162000434565b838111156200045e576000848401525b50505050565b6000602082840312156200047757600080fd5b81516001600160401b03808211156200048f57600080fd5b818401915084601f830112620004a457600080fd5b815181811115620004b957620004b962000339565b604051601f8201601f19908116603f01168101908382118183101715620004e457620004e462000339565b81604052828152876020848701011115620004fe57600080fd5b6200051183602083016020880162000431565b979650505050505050565b650213ab73734960d51b8152600083516200053f81600685016020880162000431565b602f60f81b60069184019182015283516200056281600784016020880162000431565b620204c560ec1b60079290910191820152600a01949350505050565b600181811c908216806200059357607f821691505b602082108103620005b457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200060857600081815260208120601f850160051c81016020861015620005e35750805b601f850160051c820191505b818110156200060457828155600101620005ef565b5050505b505050565b81516001600160401b0381111562000629576200062962000339565b62000641816200063a84546200057e565b84620005ba565b602080601f831160018114620006795760008415620006605750858301515b600019600386901b1c1916600185901b17855562000604565b600085815260208120601f198616915b82811015620006aa5788860151825594840194600190910190840162000689565b5085821015620006c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354620006e9816200057e565b600182811680156200070457600181146200071a576200074b565b60ff19841687528215158302870194506200074b565b8760005260208060002060005b85811015620007425781548a82015290840190820162000727565b50505082870194505b50929695505050505050565b60805160a05160c05160e051610100516101205161014051611056620007c0600039600081816102380152818161063a01526106f901526000610274015260006102ae0152600061018101526000610600015260006105cb015260006101f701526110566000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806355b812a8116100b257806395d89b4111610081578063a9059cbb11610066578063a9059cbb1461032b578063d505accf1461033e578063dd62ed3e1461035157600080fd5b806395d89b41146103105780639dc29fac1461031857600080fd5b806355b812a81461026f57806359c4f905146102a957806370a08231146102d05780637ecebe00146102f057600080fd5b806323b872dd116101095780633644e515116100ee5780633644e5151461022b578063365a86fc1461023357806340c10f191461025a57600080fd5b806323b872dd146101df578063313ce567146101f257600080fd5b806306fdde031461013b578063095ea7b31461015957806316f0115b1461017c57806318160ddd146101c8575b600080fd5b61014361037c565b6040516101509190610ccf565b60405180910390f35b61016c610167366004610d6b565b61040a565b6040519015158152602001610150565b6101a37f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b6101d160025481565b604051908152602001610150565b61016c6101ed366004610d95565b610483565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610150565b6101d16105c7565b6101a37f000000000000000000000000000000000000000000000000000000000000000081565b61026d610268366004610d6b565b610622565b005b6102967f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b8152602001610150565b6102967f000000000000000000000000000000000000000000000000000000000000000081565b6101d16102de366004610dd1565b60036020526000908152604090205481565b6101d16102fe366004610dd1565b60056020526000908152604090205481565b6101436106d4565b61026d610326366004610d6b565b6106e1565b61016c610339366004610d6b565b61078a565b61026d61034c366004610df3565b61080f565b6101d161035f366004610e66565b600460209081526000928352604080842090915290825290205481565b6000805461038990610e99565b80601f01602080910402602001604051908101604052809291908181526020018280546103b590610e99565b80156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104729086815260200190565b60405180910390a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610517576104e58382610f1b565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff85166000908152600360205260408120805485929061054c908490610f1b565b909155505073ffffffffffffffffffffffffffffffffffffffff808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105b49087815260200190565b60405180910390a3506001949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146105fd576105f8610b2e565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146106c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6106d08282610bc8565b5050565b6001805461038990610e99565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064016106bd565b6106d08282610c41565b336000908152600360205260408120805483919083906107ab908490610f1b565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104729086815260200190565b42841015610879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016106bd565b600060016108856105c7565b73ffffffffffffffffffffffffffffffffffffffff8a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f190100000000000000000000000000000000000000000000000000000000000061010083015261010282019290925261012281019190915261014201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156109d7573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610a5257508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016106bd565b73ffffffffffffffffffffffffffffffffffffffff90811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610b609190610f32565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610bda9190611008565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054839290610c76908490610f1b565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610c35565b600060208083528351808285015260005b81811015610cfc57858101830151858201604001528201610ce0565b81811115610d0e576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d6657600080fd5b919050565b60008060408385031215610d7e57600080fd5b610d8783610d42565b946020939093013593505050565b600080600060608486031215610daa57600080fd5b610db384610d42565b9250610dc160208501610d42565b9150604084013590509250925092565b600060208284031215610de357600080fd5b610dec82610d42565b9392505050565b600080600080600080600060e0888a031215610e0e57600080fd5b610e1788610d42565b9650610e2560208901610d42565b95506040880135945060608801359350608088013560ff81168114610e4957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610e7957600080fd5b610e8283610d42565b9150610e9060208401610d42565b90509250929050565b600181811c90821680610ead57607f821691505b602082108103610ee6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015610f2d57610f2d610eec565b500390565b600080835481600182811c915080831680610f4e57607f831692505b60208084108203610f86577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610f9a5760018114610fcd57610ffa565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952841515850289019650610ffa565b60008a81526020902060005b86811015610ff25781548b820152908501908301610fd9565b505084890196505b509498975050505050505050565b6000821982111561101b5761101b610eec565b50019056fea2646970667358221220653758a4eeb192901f490d1f6d898cb45abc9b2d4e7ec43281e1ed9b6a58de0764736f6c634300080f0033a2646970667358221220f08be87e614b60ae057c427a943141b87e3ebe881ef927f63cfcf068ccd9c36264736f6c634300080f00330000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f9840000000000000000000000009a8fee232dcf73060af348a1b62cdb0a19852d1300000000000000000000000000000000000000000000000000b1a2bc2ec50000Deployed Bytecode
0x608060405260043610620001245760003560e01c8063a4a78f0c11620000b2578063c2e3140a116200007d578063d34879971162000060578063d348799714620003a2578063d59bd26314620003c7578063f3995c6714620003ec57600080fd5b8063c2e3140a1462000355578063c45a0155146200036c57600080fd5b8063a4a78f0c14620002a8578063ac9650d814620002bf578063b0e21e8a14620002e5578063b3165aaf146200030c57600080fd5b80634659a49411620000f35780634659a49414620002185780637071f0c4146200022f578063787dce3d14620002545780638da5cb5b146200027957600080fd5b8063056f6b2b14620001295780630b2b685e146200017857806313af4035146200019d578063227efac314620001c4575b600080fd5b3480156200013657600080fd5b506200014e62000148366004620035b8565b62000403565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156200018557600080fd5b506200014e62000197366004620035b8565b62000455565b348015620001aa57600080fd5b50620001c2620001bc366004620035f1565b620005de565b005b348015620001d157600080fd5b50620001e9620001e3366004620035b8565b620006d5565b604080516fffffffffffffffffffffffffffffffff90941684526020840192909252908201526060016200016f565b620001c26200022936600462003621565b62000d37565b3480156200023c57600080fd5b50620001c26200024e366004620036d1565b62000df4565b3480156200026157600080fd5b50620001c2620002733660046200372e565b62000f8a565b3480156200028657600080fd5b506000546200014e9073ffffffffffffffffffffffffffffffffffffffff1681565b620001c2620002b936600462003621565b620010bc565b620002d6620002d036600462003748565b62001194565b6040516200016f919062003809565b348015620002f257600080fd5b50620002fd60015481565b6040519081526020016200016f565b620003236200031d3660046200388d565b62001321565b604080519485526fffffffffffffffffffffffffffffffff90931660208501529183015260608201526080016200016f565b620001c26200036636600462003621565b62001613565b3480156200037957600080fd5b506200014e7f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98481565b348015620003af57600080fd5b50620001c2620003c1366004620038a1565b620016c3565b348015620003d457600080fd5b50620001e9620003e636600462003926565b62001869565b620001c2620003fd36600462003621565b62001fa5565b600062000438826040516020016200041c9190620039a5565b6040516020818303038152906040528051906020012062002023565b9050803b60008190036200044f5750600092915050565b50919050565b600080826040516020016200046b9190620039a5565b6040516020818303038152906040528051906020012090506200053481604051806020016200049a90620035aa565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620004df9030908890602001620039bb565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526200051d9291602001620039e7565b604051602081830303815290604052600062002193565b9150620005456020840184620035f1565b73ffffffffffffffffffffffffffffffffffffffff16818373ffffffffffffffffffffffffffffffffffffffff167fa633a76553e9d8d77256f9284d85ae2eb5e5ef445d9e5686e3e6270e2e8fd4a8866020016020810190620005a9919062003a1a565b620005bb6060890160408a0162003a1a565b60408051600293840b81529190920b60208201520160405180910390a450919050565b60005473ffffffffffffffffffffffffffffffffffffffff16331462000665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b60015460009081908190620006ee6020860186620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663a34123a76200071b604088016020890162003a1a565b6200072d6060890160408a0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600292830b6004820152910b60248201526000604482015260640160408051808303816000875af115801562000793573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007b9919062003a3a565b506000905080620007ce6020880188620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf30620007fc60408b0160208c0162003a1a565b6200080e60608c0160408d0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016200088791815260200190565b60a060405180830381865afa158015620008a5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008cb919062003a80565b6fffffffffffffffffffffffffffffffff8083169a5081169850909550935060009250620009009150506020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa1580156200094b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000971919062003af1565b505050505050905060006200099a89602001602081019062000994919062003a1a565b62002370565b90506000620009b46200099460608c0160408d0162003a1a565b90506000620009c78484848c8c620026f5565b9050620009d78484848462002828565b9099509750620009f19350505060208901905088620035f1565b73ffffffffffffffffffffffffffffffffffffffff16634f1eb3d83062000a1f60408b0160208c0162003a1a565b62000a3160608c0160408d0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9093166004840152600291820b6024840152900b60448201526fffffffffffffffffffffffffffffffff80891660648301528716608482015260a40160408051808303816000875af115801562000acd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000af3919062003b96565b6fffffffffffffffffffffffffffffffff9182169650169350821562000c0e576000670de0b6b3a764000062000b2a858862003bfd565b62000b36919062003c6c565b90506000670de0b6b3a764000062000b4f868862003bfd565b62000b5b919062003c6c565b905062000bc56040518060e001604052808b80360381019062000b7f919062003cd7565b81523060208201819052604082015260600162000b9d858b62003d53565b815260200162000bae848a62003d53565b81526020016000815260200160008152506200291f565b6040805186815260208101869052939b5091995097507f8ff06abbd47998d6c3049811caffedad7aecc341ef315e29f40b58f7a673ee02910160405180910390a1505062000c93565b62000c8b6040518060e001604052808980360381019062000c30919062003cd7565b81526020013073ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020016000815260200160008152506200291f565b919750955093505b8660405160200162000ca69190620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201206fffffffffffffffffffffffffffffffff8a1684529083018890529082018690529033907fe8a0353df51d0f27feccd54ad6bb3dec20a5c6666ef44c3146550e1e54ba6a389060600160405180910390a35050509193909250565b6040517f8fcbaf0c00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101869052606481018590526001608482015260ff841660a482015260c4810183905260e4810182905273ffffffffffffffffffffffffffffffffffffffff871690638fcbaf0c90610104015b600060405180830381600087803b15801562000dd357600080fd5b505af115801562000de8573d6000803e3d6000fd5b50505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331462000e77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064016200065c565b8160005b8181101562000f835762000f7a85858381811062000e9d5762000e9d62003d6d565b905060200201602081019062000eb49190620035f1565b8487878581811062000eca5762000eca62003d6d565b905060200201602081019062000ee19190620035f1565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa15801562000f4e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f74919062003d9c565b62002d8a565b60010162000e7b565b5050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146200100d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064016200065c565b6706f05b59d3b2000081111562001081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4d4158000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b60018190556040518181527fdc0410a296e1e33943a772020d333d5f99319d7fcad932a484c53889f7aaa2b19060200160405180910390a150565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e90604401602060405180830381865afa1580156200114f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001175919062003d9c565b10156200118c576200118c86868686868662000d37565b505050505050565b60608167ffffffffffffffff811115620011b257620011b262003ca8565b604051908082528060200260200182016040528015620011e757816020015b6060815260200190600190039081620011d15790505b50905060005b828110156200131a57600080308686858181106200120f576200120f62003d6d565b905060200281019062001223919062003db6565b6040516200123392919062003e1e565b600060405180830381855af49150503d806000811462001270576040519150601f19603f3d011682016040523d82523d6000602084013e62001275565b606091505b509150915081620012e1576044815110156200129057600080fd5b60048101905080806020019051810190620012ac919062003e2e565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c919062003f05565b80848481518110620012f757620012f762003d6d565b602002602001018190525050508080620013119062003f1a565b915050620011ed565b5092915050565b6000806000808460e001358042111562001398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4f4c44000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6000620013a96020880188620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf30620013d760408b0160208c0162003a1a565b620013e960608c0160408d0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016200146291815260200190565b60a060405180830381865afa15801562001480573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620014a6919062003a80565b5050505090506200150c6040518060e0016040528089600001803603810190620014d1919062003cd7565b815230602082015233604082015260608a810135908201526080808b01359082015260a0808b01359082015260c0808b01359101526200291f565b9196509450925062001534876200152c61012082016101008301620035f1565b878462002e4b565b6040519096506200154a908890602001620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101206200159461012089016101008a01620035f1565b604080516fffffffffffffffffffffffffffffffff89168152602081018890529081018690526060810189905273ffffffffffffffffffffffffffffffffffffffff919091169033907f099ba907192cf75889cdbe240a39ddfa9864b9c07b762c5a7ceab21056582ea69060800160405180910390a450509193509193565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152859073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e90604401602060405180830381865afa15801562001686573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620016ac919062003d9c565b10156200118c576200118c86868686868662001fa5565b6000620016d38284018462003f67565b8051602082015160408084015190517f1698ee8200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9384166004820152918316602483015262ffffff1660448201529192506000917f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98490911690631698ee8290606401602060405180830381865afa15801562001786573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017ac919062003ff8565b90503373ffffffffffffffffffffffffffffffffffffffff8216146200182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b85156200184c576200184c8260000151836060015133896200311a565b84156200118c576200118c8260200151836060015133886200311a565b60008060008360e0013580421115620018df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f4f4c44000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6000620018ec8662000403565b905073ffffffffffffffffffffffffffffffffffffffff81166200196f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f5748415400000000000000000000000000000000000000000000000000000000604082015260600190565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620019bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620019e3919062003d9c565b90506000620019f66020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663514ea4bf3062001a2460408c0160208d0162003a1a565b62001a3660608d0160408e0162003a1a565b60405160609390931b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602084015260e891821b6034840152901b6037820152603a01604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040162001aaf91815260200190565b60a060405180830381865afa15801562001acd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001af3919062003a80565b505050509050600088608001351162001b69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f300000000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6040517f9dc29fac0000000000000000000000000000000000000000000000000000000081523360048201526080890135602482015273ffffffffffffffffffffffffffffffffffffffff841690639dc29fac90604401600060405180830381600087803b15801562001bdb57600080fd5b505af115801562001bf0573d6000803e3d6000fd5b5050505062001c17816fffffffffffffffffffffffffffffffff1689608001358462003185565b965062001c286020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff1663a34123a762001c5560408b0160208c0162003a1a565b62001c6760608c0160408d0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b168152600292830b6004820152910b60248201526fffffffffffffffffffffffffffffffff8a16604482015260640160408051808303816000875af115801562001cde573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001d04919062003a3a565b909650945062001d186020890189620035f1565b73ffffffffffffffffffffffffffffffffffffffff16634f1eb3d862001d4560808b0160608c01620035f1565b62001d5760408c0160208d0162003a1a565b62001d6960608d0160408e0162003a1a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9093166004840152600291820b6024840152900b60448201526fffffffffffffffffffffffffffffffff808a1660648301528816608482015260a40160408051808303816000875af115801562001e05573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001e2b919062003b96565b6fffffffffffffffffffffffffffffffff918216975016945060a0880135861080159062001e5d57508760c001358510155b62001ec7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534c495000000000000000000000000000000000000000000000000000000000604082015260600190565b60405162001eda908990602001620039a5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012062001f2260808a0160608b01620035f1565b604080516fffffffffffffffffffffffffffffffff8b168152602081018a90529081018890526080808c0135606083015273ffffffffffffffffffffffffffffffffffffffff929092169133917f39178cca1c18f66c7fcb2662a25ce89c78e21b6388eaff977a30b95a00ecf11d910160405180910390a4505050509193909250565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c4810182905273ffffffffffffffffffffffffffffffffffffffff87169063d505accf9060e40162000db8565b604080518082018252601081527f67363d3d37363d34f03d5260086018f30000000000000000000000000000000060209182015290517fff00000000000000000000000000000000000000000000000000000000000000918101919091527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003060601b166021820152603581018290527f21c35dbe1b344a2488cf3321d6ce542f8e9f305544ff09e4993a62319a497c1f6055820152600090819062002100906075015b6040516020818303038152906040528051906020012090565b6040517fd69400000000000000000000000000000000000000000000000000000000000060208201527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660228201527f010000000000000000000000000000000000000000000000000000000000000060368201529091506200218c90603701620020e7565b9392505050565b6000806040518060400160405280601081526020017f67363d3d37363d34f03d5260086018f30000000000000000000000000000000081525090506000858251602084016000f5905073ffffffffffffffffffffffffffffffffffffffff81166200225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4445504c4f594d454e545f4641494c454400000000000000000000000000000060448201526064016200065c565b620022668662002023565b925060008173ffffffffffffffffffffffffffffffffffffffff16858760405162002292919062004018565b60006040518083038185875af1925050503d8060008114620022d1576040519150601f19603f3d011682016040523d82523d6000602084013e620022d6565b606091505b50509050808015620022fe575073ffffffffffffffffffffffffffffffffffffffff84163b15155b62002366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f494e495449414c495a4154494f4e5f4641494c4544000000000000000000000060448201526064016200065c565b5050509392505050565b60008060008360020b1262002389578260020b62002391565b8260020b6000035b9050620d89e8811115620023d1576040517f2bc80f3a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081600116600003620023f75770010000000000000000000000000000000062002409565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156200243e576ffff97272373d413259a46990580e213a0260801c5b60048216156200245e576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156200247e576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156200249e576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615620024be576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615620024de576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615620024fe576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156200251f576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b61020082161562002540576ff987a7253ac413176f2b074cf7815e540260801c5b61040082161562002561576ff3392b0822b70005940c7a398e4b70f30260801c5b61080082161562002582576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615620025a3576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615620025c4576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615620025e5576f70d869a156d2a1b890bb3df62baf32f70260801c5b61800082161562002606576f31be135f97d08fd981231505542fcfa60260801c5b6201000082161562002628576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b6202000082161562002649576e5d6af8dedb81196699c329225ee6040260801c5b6204000082161562002669576d2216e584f5fa1ea926041bedfe980260801c5b6208000082161562002687576b048a170391f7dc42444e8fa20260801c5b60008460020b1315620026ca57807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81620026c657620026c662003c3d565b0490505b640100000000810615620026e0576001620026e3565b60005b60ff16602082901c0192505050919050565b60008373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111562002730579293925b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161162002779576200277185858562003259565b90506200281f565b8373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1610156200280f576000620027bd87868662003259565b90506000620027ce8789866200330d565b9050806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161062002803578062002805565b815b925050506200281f565b6200281c8585846200330d565b90505b95945050505050565b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111562002864579293925b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1611620028ad57620028a585858562003386565b915062002916565b8373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1610156200290657620028ef86858562003386565b9150620028fe85878562003445565b905062002916565b6200291385858562003445565b90505b94509492505050565b6000806000836060015160001480156200293b57506080840151155b15620029505750600091508190508062002d83565b600084600001516000015173ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa158015620029a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620029cc919062003af1565b50505050505090506000620029e986600001516020015162002370565b9050600062002a0087600001516040015162002370565b905062002a198383838a606001518b60800151620026f5565b955050505083600001516000015173ffffffffffffffffffffffffffffffffffffffff16633c8a7d8d85602001518660000151602001518760000151604001518760405180608001604052808b600001516000015173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002ab9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002adf919062003ff8565b73ffffffffffffffffffffffffffffffffffffffff1681526020018b600001516000015173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002b4e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002b74919062003ff8565b73ffffffffffffffffffffffffffffffffffffffff1681526020018b600001516000015173ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002be3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002c09919062004036565b62ffffff1681526040808d015173ffffffffffffffffffffffffffffffffffffffff166020928301525162002c85929101815173ffffffffffffffffffffffffffffffffffffffff908116825260208084015182169083015260408084015162ffffff1690830152606092830151169181019190915260800190565b6040516020818303038152906040526040518663ffffffff1660e01b815260040162002cb695949392919062004056565b60408051808303816000875af115801562002cd5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002cfb919062003a3a565b60a08601519193509150821080159062002d1957508360c001518110155b62002d83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534c495000000000000000000000000000000000000000000000000000000000604082015260600190565b9193909250565b60006040517fa9059cbb000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508062002e45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c4544000000000000000000000000000000000060448201526064016200065c565b50505050565b60008062002e598662000403565b905073ffffffffffffffffffffffffffffffffffffffff811662002edc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f5748415400000000000000000000000000000000000000000000000000000000604082015260600190565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002f2a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002f50919062003d9c565b90508060000362002fe757846fffffffffffffffffffffffffffffffff169250633b9aca00831162002fe1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065c9060208082526004908201527f534d4f4c00000000000000000000000000000000000000000000000000000000604082015260600190565b62003086565b6200301881866fffffffffffffffffffffffffffffffff16866fffffffffffffffffffffffffffffffff1662003185565b92508260000362003086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600160248201527f300000000000000000000000000000000000000000000000000000000000000060448201526064016200065c565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018590528316906340c10f1990604401600060405180830381600087803b158015620030f757600080fd5b505af11580156200310c573d6000803e3d6000fd5b505050505050949350505050565b3073ffffffffffffffffffffffffffffffffffffffff84160362003161576200315b73ffffffffffffffffffffffffffffffffffffffff8516838362002d8a565b62002e45565b62002e4573ffffffffffffffffffffffffffffffffffffffff8516848484620034c4565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85870985870292508281108382030391505080600003620031df5760008411620031d357600080fd5b5082900490506200218c565b808411620031ec57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003294579192915b6000620032dc8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000062003185565b90506200281f62003307848388880373ffffffffffffffffffffffffffffffffffffffff1662003185565b62003585565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003348579192915b6200337e62003307836c0100000000000000000000000087870373ffffffffffffffffffffffffffffffffffffffff1662003185565b949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161115620033c1579192915b8373ffffffffffffffffffffffffffffffffffffffff166200342c606060ff16846fffffffffffffffffffffffffffffffff16901b86860373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1662003185565b816200343c576200343c62003c3d565b04949350505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16111562003480579192915b6200337e826fffffffffffffffffffffffffffffffff1685850373ffffffffffffffffffffffffffffffffffffffff166c0100000000000000000000000062003185565b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081528460048201528360248201528260448201526020600060648360008a5af13d15601f3d116001600051141617169150508062000f83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c454400000000000000000000000060448201526064016200065c565b806fffffffffffffffffffffffffffffffff81168114620035a557600080fd5b919050565b61181680620040b283390190565b6000606082840312156200044f57600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114620035ee57600080fd5b50565b6000602082840312156200360457600080fd5b81356200218c81620035cb565b60ff81168114620035ee57600080fd5b60008060008060008060c087890312156200363b57600080fd5b86356200364881620035cb565b955060208701359450604087013593506060870135620036688162003611565b9598949750929560808101359460a0909101359350915050565b60008083601f8401126200369557600080fd5b50813567ffffffffffffffff811115620036ae57600080fd5b6020830191508360208260051b8501011115620036ca57600080fd5b9250929050565b600080600060408486031215620036e757600080fd5b833567ffffffffffffffff811115620036ff57600080fd5b6200370d8682870162003682565b90945092505060208401356200372381620035cb565b809150509250925092565b6000602082840312156200374157600080fd5b5035919050565b600080602083850312156200375c57600080fd5b823567ffffffffffffffff8111156200377457600080fd5b620037828582860162003682565b90969095509350505050565b60005b83811015620037ab57818101518382015260200162003791565b8381111562002e455750506000910152565b60008151808452620037d78160208601602086016200378e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101562003880577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526200386d858351620037bd565b9450928501929085019060010162003830565b5092979650505050505050565b600061012082840312156200044f57600080fd5b60008060008060608587031215620038b857600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115620038df57600080fd5b818701915087601f830112620038f457600080fd5b8135818111156200390457600080fd5b8860208285010111156200391757600080fd5b95989497505060200194505050565b600061010082840312156200044f57600080fd5b8060020b8114620035ee57600080fd5b80356200395781620035cb565b73ffffffffffffffffffffffffffffffffffffffff16825260208101356200397f816200393a565b60020b6020830152604081013562003997816200393a565b8060020b6040840152505050565b60608101620039b582846200394a565b92915050565b73ffffffffffffffffffffffffffffffffffffffff83168152608081016200218c60208301846200394a565b60008351620039fb8184602088016200378e565b83519083019062003a118183602088016200378e565b01949350505050565b60006020828403121562003a2d57600080fd5b81356200218c816200393a565b6000806040838503121562003a4e57600080fd5b505080516020909101519092909150565b80516fffffffffffffffffffffffffffffffff81168114620035a557600080fd5b600080600080600060a0868803121562003a9957600080fd5b62003aa48662003a5f565b9450602086015193506040860151925062003ac26060870162003a5f565b915062003ad26080870162003a5f565b90509295509295909350565b805161ffff81168114620035a557600080fd5b600080600080600080600060e0888a03121562003b0d57600080fd5b875162003b1a81620035cb565b602089015190975062003b2d816200393a565b955062003b3d6040890162003ade565b945062003b4d6060890162003ade565b935062003b5d6080890162003ade565b925060a088015162003b6f8162003611565b60c0890151909250801515811462003b8657600080fd5b8091505092959891949750929550565b6000806040838503121562003baa57600080fd5b62003bb58362003a5f565b915062003bc56020840162003a5f565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562003c385762003c3862003bce565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008262003ca3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006060828403121562003cea57600080fd5b6040516060810181811067ffffffffffffffff8211171562003d105762003d1062003ca8565b604052823562003d2081620035cb565b8152602083013562003d32816200393a565b6020820152604083013562003d47816200393a565b60408201529392505050565b60008282101562003d685762003d6862003bce565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121562003daf57600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811262003dec57600080fd5b83018035915067ffffffffffffffff82111562003e0857600080fd5b602001915036819003821315620036ca57600080fd5b8183823760009101908152919050565b60006020828403121562003e4157600080fd5b815167ffffffffffffffff8082111562003e5a57600080fd5b818401915084601f83011262003e6f57600080fd5b81518181111562003e845762003e8462003ca8565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171562003ecd5762003ecd62003ca8565b8160405282815287602084870101111562003ee757600080fd5b62003efa8360208301602088016200378e565b979650505050505050565b6020815260006200218c6020830184620037bd565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362003f4e5762003f4e62003bce565b5060010190565b62ffffff81168114620035ee57600080fd5b60006080828403121562003f7a57600080fd5b6040516080810181811067ffffffffffffffff8211171562003fa05762003fa062003ca8565b604052823562003fb081620035cb565b8152602083013562003fc281620035cb565b6020820152604083013562003fd78162003f55565b6040820152606083013562003fec81620035cb565b60608201529392505050565b6000602082840312156200400b57600080fd5b81516200218c81620035cb565b600082516200402c8184602087016200378e565b9190910192915050565b6000602082840312156200404957600080fd5b81516200218c8162003f55565b73ffffffffffffffffffffffffffffffffffffffff861681528460020b60208201528360020b60408201526fffffffffffffffffffffffffffffffff8316606082015260a06080820152600062003efa60a0830184620037bd56fe6101606040523480156200001257600080fd5b506040516200181638038062001816833981016040819052620000359162000367565b80600001516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000078573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200009e91906200040a565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620000dc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000106919081019062000464565b81600001516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000149573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016f91906200040a565b6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620001ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620001d7919081019062000464565b604051602001620001ea9291906200051c565b60408051601f198184030181528282019091526008825267042554e4e492d4c560c41b602083015290601260006200022384826200060d565b5060016200023283826200060d565b5060ff81166080524660a0526200024862000284565b60c052505081516001600160a01b0390811660e0526020830151600290810b6101005260409093015190920b6101205250166101405262000757565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620002b89190620006d9565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b03811681146200033657600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b8051600281900b81146200036257600080fd5b919050565b60008082840360808112156200037c57600080fd5b8351620003898162000320565b92506060601f19820112156200039e57600080fd5b50604051606081016001600160401b0381118282101715620003c457620003c462000339565b6040526020840151620003d78162000320565b8152620003e7604085016200034f565b6020820152620003fa606085016200034f565b6040820152809150509250929050565b6000602082840312156200041d57600080fd5b81516200042a8162000320565b9392505050565b60005b838110156200044e57818101518382015260200162000434565b838111156200045e576000848401525b50505050565b6000602082840312156200047757600080fd5b81516001600160401b03808211156200048f57600080fd5b818401915084601f830112620004a457600080fd5b815181811115620004b957620004b962000339565b604051601f8201601f19908116603f01168101908382118183101715620004e457620004e462000339565b81604052828152876020848701011115620004fe57600080fd5b6200051183602083016020880162000431565b979650505050505050565b650213ab73734960d51b8152600083516200053f81600685016020880162000431565b602f60f81b60069184019182015283516200056281600784016020880162000431565b620204c560ec1b60079290910191820152600a01949350505050565b600181811c908216806200059357607f821691505b602082108103620005b457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200060857600081815260208120601f850160051c81016020861015620005e35750805b601f850160051c820191505b818110156200060457828155600101620005ef565b5050505b505050565b81516001600160401b0381111562000629576200062962000339565b62000641816200063a84546200057e565b84620005ba565b602080601f831160018114620006795760008415620006605750858301515b600019600386901b1c1916600185901b17855562000604565b600085815260208120601f198616915b82811015620006aa5788860151825594840194600190910190840162000689565b5085821015620006c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354620006e9816200057e565b600182811680156200070457600181146200071a576200074b565b60ff19841687528215158302870194506200074b565b8760005260208060002060005b85811015620007425781548a82015290840190820162000727565b50505082870194505b50929695505050505050565b60805160a05160c05160e051610100516101205161014051611056620007c0600039600081816102380152818161063a01526106f901526000610274015260006102ae0152600061018101526000610600015260006105cb015260006101f701526110566000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806355b812a8116100b257806395d89b4111610081578063a9059cbb11610066578063a9059cbb1461032b578063d505accf1461033e578063dd62ed3e1461035157600080fd5b806395d89b41146103105780639dc29fac1461031857600080fd5b806355b812a81461026f57806359c4f905146102a957806370a08231146102d05780637ecebe00146102f057600080fd5b806323b872dd116101095780633644e515116100ee5780633644e5151461022b578063365a86fc1461023357806340c10f191461025a57600080fd5b806323b872dd146101df578063313ce567146101f257600080fd5b806306fdde031461013b578063095ea7b31461015957806316f0115b1461017c57806318160ddd146101c8575b600080fd5b61014361037c565b6040516101509190610ccf565b60405180910390f35b61016c610167366004610d6b565b61040a565b6040519015158152602001610150565b6101a37f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b6101d160025481565b604051908152602001610150565b61016c6101ed366004610d95565b610483565b6102197f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610150565b6101d16105c7565b6101a37f000000000000000000000000000000000000000000000000000000000000000081565b61026d610268366004610d6b565b610622565b005b6102967f000000000000000000000000000000000000000000000000000000000000000081565b60405160029190910b8152602001610150565b6102967f000000000000000000000000000000000000000000000000000000000000000081565b6101d16102de366004610dd1565b60036020526000908152604090205481565b6101d16102fe366004610dd1565b60056020526000908152604090205481565b6101436106d4565b61026d610326366004610d6b565b6106e1565b61016c610339366004610d6b565b61078a565b61026d61034c366004610df3565b61080f565b6101d161035f366004610e66565b600460209081526000928352604080842090915290825290205481565b6000805461038990610e99565b80601f01602080910402602001604051908101604052809291908181526020018280546103b590610e99565b80156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104729086815260200190565b60405180910390a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610517576104e58382610f1b565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff85166000908152600360205260408120805485929061054c908490610f1b565b909155505073ffffffffffffffffffffffffffffffffffffffff808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906105b49087815260200190565b60405180910390a3506001949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146105fd576105f8610b2e565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146106c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6106d08282610bc8565b5050565b6001805461038990610e99565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600360248201527f57484f000000000000000000000000000000000000000000000000000000000060448201526064016106bd565b6106d08282610c41565b336000908152600360205260408120805483919083906107ab908490610f1b565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104729086815260200190565b42841015610879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016106bd565b600060016108856105c7565b73ffffffffffffffffffffffffffffffffffffffff8a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f190100000000000000000000000000000000000000000000000000000000000061010083015261010282019290925261012281019190915261014201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156109d7573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610a5257508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610ab8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016106bd565b73ffffffffffffffffffffffffffffffffffffffff90811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610b609190610f32565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610bda9190611008565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604081208054839290610c76908490610f1b565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610c35565b600060208083528351808285015260005b81811015610cfc57858101830151858201604001528201610ce0565b81811115610d0e576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d6657600080fd5b919050565b60008060408385031215610d7e57600080fd5b610d8783610d42565b946020939093013593505050565b600080600060608486031215610daa57600080fd5b610db384610d42565b9250610dc160208501610d42565b9150604084013590509250925092565b600060208284031215610de357600080fd5b610dec82610d42565b9392505050565b600080600080600080600060e0888a031215610e0e57600080fd5b610e1788610d42565b9650610e2560208901610d42565b95506040880135945060608801359350608088013560ff81168114610e4957600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610e7957600080fd5b610e8283610d42565b9150610e9060208401610d42565b90509250929050565b600181811c90821680610ead57607f821691505b602082108103610ee6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015610f2d57610f2d610eec565b500390565b600080835481600182811c915080831680610f4e57607f831692505b60208084108203610f86577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610f9a5760018114610fcd57610ffa565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952841515850289019650610ffa565b60008a81526020902060005b86811015610ff25781548b820152908501908301610fd9565b505084890196505b509498975050505050505050565b6000821982111561101b5761101b610eec565b50019056fea2646970667358221220653758a4eeb192901f490d1f6d898cb45abc9b2d4e7ec43281e1ed9b6a58de0764736f6c634300080f0033a2646970667358221220f08be87e614b60ae057c427a943141b87e3ebe881ef927f63cfcf068ccd9c36264736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f9840000000000000000000000009a8fee232dcf73060af348a1b62cdb0a19852d1300000000000000000000000000000000000000000000000000b1a2bc2ec50000
-----Decoded View---------------
Arg [0] : factory_ (address): 0x1F98431c8aD98523631AE4a59f267346ea31F984
Arg [1] : owner_ (address): 0x9a8FEe232DCF73060Af348a1B62Cdb0a19852d13
Arg [2] : protocolFee_ (uint256): 50000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984
Arg [1] : 0000000000000000000000009a8fee232dcf73060af348a1b62cdb0a19852d13
Arg [2] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000Deployed Bytecode Sourcemap
102881:14366:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114095:436;;;;;;;;;;-1:-1:-1;114095:436:0;;;;;:::i;:::-;;:::i;:::-;;;409:42:1;397:55;;;379:74;;367:2;352:18;114095:436:0;;;;;;;;113224:644;;;;;;;;;;-1:-1:-1;113224:644:0;;;;;:::i;:::-;;:::i;38342:148::-;;;;;;;;;;-1:-1:-1;38342:148:0;;;;;:::i;:::-;;:::i;:::-;;108024:5161;;;;;;;;;;-1:-1:-1;108024:5161:0;;;;;:::i;:::-;;:::i;:::-;;;;1107:34:1;1095:47;;;1077:66;;1174:2;1159:18;;1152:34;;;;1202:18;;;1195:34;1065:2;1050:18;108024:5161:0;875:360:1;29137:298:0;;;;;;:::i;:::-;;:::i;114759:488::-;;;;;;;;;;-1:-1:-1;114759:488:0;;;;;:::i;:::-;;:::i;115286:194::-;;;;;;;;;;-1:-1:-1;115286:194:0;;;;;:::i;:::-;;:::i;37706:20::-;;;;;;;;;;-1:-1:-1;37706:20:0;;;;;;;;29476:358;;;;;;:::i;:::-;;:::i;20091:669::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;103321:35::-;;;;;;;;;;;;;;;;;;;5474:25:1;;;5462:2;5447:18;103321:35:0;5328:177:1;104216:1482:0;;;;;;:::i;:::-;;:::i;:::-;;;;5946:25:1;;;6019:34;6007:47;;;6002:2;5987:18;;5980:75;6071:18;;;6064:34;6129:2;6114:18;;6107:34;5933:3;5918:19;104216:1482:0;5715:432:1;28773:323:0;;;;;;:::i;:::-;;:::i;98656:51::-;;;;;;;;;;;;;;;98845:739;;;;;;;;;;-1:-1:-1;98845:739:0;;;;;:::i;:::-;;:::i;105737:2248::-;;;;;;;;;;-1:-1:-1;105737:2248:0;;;;;:::i;:::-;;:::i;28450:282::-;;;;;;:::i;:::-;;:::i;114095:436::-;114207:17;114262:47;114303:3;114292:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;114282:26;;;;;;114262:19;:47::i;:::-;114242:68;-1:-1:-1;114400:18:0;;114323:23;114445:20;;;114441:83;;-1:-1:-1;114509:1:0;;114095:436;-1:-1:-1;;114095:436:0:o;114441:83::-;114231:300;114095:436;;;:::o;113224:644::-;113325:17;113360:20;113404:3;113393:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;113383:26;;;;;;113360:49;;113456:230;113489:12;113559:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;113611:21;;113622:4;;113628:3;;113559:29;113611:21;;:::i;:::-;;;;;;;;;;;;;;;113520:131;;;113611:21;113520:131;;:::i;:::-;;;;;;;;;;;;;113670:1;113456:14;:230::i;:::-;113422:275;-1:-1:-1;113785:8:0;;;;:3;:8;:::i;:::-;113715:145;;113758:12;113738:5;113715:145;;;113808:3;:13;;;;;;;;;;:::i;:::-;113836;;;;;;;;:::i;:::-;113715:145;;;9860:1:1;9849:21;;;9831:40;;9907:21;;;;9902:2;9887:18;;9880:49;9804:18;113715:145:0;;;;;;;113349:519;113224:644;;;:::o;38342:148::-;37797:5;;;;37783:10;:19;37775:44;;;;;;;10142:2:1;37775:44:0;;;10124:21:1;10181:2;10161:18;;;10154:30;10220:14;10200:18;;;10193:42;10252:18;;37775:44:0;;;;;;;;;38414:5:::1;:16:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;38448:34:::1;::::0;38414:16;;38461:10:::1;::::0;38448:34:::1;::::0;38414:5;38448:34:::1;38342:148:::0;:::o;108024:5161::-;108283:11;;108150:22;;;;;;108397:8;;;;:3;:8;:::i;:::-;:13;;;108411;;;;;;;;:::i;:::-;108426;;;;;;;;:::i;:::-;108397:46;;;;;;;;;;10512:1:1;10501:21;;;108397:46:0;;;10483:40:1;10559:21;;10539:18;;;10532:49;108441:1:0;10597:18:1;;;10590:75;10456:18;;108397:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;108461:23:0;;-1:-1:-1;108461:23:0;108513:22;;;;:3;:22;:::i;:::-;:46;;;108661:4;108693:13;;;;;;;;:::i;:::-;108733;;;;;;;;:::i;:::-;108610:159;;11123:2:1;11119:15;;;;11136:66;11115:88;108610:159:0;;;11103:101:1;11238:3;11234:16;;;11220:12;;;11213:38;11281:16;;11267:12;;;11260:38;11314:12;;108610:159:0;;;;;;;;;;;;108578:210;;;;;;108513:290;;;;;;;;;;;;;5474:25:1;;5462:2;5447:18;;5328:177;108513:290:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;109031:25;;;;;-1:-1:-1;109067:25:0;;;-1:-1:-1;108454:349:0;;-1:-1:-1;108454:349:0;-1:-1:-1;109588:20:0;;-1:-1:-1;109624:8:0;;-1:-1:-1;;109624:8:0;;;:3;:8;:::i;:::-;:14;;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;109587:53;;;;;;;;109655:21;109679:42;109707:3;:13;;;;;;;;;;:::i;:::-;109679:27;:42::i;:::-;109655:66;-1:-1:-1;109736:21:0;109760:42;109788:13;;;;;;;;:::i;109760:42::-;109736:66;;109896:23;109922:201;109980:12;110011:13;110043;110075:7;110101;109922:39;:201::i;:::-;109896:227;;110246:183;110304:12;110335:13;110367;110399:15;110246:39;:183::i;:::-;110225:204;;-1:-1:-1;110225:204:0;-1:-1:-1;110796:8:0;;-1:-1:-1;;;110796:8:0;;;;-1:-1:-1;110796:8:0;;:::i;:::-;:16;;;110835:4;110855:13;;;;;;;;:::i;:::-;110883;;;;;;;;:::i;:::-;110796:173;;;;;;;;;;13603:42:1;13591:55;;;110796:173:0;;;13573:74:1;13694:1;13683:21;;;13663:18;;;13656:49;13741:21;;13721:18;;;13714:49;13782:34;13852:15;;;13832:18;;;13825:43;13905:15;;13884:19;;;13877:44;13545:19;;110796:173:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110775:194;;;;;-1:-1:-1;110775:194:0;;-1:-1:-1;111191:16:0;;111187:1597;;111427:12;103028:4;111443:22;111453:12;111443:7;:22;:::i;:::-;111442:30;;;;:::i;:::-;111427:45;-1:-1:-1;111487:12:0;103028:4;111503:22;111513:12;111503:7;:22;:::i;:::-;111502:30;;;;:::i;:::-;111487:45;;111649:405;111681:358;;;;;;;;111748:3;111681:358;;;;;;;;;;:::i;:::-;;;111793:4;111681:358;;;;;;;;;;;;111880:14;111890:4;111880:7;:14;:::i;:::-;111681:358;;;;111933:14;111943:4;111933:7;:14;:::i;:::-;111681:358;;;;111982:1;111681:358;;;;112018:1;111681:358;;;111649:13;:405::i;:::-;112244:26;;;16398:25:1;;;16454:2;16439:18;;16432:34;;;111612:442:0;;-1:-1:-1;111612:442:0;;-1:-1:-1;111612:442:0;-1:-1:-1;112244:26:0;;16371:18:1;112244:26:0;;;;;;;111209:1073;;111187:1597;;;112381:391;112413:344;;;;;;;;112480:3;112413:344;;;;;;;;;;:::i;:::-;;;;;112525:4;112413:344;;;;;;112568:4;112413:344;;;;;;112612:7;112413:344;;;;112658:7;112413:344;;;;112700:1;112413:344;;;;112736:1;112413:344;;;112381:13;:391::i;:::-;112344:428;;-1:-1:-1;112344:428:0;-1:-1:-1;112344:428:0;-1:-1:-1;111187:1597:0;113088:3;113077:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;;113067:26;;113077:15;113067:26;;;;1107:34:1;1095:47;;1077:66;;1159:18;;;1152:34;;;1202:18;;;1195:34;;;113067:26:0;113042:10;;113019:158;;1065:2:1;1050:18;113019:158:0;;;;;;;108249:4936;;;108024:5161;;;;;:::o;29137:298::-;29337:90;;;;;29371:10;29337:90;;;16871:34:1;29391:4:0;16921:18:1;;;16914:43;16973:18;;;16966:34;;;17016:18;;;17009:34;;;29413:4:0;17059:19:1;;;17052:51;17152:4;17140:17;;17119:19;;;17112:46;17174:19;;;17167:35;;;17218:19;;;17211:35;;;29337:33:0;;;;;;16782:19:1;;29337:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29137:298;;;;;;:::o;114759:488::-;37797:5;;;;37783:10;:19;37775:44;;;;;;;10142:2:1;37775:44:0;;;10124:21:1;10181:2;10161:18;;;10154:30;10220:14;10200:18;;;10193:42;10252:18;;37775:44:0;9940:336:1;37775:44:0;114925:9;114899:23:::1;114952:288;114972:15;114968:1;:19;114952:288;;;115006:158;115053:9;;115063:1;115053:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;115084:9;115112;;115122:1;115112:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;:37;::::0;;;;115143:4:::1;115112:37;::::0;::::1;379:74:1::0;115112:22:0::1;::::0;;;::::1;::::0;::::1;::::0;352:18:1;;115112:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;115006:28;:158::i;:::-;115210:3;;114952:288;;;;114888:359;114759:488:::0;;;:::o;115286:194::-;37797:5;;;;37783:10;:19;37775:44;;;;;;;10142:2:1;37775:44:0;;;10124:21:1;10181:2;10161:18;;;10154:30;10220:14;10200:18;;;10193:42;10252:18;;37775:44:0;9940:336:1;37775:44:0;103084:4:::1;115372:5;:25;;115364:41;;;::::0;::::1;::::0;;18104:2:1;115364:41:0::1;::::0;::::1;18086:21:1::0;18143:1;18123:18;;;18116:29;18181:5;18161:18;;;18154:33;18204:18;;115364:41:0::1;17902:326:1::0;115364:41:0::1;115416:11;:19:::0;;;115451:21:::1;::::0;5474:25:1;;;115451:21:0::1;::::0;5462:2:1;5447:18;115451:21:0::1;;;;;;;115286:194:::0;:::o;29476:358::-;29693:50;;;;;29717:10;29693:50;;;18468:34:1;29737:4:0;18518:18:1;;;18511:43;29746:17:0;;29693:23;;;;;;18380:18:1;;29693:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:70;29689:137;;;29778:48;29796:5;29803;29810:6;29818:1;29821;29824;29778:17;:48::i;:::-;29476:358;;;;;;:::o;20091:669::-;20166:22;20223:4;20211:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20201:34;;20251:9;20246:507;20266:15;;;20246:507;;;20304:12;;20349:4;20368;;20373:1;20368:7;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;20341:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20303:73;;;;20398:7;20393:313;;20527:2;20511:6;:13;:18;20507:32;;;20531:8;;;20507:32;20612:4;20604:6;20600:17;20590:27;;20672:6;20661:28;;;;;;;;;;;;:::i;:::-;20654:36;;;;;;;;;;;:::i;20393:313::-;20735:6;20722:7;20730:1;20722:10;;;;;;;;:::i;:::-;;;;;;:19;;;;20288:465;;20283:3;;;;;:::i;:::-;;;;20246:507;;;;20091:669;;;;:::o;104216:1482::-;104406:14;104435:22;104472:15;104502;104357:6;:15;;;103603:8;103584:15;:27;;103576:43;;;;;;;21000:2:1;103576:43:0;;;20982:21:1;21039:1;21019:18;;;21012:29;21077:5;21057:18;;;21050:33;21100:18;;103576:43:0;20798:326:1;103576:43:0;104546:25:::1;104583:15;;::::0;::::1;:6:::0;:15:::1;:::i;:::-;:25;;;104698:4;104726:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;104769;::::0;;;::::1;::::0;::::1;;:::i;:::-;104651:157;::::0;11123:2:1;11119:15;;;;11136:66;11115:88;104651:157:0::1;::::0;::::1;11103:101:1::0;11238:3;11234:16;;;11220:12;;;11213:38;11281:16;;11267:12;;;11260:38;11314:12;;104651:157:0::1;;;;;;;;;;;;104623:200;;;;;;104583:251;;;;;;;;;;;;;5474:25:1::0;;5462:2;5447:18;;5328:177;104583:251:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104545:289;;;;;;104882:415;104910:376;;;;;;;;104973:6;:10;;104910:376;;;;;;;;;;:::i;:::-;::::0;;105021:4:::1;104910:376;::::0;::::1;::::0;105052:10:::1;104910:376:::0;;;;;105097:21;;::::1;;104910:376:::0;;;;;105153:21;;::::1;;104910:376:::0;;;;;105205:17;;::::1;;104910:376:::0;;;;;105253:17;;::::1;;104910:376:::0;;;104882:13:::1;:415::i;:::-;104845:452:::0;;-1:-1:-1;104845:452:0;-1:-1:-1;104845:452:0;-1:-1:-1;105317:139:0::1;105343:6:::0;105368:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;105399:14;105428:17;105317:11;:139::i;:::-;105562:22;::::0;105308:148;;-1:-1:-1;105562:22:0::1;::::0;105573:6;;105562:22:::1;;;:::i;:::-;;::::0;;;;;::::1;::::0;;;;;;105552:33;;105562:22:::1;105552:33:::0;;::::1;::::0;105521:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;105474:216;::::0;;21390:34:1;21378:47;;21360:66;;21457:2;21442:18;;21435:34;;;21485:18;;;21478:34;;;21543:2;21528:18;;21521:34;;;105474:216:0::1;::::0;;;::::1;::::0;105496:10:::1;::::0;105474:216:::1;::::0;21347:3:1;21332:19;105474:216:0::1;;;;;;;104534:1164;104216:1482:::0;;;;;;:::o;28773:323::-;28985:50;;;;;29009:10;28985:50;;;18468:34:1;29029:4:0;18518:18:1;;;18511:43;29038:5:0;;28985:23;;;;;;18380:18:1;;28985:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:58;28981:107;;;29045:43;29056:5;29063;29070:8;29080:1;29083;29086;29045:10;:43::i;98845:739::-;99002:35;99040:73;;;;99065:4;99040:73;:::i;:::-;99205:18;;99238;;;;99271:15;;;;;99175:122;;;;;:15;22906::1;;;99175:122:0;;;22888:34:1;22958:15;;;22938:18;;;22931:43;23022:8;23010:21;22990:18;;;22983:49;99205:18:0;;-1:-1:-1;;;99175:7:0;:15;;;;;;22800:18:1;;99175:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99152:145;-1:-1:-1;99316:10:0;:26;;;;99308:42;;;;;;;23501:2:1;99308:42:0;;;23483:21:1;23540:1;23520:18;;;23513:29;23578:5;23558:18;;;23551:33;23601:18;;99308:42:0;23299:326:1;99308:42:0;99367:15;;99363:101;;99397:67;99401:11;:18;;;99421:11;:17;;;99440:10;99452:11;99397:3;:67::i;:::-;99479:15;;99475:101;;99509:67;99513:11;:18;;;99533:11;:17;;;99552:10;99564:11;99509:3;:67::i;105737:2248::-;105912:24;105951:15;105981;105863:6;:15;;;103603:8;103584:15;:27;;103576:43;;;;;;;21000:2:1;103576:43:0;;;20982:21:1;21039:1;21019:18;;;21012:29;21077:5;21057:18;;;21050:33;21100:18;;103576:43:0;20798:326:1;103576:43:0;106024:22:::1;106049:25;106063:6:::0;106049:13:::1;:25::i;:::-;106024:50:::0;-1:-1:-1;106093:33:0::1;::::0;::::1;106085:50;;;;;;;;;;;23832:2:1::0;23814:21;;;23871:1;23851:18;;;23844:29;23909:6;23904:2;23889:18;;23882:34;23948:2;23933:18;;23630:327;106085:50:0::1;106148:26;106177:10;:22;;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106148:53:::0;-1:-1:-1;106213:25:0::1;106250:15;;::::0;::::1;:6:::0;:15:::1;:::i;:::-;:25;;;106365:4;106393:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;106436;::::0;;;::::1;::::0;::::1;;:::i;:::-;106318:157;::::0;11123:2:1;11119:15;;;;11136:66;11115:88;106318:157:0::1;::::0;::::1;11103:101:1::0;11238:3;11234:16;;;11220:12;;;11213:38;11281:16;;11267:12;;;11260:38;11314:12;;106318:157:0::1;;;;;;;;;;;;106290:200;;;;;;106250:251;;;;;;;;;;;;;5474:25:1::0;;5462:2;5447:18;;5328:177;106250:251:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106212:289;;;;;;106562:1;106546:6;:13;;;:17;106538:31;;;::::0;::::1;::::0;;24164:2:1;106538:31:0::1;::::0;::::1;24146:21:1::0;24203:1;24183:18;;;24176:29;24241:3;24221:18;;;24214:31;24262:18;;106538:31:0::1;23962:324:1::0;106538:31:0::1;106580:42;::::0;;;;106596:10:::1;106580:42;::::0;::::1;24465:74:1::0;106608:13:0::1;::::0;::::1;;24555:18:1::0;;;24548:34;106580:15:0::1;::::0;::::1;::::0;::::1;::::0;24438:18:1;;106580:42:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;106941:135;106975:17;106941:135;;107011:6;:13;;;107043:18;106941:15;:135::i;:::-;106900:187:::0;-1:-1:-1;107197:15:0::1;;::::0;::::1;:6:::0;:15:::1;:::i;:::-;:20;;;107232;::::0;;;::::1;::::0;::::1;;:::i;:::-;107267;::::0;;;::::1;::::0;::::1;;:::i;:::-;107197:132;::::0;;::::1;::::0;;;;;;10512:1:1;10501:21;;;107197:132:0::1;::::0;::::1;10483:40:1::0;10559:21;;10539:18;;;10532:49;10629:34;10617:47;;10597:18;;;10590:75;10456:18;;107197:132:0::1;::::0;::::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107176:153:::0;;-1:-1:-1;107176:153:0;-1:-1:-1;107411:15:0::1;;::::0;::::1;:6:::0;:15:::1;:::i;:::-;:23;;;107449:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;107480:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;107515;::::0;;;::::1;::::0;::::1;;:::i;:::-;107411:197;::::0;;::::1;::::0;;;;;;13603:42:1;13591:55;;;107411:197:0::1;::::0;::::1;13573:74:1::0;13694:1;13683:21;;;13663:18;;;13656:49;13741:21;;13721:18;;;13714:49;13782:34;13852:15;;;13832:18;;;13825:43;13905:15;;13884:19;;;13877:44;13545:19;;107411:197:0::1;::::0;::::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107390:218;::::0;;::::1;::::0;-1:-1:-1;107390:218:0::1;::::0;-1:-1:-1;107652:17:0::1;::::0;::::1;;107641:28:::0;::::1;::::0;::::1;::::0;:60:::1;;;107684:6;:17;;;107673:7;:28;;107641:60;107619:114;;;;;;;;;;;25182:2:1::0;25164:21;;;25221:1;25201:18;;;25194:29;25259:6;25254:2;25239:18;;25232:34;25298:2;25283:18;;24980:327;107619:114:0::1;107840:22;::::0;::::1;::::0;107851:6;;107840:22:::1;;;:::i;:::-;;::::0;;;;;::::1;::::0;;;;;;107830:33;;107840:22:::1;107830:33:::0;;::::1;::::0;107799:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;107751:226;::::0;;21390:34:1;21378:47;;21360:66;;21457:2;21442:18;;21435:34;;;21485:18;;;21478:34;;;107953:13:0::1;::::0;;::::1;;21543:2:1::0;21528:18;;21521:34;107751:226:0::1;::::0;;;::::1;::::0;107774:10:::1;::::0;107751:226:::1;::::0;21332:19:1;107751:226:0::1;;;;;;;106013:1972;;;105737:2248:::0;;;;;;:::o;28450:282::-;28645:79;;;;;28672:10;28645:79;;;25684:34:1;28692:4:0;25734:18:1;;;25727:43;25786:18;;;25779:34;;;25829:18;;;25822:34;;;25905:4;25893:17;;25872:19;;;25865:46;25927:19;;;25920:35;;;25971:19;;;25964:35;;;28645:26:0;;;;;;25595:19:1;;28645:79:0;25312:693:1;42207:875:0;41404:14;;;;;;;;;;;;;;;;;42325:273;;42388:12;42325:273;;;26221:92:1;;;;26363:66;42456:4:0;26350:2:1;26346:15;26342:88;26329:11;;;26322:109;26447:12;;;26440:28;;;41394:25:0;26484:12:1;;;26477:28;-1:-1:-1;;;;42301:326:0;;26521:12:1;;42325:273:0;;;;;;;;;;;;;42301:308;;;;;;38831:10;38712:140;42301:326;42688:353;;26887:66:1;42688:353:0;;;26875:79:1;27004:66;26991:2;26987:15;;;26983:88;26970:11;;;26963:109;27102:66;27088:12;;;27081:88;42285:342:0;;-1:-1:-1;42660:414:0;;27185:12:1;;42688:353:0;26544:659:1;42660:414:0;42640:434;42207:875;-1:-1:-1;;;42207:875:0:o;41428:771::-;41552:16;41581:31;41615:14;;;;;;;;;;;;;;;;;41581:48;;41642:13;41926:4;41905:18;41899:25;41894:2;41874:18;41870:27;41867:1;41859:72;41850:81;-1:-1:-1;41960:19:0;;;41952:49;;;;;;;27410:2:1;41952:49:0;;;27392:21:1;27449:2;27429:18;;;27422:30;27488:19;27468:18;;;27461:47;27525:18;;41952:49:0;27208:341:1;41952:49:0;42025:17;42037:4;42025:11;:17::i;:::-;42014:28;;42054:12;42072:5;:10;;42090:5;42097:12;42072:38;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42053:57;;;42129:7;:36;;;;-1:-1:-1;42140:20:0;;;;:25;;42129:36;42121:70;;;;;;;28035:2:1;42121:70:0;;;28017:21:1;28074:2;28054:18;;;28047:30;28113:23;28093:18;;;28086:51;28154:18;;42121:70:0;27833:345:1;42121:70:0;41570:629;;;41428:771;;;;;:::o;1403:2794::-;1466:20;1524:15;1549:1;1542:4;:8;;;:57;;1593:4;1586:12;;1542:57;;;1569:4;1562:12;;1561:13;;1542:57;1524:75;-1:-1:-1;673:9:0;1618:35;;1614:51;;;1662:3;;;;;;;;;;;;;;1614:51;1682:13;1698:7;1708:3;1698:13;1715:1;1698:18;:127;;1790:35;1698:127;;;1736:34;1698:127;1682:143;;;-1:-1:-1;1854:3:0;1844:13;;:18;1840:83;;1881:34;1873:42;1920:3;1872:51;1840:83;1952:3;1942:13;;:18;1938:83;;1979:34;1971:42;2018:3;1970:51;1938:83;2050:3;2040:13;;:18;2036:83;;2077:34;2069:42;2116:3;2068:51;2036:83;2148:4;2138:14;;:19;2134:84;;2176:34;2168:42;2215:3;2167:51;2134:84;2247:4;2237:14;;:19;2233:84;;2275:34;2267:42;2314:3;2266:51;2233:84;2346:4;2336:14;;:19;2332:84;;2374:34;2366:42;2413:3;2365:51;2332:84;2445:4;2435:14;;:19;2431:84;;2473:34;2465:42;2512:3;2464:51;2431:84;2544:5;2534:15;;:20;2530:85;;2573:34;2565:42;2612:3;2564:51;2530:85;2644:5;2634:15;;:20;2630:85;;2673:34;2665:42;2712:3;2664:51;2630:85;2744:5;2734:15;;:20;2730:85;;2773:34;2765:42;2812:3;2764:51;2730:85;2844:5;2834:15;;:20;2830:85;;2873:34;2865:42;2912:3;2864:51;2830:85;2944:6;2934:16;;:21;2930:86;;2974:34;2966:42;3013:3;2965:51;2930:86;3045:6;3035:16;;:21;3031:86;;3075:34;3067:42;3114:3;3066:51;3031:86;3146:6;3136:16;;:21;3132:86;;3176:34;3168:42;3215:3;3167:51;3132:86;3247:6;3237:16;;:21;3233:86;;3277:34;3269:42;3316:3;3268:51;3233:86;3348:7;3338:17;;:22;3334:86;;3379:33;3371:41;3417:3;3370:50;3334:86;3449:7;3439:17;;:22;3435:85;;3480:32;3472:40;3517:3;3471:49;3435:85;3549:7;3539:17;;:22;3535:83;;3580:30;3572:38;3615:3;3571:47;3535:83;3647:7;3637:17;;:22;3633:78;;3678:25;3670:33;3708:3;3669:42;3633:78;3739:1;3732:4;:8;;;3728:47;;;3770:5;3750:17;:25;;;;;:::i;:::-;;3742:33;;3728:47;4155:7;4146:5;:17;:22;:30;;4175:1;4146:30;;;4171:1;4146:30;4129:48;;4139:2;4130:5;:11;;4129:48;4106:72;;1499:2691;;1403:2794;;;:::o;33066:920::-;33275:17;33325:13;33309:29;;:13;:29;;;33305:98;;;33374:13;;33389;33305:98;33436:13;33420:29;;:12;:29;;;33416:563;;33478:61;33501:13;33516;33531:7;33478:22;:61::i;:::-;33466:73;;33416:563;;;33576:13;33561:28;;:12;:28;;;33557:422;;;33606:18;33627:60;33650:12;33664:13;33679:7;33627:22;:60::i;:::-;33606:81;;33702:18;33723:60;33746:13;33761:12;33775:7;33723:22;:60::i;:::-;33702:81;;33825:10;33812:23;;:10;:23;;;:49;;33851:10;33812:49;;;33838:10;33812:49;33800:61;;33591:282;;33557:422;;;33906:61;33929:13;33944;33959:7;33906:22;:61::i;:::-;33894:73;;33557:422;33066:920;;;;;;;:::o;36257:815::-;36442:15;36459;36507:13;36491:29;;:13;:29;;;36487:98;;;36556:13;;36571;36487:98;36618:13;36602:29;;:12;:29;;;36598:467;;36658:63;36681:13;36696;36711:9;36658:22;:63::i;:::-;36648:73;;36598:467;;;36758:13;36743:28;;:12;:28;;;36739:326;;;36798:62;36821:12;36835:13;36850:9;36798:22;:62::i;:::-;36788:72;;36885:62;36908:13;36923:12;36937:9;36885:22;:62::i;:::-;36875:72;;36739:326;;;36990:63;37013:13;37028;37043:9;36990:22;:63::i;:::-;36980:73;;36739:326;36257:815;;;;;;;:::o;100289:1576::-;100396:17;100428:15;100458;100505:6;:21;;;100530:1;100505:26;:56;;;;-1:-1:-1;100535:21:0;;;;:26;100505:56;100501:105;;;-1:-1:-1;100586:1:0;;-1:-1:-1;100586:1:0;;-1:-1:-1;100586:1:0;100578:16;;100501:105;100675:20;100711:6;:10;;;:15;;;:21;;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100674:60;;;;;;;;100749:21;100773:81;100819:6;:10;;;:20;;;100773:27;:81::i;:::-;100749:105;;100869:21;100893:81;100939:6;:10;;;:20;;;100893:27;:81::i;:::-;100869:105;;101003:229;101061:12;101092:13;101124;101156:6;:21;;;101196:6;:21;;;101003:39;:229::i;:::-;100991:241;;100659:585;;;101277:6;:10;;;:15;;;:20;;;101312:6;:16;;;101343:6;:10;;;:20;;;101378:6;:10;;;:20;;;101413:9;101466:238;;;;;;;;101514:6;:10;;;:15;;;:22;;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101466:238;;;;;;101569:6;:10;;;:15;;;:22;;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101466:238;;;;;;101621:6;:10;;;:15;;;:19;;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101466:238;;;;101672:12;;;;;101466:238;;;;;;;101437:282;;;;;28735:13:1;;28662:42;28731:22;;;28713:41;;28814:4;28802:17;;;28796:24;28792:33;;28770:20;;;28763:63;28886:4;28874:17;;;28868:24;28894:8;28864:39;28842:20;;;28835:69;28964:4;28952:17;;;28946:24;28942:33;28920:20;;;28913:63;;;;28639:3;28624:19;;28437:545;101437:282:0;;;;;;;;;;;;;101277:453;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101776:17;;;;101256:474;;-1:-1:-1;101256:474:0;-1:-1:-1;101765:28:0;;;;;:60;;;101808:6;:17;;;101797:7;:28;;101765:60;101743:114;;;;;;;;;;;25182:2:1;25164:21;;;25221:1;25201:18;;;25194:29;25259:6;25254:2;25239:18;;25232:34;25298:2;25283:18;;24980:327;101743:114:0;100289:1576;;;;;:::o;94861:1596::-;94979:12;95110:4;95104:11;95290:66;95254:17;95229:142;95419:2;95415:1;95396:17;95392:25;95385:37;95500:6;95495:2;95476:17;95472:26;95465:42;96373:2;96370:1;96366:2;96347:17;96344:1;96337:5;96330;96325:51;95871:16;95864:24;95837:2;95819:16;95816:24;95812:1;95808;95802:8;95799:15;95795:46;95770:137;95567:824;95556:835;;;96422:7;96414:35;;;;;;;29810:2:1;96414:35:0;;;29792:21:1;29849:2;29829:18;;;29822:30;29888:17;29868:18;;;29861:45;29923:18;;96414:35:0;29608:339:1;96414:35:0;94968:1489;94861:1596;;;:::o;116070:1174::-;116253:14;116280:22;116305:18;116319:3;116305:13;:18::i;:::-;116280:43;-1:-1:-1;116342:33:0;;;116334:50;;;;;;;;;;;23832:2:1;23814:21;;;23871:1;23851:18;;;23844:29;23909:6;23904:2;23889:18;;23882:34;23948:2;23933:18;;23630:327;116334:50:0;116397:27;116427:10;:22;;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;116397:54;;116466:19;116489:1;116466:24;116462:694;;116574:14;116565:23;;;;103142:3;116806:6;:27;116798:44;;;;;;;;;;;30154:2:1;30136:21;;;30193:1;30173:18;;;30166:29;30231:6;30226:2;30211:18;;30204:34;30270:2;30255:18;;29952:327;116798:44:0;116462:694;;;116967:137;117001:19;117039:14;116967:137;;117072:17;116967:137;;:15;:137::i;:::-;116958:146;;117127:6;117137:1;117127:11;117119:25;;;;;;;24164:2:1;117119:25:0;;;24146:21:1;24203:1;24183:18;;;24176:29;24241:3;24221:18;;;24214:31;24262:18;;117119:25:0;23962:324:1;117119:25:0;117202:34;;;;;:15;24483:55:1;;;117202:34:0;;;24465:74:1;24555:18;;;24548:34;;;117202:15:0;;;;;24438:18:1;;117202:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116269:975;;116070:1174;;;;;;:::o;102062:455::-;102223:4;102206:22;;;;102202:308;;102337:44;:26;;;102364:9;102375:5;102337:26;:44::i;:::-;102202:308;;;102443:55;:30;;;102474:5;102481:9;102492:5;102443:30;:55::i;10321:4221::-;10437:14;;;11013:6;11010:1;11007;11000:20;11054:1;11051;11047:9;11038:18;;11110:5;11106:2;11103:13;11095:5;11091:2;11087:14;11083:34;11074:43;;;11215:5;11224:1;11215:10;11211:209;;11268:1;11254:11;:15;11246:24;;;;;;-1:-1:-1;11331:23:0;;;;-1:-1:-1;11391:13:0;;11211:209;11563:5;11549:11;:19;11541:28;;;;;;11878:17;11964:11;11961:1;11958;11951:25;12367:12;12383:15;;;12382:31;;12522:22;;;;;13417:1;13398;:15;;13397:21;;13664:17;;;13660:21;;13653:28;13727:17;;;13723:21;;13716:28;13791:17;;;13787:21;;13780:28;13855:17;;;13851:21;;13844:28;13919:17;;;13915:21;;13908:28;13984:17;;;13980:21;;;13973:28;12945:12;;;;12941:23;;;12966:1;12937:31;12113:20;;;12102:32;;;13006:12;;;;12161:21;;;;12671:16;;;;12997:21;;;;14484:11;;;;;-1:-1:-1;;10321:4221:0;;;;;:::o;31064:519::-;31216:17;31266:13;31250:29;;:13;:29;;;31246:98;;;31315:13;;31330;31246:98;31355:20;31378:63;31394:13;31378:63;;31409:13;31378:63;;30124:27;31378:15;:63::i;:::-;31355:86;;31484:80;31494:69;31510:7;31519:12;31549:13;31533;:29;31494:69;;:15;:69::i;:::-;31484:9;:80::i;32030:426::-;32182:17;32232:13;32216:29;;:13;:29;;;32212:98;;;32281:13;;32296;32212:98;32353:84;32363:73;32379:7;30124:27;32422:13;32406;:29;32363:73;;:15;:73::i;32353:84::-;32346:91;32030:426;-1:-1:-1;;;;32030:426:0:o;34351:571::-;34505:15;34578:13;34562:29;;:13;:29;;;34558:98;;;34627:13;;34642;34558:98;34890:13;34697:206;;:190;30083:2;34735:45;;34743:9;34735:18;;:45;;34819:13;34803;:29;34697:190;;34855:13;34697:190;;:15;:190::i;:::-;:206;;;;;:::i;:::-;;;34351:571;-1:-1:-1;;;;34351:571:0:o;35287:419::-;35441:15;35489:13;35473:29;;:13;:29;;;35469:98;;;35538:13;;35553;35469:98;35612:75;35628:9;35612:75;;35655:13;35639;:29;35612:75;;30124:27;35612:15;:75::i;93138:1715::-;93283:12;93414:4;93408:11;93594:66;93558:17;93533:142;93723:4;93719:1;93700:17;93696:25;93689:39;93808:2;93803;93784:17;93780:26;93773:38;93889:6;93884:2;93865:17;93861:26;93854:42;94764:2;94761:1;94756:3;94737:17;94734:1;94727:5;94720;94715:52;94260:16;94253:24;94226:2;94208:16;94205:24;94201:1;94197;94191:8;94188:15;94184:46;94159:137;93956:826;93945:837;;;94813:7;94805:40;;;;;;;30486:2:1;94805:40:0;;;30468:21:1;30525:2;30505:18;;;30498:30;30564:22;30544:18;;;30537:50;30604:18;;94805:40:0;30284:344:1;30476:112:0;30578:1;30558:21;;;;;30550:30;;;;;;30476:112;;;:::o;-1:-1:-1:-;;;;;;;;:::o;14:194:1:-;101:6;154:2;142:9;133:7;129:23;125:32;122:52;;;170:1;167;160:12;464:154;550:42;543:5;539:54;532:5;529:65;519:93;;608:1;605;598:12;519:93;464:154;:::o;623:247::-;682:6;735:2;723:9;714:7;710:23;706:32;703:52;;;751:1;748;741:12;703:52;790:9;777:23;809:31;834:5;809:31;:::i;1240:114::-;1324:4;1317:5;1313:16;1306:5;1303:27;1293:55;;1344:1;1341;1334:12;1359:659;1461:6;1469;1477;1485;1493;1501;1554:3;1542:9;1533:7;1529:23;1525:33;1522:53;;;1571:1;1568;1561:12;1522:53;1610:9;1597:23;1629:31;1654:5;1629:31;:::i;:::-;1679:5;-1:-1:-1;1731:2:1;1716:18;;1703:32;;-1:-1:-1;1782:2:1;1767:18;;1754:32;;-1:-1:-1;1838:2:1;1823:18;;1810:32;1851:31;1810:32;1851:31;:::i;:::-;1359:659;;;;-1:-1:-1;1359:659:1;;1955:3;1940:19;;1927:33;;2007:3;1992:19;;;1979:33;;-1:-1:-1;1359:659:1;-1:-1:-1;;1359:659:1:o;2023:375::-;2094:8;2104:6;2158:3;2151:4;2143:6;2139:17;2135:27;2125:55;;2176:1;2173;2166:12;2125:55;-1:-1:-1;2199:20:1;;2242:18;2231:30;;2228:50;;;2274:1;2271;2264:12;2228:50;2311:4;2303:6;2299:17;2287:29;;2371:3;2364:4;2354:6;2351:1;2347:14;2339:6;2335:27;2331:38;2328:47;2325:67;;;2388:1;2385;2378:12;2325:67;2023:375;;;;;:::o;2403:595::-;2513:6;2521;2529;2582:2;2570:9;2561:7;2557:23;2553:32;2550:52;;;2598:1;2595;2588:12;2550:52;2638:9;2625:23;2671:18;2663:6;2660:30;2657:50;;;2703:1;2700;2693:12;2657:50;2742:78;2812:7;2803:6;2792:9;2788:22;2742:78;:::i;:::-;2839:8;;-1:-1:-1;2716:104:1;-1:-1:-1;;2924:2:1;2909:18;;2896:32;2937:31;2896:32;2937:31;:::i;:::-;2987:5;2977:15;;;2403:595;;;;;:::o;3003:180::-;3062:6;3115:2;3103:9;3094:7;3090:23;3086:32;3083:52;;;3131:1;3128;3121:12;3083:52;-1:-1:-1;3154:23:1;;3003:180;-1:-1:-1;3003:180:1:o;3419:456::-;3516:6;3524;3577:2;3565:9;3556:7;3552:23;3548:32;3545:52;;;3593:1;3590;3583:12;3545:52;3633:9;3620:23;3666:18;3658:6;3655:30;3652:50;;;3698:1;3695;3688:12;3652:50;3737:78;3807:7;3798:6;3787:9;3783:22;3737:78;:::i;:::-;3834:8;;3711:104;;-1:-1:-1;3419:456:1;-1:-1:-1;;;;3419:456:1:o;3880:258::-;3952:1;3962:113;3976:6;3973:1;3970:13;3962:113;;;4052:11;;;4046:18;4033:11;;;4026:39;3998:2;3991:10;3962:113;;;4093:6;4090:1;4087:13;4084:48;;;-1:-1:-1;;4128:1:1;4110:16;;4103:27;3880:258::o;4143:316::-;4184:3;4222:5;4216:12;4249:6;4244:3;4237:19;4265:63;4321:6;4314:4;4309:3;4305:14;4298:4;4291:5;4287:16;4265:63;:::i;:::-;4373:2;4361:15;4378:66;4357:88;4348:98;;;;4448:4;4344:109;;4143:316;-1:-1:-1;;4143:316:1:o;4464:859::-;4624:4;4653:2;4693;4682:9;4678:18;4723:2;4712:9;4705:21;4746:6;4781;4775:13;4812:6;4804;4797:22;4850:2;4839:9;4835:18;4828:25;;4912:2;4902:6;4899:1;4895:14;4884:9;4880:30;4876:39;4862:53;;4950:2;4942:6;4938:15;4971:1;4981:313;4995:6;4992:1;4989:13;4981:313;;;5084:66;5072:9;5064:6;5060:22;5056:95;5051:3;5044:108;5175:39;5207:6;5198;5192:13;5175:39;:::i;:::-;5165:49;-1:-1:-1;5272:12:1;;;;5237:15;;;;5017:1;5010:9;4981:313;;;-1:-1:-1;5311:6:1;;4464:859;-1:-1:-1;;;;;;;4464:859:1:o;5510:200::-;5602:6;5655:3;5643:9;5634:7;5630:23;5626:33;5623:53;;;5672:1;5669;5662:12;6408:727;6496:6;6504;6512;6520;6573:2;6561:9;6552:7;6548:23;6544:32;6541:52;;;6589:1;6586;6579:12;6541:52;6625:9;6612:23;6602:33;;6682:2;6671:9;6667:18;6654:32;6644:42;;6737:2;6726:9;6722:18;6709:32;6760:18;6801:2;6793:6;6790:14;6787:34;;;6817:1;6814;6807:12;6787:34;6855:6;6844:9;6840:22;6830:32;;6900:7;6893:4;6889:2;6885:13;6881:27;6871:55;;6922:1;6919;6912:12;6871:55;6962:2;6949:16;6988:2;6980:6;6977:14;6974:34;;;7004:1;7001;6994:12;6974:34;7049:7;7044:2;7035:6;7031:2;7027:15;7023:24;7020:37;7017:57;;;7070:1;7067;7060:12;7017:57;6408:727;;;;-1:-1:-1;;7101:2:1;7093:11;;-1:-1:-1;;;6408:727:1:o;7140:201::-;7233:6;7286:3;7274:9;7265:7;7261:23;7257:33;7254:53;;;7303:1;7300;7293:12;7346:118;7433:5;7430:1;7419:20;7412:5;7409:31;7399:59;;7454:1;7451;7444:12;7469:529;7568:5;7555:19;7583:33;7608:7;7583:33;:::i;:::-;7650:42;7637:56;7625:69;;7742:4;7731:16;;7718:30;7757:31;7718:30;7757:31;:::i;:::-;7831:1;7820:22;7813:4;7804:14;;7797:46;7891:4;7880:16;;7867:30;7906:31;7867:30;7906:31;:::i;:::-;7983:7;7980:1;7969:22;7962:4;7957:3;7953:14;7946:46;;7469:529;;:::o;8003:260::-;8191:2;8176:18;;8203:54;8180:9;8239:6;8203:54;:::i;:::-;8003:260;;;;:::o;8268:398::-;8544:42;8532:55;;8514:74;;8501:3;8486:19;;8597:63;8656:2;8641:18;;8633:6;8597:63;:::i;8671:466::-;8846:3;8884:6;8878:13;8900:53;8946:6;8941:3;8934:4;8926:6;8922:17;8900:53;:::i;:::-;9016:13;;8975:16;;;;9038:57;9016:13;8975:16;9072:4;9060:17;;9038:57;:::i;:::-;9111:20;;8671:466;-1:-1:-1;;;;8671:466:1:o;9417:243::-;9474:6;9527:2;9515:9;9506:7;9502:23;9498:32;9495:52;;;9543:1;9540;9533:12;9495:52;9582:9;9569:23;9601:29;9624:5;9601:29;:::i;10676:245::-;10755:6;10763;10816:2;10804:9;10795:7;10791:23;10787:32;10784:52;;;10832:1;10829;10822:12;10784:52;-1:-1:-1;;10855:16:1;;10911:2;10896:18;;;10890:25;10855:16;;10890:25;;-1:-1:-1;10676:245:1:o;11519:192::-;11598:13;;11651:34;11640:46;;11630:57;;11620:85;;11701:1;11698;11691:12;11716:502;11822:6;11830;11838;11846;11854;11907:3;11895:9;11886:7;11882:23;11878:33;11875:53;;;11924:1;11921;11914:12;11875:53;11947:40;11977:9;11947:40;:::i;:::-;11937:50;;12027:2;12016:9;12012:18;12006:25;11996:35;;12071:2;12060:9;12056:18;12050:25;12040:35;;12094:49;12139:2;12128:9;12124:18;12094:49;:::i;:::-;12084:59;;12162:50;12207:3;12196:9;12192:19;12162:50;:::i;:::-;12152:60;;11716:502;;;;;;;;:::o;12223:163::-;12301:13;;12354:6;12343:18;;12333:29;;12323:57;;12376:1;12373;12366:12;12391:926;12505:6;12513;12521;12529;12537;12545;12553;12606:3;12594:9;12585:7;12581:23;12577:33;12574:53;;;12623:1;12620;12613:12;12574:53;12655:9;12649:16;12674:31;12699:5;12674:31;:::i;:::-;12774:2;12759:18;;12753:25;12724:5;;-1:-1:-1;12787:31:1;12753:25;12787:31;:::i;:::-;12837:7;-1:-1:-1;12863:48:1;12907:2;12892:18;;12863:48;:::i;:::-;12853:58;;12930:48;12974:2;12963:9;12959:18;12930:48;:::i;:::-;12920:58;;12997:49;13041:3;13030:9;13026:19;12997:49;:::i;:::-;12987:59;;13091:3;13080:9;13076:19;13070:26;13105:31;13128:7;13105:31;:::i;:::-;13207:3;13192:19;;13186:26;13155:7;;-1:-1:-1;13250:15:1;;13243:23;13231:36;;13221:64;;13281:1;13278;13271:12;13221:64;13304:7;13294:17;;;12391:926;;;;;;;;;;:::o;13932:293::-;14011:6;14019;14072:2;14060:9;14051:7;14047:23;14043:32;14040:52;;;14088:1;14085;14078:12;14040:52;14111:40;14141:9;14111:40;:::i;:::-;14101:50;;14170:49;14215:2;14204:9;14200:18;14170:49;:::i;:::-;14160:59;;13932:293;;;;;:::o;14230:184::-;14282:77;14279:1;14272:88;14379:4;14376:1;14369:15;14403:4;14400:1;14393:15;14419:228;14459:7;14585:1;14517:66;14513:74;14510:1;14507:81;14502:1;14495:9;14488:17;14484:105;14481:131;;;14592:18;;:::i;:::-;-1:-1:-1;14632:9:1;;14419:228::o;14652:184::-;14704:77;14701:1;14694:88;14801:4;14798:1;14791:15;14825:4;14822:1;14815:15;14841:274;14881:1;14907;14897:189;;14942:77;14939:1;14932:88;15043:4;15040:1;15033:15;15071:4;15068:1;15061:15;14897:189;-1:-1:-1;15100:9:1;;14841:274::o;15120:184::-;15172:77;15169:1;15162:88;15269:4;15266:1;15259:15;15293:4;15290:1;15283:15;15309:780;15394:6;15447:2;15435:9;15426:7;15422:23;15418:32;15415:52;;;15463:1;15460;15453:12;15415:52;15496:2;15490:9;15538:2;15530:6;15526:15;15607:6;15595:10;15592:22;15571:18;15559:10;15556:34;15553:62;15550:88;;;15618:18;;:::i;:::-;15654:2;15647:22;15691:23;;15723:31;15691:23;15723:31;:::i;:::-;15763:21;;15836:2;15821:18;;15808:32;15849:31;15808:32;15849:31;:::i;:::-;15908:2;15896:15;;15889:32;15973:2;15958:18;;15945:32;15986:31;15945:32;15986:31;:::i;:::-;16045:2;16033:15;;16026:32;16037:6;15309:780;-1:-1:-1;;;15309:780:1:o;16094:125::-;16134:4;16162:1;16159;16156:8;16153:34;;;16167:18;;:::i;:::-;-1:-1:-1;16204:9:1;;16094:125::o;17257:184::-;17309:77;17306:1;17299:88;17406:4;17403:1;17396:15;17430:4;17427:1;17420:15;17713:184;17783:6;17836:2;17824:9;17815:7;17811:23;17807:32;17804:52;;;17852:1;17849;17842:12;17804:52;-1:-1:-1;17875:16:1;;17713:184;-1:-1:-1;17713:184:1:o;18565:580::-;18642:4;18648:6;18708:11;18695:25;18798:66;18787:8;18771:14;18767:29;18763:102;18743:18;18739:127;18729:155;;18880:1;18877;18870:12;18729:155;18907:33;;18959:20;;;-1:-1:-1;19002:18:1;18991:30;;18988:50;;;19034:1;19031;19024:12;18988:50;19067:4;19055:17;;-1:-1:-1;19098:14:1;19094:27;;;19084:38;;19081:58;;;19135:1;19132;19125:12;19150:271;19333:6;19325;19320:3;19307:33;19289:3;19359:16;;19384:13;;;19359:16;19150:271;-1:-1:-1;19150:271:1:o;19426:943::-;19506:6;19559:2;19547:9;19538:7;19534:23;19530:32;19527:52;;;19575:1;19572;19565:12;19527:52;19608:9;19602:16;19637:18;19678:2;19670:6;19667:14;19664:34;;;19694:1;19691;19684:12;19664:34;19732:6;19721:9;19717:22;19707:32;;19777:7;19770:4;19766:2;19762:13;19758:27;19748:55;;19799:1;19796;19789:12;19748:55;19828:2;19822:9;19850:2;19846;19843:10;19840:36;;;19856:18;;:::i;:::-;19990:2;19984:9;20052:4;20044:13;;19895:66;20040:22;;;20064:2;20036:31;20032:40;20020:53;;;20088:18;;;20108:22;;;20085:46;20082:72;;;20134:18;;:::i;:::-;20174:10;20170:2;20163:22;20209:2;20201:6;20194:18;20249:7;20244:2;20239;20235;20231:11;20227:20;20224:33;20221:53;;;20270:1;20267;20260:12;20221:53;20283:55;20335:2;20330;20322:6;20318:15;20313:2;20309;20305:11;20283:55;:::i;:::-;20357:6;19426:943;-1:-1:-1;;;;;;;19426:943:1:o;20374:219::-;20523:2;20512:9;20505:21;20486:4;20543:44;20583:2;20572:9;20568:18;20560:6;20543:44;:::i;20598:195::-;20637:3;20668:66;20661:5;20658:77;20655:103;;20738:18;;:::i;:::-;-1:-1:-1;20785:1:1;20774:13;;20598:195::o;21566:119::-;21651:8;21644:5;21640:20;21633:5;21630:31;21620:59;;21675:1;21672;21665:12;21690:932;21783:6;21836:3;21824:9;21815:7;21811:23;21807:33;21804:53;;;21853:1;21850;21843:12;21804:53;21886:2;21880:9;21928:3;21920:6;21916:16;21998:6;21986:10;21983:22;21962:18;21950:10;21947:34;21944:62;21941:88;;;22009:18;;:::i;:::-;22045:2;22038:22;22082:23;;22114:31;22082:23;22114:31;:::i;:::-;22154:21;;22227:2;22212:18;;22199:32;22240:33;22199:32;22240:33;:::i;:::-;22301:2;22289:15;;22282:32;22366:2;22351:18;;22338:32;22379;22338;22379;:::i;:::-;22439:2;22427:15;;22420:32;22504:2;22489:18;;22476:32;22517:33;22476:32;22517:33;:::i;:::-;22578:2;22566:15;;22559:32;22570:6;21690:932;-1:-1:-1;;;21690:932:1:o;23043:251::-;23113:6;23166:2;23154:9;23145:7;23141:23;23137:32;23134:52;;;23182:1;23179;23172:12;23134:52;23214:9;23208:16;23233:31;23258:5;23233:31;:::i;27554:274::-;27683:3;27721:6;27715:13;27737:53;27783:6;27778:3;27771:4;27763:6;27759:17;27737:53;:::i;:::-;27806:16;;;;;27554:274;-1:-1:-1;;27554:274:1:o;28183:249::-;28252:6;28305:2;28293:9;28284:7;28280:23;28276:32;28273:52;;;28321:1;28318;28311:12;28273:52;28353:9;28347:16;28372:30;28396:5;28372:30;:::i;28987:616::-;29250:42;29242:6;29238:55;29227:9;29220:74;29344:6;29341:1;29330:21;29325:2;29314:9;29310:18;29303:49;29402:6;29399:1;29388:21;29383:2;29372:9;29368:18;29361:49;29458:34;29450:6;29446:47;29441:2;29430:9;29426:18;29419:75;29531:3;29525;29514:9;29510:19;29503:32;29201:4;29552:45;29592:3;29581:9;29577:19;29569:6;29552:45;:::i
Swarm Source
ipfs://f08be87e614b60ae057c427a943141b87e3ebe881ef927f63cfcf068ccd9c362
Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 26 Chains
Chain Token Portfolio % Price Amount Value ETH 22.08% $62,852 0.0976 $6,131.47 ETH 17.91% $2,673.47 1.8611 $4,975.66 ETH 14.68% $3.08 1,323.4188 $4,076.13 ETH 7.02% $2,863.96 0.6811 $1,950.75 ETH 4.02% $2,683.08 0.4163 $1,117 ETH 3.83% $0.017521 60,789.4662 $1,065.07 ETH 3.76% $1 1,044.433 $1,044.43 ETH 2.99% $2,989.41 0.2782 $831.74 ETH 2.18% $0.989974 611.0991 $604.97 ETH 1.75% $0.993404 490.6098 $487.37 ETH 1.12% $0.99847 310.6875 $310.21 ETH 1.09% $0.980677 307.6009 $301.66 ETH 0.88% $0.978484 251.1251 $245.72 ETH 0.85% $0.996658 237.8189 $237.02 ETH 0.75% $2,673.54 0.0781 $208.69 ETH 0.64% $2,731.27 0.0656 $179.14 ETH 0.64% $2,546.68 0.0703 $178.96 ETH 0.64% $28.41 6.2926 $178.77 ETH 0.56% $1.32 117.8522 $155.56 ETH 0.44% $0.542672 226.7056 $123.03 ETH 0.44% $1.19 102.79 $122.32 ETH 0.38% $0.000236 447,858.0631 $105.63 ETH 0.36% $6.3 15.8671 $99.96 ETH 0.29% $1.12 72.6316 $81.1 ETH 0.24% $1 65.8309 $65.9 ETH 0.22% $0.999878 60.6021 $60.59 ETH 0.15% $0.999813 42.6794 $42.67 ETH 0.15% $0.035484 1,173.827 $41.65 ETH 0.14% $2,429.2 0.016 $38.76 ETH 0.14% $0.005862 6,608.0381 $38.74 ETH 0.12% $0.258185 132.7103 $34.26 ETH 0.11% $0.052204 603.5836 $31.51 ETH 0.08% $0.015771 1,395.7326 $22.01 ETH 0.05% $156.22 0.0971 $15.18 ETH 0.05% $0.971926 14.0494 $13.65 ETH 0.04% $1.16 10.1136 $11.73 ETH 0.03% $0.262281 36.7986 $9.65 ETH 0.03% $0.999253 7.5702 $7.56 ETH 0.02% $62,893 0.00009142 $5.75 ETH 0.02% $0.476039 11.9031 $5.67 ETH 0.02% $0.058822 95.6645 $5.63 ETH 0.01% $2,803.1 0.00130087 $3.65 ETH <0.01% $0.839348 3.1535 $2.65 ETH <0.01% $0.876482 2.4119 $2.11 ETH <0.01% $12.66 0.1575 $1.99 ETH <0.01% $1.01 1.2487 $1.26 ETH <0.01% $0.993791 0.5205 $0.5172 ETH <0.01% $0.09317 1.8423 $0.1716 ETH <0.01% $3,149.98 0.00005056 $0.1592 ARB 7.93% $0.572135 3,851.5224 $2,203.59 ARB 0.21% $0.990513 58.7859 $58.23 ARB 0.15% $2,678.28 0.0155 $41.52 ARB 0.11% $0.996473 31.698 $31.59 ARB 0.07% $3,149.28 0.00620134 $19.53 ARB 0.06% $2,674.35 0.00587105 $15.7 ARB 0.04% $3,688.26 0.00303362 $11.19 ARB 0.04% $0.876482 12.1528 $10.65 ARB 0.04% $1 9.7502 $9.75 ARB 0.01% $0.525624 6.1674 $3.24 ARB 0.01% $0.974037 3.1417 $3.06 ARB <0.01% $2.59 0.9985 $2.59 ARB <0.01% $0.999256 2.2728 $2.27 ARB <0.01% $1 2.0273 $2.03 ARB <0.01% $0.995435 1.8124 $1.8 ARB <0.01% $0.070478 8.6443 $0.6092 ARB <0.01% $3.52 0.05 $0.176 OP 0.15% $0.999976 42.7137 $42.71 OP 0.14% $0.990582 38.5939 $38.23 OP <0.01% $0.999761 0.937 $0.9368 OP <0.01% $1.49 0.1681 $0.2505 MATIC <0.01% $2,674.52 0.00003891 $0.104 Loading...Loading[ Download: CSV Export ]A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.
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 VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (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.Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.